/* ===== Grundlagen / Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #000;
}

/* ===== Hero-Bereich ===== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;          /* Inhalt nach unten */
    justify-content: center;
    padding: 0 0 8vh;
}

/* Beide Bild-Ebenen benutzen dasselbe Foto.
   Dein Bild einfach als background.jpg in den images-Ordner legen. */

/* Ebene 1: unscharfer, vergroesserter Hintergrund -> fuellt die Breite */
.bg-blur {
    position: absolute;
    inset: 0;
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(32px) brightness(0.45) saturate(1.1);
    transform: scale(1.18);         /* verdeckt die weichen Blur-Raender */
    z-index: 0;
}

/* Ebene 2: das scharfe Foto, komplett sichtbar, mittig, unverzerrt */
.bg-photo {
    position: absolute;
    inset: 0;
    background-image: url("../images/background.jpg");
    background-size: contain;       /* ganzes Bild sichtbar, kein Verzerren */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* dezenter Schatten hebt das scharfe Foto vom Blur ab */
    box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.55);
}

/* Ebene 3: Scrim + Vignette -> Tiefe und Lesbarkeit */
.scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        /* dunkler Verlauf unten fuer den Text */
        linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 28%, rgba(0, 0, 0, 0) 55%),
        /* leichte Vignette an den Raendern */
        radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
}

/* ===== Textblock ===== */
.content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 4vw;
}

/* Ueberschrift: fett, animierter Bronze-Lila-Verlauf */
.title {
    font-size: clamp(2.5rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.02;

    /* breiterer Verlauf + Animation fuer den Schimmer */
    background: linear-gradient(
        100deg,
        #cd7f32 0%, #e0a15a 20%, #b87333 38%,
        #a1568f 58%, #8e44ad 78%, #6a0dad 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* weicher Glow + Schatten fuer Lesbarkeit */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 22px rgba(180, 90, 200, 0.35));

    animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
    from { background-position: 0% center; }
    to   { background-position: 100% center; }
}

/* kleine Zusatzzeile darunter */
.subtitle {
    margin-top: 0.6em;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.5em;          /* gesperrte Grossbuchstaben-Optik */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ===== Start-Vorhang "click me" ===== */
.intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}
.intro.hidden {
    opacity: 0;
    pointer-events: none;
}

.enter-btn {
    padding: 20px 55px;
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: lowercase;
    cursor: pointer;
    border: none;
    border-radius: 60px;
    color: #fff;
    background: linear-gradient(100deg, #cd7f32 0%, #b87333 35%, #8e44ad 75%, #6a0dad 100%);
    box-shadow: 0 0 30px rgba(180, 90, 200, 0.5);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 30px rgba(180, 90, 200, 0.4); }
    50%      { transform: scale(1.07); box-shadow: 0 0 55px rgba(180, 90, 200, 0.85); }
}

/* ===== Tanzende Trompeten ===== */
.trumpets {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
}
.trumpets-left  { left: 0; }
.trumpets-right { right: 0; }

.trumpet {
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    transform-origin: center;
    will-change: transform;
}

/* auf schmalen Bildschirmen (Handy) Trompeten ausblenden, sonst ueberm Bild */
@media (max-aspect-ratio: 1/1) {
    .trumpets { display: none; }
}

/* ===== Musik-Button ===== */
.sound-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 52px;
    text-align: center;
    color: #fff;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, background 0.2s ease;
}

.sound-toggle:hover {
    transform: scale(1.08);
    background: rgba(40, 40, 40, 0.75);
}

/* Bewegung fuer alle, die das nicht moegen, ausschalten */
@media (prefers-reduced-motion: reduce) {
    .title { animation: none; }
}
