/* ==========================================================================
   OMBIENTE SONIC EVOLUTION — 169 Hz
   CI-KONFORMES RAHMENLOSES DESIGN-SYSTEM (PSAIHOVEN-ARCHITEKTUR)
   Hintergrund: stars_bg.webp + CI Dark Violet (#0b0017)
   Typografie: Montserrat, Outfit, Nunito Sans
   ========================================================================== */

:root {
    --bg-dark: #0b0017;
    --gold-ose: #d4af37;
    --gold-bright: #fcf6ba;
    --gold-dark: #aa8416;
    --gold-glow: rgba(212, 175, 55, 0.35);

    --accent-violet: #8200c2;     /* 169 Hz */
    --accent-cyan: #00d5ff;       /* Emanuel */
    --accent-red: #fe0000;        /* Kristof */
    
    --text-light: #f5f5f5;
    --text-muted: #a09aa8;
    --text-dim: #686072;
    --silver: #b0b8c1;
}

/* ==========================================================================
   TYPOGRAFIE — lokale Variable Fonts (Identity Guide §5)
   ========================================================================== */
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations'),
         url('assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-VariableFont_wght.ttf') format('truetype-variations'),
         url('assets/fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('assets/fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype-variations'),
         url('assets/fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('assets/fonts/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype-variations'),
         url('assets/fonts/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   RESET & BACKGROUND
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Stars Cosmic Background (Ombiente_Love_KI_BG_1.webp) */
.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/img/stars_bg.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

/* CI Dark Violet Overlay & Breathing Vignette */
.bg-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(130, 0, 194, 0.25) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(0, 213, 255, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(11, 0, 23, 0.6) 0%, rgba(11, 0, 23, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Subtle dot grid */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   APP WRAPPER
   ========================================================================== */
#app {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.2rem 0 0.6rem;
    box-sizing: border-box;
}

/* SPoT Divider */
.gold-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-ose), transparent);
    margin: 1.5rem auto;
    opacity: 0.75;
}

/* ==========================================================================
   1. ENTER SCREEN (RADIKAL MINIMALISTISCH)
   ========================================================================== */
.enter-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 4rem);
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.enter-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.enter-header-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.3));
    transition: filter 0.5s ease;
}

.enter-header-img:hover {
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.45));
}

/* Enter Button Wrap (Goldene Trennlinien wie auf HeroPage, KEIN Kasten) */
.enter-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.enter-btn-wrap .gold-divider {
    margin: 0.8rem auto;
}

.enter-btn {
    padding: 0.5rem 2.5rem;
    background: transparent;
    border: none;
    color: var(--gold-bright);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    outline: none;
}

.enter-btn:hover {
    color: #ffffff;
    letter-spacing: 0.55em;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   2. MAIN SCREEN (NACH KLICK AUF ENTER)
   ========================================================================== */
.main-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    flex: 1;
    animation: fadeIn 1.2s ease-out forwards;
}

/* Header Logo (Ganz oben auf HeroPage elegant zentriert) */
.header-logo-wrap {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.2));
}

.header-logo-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 1. Schöpfungskern (Kugeln bis Zwillinge) — Zentriert zwischen Logo und Footer */
.core-creation-block {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

/* ==========================================================================
   DAS UHRWERK: TEAM CONSTELLATION (KEIN KASTEN / KEIN RAHMEN)
   ========================================================================== */
.team-uhrwerk {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.team-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem 1.5rem;
}

.team-avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-avatar-item:hover {
    transform: translateY(-4px);
}

.avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.85), rgba(130, 0, 194, 0.6));
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-ring.ring-liora {
    background: linear-gradient(135deg, #ff7800, var(--gold-ose), #00d5ff);
}

.team-avatar-item:hover .avatar-ring {
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.6);
    transform: scale(1.08);
}

.avatar-ring.active-playing {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.95), 0 0 14px #00d5ff;
    border-color: var(--gold-ose);
    transform: scale(1.1);
    animation: pulseAura 2.2s infinite ease-in-out;
}

@keyframes pulseAura {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 10px #00d5ff; }
    50% { box-shadow: 0 0 32px rgba(212, 175, 55, 1), 0 0 18px #ff7800; }
}

.team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #000;
}

.team-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--silver);
    transition: color 0.2s ease;
}

.team-avatar-item:hover .team-name {
    color: var(--gold-ose);
}

.team-status-line {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.76rem;
    font-style: italic;
    color: var(--silver);
    opacity: 0.65;
    letter-spacing: 0.06em;
    min-height: 1.2rem;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   PSAIHOVEN EQUALIZER & AUDIO KONSOLEN-ANZEIGE
   ========================================================================== */
.eq-console {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

.eq-console .gold-divider {
    margin: 0.5rem auto;
}

.eq-interactive-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 1.5rem;
    transition: opacity 0.3s ease;
}

.eq-interactive-box:hover {
    opacity: 0.85;
}

#eq-canvas {
    display: block;
}

.track-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.playback-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-ose);
    opacity: 0.9;
    user-select: none;
}

.status-bracket {
    opacity: 0.85;
    flex-shrink: 0;
}

.status-word {
    display: inline-block;
    width: 84px;
    text-align: center;
    transition: opacity 0.15s ease;
}

.track-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--silver);
    opacity: 0.88;
    text-align: center;
    transition: color 0.3s ease;
}

/* ==========================================================================
   EXTERNE BRAND LINKS (AIHOVEN & PSAIHOVEN)
   ========================================================================= */
