html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    background: #020617;
    color: white;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

/* Fly-in/Ticker/Pulse dürfen nicht die Seite seitlich aufziehen */
header,
#ueber,
#ueber > div,
#termine,
#mitglieder,
#kontakt {
    overflow-x: clip;
    max-width: 100%;
}

.heading-font {
    font-family: 'Playfair Display', sans-serif;
}

.nav {
    backdrop-filter: blur(16px);
    background: rgba(2,6,23,0.9);
}

.tile-grid {
    position: absolute;
    inset: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);

    gap: 6px;
}

/* ✅ Reihen fixieren */
.tile:nth-child(1),
.tile:nth-child(2),
.tile:nth-child(3) {
    grid-row: 1;
}

.tile:nth-child(4),
.tile:nth-child(5),
.tile:nth-child(6) {
    grid-row: 2;
}

/* Tile Styling */
.tile {
    position: relative;
    overflow: hidden;
}

/* Images */
.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease, transform 4s ease;
}

.tile img.active {
    opacity: 1;
    transform: scale(1.1);
}

/* ✅ Mobile Verhalten (kein Durcheinander mehr) */
@media (max-width: 768px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}


.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(2,6,23,0.05) 0%,
        rgba(2,6,23,0.08) 50%,
        rgba(2,6,23,0.7) 70%,
        rgba(2,6,23,0.9) 100%
    );

    /* 👇 der Trick */
    pointer-events: none;
    z-index: 2;
}

.glass {
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
}

.title-shake span {
    display: inline-block;
    animation: wave 1.2s ease-in-out infinite;
    word-break: keep-all;
    white-space: normal;
    line-height: 1.1;
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-arrow {
    animation: bounce 2.4s infinite;
}
@keyframes bounce {
    0%, 20% { transform: translateY(0); }
    50% { transform: translateY(20px); }
    80%, 100% { transform: translateY(0); }
}

/* REVEAL – GPU-Hint; Startwerte setzt scroll-effects.js sofort */
.scroll-fly {
    will-change: transform, opacity;
    /* sanfter Default bevor JS tickt – nicht unsichtbar, sonst „später Pop“ */
    transform: translateZ(0);
}

.parallax {
    will-change: transform;
    transform: translateZ(0);
}

/* CARD HOVER */
.card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px -12px rgba(0,0,0,0.4);
}

body.scrolling .card {
    transition: none; /* stoppt transform animation beim scroll */
}

body.scrolling .card:hover img {
    transform: none;
}

body.scrolling .card:hover {
    transform: none; /* verhindert Konflikt mit JS */
}
/* IMAGE ZOOM */
.card:hover img {
    transform: scale(1.05);
}

* {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

@keyframes wiggle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-2px); }
    75% { transform: translateX(1px); }
}

.more-info {
    display: inline-block;
    animation: wiggle 4s ease-in-out infinite;
    opacity: 1;
}

body.scrolling .more-info {
    animation: none; /* 👈 stoppt Wiggle beim Scroll */
}

.card:hover .more-info {
    animation: wiggle 0.5s ease-in-out infinite;
    opacity: 1;
}

/* BADGE (FINAL FIXED) */
.member-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(249, 115, 22, 0.95);
    color: white;
    font-size: 0.8rem;
    padding: 3px 11px;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.member-modal-photo,
.member-card-photo {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
    transform: translateZ(0);
    background: #020617;
}

.member-modal-photo {
    aspect-ratio: 16 / 9;
}

.member-card-photo {
    height: 13rem;
}

#modal-image,
.member-card-img {
    position: absolute;
    max-width: none;
    object-fit: cover;
    display: block;
}

#member-modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    align-items: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.member-modal-card {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: auto;
    max-height: none;
}

.member-modal-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 30;
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    background: rgba(2, 6, 23, 0.78);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
}

.member-modal-close:hover {
    background: rgba(2, 6, 23, 0.95);
    color: #fb923c;
}
.member-reveal {
    position: relative;
    transform-origin: center;
    height: 100%;
}

#members-grid {
    overflow: visible;
}

.member-throw {
    height: 100%;
    opacity: 0;
    transform: translate3d(var(--throw-x, 70px), var(--throw-y, 84px), 0)
               rotate(var(--throw-r, 8deg)) scale(0.86);
    will-change: transform, opacity;
}

.member-throw.is-in {
    animation: member-throw-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--throw-delay, 0ms);
}

@keyframes member-throw-in {
    0% {
        opacity: 0;
        transform: translate3d(var(--throw-x, 70px), var(--throw-y, 84px), 0)
                   rotate(var(--throw-r, 8deg)) scale(0.86);
    }
    68% {
        opacity: 1;
        transform: translate3d(0, -10px, 0) rotate(0deg) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-throw,
    .member-throw.is-in {
        opacity: 1;
        transform: none;
        animation: none;
        will-change: auto;
    }
}


@keyframes wiggle-soft {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(3px); }
    50% { transform: translateX(-3px); }
    75% { transform: translateX(2px); }
}

