/* -- ladyanja.net -- Mobile-First Design System -- */

/* ============================
   1. VARIABLES
   ============================ */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #222222;
    --gold: #c9a84c;
    --gold-light: #d4b85a;
    --gold-dark: #a88a3a;
    --white: #f5f5f5;
    --gray: #888888;
    --font: 'Outfit', sans-serif;
    --container: min(92vw, 1200px);
    --section-pad: clamp(3rem, 8vh, 10rem);
    --radius: 12px;
    --min-tap: 48px;
}

/* ============================
   2. RESET & BASE
   ============================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: auto; }
body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* ============================
   3. TYPOGRAPHY
   ============================ */
.heading-xl { font-size: clamp(2rem, 8vw, 5rem); font-weight: 700; line-height: 1.05; }
.heading-lg { font-size: clamp(1.75rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.1; }
.heading-md { font-size: clamp(1.15rem, 3vw, 1.75rem); font-weight: 500; }
.text-body { font-size: clamp(0.95rem, 1.2vw, 1.125rem); line-height: 1.7; color: var(--gray); }
.text-gold { color: var(--gold); }
.text-upper { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 500; }

/* ============================
   4. LAYOUT
   ============================ */
.container { width: var(--container); margin: 0 auto; }
main { position: relative; z-index: 0; overflow: hidden; }
section { padding: var(--section-pad) 0; position: relative; }

.divider {
    width: 60px; height: 2px;
    background: var(--gold);
    margin: 1.5rem 0;
}

/* ============================
   5. PRELOADER
   ============================ */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
}
#preloader.done {
    opacity: 0; pointer-events: none;
    transition: opacity 0.6s ease;
}
.preloader-text {
    font-size: 1rem; letter-spacing: 0.3em; opacity: 0;
    transition: opacity 0.4s;
}
#preloader.loaded .preloader-text { opacity: 1; }

/* ============================
   6. GRAIN OVERLAY
   ============================ */
.grain {
    position: fixed; inset: 0; z-index: 9998;
    pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================
   7. HERO
   ============================ */
.section-hero {
    height: 100svh; min-height: 500px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-image-wrap {
    position: absolute; inset: 0; z-index: 0;
}
.hero-image {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 20%;
    transform: scale(1.05);
    will-change: transform;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.3) 0%,
        rgba(10,10,10,0.5) 50%,
        rgba(10,10,10,0.95) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    display: flex; flex-direction: column;
    align-items: center; gap: 0.75rem;
    padding: 0 1rem;
}
.hero-badge { opacity: 0; }
.hero-title {
    background: linear-gradient(135deg, var(--white) 0%, var(--gold) 50%, var(--white) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-tagline { color: var(--gray); opacity: 0; }
.hero-cta {
    margin-top: 0.5rem;
    opacity: 0;
}
.hero-scroll-indicator {
    position: absolute; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    color: var(--gold); z-index: 2;
}
.scroll-line {
    width: 1px; height: 30px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Hide fallback image when WebGL active (desktop) */
.hero-gl-active .hero-image-wrap,
.hero-gl-active .hero-overlay { display: none; }

/* ============================
   8. INTRO
   ============================ */
.section-intro { position: relative; }
.section-intro::before {
    content: '';
    position: absolute;
    top: -80px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(10,10,10,0.92));
    pointer-events: none; z-index: 1;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.intro-text { max-width: 540px; }
.intro-headline { margin-bottom: 1.5rem; }
.intro-p { margin-bottom: 1rem; }
.intro-visual { display: none; } /* hidden on mobile, shown on tablet+ */
.intro-image-wrap {
    position: relative; height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.2);
}
.intro-image {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 20%;
    filter: grayscale(30%) brightness(0.8);
    transition: filter 0.6s ease, transform 0.6s ease;
}
.intro-image-wrap:hover .intro-image {
    filter: grayscale(0%) brightness(0.9);
    transform: scale(1.04);
}

/* Character reveal (used by text animation) */
.char { display: inline; }

/* ============================
   9. CONTENT UNIVERSE (mobile = vertical stack)
   ============================ */
.section-universe { padding-bottom: var(--section-pad); overflow: hidden; }
.section-universe .container { margin-bottom: 1.5rem; }
.section-universe .text-upper { display: block; margin-bottom: 1rem; }
.universe-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 4vw;
}
.universe-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    color: inherit;
}
.universe-card-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.6s ease;
}
.universe-card:hover .universe-card-bg { transform: scale(1.08); }
.universe-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
    z-index: 1;
}
.universe-card-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem; z-index: 2;
}
.universe-card-content .text-upper { color: var(--gold); display: block; margin-bottom: 0.5rem; }
.universe-card-content .heading-md { margin-bottom: 0.25rem; }
.universe-card-content .text-body { font-size: 0.85rem; }

