/* ClarityFocus.IO — Website-Design (dunkel, Blau/Cyan-Akzente, Radius-Töne 8/12) */
:root {
    --bg: #0d0f14;
    --bg2: #14171e;
    --card: #1b1f29;
    --card-hover: #232837;
    --stroke: rgba(255, 255, 255, .14);
    --text: #f2f4f8;
    --text2: #a9b1c2;
    --text3: #6b7386;
    --accent: #0a84ff;
    --cyan: #00e5ff;
    --success: #30d158;
    --warning: #ffd60a;
    --danger: #ff453a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #0d0f14 0%, #11141c 55%, #141b2b 100%);
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; }
.logo-full { height: 40px; display: block; }
.logo-small { height: 30px; display: block; }
/* Eine einzige Zeile, alles auf Höhe des Logos. Bewusst ohne Umbruch: Sobald die
   Leiste in eine zweite Reihe rutscht, wirkt der Kopf unaufgeräumt. Auf schmalen
   Fenstern werden stattdessen einzelne Punkte ausgeblendet (Media Query unten). */
nav { display: flex; align-items: center; flex-wrap: nowrap; justify-content: flex-end; gap: 20px; }
nav a { color: var(--text2); text-decoration: none; font-size: 14px; white-space: nowrap; }
nav a:hover { color: var(--text); }
nav a.cta {
    background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 8px;
}

.hero { text-align: center; padding: 56px 0 48px; }
.hero-mark { height: 84px; margin-bottom: 18px; filter: drop-shadow(0 6px 24px rgba(10, 132, 255, .35)); }
.hero h1 { font-size: 42px; font-weight: 650; letter-spacing: -.5px; }
.hero h1 span { background: linear-gradient(90deg, var(--cyan), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text2); margin-top: 14px; font-size: 17px; max-width: 640px; margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 32px 0; }
.card {
    background: var(--card); border: 1px solid var(--stroke); border-radius: 12px;
    padding: 22px;
}
.card h3 { font-size: 15px; margin-bottom: 8px; }
.card p { color: var(--text2); font-size: 13.5px; line-height: 1.55; }

.pricing { padding: 40px 0 72px; }
.pricing h2, .section-title { text-align: center; font-size: 28px; margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan {
    background: var(--card); border: 1px solid var(--stroke); border-radius: 12px;
    padding: 28px 24px; text-align: center; position: relative;
    transition: transform .15s ease, border-color .15s ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--accent); }
.plan.best { border-color: var(--accent); }
.plan .badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 12px; border-radius: 999px;
}
.plan h3 { font-size: 15px; color: var(--text2); font-weight: 500; }
.plan .price { font-size: 34px; font-weight: 700; margin: 12px 0 2px; }
.plan .per { color: var(--text3); font-size: 12.5px; margin-bottom: 18px; }
.plan ul { list-style: none; text-align: left; margin: 0 auto 20px; max-width: 210px; }
.plan li { color: var(--text2); font-size: 13px; padding: 4px 0; }
.plan li::before { content: "✓  "; color: var(--success); }

button, .btn {
    display: inline-block; background: var(--accent); border: none; color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; padding: 11px 22px;
    border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: filter .12s ease, transform .06s ease;
}
button:hover, .btn:hover { filter: brightness(1.12); }
button:active, .btn:active { transform: scale(.97); }
.btn.secondary { background: var(--card); border: 1px solid var(--stroke); color: var(--text); }

.note { color: var(--text3); font-size: 12.5px; text-align: center; margin-top: 22px; }