.events-btn {
    display: inline-block;
    animation: wiggle-soft 4s ease-in-out infinite;
    opacity: 0.8;
}

.events-btn:hover {
    opacity: 1;
}

.event-item {
    transition: all 0.3s ease;
}

/* Termin-Bilder: feste Höhe, Blur-Fill statt schwarzer Balken */
.event-img-frame {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    overflow: hidden;
    background: #0f172a;
    border-radius: 1.5rem 1.5rem 0 0;
}

.event-img-frame .event-img-blur {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    object-fit: cover;
    filter: blur(28px) saturate(1.15) brightness(0.72);
    transform: scale(1.08);
    pointer-events: none;
    user-select: none;
}

.event-img-frame .event-img-main {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.event-img-frame .event-img-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}

/* Hero: 3 HQ-Clips nacheinander, fullscreen, mit Fade */
.hero-clip-slideshow {
    position: absolute;
    inset: 0;
    background: #020617;
    overflow: hidden;
}

.hero-clip-slideshow video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
    background: #0f172a;
    pointer-events: none;
}

.hero-clip-slideshow video.is-active {
    opacity: 1;
    z-index: 1;
}

/* Live-Video zwischen Parallax-Blöcken */
.live-energy-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 108%;
    object-fit: cover;
    object-position: center;
    background: #020617;
}

/* Lade-Throbber: Bandlogo mittig + Spinner-Ring
   Standard: versteckt. Nur .is-active sichtbar (display, nicht nur opacity). */
.live-video-loader {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    pointer-events: none;
    background: rgba(2, 6, 23, 0.72);
}

.live-video-loader.is-active {
    display: flex;
}

/* Während Loader: Corner-Brand etwas zurücknehmen */
.live-energy-section:has(.live-video-loader.is-active) .live-video-brand {
    opacity: 0.35;
    transition: opacity 0.35s ease;
}

.live-video-loader-core {
    position: relative;
    width: clamp(7.25rem, 22vw, 9.5rem);
    height: clamp(7.25rem, 22vw, 9.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-video-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-top-color: #fb923c;
    border-right-color: rgba(249, 115, 22, 0.55);
    animation: live-loader-spin 0.8s linear infinite;
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.15),
        0 0 32px rgba(249, 115, 22, 0.35);
}

.live-video-loader-logo {
    position: relative;
    z-index: 1;
    width: clamp(4.25rem, 14vw, 6rem);
    height: auto;
    border-radius: 0.95rem;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.16);
    animation: live-loader-logo-pulse 1.5s ease-in-out infinite;
    user-select: none;
    display: block;
    background: #0f172a;
}

.live-video-loader-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

@keyframes live-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes live-loader-logo-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.92; }
}

@media (prefers-reduced-motion: reduce) {
    .live-video-loader-ring,
    .live-video-loader-logo {
        animation: none;
    }
}

/* Fakten-Ticker unten über dem Live-Video */
.live-facts {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    padding: 2.5rem 0 1.35rem;
    background: linear-gradient(
        to top,
        rgba(2, 6, 23, 0.88) 0%,
        rgba(2, 6, 23, 0.55) 55%,
        rgba(2, 6, 23, 0) 100%
    );
}

.live-facts-label {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fb923c;
    font-weight: 700;
    margin-bottom: 0.65rem;
    opacity: 0.95;
}

.live-facts-track-wrap {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}

.live-facts-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: live-facts-scroll 48s linear infinite;
    will-change: transform;
}

.live-facts-track:hover {
    animation-play-state: paused;
}

.live-facts-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    padding-right: 0;
}

.live-facts-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
    padding: 0 0.15rem;
}

.live-facts-sep {
    display: inline-block;
    margin: 0 1.35rem;
    color: #fb923c;
    font-weight: 800;
    opacity: 0.85;
}

@keyframes live-facts-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .live-facts-track {
        animation: none;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        row-gap: 0.5rem;
        padding: 0 1rem;
    }

    .live-facts-group:last-child {
        display: none;
    }

    .live-facts-item {
        white-space: normal;
        text-align: center;
    }

    .live-video-logo {
        animation: none;
    }
}

/* Band-Logo + Social oben rechts im Live-Video */
.live-video-brand {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.live-video-logo {
    width: clamp(3.25rem, 9vw, 5rem);
    height: auto;
    border-radius: 0.85rem;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    animation: live-logo-pulse 1.6s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
    display: block;
}

@keyframes live-logo-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.45),
            0 0 0 0 rgba(249, 115, 22, 0.55);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.5),
            0 0 0 12px rgba(249, 115, 22, 0);
    }
}