/* ============================
   10. FLIP CARDS (mobile = 1 column)
   ============================ */
.flip-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.flip-card {
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    transform-style: preserve-3d;
    border-radius: 16px;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-face {
    position: absolute; inset: 0;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex; flex-direction: column;
    justify-content: space-between;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    overflow: hidden;
}
/* Gold glow border on hover/flip */
.flip-card-face::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(201,168,76,0.25),
                0 0 25px rgba(201,168,76,0.15) inset;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.flip-card:hover .flip-card-face::before,
.flip-card.flipped .flip-card-face::before {
    opacity: 1;
    animation: cardGlow 2s infinite alternate;
}
@keyframes cardGlow {
    0% { box-shadow: 0 0 12px rgba(201,168,76,0.25), 0 0 25px rgba(201,168,76,0.15) inset; }
    50% { box-shadow: 0 0 22px rgba(201,168,76,0.4), 0 0 35px rgba(201,168,76,0.25) inset; }
    100% { box-shadow: 0 0 12px rgba(201,168,76,0.25), 0 0 25px rgba(201,168,76,0.15) inset; }
}

/* Front face */
.flip-card-front {
    background-size: cover;
    background-position: center;
    background-color: var(--dark-2);
}
.flip-card-front::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 16px;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
}
.flip-card-front-content {
    position: relative; z-index: 2;
    margin-top: auto;
}
.flip-card-front-content h3 {
    font-size: 1.2rem; font-weight: 600;
    color: var(--white); margin-bottom: 0.4rem;
}
.flip-card-front-content p {
    font-size: 0.85rem; color: var(--gray); line-height: 1.4;
}
.flip-hint {
    position: relative; z-index: 2;
    color: var(--gold); font-size: 0.65rem;
    opacity: 0.6;
}

/* Back face */
.flip-card-back {
    transform: rotateY(180deg);
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}
.flip-card-back h3 {
    font-size: 1.2rem; font-weight: 600;
    color: var(--gold); margin-bottom: 1rem;
}
.flip-features {
    list-style: none; padding: 0; margin: 0;
}
.flip-features li {
    margin-bottom: 0.6rem;
    padding-left: 1.4rem;
    position: relative;
    color: var(--gray); font-size: 0.9rem;
}
.flip-features li::before {
    content: '\2726';
    position: absolute; left: 0;
    color: var(--gold);
}
.flip-card-price {
    font-size: 1.2rem; font-weight: 600; color: var(--gold); margin: 0.5rem 0;
}
.flip-cta-buttons {
    display: flex; gap: 12px; margin-top: 1.5rem;
}
.flip-btn-primary {
    flex: 1; text-align: center;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600; font-size: 0.85rem;
    font-family: var(--font);
    background: var(--gold); color: var(--black);
    transition: all 0.3s;
    min-height: var(--min-tap);
    display: inline-flex; align-items: center; justify-content: center;
}
.flip-btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

/* ============================
   11. BUTTONS
   ============================ */
