/* ============================================================
   HANSEN TV - Design System
   ============================================================ */

/* Selbst gehostete Schrift „Inter" (variable font, Latin + Latin-Ext).
   Kein externer Request an Google - DSGVO-konform. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
        U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #07080d;
    --bg-soft: #0d0f18;
    --surface: #11131f;
    --surface-2: #161927;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #f4f5fb;
    --text-muted: #9aa0b4;
    --text-dim: #6b7080;

    --accent: #ef2b2d;
    --accent-2: #ff5a3c;
    --accent-grad: linear-gradient(120deg, #ff5a3c 0%, #ef2b2d 55%, #b3141a 100%);
    --glow: 0 0 60px rgba(239, 43, 45, 0.4);

    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1160px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient background glow */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px circle at 15% -10%, rgba(239, 43, 45, 0.18), transparent 60%),
        radial-gradient(700px circle at 95% 0%, rgba(255, 90, 60, 0.12), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 8px 30px rgba(239, 43, 45, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(239, 43, 45, 0.5); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* Twitch-Live-Button: neutral, solange offline - hervorgehoben, wenn live */
.twitch-live-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text-muted);
}
.twitch-live-btn:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.twitch-live-btn .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    flex: none;
}
.twitch-live-btn.is-live {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 30px rgba(239, 43, 45, 0.4);
}
.twitch-live-btn.is-live .live-dot {
    background: #fff;
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .twitch-live-btn.is-live .live-dot { animation: none; }
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(7, 8, 13, 0.72);
    border-bottom: 1px solid var(--border);
}
/* Drei-Spalten-Grid mit gleich breiten Aussenspalten: die zentralen
   Nav-Links sitzen dadurch auf jeder Seite exakt gleich - unabhaengig
   davon, wie breit Brand oder Buttons sind. */
.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 68px;
    gap: 16px;
}
.nav > .brand { justify-self: start; }
.nav > .nav-cta { justify-self: end; }
.brand,
.nav-cta { min-width: 0; }
.brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand .dot { color: var(--accent); }
.brand img { height: 34px; width: auto; display: block; }
.footer-brand .brand img { height: 44px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 30px);
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
/* Kompaktere Buttons in der Navigation - gilt fuer alle Seiten */
.nav-cta .btn { padding: 9px 16px; font-size: 0.88rem; }
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

/* Sekundaeren Button frueher ausblenden, damit die Nav nie kollidiert */
@media (max-width: 1160px) {
    .nav-cta .btn-ghost { display: none; }
}

@media (max-width: 900px) {
    .nav { display: flex; justify-content: space-between; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px 28px;
        gap: 18px;
    }
}

/* ============================================================
   Sections & shared blocks
   ============================================================ */
section { padding: 96px 0; position: relative; z-index: 1; }
.section-tight { padding: 64px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; max-width: 620px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center top;
    background-size: cover;
    opacity: 0.28;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hero .container { position: relative; z-index: 2; }
.hero-logo {
    width: min(230px, 55vw);
    margin: 0 auto 28px;
    filter: drop-shadow(0 12px 40px rgba(239, 43, 45, 0.4));
}
.hero h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    margin-bottom: 24px;
}
.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hero-stats .stat strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
}
.hero-stats .stat span { color: var(--text-dim); font-size: 0.9rem; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 56px;
}
.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.card .icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border-radius: 12px;
    background: rgba(239, 43, 45, 0.12);
    border: 1px solid rgba(239, 43, 45, 0.25);
    margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Split feature rows */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.feature-row + .feature-row { margin-top: 88px; }
.feature-row.reverse .feature-visual { order: -1; }
.feature-visual {
    background: linear-gradient(160deg, var(--surface-2), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 300px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    box-shadow: var(--glow);
    overflow: hidden;
}
.feature-visual img { width: 78%; height: auto; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.feature-text p { color: var(--text-muted); margin-bottom: 18px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; color: var(--text-muted); font-size: 0.96rem; }
.check-list li::before { content: "✓"; color: var(--accent-2); font-weight: 800; }

@media (max-width: 820px) {
    .feature-row { grid-template-columns: 1fr; gap: 28px; }
    .feature-row.reverse .feature-visual { order: 0; }
}

/* ============================================================
   Requirements / compliance list
   ============================================================ */
.req-list { display: grid; gap: 14px; margin-top: 40px; }
.req-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
}
.req-item .mark {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    background: rgba(255, 90, 60, 0.14);
    border: 1px solid rgba(255, 90, 60, 0.3);
    color: var(--accent-2);
}
.req-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.req-item p { color: var(--text-muted); font-size: 0.9rem; }
.req-item a { color: var(--accent-2); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
    text-align: center;
    background:
        radial-gradient(500px circle at 50% 0%, rgba(239, 43, 45, 0.2), transparent 65%),
        var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); margin-bottom: 30px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 20px;
}
.faq summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); padding: 0 0 18px; font-size: 0.95rem; }

/* ============================================================
   Legal / article pages
   ============================================================ */
.legal { padding: 80px 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.legal .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--accent-2); }
.legal strong { color: var(--text); }
.legal code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.85em;
    color: var(--text);
}

.legal .hint { color: var(--text-dim); font-size: 0.82rem; }

.link-stack { display: flex; flex-direction: column; gap: 8px; }
.link-stack .btn { width: 100%; justify-content: center; }

/* Bot-geschützte E-Mail / Telefonnummer */
.mail-reveal, .tel-reveal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--accent-2);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
button.mail-reveal:not(.btn), button.tel-reveal:not(.btn) { border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03); border-radius: 8px; padding: 4px 12px; text-decoration: none; }
button.mail-reveal:not(.btn)::before { content: "✉ "; }
button.tel-reveal:not(.btn)::before { content: "☎ "; }
button.mail-reveal:not(.btn):hover, button.tel-reveal:not(.btn):hover { background: rgba(255,255,255,0.08); }
.legal .box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 24px 0;
}

/* ============================================================
   Page hero (sub pages)
   ============================================================ */
.page-hero { padding: 90px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ============================================================
   Schedule
   ============================================================ */
.schedule { display: grid; gap: 12px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.schedule .day {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}
.schedule .day span { display: block; color: var(--text-dim); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; }
.schedule .day strong { display: block; margin-top: 6px; font-size: 1.05rem; }
.schedule .day.off strong { color: var(--text-dim); font-weight: 500; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}
.footer-grid h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; max-width: 280px; }
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   Cookie / Consent Banner
   ============================================================ */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: cookie-in 0.3s ease;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.cookie-text strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.cookie-text p { color: var(--text-muted); font-size: 0.86rem; margin: 0; }
.cookie-text a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 11px 18px; font-size: 0.9rem; }

@media (max-width: 720px) {
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-actions { flex-direction: column-reverse; }
    .cookie-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 28px; }
}