.live-video-social {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.live-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 9999px;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    color: #fff;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.live-social-btn:hover {
    transform: scale(1.08);
    border-color: rgba(249, 115, 22, 0.65);
    background: rgba(15, 23, 42, 0.92);
}

.live-social-btn:active {
    transform: scale(0.96);
}

.live-social-btn img,
.live-social-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.live-social-btn--yt {
    color: #ff4e45;
}

.live-social-btn--ig img {
    filter: brightness(1.05);
}

@media (max-width: 480px) {
    .live-video-brand {
        top: 0.85rem;
        right: 0.85rem;
        gap: 0.45rem;
    }

    .live-social-btn {
        width: 1.95rem;
        height: 1.95rem;
    }
}

/* Footer: Copyright mittig, Socials rechts, Audio-Slot links (mobil sichtbar) */
.site-footer-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.site-footer-copy {
    flex: 1 1 auto;
    text-align: center;
}

.site-footer-socials {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer-audio {
    display: contents;
}

/* Schwebender Audio-Toggle (Desktop unten links).
   Mobil: sitzt im Footer, links, gleiche Größe wie Social-Icons.
   Erst sichtbar, wenn live_energy.mp4 geladen ist und spielt (.is-ready) */
.audio-toggle {
    position: fixed;
    bottom: 1.35rem;
    left: 1.35rem;
    z-index: 60;
    display: none;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.25rem 0.95rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(14px);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.35s ease,
        opacity 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Sichtbar + dauerhaft pulsieren (an und aus) */
.audio-toggle.is-ready {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: audio-pulse 1.35s ease-in-out infinite;
    border-color: rgba(249, 115, 22, 0.7);
}

.audio-toggle:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(249, 115, 22, 0.55);
}

.audio-toggle:active {
    transform: scale(0.97);
}

@keyframes audio-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.45),
            0 0 0 0 rgba(249, 115, 22, 0.55);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.5),
            0 0 0 14px rgba(249, 115, 22, 0);
    }
}

/* Kleiner Footer-Button: gleicher Rhythmus, engerer orangener Ring */
@keyframes audio-pulse-footer {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(249, 115, 22, 0.7),
            0 0 10px rgba(249, 115, 22, 0.45);
    }
    50% {
        transform: scale(1.22);
        box-shadow:
            0 0 0 11px rgba(249, 115, 22, 0),
            0 0 16px rgba(249, 115, 22, 0.2);
    }
}

.audio-toggle.is-on {
    border-color: rgba(249, 115, 22, 0.65);
}

.audio-toggle .audio-icon {
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
}

.audio-toggle .audio-icon-on {
    display: none;
    color: #fb923c;
}

.audio-toggle .audio-icon-off {
    display: block;
    color: rgba(255, 255, 255, 0.85);
}

.audio-toggle.is-on .audio-icon-on {
    display: block;
}

.audio-toggle.is-on .audio-icon-off {
    display: none;
}

.audio-toggle .audio-label-on {
    display: none;
}

.audio-toggle.is-on .audio-label-on {
    display: inline;
}

.audio-toggle.is-on .audio-label-off {
    display: none;
}

.cms-multiline {
    white-space: pre-line;
}

.if17-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    overflow: hidden;
    border-radius: 1.75rem;
}

.contact-panel-intro {
    display: flex;
    flex-direction: column;
    padding: 2.1rem 2.15rem 1.85rem;
    background:
        linear-gradient(165deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.05) 38%, transparent 72%),
        rgba(255, 255, 255, 0.025);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fb923c;
}

.contact-title {
    margin: 0.7rem 0 0;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
    color: #fff;
}

.contact-lead {
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    font-size: 1.02rem;
}

.contact-social-heading {
    margin: 1.6rem 0 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem 0.4rem 0.45rem;
    border-radius: 9999px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.7);
    background: rgba(15, 23, 42, 0.72);
    color: #fdba74;
    outline: none;
}

.contact-social-link img,
.contact-social-link svg,
.contact-yt-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    display: block;
    flex: 0 0 1.25rem;
}

.contact-hint {
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.86rem;
}

.contact-panel-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2.1rem 2.15rem 1.85rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-form-msg {
    min-height: 1.25em;
    font-size: 0.9rem;
    margin: 0;
}

.contact-form-msg.is-ok {
    color: #34d399;
}

.contact-form-msg.is-error {
    color: #f87171;
}