.external-brands {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.twins-caption {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-ose);
    text-align: center;
    margin-bottom: 0.45rem;
    opacity: 0.9;
}

.brands-row {
    display: flex;
    gap: 1.4rem;
    width: 100%;
    justify-content: center;
}

.ext-brand-link {
    flex: 1;
    max-width: 175px;
    padding: 0.5rem 0.5rem 0.65rem;
    background: rgba(11, 0, 23, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.35s ease;
}

.brand-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: #000;
}

.brand-btn-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.brand-title {
    display: block;
    font-family: 'Montserrat', serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    color: var(--gold-ose);
    transition: color 0.3s ease;
}

.brand-sub {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--silver);
    margin-top: 0.1rem;
    opacity: 0.75;
}

.ext-brand-link:hover {
    border-color: var(--gold-ose);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.ext-brand-link:hover .brand-btn-img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.ext-brand-link:hover .brand-img-wrap {
    border-color: var(--gold-ose);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.ext-brand-link:hover .brand-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   3. LEGAL FOOTER (3 ZEILEN: ICONS / NAV-BAND VERSALIEN / COPYRIGHT KLEIN)
   ========================================================================== */
.legal-footer {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0.65rem auto 0;
    padding: 0.3rem 1.2rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    box-sizing: border-box;
}

/* Zeile 1: Die vier Icons */
.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.footer-social-icon img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(0.75);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.footer-social-icon:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 6px var(--gold-ose));
    transform: scale(1.15);
}

/* Zeile 2: IMPRESSUM · DATENSCHUTZ · DE | EN (Ein Band, gleiche Stufe, Versalien) */
.footer-nav-band {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--silver);
    line-height: 1;
}

.nav-band-item {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
}

.nav-band-item:hover {
    color: var(--gold-ose);
}

.nav-band-dot {
    color: var(--gold-ose);
    opacity: 0.55;
    font-size: 0.75rem;
    line-height: 1;
    margin: 0 0.25rem;
    user-select: none;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
}

.lang-switcher span {
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.lang-switcher span:hover,
.lang-switcher span.lang-active {
    color: var(--gold-ose);
    opacity: 1;
}

/* DE | EN mit Leerzeichen um den Strich, damit es nicht wie ein Code-Token wirkt */
.lang-sep {
    cursor: default;
    opacity: 0.4;
    user-select: none;
}

/* Zeile 3: © klein, nicht Versalien — eine ruhige Zeile */
.footer-copy-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.copyright-line {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: none; /* Nicht Versalien! */
    color: var(--silver);
    opacity: 0.65;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

#footer-rights {
    white-space: nowrap;
}

/* ==========================================================================
   4. IN-PAGE LEGAL MODAL
   ========================================================================== */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.4s ease;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
}

.legal-modal-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    width: 100%;
    max-height: 85vh;
    background: #080210;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(130, 0, 194, 0.25);
    overflow-y: auto;
    padding: 0 0 2.5rem;
    color: #e8e4f0;
}

.legal-modal-header {
    position: sticky;
    top: 0;
    margin: 0;
    padding: 0.7rem 1rem;
    background: #080210;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
}

.legal-page-logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 1.6rem;
}

.legal-modal-body {
    padding: 0 2rem;
}

.legal-close-btn {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-ose);
    color: var(--gold-ose);
    padding: 0.45rem 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-close-btn:hover {
    background: var(--gold-ose);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 500px) {
    #app {
        padding: 0.5rem 0.8rem 1.6rem;
    }
    .enter-header-img {
        width: 95vw;
    }
    .avatar-ring {
        width: 48px;
        height: 48px;
    }
    .team-name {
        font-size: 0.65rem;
    }
    .brands-row {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .ext-brand-link {
        width: 100%;
        max-width: 280px;
    }
    .legal-footer {
        margin-top: 1.1rem;
        padding: 0.4rem 0.2rem 0.8rem;
        gap: 0.45rem;
    }
    .footer-social-icons {
        gap: 0.75rem;
    }
    .footer-social-icon {
        width: 16px;
        height: 16px;
    }
    .footer-social-icon img {
        width: 13px;
        height: 13px;
    }
    .footer-nav-band {
        font-size: 0.57rem;
        letter-spacing: 0.16em;
        gap: 0.25rem;
    }
    .nav-band-dot {
        margin: 0 0.15rem;
    }
    .copyright-line {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
        line-height: 1.4;
    }
}

@media (max-width: 380px) {
    .footer-social-icons {
        gap: 0.6rem;
    }
    .footer-nav-band {
        font-size: 0.53rem;
        letter-spacing: 0.12em;
    }
}

/* Desktop-Vollbild: größer als die alte 720-px-Kappe, niedrig genug dass der Fuß im Fenster bleibt */
@media (min-width: 900px) {
    .header-logo-wrap {
        max-width: min(72vw, 1180px);
    }
}

/* Kompakte Laptops (z.B. 1280x800, 1366x768): Nahtlos auf einem Screen ohne vertikales Scrollen */
@media (min-width: 700px) and (max-height: 850px) {
    .header-logo-wrap {
        max-width: 640px;
    }
    .avatar-ring {
        width: 46px;
        height: 46px;
    }
    .team-avatar-item {
        gap: 0.2rem;
    }
    .core-creation-block {
        gap: 0.25rem;
    }
    .ext-brand-link {
        max-width: 136px;
        padding: 0.3rem 0.3rem 0.45rem;
    }
    .legal-footer {
        margin: 0.25rem auto 0;
        padding: 0.15rem 1rem 0.35rem;
        gap: 0.3rem;
    }
}
