:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent-gold: #ffffff;
    --font-display: 'Cormorant Garamond', serif;
    --font-ui: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    touch-action: auto; 
}

/* 3D Hintergrund */
#webgl-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    cursor: grab;
    touch-action: none;
}
#webgl-container:active { cursor: grabbing; }

/* Loading Screen - Editorial Style */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.loader-text {
    font-family: var(--font-ui);
    font-weight: 200;
    letter-spacing: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.progress-bar {
    width: 200px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
}
.progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 0%;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

/* UI Layer - Overlay über dem Canvas */
#ui-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none; /* Klicks gehen durch auf das Canvas... */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5vh 5vw 4vh 5vw;
}

/* Elegante Vignette für Lesbarkeit ohne klobige Boxen */
#ui-layer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Interaktive UI-Elemente fangen Klicks ab */
.interactive {
    pointer-events: auto; 
}

/* Header Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 24px;
}
.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-main);
    text-decoration: none;
}
.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}
.top-nav a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-nav a:hover {
    color: var(--dynamic-text-color, #ffffff);
}
.shop-btn {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}
.shop-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(226, 201, 118, 0.05);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

/* Elegante Typografie-Komposition (Golden Ratio & Block Design) */
.info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    margin-top: 16vh; /* Platzierung gemäß goldenem Schnitt im oberen Drittel */
    margin-bottom: 2vh;
    background: transparent;
    border: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 20;
    position: relative;
}

.info-container > * {
    position: relative;
    z-index: 2;
}

/* Zarte goldene Teilerlinien um es als gestalteten Block zu formen */
.info-container::before {
    content: '';
    display: block;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 201, 118, 0.4), transparent);
    margin-bottom: 20px;
}
.info-container::after {
    content: '';
    display: block;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 201, 118, 0.4), transparent);
    margin-top: 20px;
}

.date-display {
    font-family: var(--font-ui);
    font-weight: 200;
    font-size: 0.95rem;
    letter-spacing: 6px;
    color: var(--dynamic-text-color, #ffffff);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    opacity: 1;
    text-shadow: var(--dynamic-text-shadow, 0 2px 10px rgba(0,0,0,0.5));
    transition: color 0.1s ease, text-shadow 0.1s ease;
}
.phase-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 5px 0 10px 0;
    color: var(--dynamic-text-color, #ffffff);
    text-shadow: var(--dynamic-text-shadow, 0 4px 22px rgba(0,0,0,0.95));
    transition: color 0.1s ease, text-shadow 0.1s ease;
    position: relative;
}
.phase-display::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(92vw, 760px);
    height: 1.7em;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.78), rgba(0,0,0,0.46) 48%, transparent 74%);
    z-index: -1;
    pointer-events: none;
}
.seo-intro {
    max-width: 560px;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
    text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}
/* Editorial Details (Fließtext unten) */
.editorial-details {
    width: 90%;
    max-width: 450px;
    margin: 0 auto 3vh auto;
    font-family: var(--font-ui);
    color: var(--dynamic-text-color, #ffffff);
    text-shadow: var(--dynamic-text-shadow, 0 1px 10px rgba(0,0,0,0.8));
    transition: opacity 0.4s ease, color 0.1s ease, text-shadow 0.1s ease;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 6px;
}
.data-row.highlight .data-value {
    color: var(--accent-gold);
}
.data-label {
    opacity: 0.7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.data-value {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Footer / Timeline Controls */
.controls-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    padding: 20px 30px;
    position: relative;
    overflow: hidden;
}
.controls-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 100%);
    z-index: -1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* High-End Slider Design */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--text-main);
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -9px;
    transition: transform 0.2s, background 0.2s;
}
input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.3);
    background: var(--accent-gold);
}