.contact-char-count {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.contact-char-count.is-warn {
    color: #fdba74;
}

.contact-char-count.is-limit {
    color: #fb923c;
    font-weight: 600;
}

#contact-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

body.contact-success-open {
    overflow: hidden;
}

.contact-success-modal {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.contact-success-modal[hidden] {
    display: none !important;
}

.contact-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.contact-success-dialog {
    position: relative;
    z-index: 1;
    width: min(28rem, 100%);
    border-radius: 1.5rem;
    padding: 2.1rem 1.6rem 1.6rem;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.contact-success-modal.is-open .contact-success-dialog {
    transform: none;
    opacity: 1;
}

.contact-success-logo {
    --logo-w: 210px;
    --logo-h: 148px;
    position: relative;
    width: var(--logo-w);
    height: var(--logo-h);
    margin: 0.35rem auto 1.35rem;
}

.contact-success-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.contact-success-half img {
    position: absolute;
    top: 0;
    height: 100%;
    width: var(--logo-w);
    max-width: none;
    object-fit: contain;
    display: block;
}

.contact-success-half.is-left {
    left: 0;
    transform: translateX(-46%) rotate(-9deg);
}

.contact-success-half.is-right {
    right: 0;
    transform: translateX(46%) rotate(9deg);
}

.contact-success-half.is-left img {
    left: 0;
}

.contact-success-half.is-right img {
    right: 0;
}

.contact-success-logo.is-playing .contact-success-half {
    transform: none;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-success-logo.is-playing .contact-success-half.is-left {
    transition-delay: 0.05s;
}

.contact-success-logo.is-playing .contact-success-half.is-right {
    transition-delay: 0.12s;
}

.contact-success-logo.is-joined {
    animation: contact-logo-join 0.55s ease;
    filter: drop-shadow(0 0 18px rgba(251, 146, 60, 0.38));
}

@keyframes contact-logo-join {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.contact-success-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin: 0 0 0.7rem;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.55s, transform 0.4s ease 0.55s;
}

.contact-success-text {
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    font-size: 0.98rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.72s, transform 0.4s ease 0.72s;
}

.contact-success-modal.is-open .contact-success-title,
.contact-success-modal.is-open .contact-success-text {
    opacity: 1;
    transform: none;
}

.contact-success-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8.5rem;
    background: #f97316;
    color: #fff;
    border: 0;
    border-radius: 9999px;
    padding: 0.7rem 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.contact-success-ok:hover {
    background: #ea580c;
}

.contact-success-ok:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .contact-success-logo {
        --logo-w: 176px;
        --logo-h: 124px;
    }

    .contact-success-title {
        font-size: 1.3rem;
    }

    .contact-success-dialog {
        padding: 1.85rem 1.2rem 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-success-dialog,
    .contact-success-half,
    .contact-success-title,
    .contact-success-text,
    .contact-success-logo.is-joined {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* Mobil: Audio im Footer selbst, links, gleiche Größe wie Instagram/YouTube/Mail */
@media (max-width: 768px) {
    .site-footer,
    .site-footer-inner {
        overflow: visible;
    }

    .site-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    }

    .site-footer-inner {
        padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    }

    .site-footer-audio {
        display: flex;
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        align-items: center;
        justify-content: center;
    }

    .site-footer-socials {
        right: 1.5rem;
        gap: 0.85rem;
    }

    .site-footer-copy {
        padding: 0 6.75rem 0 2.85rem;
    }

    .audio-toggle,
    .audio-toggle.is-ready {
        position: static;
        bottom: auto;
        left: auto;
        right: auto;
        z-index: auto;
        width: 1.5rem;
        height: 1.5rem;
        min-width: 1.5rem;
        min-height: 1.5rem;
        padding: 0;
        gap: 0;
        border: 0;
        border-radius: 9999px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        font-size: 0;
        letter-spacing: 0;
    }

    .audio-toggle.is-ready {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        opacity: 1;
        animation: audio-pulse-footer 1.35s ease-in-out infinite;
    }

    .audio-toggle:hover,
    .audio-toggle.is-ready:hover {
        background: transparent;
        border: 0;
        opacity: 1;
    }

    .audio-toggle:active,
    .audio-toggle.is-ready:active {
        opacity: 1;
    }

    .audio-toggle .audio-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .audio-toggle .audio-label-off,
    .audio-toggle .audio-label-on,
    .audio-toggle.is-on .audio-label-on,
    .audio-toggle.is-on .audio-label-off {
        display: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
        .audio-toggle.is-ready {
            animation: none;
            box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.7);
        }
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-panel-intro {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.6rem 1.4rem 1.35rem;
    }

    .contact-panel-form {
        padding: 1.5rem 1.4rem 1.4rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

@media (max-width: 480px) {
    .site-footer-copy {
        padding: 0 6.25rem 0 2.6rem;
    }

    .site-footer-socials {
        gap: 0.7rem;
    }

    .member-modal-close {
        top: 0.55rem;
        right: 0.55rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}