/* Auth + Dashboard */
.panel {
    max-width: 420px; margin: 64px auto; background: var(--card);
    border: 1px solid var(--stroke); border-radius: 14px; padding: 30px;
}
.panel.wide { max-width: 560px; }
.panel h2 { font-size: 20px; margin-bottom: 18px; }
label { display: block; color: var(--text2); font-size: 12.5px; margin: 14px 0 6px; }
input {
    width: 100%; background: var(--bg2); border: 1px solid var(--stroke);
    border-radius: 8px; color: var(--text); padding: 11px 12px; font: inherit; font-size: 14px;
}
input:focus { outline: none; border-color: var(--accent); }
.panel button { width: 100%; margin-top: 20px; }
.switch-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text2); }
.switch-link a { color: var(--accent); text-decoration: none; }
.msg { margin-top: 14px; font-size: 13px; border-radius: 8px; padding: 10px 12px; display: none; }
.msg.error { display: block; background: rgba(255, 69, 58, .12); color: var(--danger); }
.msg.ok { display: block; background: rgba(48, 209, 88, .12); color: var(--success); }

.status-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.status-row:last-child { border-bottom: none; }
.status-row .k { color: var(--text2); }
.pill { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.active { background: rgba(48, 209, 88, .15); color: var(--success); }
.pill.inactive { background: rgba(255, 214, 10, .15); color: var(--warning); }

/* Ablauf-Schritte */
.how { padding: 24px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step {
    background: var(--card); border: 1px solid var(--stroke); border-radius: 12px;
    padding: 24px; position: relative;
}
.step-nr {
    display: inline-grid; place-items: center; width: 30px; height: 30px;
    border-radius: 8px; background: linear-gradient(135deg, var(--cyan), var(--accent));
    color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { color: var(--text2); font-size: 13.5px; line-height: 1.55; }

/* Sicherheit */
.safety { padding: 16px 0 32px; }

/* FAQ */
.faq { padding: 16px 0 48px; max-width: 760px; margin: 0 auto; }
.faq details {
    background: var(--card); border: 1px solid var(--stroke); border-radius: 12px;
    padding: 16px 20px; margin-bottom: 10px;
}
.faq summary {
    cursor: pointer; font-size: 14.5px; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; color: var(--accent); font-size: 18px; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text2); font-size: 13.5px; line-height: 1.6; margin-top: 10px; }

/* Sprachwahl */
.lang-select {
    background: var(--card); color: var(--text); border: 1px solid var(--stroke);
    border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 12.5px;
    margin-left: 16px; cursor: pointer;
}
.lang-select:focus { outline: none; border-color: var(--accent); }

/* Flaggen-Sprachschalter */
/* Sitzt direkt links neben dem CTA und richtet sich an dessen Höhe aus, damit
   Knopf und Sprachwahl eine saubere Linie bilden. */
.lang-switch { position: relative; flex: none; }
/* Maße bewusst an den CTA-Knopf angeglichen (gleiche Schriftgröße, gleicher
   vertikaler Innenabstand, gleicher Radius), damit beide exakt gleich hoch sind
   und die Leiste eine saubere Kante bildet. */
.lang-current {
    display: flex; align-items: center; gap: 6px;
    background: var(--card); color: var(--text); border: 1px solid var(--stroke);
    border-radius: 8px; padding: 9px 10px; font-weight: 500; cursor: pointer;
    font-size: 14px; line-height: 1;
}
.lang-current:hover { border-color: var(--accent); filter: none; }
.lang-current .chev { color: var(--text2); font-size: 10px; line-height: 1; }
.flag {
    display: block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); flex: none;
}
.flag svg { display: block; width: 100%; height: 100%; }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
    background: var(--card); border: 1px solid var(--stroke); border-radius: 10px;
    padding: 6px; min-width: 172px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
    display: flex; flex-direction: column; gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-opt {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; color: var(--text2); border: none; border-radius: 7px;
    font-weight: 500; font-size: 13px; padding: 7px 8px; cursor: pointer; text-align: left;
}
.lang-opt:hover { background: var(--card-hover); color: var(--text); filter: none; }
.lang-opt:active { transform: none; }
.lang-opt.active { color: var(--text); background: rgba(10, 132, 255, .16); }

/* Badge-Pill (Sektions-Label) */
.badge-pill {
    display: block; width: fit-content; margin: 0 auto 14px;
    border: 1px solid var(--accent); color: var(--cyan);
    border-radius: 999px; padding: 6px 18px; font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
}

/* Live-Demo */
.demo { padding: 40px 0; }
.demo-grid {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 0;
    background: var(--card); border: 1px solid var(--stroke); border-radius: 14px;
    overflow: hidden; margin-top: 20px;
}
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
/* Feste Höhe: jede Szene wird identisch hoch dargestellt (object-fit deckt
   unterschiedliche Seitenverhältnisse ab, ohne das Layout zu verschieben). */
.demo-preview { background: #000; height: 440px; }
.demo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .demo-preview { height: 300px; } }
.demo-controls { padding: 24px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.demo-live { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.demo-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 14px 0; }
.demo-row label { color: var(--text); font-size: 13.5px; margin: 0; }
.demo-val { color: var(--cyan); font-family: Consolas, monospace; font-size: 13px; }
.demo-row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.game-picker { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.game-picker button {
    background: var(--card); border: 1px solid var(--stroke); color: var(--text2);
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
}
.game-picker button:hover { color: var(--text); border-color: var(--accent); filter: none; }
.game-picker button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Creator */
.creator { padding: 24px 0 40px; }
.creator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .creator-grid { grid-template-columns: 1fr; } }
.creator-perks { list-style: none; margin: 6px 0 14px; }
.creator-perks li { color: var(--text2); font-size: 13.5px; padding: 6px 0; }
.creator-perks li::before { content: "✓  "; color: var(--success); }

/* Status-Seite */
.status-page { text-align: center; padding: 40px 0; }
.status-legend { display: flex; gap: 22px; justify-content: center; color: var(--text2); font-size: 13.5px; }
.status-legend > span { display: flex; align-items: center; gap: 7px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-operational { background: var(--success); box-shadow: 0 0 8px rgba(48, 209, 88, .7); }
.dot-updating { background: var(--warning); box-shadow: 0 0 8px rgba(255, 214, 10, .6); }
.dot-down { background: var(--danger); box-shadow: 0 0 8px rgba(255, 69, 58, .7); }
.st { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.st-operational { color: var(--success); }
.st-updating { color: var(--warning); }
.st-down { color: var(--danger); }
.status-page .status-row { text-align: left; }

/* ── Interaktive Tester (Sandbox) ── */
.tester { padding: 40px 0; }
.tester-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.tester-card {
    background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 20px;
}
.tester-card h3 { font-size: 17px; margin-bottom: 2px; }
.tester-card canvas {
    width: 100%; height: auto; display: block; border-radius: 10px;
    border: 1px solid var(--stroke); background: #0c1017;
}
.res-picker { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.res-picker button {
    background: var(--bg2); border: 1px solid var(--stroke); color: var(--text2);
    padding: 8px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: .15s;
}
.res-picker button:hover { color: var(--text); border-color: var(--accent); }
.res-picker button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.res-readout {
    display: flex; justify-content: space-between; gap: 12px; margin-top: 14px;
    font-size: 13.5px; color: var(--text2);
}
.res-readout b { color: var(--text); font-weight: 600; }
.res-readout .gain { color: var(--cyan); font-family: Consolas, monospace; font-weight: 700; }
.res-readout .gain.hot { color: var(--warning); }
.cross-controls { margin-top: 14px; }
.cross-toggles {
    display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 10px;
    color: var(--text2); font-size: 13.5px;
}
.cross-toggles label { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.cross-toggles input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.cross-color input[type="color"] {
    width: 34px; height: 26px; border: 1px solid var(--stroke); border-radius: 6px;
    background: none; cursor: pointer; padding: 0;
}
@media (max-width: 760px) { .tester-grid { grid-template-columns: 1fr; } }

footer { text-align: center; color: var(--text3); font-size: 12.5px; padding: 40px 0; }

/* ═══ AI-Coach & Avatare ═══ */
.coach-section { padding: 72px 0 24px; }
.coach-intro { max-width: 780px; margin: 0 auto 36px; text-align: center; line-height: 1.7; }
.coach-intro kbd {
    background: var(--card); border: 1px solid var(--stroke); border-bottom-width: 2px;
    border-radius: 6px; padding: 2px 7px; font-size: 12.5px; color: var(--text);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.avatar-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 18px;
}
.avatar-card {
    background: var(--card); border: 1px solid var(--stroke); border-radius: 18px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.avatar-card:hover { transform: translateY(-4px); }
.avatar-skylar:hover { border-color: #2fd4b4; box-shadow: 0 18px 44px rgba(47, 212, 180, .18); }
.avatar-nova:hover   { border-color: #2e9bff; box-shadow: 0 18px 44px rgba(46, 155, 255, .18); }

.avatar-img {
    padding: 26px 18px 8px; display: flex; align-items: flex-end; justify-content: center;
    min-height: 360px; position: relative;
}
.avatar-skylar .avatar-img {
    background: radial-gradient(ellipse 78% 62% at 50% 30%, rgba(47, 212, 180, .20), transparent 72%), var(--bg2);
}
.avatar-nova .avatar-img {
    background: radial-gradient(ellipse 78% 62% at 50% 30%, rgba(46, 155, 255, .20), transparent 72%), var(--bg2);
}
.avatar-img::after {
    content: ""; position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    width: 55%; height: 22px; border-radius: 50%; filter: blur(7px);
}
.avatar-skylar .avatar-img::after { background: rgba(47, 212, 180, .45); }
.avatar-nova   .avatar-img::after { background: rgba(46, 155, 255, .45); }

.avatar-img img {
    width: auto; height: auto; max-height: 330px; max-width: 82%; object-fit: contain;
    position: relative; z-index: 1; transform-origin: 50% 100%;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .55));
    animation: avatar-idle 5.4s ease-in-out infinite;
}
.avatar-nova .avatar-img img { animation-duration: 5.9s; animation-delay: -1.6s; }

@keyframes avatar-idle {
    0%,
    100% { transform: translateY(0) scaleY(1); }
    50%  { transform: translateY(-9px) scaleY(1.012); }
}
@media (prefers-reduced-motion: reduce) {
    .avatar-img img { animation: none; }
}

.avatar-body { padding: 20px 24px 26px; }
.avatar-body h3 {
    font-size: 22px; margin: 0 0 10px; display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap;
}
.avatar-body p { color: var(--text2); line-height: 1.65; margin: 0; font-size: 14.5px; }
.avatar-tag {
    font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    letter-spacing: .2px;
}
.tag-skylar { background: rgba(47, 212, 180, .16); color: #2fd4b4; }
.tag-nova   { background: rgba(46, 155, 255, .16); color: #2e9bff; }

.avatar-note { text-align: center; max-width: 720px; margin: 0 auto 44px; font-size: 13.5px; }

.coach-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.coach-features .card h3 { font-size: 16.5px; margin-bottom: 8px; }
.coach-features .card p { font-size: 13.8px; line-height: 1.6; }

@media (max-width: 900px) {
    .avatar-grid { grid-template-columns: 1fr; }
    .coach-features { grid-template-columns: 1fr; }
}

/* ═══ Politur: Hero-Atmosphäre, Karten-Icons, Sticky-Header, Scroll-Reveal ═══ */

/* Sanfter Farbschleier hinter dem Hero — reine Dekoration, nie klickbar.
   Der Hero darf NICHT clippen, sonst endet der Schleier als sichtbares Rechteck
   an der Containerkante; überstehende Breite fängt body{overflow-x} ab. */
/* clip statt hidden: verhindert seitliches Scrollen, ohne einen eigenen
   Scroll-Container zu erzeugen (hidden allein liess html weiter scrollen). */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}
.hero { position: relative; }
.hero-glow {
    position: absolute; inset: -70px -14vw auto; height: 460px; pointer-events: none;
    background:
        radial-gradient(ellipse 46% 58% at 28% 42%, rgba(0, 229, 255, .16), transparent 70%),
        radial-gradient(ellipse 44% 54% at 74% 32%, rgba(10, 132, 255, .18), transparent 72%);
    filter: blur(14px);
    /* Ohne Maske schneidet das Elternelement den Schleier als sichtbares
       Rechteck ab — so verliert er sich stattdessen weich zum Rand hin. */
    mask-image: radial-gradient(ellipse 62% 60% at 50% 45%, #000 34%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 45%, #000 34%, transparent 100%);
    animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift {
    from { transform: translate3d(-2%, 0, 0) scale(1); }
    to   { transform: translate3d(2%, 2%, 0) scale(1.07); }
}
.hero > *:not(.hero-glow) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5.2vw, 50px); line-height: 1.12; }

.hero-cta {
    margin-top: 28px; display: flex; gap: 12px;
    justify-content: center; flex-wrap: wrap;
}
.hero-cta .btn { padding: 13px 26px; font-size: 15px; }
.hero-cta .btn:not(.secondary) { box-shadow: 0 10px 30px rgba(10, 132, 255, .32); }

.hero-trust {
    list-style: none; margin: 30px auto 0; padding: 0; display: flex;
    gap: 10px; flex-wrap: wrap; justify-content: center;
}
.hero-trust li {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .045); border: 1px solid var(--stroke);
    border-radius: 999px; padding: 7px 15px; font-size: 12.5px; color: var(--text2);
}
.hero-trust span { font-size: 14px; line-height: 1; }

/* Karten-Icons + spürbares Hover-Feedback */
.card-ico {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 11px; font-size: 21px; line-height: 1; margin-bottom: 14px;
    background: linear-gradient(140deg, rgba(0, 229, 255, .16), rgba(10, 132, 255, .16));
    border: 1px solid rgba(255, 255, 255, .09);
}
.features .card, .coach-features .card {
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.features .card:hover, .coach-features .card:hover {
    transform: translateY(-3px); border-color: rgba(10, 132, 255, .5); background: var(--card-hover);
}

/* Kopfzeile bleibt beim Scrollen erreichbar, ohne den Inhalt zu verdecken. */
header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13, 15, 20, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
header.scrolled { border-bottom-color: var(--stroke); }
nav a.cta { transition: filter .12s ease; }
nav a.cta:hover { filter: brightness(1.12); }

/* Abschnitte blenden beim Scrollen dezent ein. Ohne JS bleibt alles sichtbar,
   und wer Bewegung reduziert hat, bekommt gar keine Animation. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-glow { animation: none; }
}

@media (max-width: 640px) {
    .hero-trust li { font-size: 11.5px; padding: 6px 12px; }
    header { position: static; }
}

/* Sechs Funktionskarten gehen in zwei sauberen Dreierreihen auf — vier plus
   zwei sieht auf breiten Schirmen unfertig aus. */
@media (min-width: 900px) {
    .features { grid-template-columns: repeat(3, 1fr); }
}

/* Auf schmalen Schirmen stapelt die Navigation sonst zehn Links rechtsbündig
   untereinander und schiebt den Hero aus dem Bild. Stattdessen: Logo oben,
   Links als zentrierte, umbrechende Zeile. */
/* Mittlere Breiten: Die Zeile bleibt einzeilig, dafür weichen die Abschnitts-
   sprünge — Login, Sprachwahl und CTA sind das, was hier wirklich gebraucht wird. */
@media (max-width: 1120px) {
    nav { gap: 16px; }
    nav a[href="#tester"], nav a[href="#demo"] { display: none; }
}

@media (max-width: 940px) {
    nav a[href="#creator"], nav a[href="status.html"] { display: none; }
}

@media (max-width: 760px) {
    header { flex-direction: column; gap: 14px; padding: 16px 0 18px; }
    nav {
        flex-wrap: wrap; justify-content: center; gap: 8px 16px;
        width: 100%;
    }
    /* Auf dem Telefon sind alle Abschnittslinks über das Scrollen erreichbar —
       im Kopf bleiben nur Login, Sprache und der Knopf. */
    nav a[href^="#"] { display: none; }
    nav a { font-size: 13px; }
    nav a.cta { padding: 7px 14px; }
    .logo-full { height: 34px; }
    .hero { padding-top: 26px; }
}

/* ── Download im Abo-Bereich ────────────────────────────────────────────────
   Sichtbar erst nach der Anmeldung: Das Dashboard laedt ohne gueltige Sitzung
   gar nicht erst. */
.download-box {
    margin-top: 26px; padding: 20px;
    background: linear-gradient(135deg, rgba(10,132,255,.10), rgba(0,209,255,.05));
    border: 1px solid var(--stroke); border-radius: 12px;
}
.download-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.download-ico {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--accent); color: #fff; font-size: 20px; font-weight: 700;
}
.download-head h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.download-head .note { margin: 0; font-size: 13px; }
.download-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    width: 100%; padding: 13px 20px; text-align: center;
}
.download-meta { font-size: 12px; opacity: .8; font-weight: 400; }

/* ── Discord-Knopf, schwebend unten rechts ──────────────────────────────────
   Klappt beim Ueberfahren auf und zeigt die Beschriftung. Auf dem Telefon
   bleibt er als reines Symbol, damit er nicht die halbe Breite einnimmt. */
.discord-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    display: flex; align-items: center; gap: 0;
    height: 52px; padding: 0 14px;
    background: #5865F2; color: #fff;
    border-radius: 26px; text-decoration: none;
    box-shadow: 0 6px 22px rgba(88, 101, 242, .42);
    transition: gap .22s ease, padding .22s ease, box-shadow .22s ease, transform .12s ease;
    overflow: hidden;
}
.discord-fab:hover {
    gap: 10px; padding: 0 20px 0 16px;
    box-shadow: 0 8px 28px rgba(88, 101, 242, .58);
}
.discord-fab:active { transform: scale(.96); }
.discord-fab svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.discord-fab span {
    max-width: 0; opacity: 0; white-space: nowrap;
    font-size: 14.5px; font-weight: 600;
    transition: max-width .22s ease, opacity .18s ease;
}
.discord-fab:hover span { max-width: 160px; opacity: 1; }

/* Sanftes Pulsieren, damit er auffaellt, ohne zu nerven. */
@keyframes discord-pulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(88, 101, 242, .42); }
    50%      { box-shadow: 0 6px 22px rgba(88, 101, 242, .42), 0 0 0 10px rgba(88, 101, 242, .10); }
}
.discord-fab { animation: discord-pulse 3.2s ease-in-out infinite; }
.discord-fab:hover { animation: none; }

@media (max-width: 640px) {
    .discord-fab { right: 16px; bottom: 16px; height: 48px; padding: 0 12px; }
    .discord-fab:hover span { max-width: 0; opacity: 0; }
    .discord-fab:hover { gap: 0; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .discord-fab { animation: none; transition: none; }
}

/* Hinweis auf die Zahlung ueber Discord — steht ueber den Plaenen, damit
   niemand erst nach dem Klick erfaehrt, wie der Kauf ablaeuft. */
.pay-notice {
    display: flex; align-items: center; gap: 14px;
    max-width: 640px; margin: -8px auto 26px; padding: 14px 18px;
    background: rgba(88, 101, 242, .10);
    border: 1px solid rgba(88, 101, 242, .35); border-radius: 12px;
}
.pay-notice .pay-ico { font-size: 22px; flex: none; }
.pay-notice p { margin: 0; color: var(--text2); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 640px) {
    .pay-notice { flex-direction: column; text-align: center; gap: 8px; }
}