.action-row {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    height: 20px; /* Feste Höhe, damit Layout nicht springt */
}
.btn-live {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.btn-live.visible {
    opacity: 1;
    pointer-events: auto;
}
.btn-live:hover { text-shadow: 0 0 10px rgba(226, 201, 118, 0.5); }

.calendar-export {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.calendar-export a,
.calendar-export button {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
    color: rgba(255,255,255,0.78);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    line-height: 30px;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.calendar-export button {
    appearance: none;
}

.calendar-export a:hover,
.calendar-export button:hover {
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.075);
    color: var(--dynamic-text-color, #ffffff);
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.glass-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 300;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: background 0.3s, transform 0.2s;
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}
.glass-btn:active {
    transform: scale(0.95);
}

/* Legal Links */
.legal-links {
    position: absolute;
    bottom: 3vh;
    left: 5vw;
    display: flex;
    gap: 15px;
    z-index: 100;
}
.legal-links a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}
.legal-links a:hover {
    color: var(--accent-gold);
}

.content-strip {
    position: relative;
    z-index: 20;
    margin-top: 100vh;
    background: #050506;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 72px 5vw 88px;
}
.content-strip-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.content-strip article {
    border-top: 1px solid rgba(255,255,255,0.16);
    padding-top: 18px;
}
.content-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    margin: 0 0 12px;
}
.content-strip p {
    font-family: var(--font-ui);
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin: 0;
}

#shop-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    justify-content: flex-end;
    pointer-events: auto;
}
.shop-drawer {
    width: min(440px, 100%);
    height: 100%;
    background: rgba(8,8,10,0.96);
    border-left: 1px solid rgba(255,255,255,0.14);
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}
#shop-overlay.open .shop-drawer {
    transform: translateX(0);
}
.shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.shop-kicker {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.52);
    margin-bottom: 6px;
}
.shop-header h2 {
    font-family: var(--font-display);
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 300;
    margin: 0;
}
#close-shop-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: transparent;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.shop-items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.shop-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}
.shop-item-img {
    width: 88px;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background:
        radial-gradient(circle at 38% 38%, rgba(255,255,255,0.8), rgba(255,255,255,0.12) 34%, transparent 35%),
        linear-gradient(145deg, #101114, #252016);
}
.moon-binoculars {
    background:
        radial-gradient(circle at 34% 48%, rgba(255,255,255,0.8) 0 15%, transparent 16%),
        radial-gradient(circle at 66% 48%, rgba(255,255,255,0.8) 0 15%, transparent 16%),
        linear-gradient(145deg, #0a0b0f, #2c2c31);
}
.moon-tripod {
    background:
        linear-gradient(62deg, transparent 44%, rgba(255,255,255,0.72) 45% 48%, transparent 49%),
        linear-gradient(118deg, transparent 44%, rgba(255,255,255,0.72) 45% 48%, transparent 49%),
        radial-gradient(circle at 50% 28%, rgba(255,255,255,0.85) 0 13%, transparent 14%),
        linear-gradient(145deg, #101114, #251b14);
}
.moon-calendar {
    background:
        linear-gradient(rgba(255,255,255,0.7) 0 0) 24px 24px / 40px 2px no-repeat,
        linear-gradient(rgba(255,255,255,0.45) 0 0) 24px 42px / 40px 2px no-repeat,
        radial-gradient(circle at 64% 64%, rgba(255,255,255,0.76) 0 15%, transparent 16%),
        linear-gradient(145deg, #111116, #1a2630);
}
.shop-item-info h3 {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    margin: 0 0 7px;
}
.shop-item-info p {
    color: rgba(255,255,255,0.68);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0 0 12px;
}
.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.06);
}
.affiliate-note {
    color: rgba(255,255,255,0.52);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    line-height: 1.6;
    margin: 8px 0 0;
}

/* UI Toggle Button */
#toggle-ui-btn {
    position: absolute;
    top: 3vh;
    right: 5vw;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s;
}
#toggle-ui-btn svg {
    width: 20px; height: 20px; fill: #ffffff; opacity: 0.7; transition: opacity 0.3s;
}
#toggle-ui-btn:hover {
    background: rgba(255,255,255,0.15); transform: scale(1.05);
}
#toggle-ui-btn:hover svg { opacity: 1; }

.ui-hidden .info-container,
.ui-hidden .editorial-details {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-10px);
}

/* Responsiveness */
@media (max-width: 768px) {
    #ui-layer { padding: 4vh 5vw 4vh 5vw; }
    
    #ui-layer::before {
        /* Verstärkte Vignette auf Mobile */
        background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 20%, transparent 70%, rgba(0,0,0,0.9) 100%);
    }

    header {
        align-items: flex-start;
    }
    .top-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 9px 12px;
        font-size: 0.62rem;
    }
    .shop-btn { padding: 6px 12px; font-size: 0.62rem; }
    .controls-container { padding: 15px 20px; width: 100%; border-radius: 16px; margin-bottom: 1vh; }
    .date-display { font-size: 0.75rem; }
    
    
    .info-container {
        padding: 0;
        margin-top: 12vh; /* Auf Mobile etwas höher ziehen */
    }
    .info-container::before, .info-container::after {
        width: 80%; /* Linien auf Mobile etwas breiter ziehen */
    }
    
    .phase-display {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .seo-intro {
        max-width: 86vw;
        font-size: 0.78rem;
    }
    
    .zoom-controls { 
        top: auto; 
        bottom: 20vh;
        right: 4vw;
        flex-direction: row; 
    }
    /* Canvas Interaktions-Hinweis auf Mobile */
    .info-container::after {
        content: 'Swipe to rotate 3D view';
        display: block;
        font-family: var(--font-ui);
        font-size: 0.6rem;
        letter-spacing: 2px;
        color: rgba(255,255,255,0.4);
        text-transform: uppercase;
        margin-top: 15px;
        text-shadow: 0 2px 10px rgba(0,0,0,1);
    }
    
    .legal-links {
        bottom: 2vh;
        left: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .content-strip {
        padding: 52px 6vw 68px;
    }
    .content-strip-inner {
        grid-template-columns: 1fr;
    }
    .shop-drawer {
        padding: 24px;
    }
    .shop-item {
        grid-template-columns: 72px 1fr;
    }
    .shop-item-img {
        width: 72px;
    }
}