.btn-gold {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 0.875rem 2rem;
    min-height: var(--min-tap);
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold); text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.8rem; font-weight: 500;
    font-family: var(--font);
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.btn-gold:hover { background: var(--gold); color: var(--black); }
.btn-gold::after {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-gold:hover::after { left: 100%; }
.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.75rem; margin-top: 1rem; }
.section-cta-wrap { text-align: center; margin-top: 2rem; }

/* ============================
   12. TERMINE / KALENDER
   ============================ */
.termine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.termin-item {
    display: flex; gap: 1rem;
    padding: 1rem;
    background: var(--dark-2);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none; color: inherit;
    min-height: var(--min-tap);
}
.termin-item:hover {
    transform: translateX(4px);
    border-left-color: var(--gold-light);
}
.termin-date {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-width: 48px;
    background: var(--dark-3);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    text-align: center;
}
.termin-day {
    font-size: 1.3rem; font-weight: 700;
    color: var(--gold); line-height: 1;
}
.termin-month {
    font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--gray);
    margin-top: 0.15rem;
}
.termin-weekday {
    font-size: 0.55rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--gold);
    opacity: 0.7; margin-top: 0.15rem;
}
.termin-info { flex: 1; min-width: 0; }
.termin-title {
    font-size: 0.9rem; font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}
