/* Kirsche Event-Service — Custom Styles
   Tailwind übernimmt das Layout; hier nur Effekte, die Tailwind nicht direkt hat. */

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body { background-color: #111; overflow-x: hidden; max-width: 100vw; }
section { max-width: 100vw; overflow-x: clip; }

/* AOS auf Mobile: horizontale Translates wegnehmen, damit nichts off-screen schiebt.
   Die Animation wird zu einem vertikalen Fade. */
@media (max-width: 767px) {
    [data-aos="fade-right"],
    [data-aos="fade-left"] {
        transform: translate3d(0, 30px, 0);
    }
    [data-aos="fade-right"].aos-animate,
    [data-aos="fade-left"].aos-animate {
        transform: translate3d(0, 0, 0);
    }
}

::selection { background: #d92e44; color: #fff; }

/* ==========================================================================
   Cream-Akzent-Sektion — heller Block für visuelle Abwechslung
   ========================================================================== */
.cream-section {
    background:
        linear-gradient(180deg, #fbf7ee 0%, #f3ead7 100%);
    color: #1a1410;
    position: relative;
    overflow: hidden;
}
.cream-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(217, 46, 68, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(217, 46, 68, 0.05) 0%, transparent 40%);
    pointer-events: none;
}
.cream-section .placeholder-marker {
    background: rgba(180, 100, 0, 0.1);
    color: #a55300;
    border-color: rgba(180, 100, 0, 0.3);
}

/* ==========================================================================
   Hero — animierter Hintergrund (Spotlight + Smoke)
   ========================================================================== */
.hero-bg {
    background:
        radial-gradient(ellipse at 50% 0%,   rgba(217, 46, 68, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%,  rgba(217, 46, 68, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%,  rgba(120, 130, 200, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.04) 0%, transparent 70%);
    mix-blend-mode: screen;
    animation: smokeDrift 20s ease-in-out infinite alternate;
    z-index: 2;
}
.hero-bg::after { animation-duration: 28s; animation-direction: alternate-reverse; opacity: 0.6; }

/* Atmosphärisches Bild als Hero-Hintergrund (echtes Foto von Florians Bühne) */
.hero-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    filter: saturate(0.8) contrast(1.05);
    transform: scale(1.05);
    animation: heroZoom 30s ease-in-out infinite alternate;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.95) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.6) 80%);
    z-index: 1;
}
@keyframes heroZoom {
    0%   { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

@keyframes smokeDrift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-3%, 2%) scale(1.05); }
    100% { transform: translate(2%, -2%) scale(1.08); }
}

.spotlight {
    position: absolute;
    inset: -10%;
    background: conic-gradient(from 90deg at 50% 0%, transparent 0deg, rgba(217,46,68,0.12) 30deg, transparent 60deg);
    filter: blur(30px);
    animation: spotlightSweep 12s ease-in-out infinite;
}
@keyframes spotlightSweep {
    0%, 100% { transform: rotate(-3deg) scale(1); opacity: 0.7; }
    50%      { transform: rotate(3deg)  scale(1.05); opacity: 1; }
}

/* ==========================================================================
   Logo glow im Hero
   ========================================================================== */
.logo-glow {
    filter: drop-shadow(0 0 30px rgba(217, 46, 68, 0.5)) drop-shadow(0 0 60px rgba(217, 46, 68, 0.25));
    animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ==========================================================================
   Service-Cards
   ========================================================================== */
.service-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(217, 46, 68, 0.18), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 46, 68, 0.4);
    box-shadow: 0 20px 60px -20px rgba(217, 46, 68, 0.35);
}
.service-card:hover::before { opacity: 1; }

/* ==========================================================================
   Counter
   ========================================================================== */
.stat-number {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 0%, #d92e44 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Navigation — Scroll-State
   ========================================================================== */
#main-nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================================================
   Hüpfburg-Cards
   ========================================================================== */
.castle-card {
    background: linear-gradient(160deg, rgba(217, 46, 68, 0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(217, 46, 68, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.castle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -20px rgba(217, 46, 68, 0.4);
}

/* ==========================================================================
   Reference logos placeholder
   ========================================================================== */
.ref-pill {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}
.ref-pill:hover {
    border-color: rgba(217, 46, 68, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Form
   ========================================================================== */
.form-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: #d92e44;
    box-shadow: 0 0 0 3px rgba(217, 46, 68, 0.2);
}

/* ==========================================================================
   Section dividers
   ========================================================================== */
.section-divider {
    background: linear-gradient(90deg, transparent, rgba(217, 46, 68, 0.5), transparent);
    height: 1px;
}

/* Marker für Platzhalter-Inhalte — im Entwurf für Florian klar sichtbar */
.placeholder-marker {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: rgba(255, 200, 0, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 4px;
    text-transform: uppercase;
}

/* Reduzierte Animationen, falls vom Nutzer gewünscht */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