.termin-time {
    font-size: 0.75rem; color: var(--gold);
    margin-bottom: 0.25rem;
}
.termin-category {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(201,168,76,0.12);
    color: var(--gold);
}
.termin-desc {
    font-size: 0.75rem; color: var(--gray);
    margin-top: 0.35rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Category colors */
.termin-category[data-cat="livecam"] { background: rgba(34,197,94,0.15); color: #22c55e; }
.termin-category[data-cat="aufgaben"] { background: rgba(239,68,68,0.15); color: #ef4444; }
.termin-category[data-cat="video"] { background: rgba(59,130,246,0.15); color: #3b82f6; }
.termin-category[data-cat="infos"] { background: rgba(168,138,58,0.15); color: var(--gold); }
.termin-category[data-cat="content"] { background: rgba(139,92,246,0.15); color: #8b5cf6; }

/* Skeletons */
.termin-skeleton {
    height: 70px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--dark-2) 25%, var(--dark-3) 50%, var(--dark-2) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.flip-card-skeleton {
    aspect-ratio: 3/4;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--dark-2) 25%, var(--dark-3) 50%, var(--dark-2) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================
   13. LIVE & CONNECT (mobile = 1 column)
   ============================ */
.live-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.live-card {
    background: var(--dark-2);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.live-card:hover { border-color: var(--gold); }
.live-card h3 { margin: 0.75rem 0 0.5rem; }

.hotline-status { display: flex; align-items: center; }
.hotline-indicator {
    width: 12px; height: 12px;
    border-radius: 50%; display: inline-block;
    margin-right: 0.5rem; vertical-align: middle;
}
.hotline-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse 2s ease-in-out infinite;
}
.hotline-indicator.busy {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.hotline-indicator.offline { background: #666; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hotline-label { font-size: 0.8rem; color: var(--gray); }

.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a {
    color: var(--gold); text-decoration: none;
    font-size: 0.85rem; font-weight: 500; transition: opacity 0.3s;
    min-height: var(--min-tap);
    display: inline-flex; align-items: center;
}
.social-links a:hover { opacity: 0.7; }

/* ============================
   14. STATS (mobile = 2x2)
   ============================ */
.section-stats {
    background: var(--black);
    border-top: 1px solid var(--dark-3);
    border-bottom: 1px solid var(--dark-3);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat-number {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700; color: var(--gold); display: block;
}
.stat-number::after { content: '+'; }
.stat:last-child .stat-number::after { content: ''; }
.stat-label { margin-top: 0.5rem; display: block; color: var(--gray); }

/* ============================
   15. AUTH BOX (mobile = simple tabs)
   ============================ */
.section-cta {
    text-align: center;
    padding: var(--section-pad) 0;
}
.auth-header { margin-bottom: 2rem; }
.auth-header .text-upper { display: block; margin-bottom: 1rem; }
.auth-header .heading-lg { margin-bottom: 0.5rem; }

.auth-box {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.08);
    background: var(--dark-2);
}
.auth-form-wrap {}
.auth-form--signup { display: none; }
.auth-box.panel-right .auth-form--signup { display: block; }
.auth-box.panel-right .auth-form--signin { display: none; }
.auth-overlay-wrap { display: none; }

.auth-form {
    display: flex; align-items: center;
    justify-content: center; flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--dark-2);
}
.auth-form-title {
    font-size: 1.4rem; font-weight: 600;
    margin-bottom: 1.25rem; color: var(--white);
}
.auth-input {
    background: var(--dark-3);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.35rem 0;
    width: 100%;
    color: var(--white);
    font-family: var(--font);
    font-size: 16px; /* prevents iOS zoom */
    min-height: var(--min-tap);
    transition: border-color 0.3s;
    outline: none;
}
.auth-input:focus { border-color: var(--gold); }
.auth-input::placeholder { color: var(--gray); }
.auth-link {
    color: var(--gray); font-size: 0.8rem;
    margin: 0.75rem 0; text-decoration: none;
    transition: color 0.3s;
    min-height: var(--min-tap);
    display: inline-flex; align-items: center;
}
.auth-link:hover { color: var(--gold); }
.auth-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none; border-radius: 20px;
    color: var(--black); cursor: pointer;
    font-size: 0.8rem; font-weight: 700;
    font-family: var(--font);
    letter-spacing: 0.1rem;
    padding: 0.85rem 3rem;
    text-transform: uppercase;
    transition: transform 0.15s, box-shadow 0.3s;
    margin-top: 1rem;
    min-height: var(--min-tap);
}
.auth-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}
.auth-btn:active { transform: scale(0.97); }

.auth-mobile-toggle {
    display: block;
    text-align: center; padding: 1rem;
}
.auth-mobile-toggle button {
    background: none; border: none;
    color: var(--gold); cursor: pointer;
    font-family: var(--font); font-size: 0.85rem;
    text-decoration: underline;
    min-height: var(--min-tap);
}

/* Auth overlay panels (styled here, shown only on desktop via media query) */
.auth-overlay {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    height: 100%; left: -100%;
    position: relative;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    width: 200%;
}
.auth-box.panel-right .auth-overlay { transform: translateX(50%); }
.auth-overlay-panel {
    align-items: center; display: flex;
    flex-direction: column; height: 100%;
    justify-content: center;
    position: absolute; text-align: center;
    top: 0; width: 50%;
    padding: 2rem;
    transition: transform 0.6s ease-in-out;
}
.auth-overlay-panel h3 {
    font-size: 1.3rem; font-weight: 600;
    color: var(--black); margin-bottom: 0.5rem;
}
.auth-overlay-panel p {
    font-size: 0.9rem; color: rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}
.auth-overlay--left { transform: translateX(-20%); }
.auth-box.panel-right .auth-overlay--left { transform: translateX(0); }
.auth-overlay--right { right: 0; transform: translateX(0); }
.auth-box.panel-right .auth-overlay--right { transform: translateX(20%); }
.auth-btn-ghost {
    background: transparent;
    border: 2px solid var(--black);
    border-radius: 20px;
    color: var(--black);
    cursor: pointer;
    font-size: 0.8rem; font-weight: 700;
    font-family: var(--font);
    letter-spacing: 0.1rem;
    padding: 0.75rem 2.5rem;
    text-transform: uppercase;
    transition: all 0.3s;
    min-height: var(--min-tap);
}
.auth-btn-ghost:hover {
    background: var(--black);
    color: var(--gold);
}
@keyframes authShow {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* ============================
   16. FOOTER (mobile = stacked)
   ============================ */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--dark-3); }
.footer-content {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    gap: 1rem;
}
.footer-brand { font-weight: 600; color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
    color: var(--gray); text-decoration: none; font-size: 0.85rem;
    min-height: var(--min-tap);
    display: inline-flex; align-items: center;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--gray); font-size: 0.75rem; }

/* Section backgrounds */
.section-intro,
.section-universe,
.section-videos,
.section-shop,
.section-termine,
.section-live,
.section-stats,
.section-cta { background: rgba(10,10,10,0.92); }

/* ============================
   17. DESKTOP-ONLY ELEMENTS
   (canvas, cursor, flow SVG — injected by JS)
   ============================ */
#bg-canvas {
    position: fixed; inset: 0;
    z-index: -2;
    pointer-events: none;
    width: 100%; height: 100%;
}
#hero-gl {
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
    width: 100vw; height: 100vh;
}
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #ffe14d, var(--gold));
    box-shadow: 0 0 8px rgba(201,168,76,0.6), 0 0 20px rgba(201,168,76,0.3);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* ============================
   RESPONSIVE: LARGE PHONES (≥ 480px)
   ============================ */
@media (min-width: 480px) {
    .flip-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .termine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================
   RESPONSIVE: TABLETS (≥ 768px)
   ============================ */
@media (min-width: 768px) {
    :root {
        --section-pad: clamp(5rem, 10vh, 10rem);
    }
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    .intro-visual {
        display: block;
        position: relative;
        height: 400px;
    }
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .universe-card {
        aspect-ratio: 16/9;
    }
    .hero-content {
        gap: 1rem;
        padding: 0;
    }
    .flip-card-front-content h3 { font-size: 1.3rem; }
    .flip-card-back h3 { font-size: 1.3rem; }
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================
   RESPONSIVE: DESKTOP (≥ 1024px)
   ============================ */
@media (min-width: 1024px) {
    .flip-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .live-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    .live-card { padding: 2rem; }

    /* Universe: horizontal scroll layout */
    .universe-track {
        flex-direction: row;
        gap: 2rem;
        padding: 0 5vw;
        width: max-content;
    }
    .universe-card {
        width: 70vw; max-width: 500px;
        height: 65vh; min-height: 400px;
        aspect-ratio: auto;
        flex-shrink: 0;
    }

    /* Auth overlay slider */
    .auth-box {
        max-width: 760px;
        height: 440px;
    }
    .auth-form-wrap {
        height: 100%;
        position: absolute; top: 0;
        transition: all 0.6s ease-in-out;
    }
    .auth-form--signin {
        left: 0; width: 50%; z-index: 2;
        display: block;
    }
    .auth-box.panel-right .auth-form--signin {
        transform: translateX(100%);
        z-index: 1;
        display: block;
    }
    .auth-form--signup {
        left: 0; width: 50%;
        opacity: 0; z-index: 1;
        pointer-events: none;
        visibility: hidden;
        display: block;
    }
    .auth-box.panel-right .auth-form--signup {
        animation: authShow 0.6s;
        opacity: 1;
        visibility: visible;
        transform: translateX(100%);
        z-index: 5;
        pointer-events: auto;
        display: block;
    }
    .auth-overlay-wrap {
        display: block;
        height: 100%; left: 50%;
        overflow: hidden; position: absolute;
        top: 0; transition: transform 0.6s ease-in-out;
        width: 50%; z-index: 100;
    }
    .auth-box.panel-right .auth-overlay-wrap {
        transform: translateX(-100%);
    }
    .auth-form {
        padding: 0 2.5rem;
        height: 100%;
    }
    .auth-mobile-toggle { display: none; }

    .section-universe { padding-bottom: 0; }
}

/* ============================
   ACCESSIBILITY
   ============================ */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-image { transform: none; }
}

@media (hover: none) {
    body { cursor: auto !important; }
}

/* ============================
   AUTH STATUS & TURNSTILE
   ============================ */
.auth-status {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-status--error {
    background: rgba(205, 10, 10, 0.15);
    border: 1px solid #cd0a0a;
    color: #ff6b6b;
}

.auth-status--success {
    background: rgba(86, 154, 5, 0.15);
    border: 1px solid #569a05;
    color: #8fd14f;
}

.lja-turnstile-wrap {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}
