/* ──────────────────────────────────────────────────────────────
   SpaceOrbit · assets/site.css – Stil der Seite (CSP style-src 'self', kein Inline-Stil).

   Angeglichen an die Startseite von blockchain21.net (Kommandozentrale), docs/NEUAUFBAU-2026-11.md §7.7.6 und §7.8
   (Repo Bitcoin Offer, B21-Kit 1.1 „Zentrale“):
   - Rahmen aus dem Kit (b21/): Kopfleiste und Fuß auf Nacht, Zeichen, Schriften.
   - Farben wie die Startseite: Nacht #06080c, Flächen #0b0f15, Linien Marmorweiß .10/.18/.32,
     Text #ece8e0 · #b9bcc2 · #8f96a1. Orange nur im Kit-Rahmen, im Quadrat des Haupt-Knopfs und im Fokusring.
   - Schriften: Text Inter, Überschriften und Wortmarke Schibsted Grotesk, Kennungen IBM Plex Mono.
   - Alles in der 1180-px-Spalte der Startseite (Rand 16–48 px), linksbündig wie dort.
   - Weltraum bleibt: Sterne (assets/site.js), die feine Horizont-Linie oben rechts (b21/himmel-bogen.svg, statisch),
     Cyan als Projektfarbe – sparsam: Akzentwort und Quadrate der Kennungen.
   - Ohne Verläufe, Glows, Unschärfe, Schatten, Emojis; Hover ohne Anheben.
   Inhalte und Aufbau (Schiffe, Funktionen, Galerie, FAQ, Discord) wie bisher.
   Eigene Variablen mit Präfix --so- (das Kit nutzt --b21-, dessen Werte bleiben unberührt).
   ────────────────────────────────────────────────────────────── */

:root {
    --so-bg: #06080c;
    --so-bg-2: #0b0f15;
    --so-sunk: #05070a;
    --so-ink: #ece8e0;
    --so-ink-2: #b9bcc2;
    --so-ink-3: #8f96a1;
    --so-line: rgb(236 232 224 / 0.1);
    --so-line-strong: rgb(236 232 224 / 0.18);
    --so-line-bold: rgb(236 232 224 / 0.32);
    --so-cyan: #00d4ff;
    --so-focus: #f7931a;
    --so-sans: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --so-head: 'Schibsted Grotesk Variable', 'Inter Variable', system-ui, sans-serif;
    --so-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --so-ease: cubic-bezier(0.16, 1, 0.3, 1);
    /* Spalte der Startseite: 1180 px, Rand 16–48 px (wie .b21-bar--night und .b21-foot--night) */
    --so-pad-x: max(clamp(16px, 4vw, 48px), (100% - 1180px) / 2);
    --so-bar-h: 40px;
    --so-nav-h: 60px;
}

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

html {
    scroll-padding-top: calc(var(--so-nav-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html:not([data-motion='reduce']) {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--so-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-feature-settings: 'cv11', 'ss01';
    background: var(--so-bg);
    color: var(--so-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fläche wie die Startseite: .b21-night (b21/tokens.css) setzt sonst die ältere Nacht #0a0f1a */
body.b21-night {
    background: var(--so-bg);
    color: var(--so-ink);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Fokusring wie im Kit: 2 px Orange */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--so-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Gemeinsame Rollen */
.accent {
    color: var(--so-cyan);
}

/* Kennungen: Plex Mono 13 px wie der Kicker der Startseite, davor ein Quadrat in der Projektfarbe */
.hero-kicker,
.section-label {
    display: inline-flex;
    align-items: baseline;
    gap: 0.65em;
    font-family: var(--so-mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--so-ink-2);
}

.hero-kicker::before,
.section-label::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: var(--so-cyan);
}

/* Sterne-Hintergrund */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}

/* ── Navigation (unter der Kopfleiste, bleibt beim Scrollen oben) ─────────────── */
#navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(6 8 12 / 0.94);
    border-bottom: 1px solid var(--so-line);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#navbar.scrolled {
    background: rgb(6 8 12 / 0.98);
    border-bottom-color: var(--so-line-strong);
}

.nav-container {
    min-height: var(--so-nav-h);
    padding: 0 var(--so-pad-x);
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--so-head);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--so-ink);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    margin-right: auto;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--so-ink-2);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 1px;
    background: var(--so-line-bold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    color: var(--so-ink);
}

.nav-links a:hover::after {
    opacity: 1;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-left: auto;
    padding: 0 1.1rem;
    border: 1px solid var(--so-line-strong);
    border-radius: 10px;
    color: var(--so-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover {
    border-color: var(--so-line-bold);
    background: rgb(236 232 224 / 0.04);
}

/* ── Hero: linksbündig wie die Startseite, oben rechts die feine Horizont-Linie ─────────
   Linie wie .b21-himmel im Kit (Kreis 132 Einheiten, rechts −98, oben −87), aber die Einheit --so-bogen hängt an der
   Breite statt an vmax: 1vw, höchstens 19,2 px (so groß wie bei 1920 px Breite). Die Linie tritt oben bei
   100 % − 30,6 Einheiten ein und erreicht den rechten Rand 36,7 Einheiten tiefer – höchstens 705 px, also immer über
   der Unterkante des Hero (mindestens 739 px ab 1300 px Breite, sonst mehr Abstand). Hochkant (Tablets) bleibt sie
   damit klein und weit weg von der Überschrift; quer bis 1920 px liegt sie genau wie mit vmax. */
.hero {
    --so-bogen: min(1vw, 19.2px);
    min-height: min(calc(100svh - var(--so-bar-h) - var(--so-nav-h)), 820px);
    display: flex;
    align-items: center;
    padding: 4.5rem var(--so-pad-x) 4.5rem;
    background-image: url(../b21/himmel-bogen.svg);
    background-repeat: no-repeat;
    background-position: right calc(-98 * var(--so-bogen)) top calc(-87 * var(--so-bogen));
    background-size: calc(132 * var(--so-bogen)) calc(132 * var(--so-bogen));
}

.hero-content {
    width: 100%;
}

.hero h1 {
    margin: 1.25rem 0 1.5rem;
    font-family: var(--so-head);
    font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.75rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
}

.hero-subtitle {
    max-width: 46ch;
    font-size: clamp(1.075rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.6;
    color: var(--so-ink-2);
}

.hero-note {
    margin-top: 1.25rem;
    font-family: var(--so-mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--so-ink-3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin-top: 2.25rem;
}

/* Haupt-Knopf wie auf der Startseite: Marmorweiß, Schrift Nacht, orangem Quadrat (aus dem Kit), Radius 10 */
.hero-actions .b21-btn-primary,
.cta-section .b21-btn-primary {
    min-height: 52px;
    padding: 0 1.5rem;
    border-radius: 10px;
    background: var(--so-ink);
    color: var(--so-bg);
    font-family: var(--so-sans);
    font-size: 1rem;
    font-weight: 500;
}

.hero-actions .b21-btn-primary:hover,
.cta-section .b21-btn-primary:hover {
    background: #ffffff;
    color: var(--so-bg);
}

/* Zweite Aktion: Textlink mit feiner Linie und Pfeil wie „So veröffentliche ich →“ auf der Startseite (.textlink):
   44 px hoch, die Linie ist die Unterkante des Links selbst. So läuft sie ohne Lücke bis unter den Pfeil, auch wenn der
   Pfeil aus einer Ersatzschrift kommt (Inter latin enthält kein →); eine Unterstreichung bräche dort ab. */
.so-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--so-ink);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--so-line-bold);
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Pfeil nur zur Zierde: Vorleseprogramme lesen ihn mit der zweiten Angabe nicht vor (ältere Browser nehmen die erste) */
.so-link::after {
    content: '→';
    content: '→' / '';
}

.so-link:hover {
    color: #ffffff;
    border-bottom-color: var(--so-ink);
}

/* Kennzahlen als Leiste mit Haarlinien (wie „Märkte heute“) */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
    margin-top: 3.5rem;
    border-top: 1px solid var(--so-line);
    border-bottom: 1px solid var(--so-line);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
    border-left: 1px solid var(--so-line);
}

.stat-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat-label {
    font-size: 14px;
    line-height: 1.4;
    color: var(--so-ink-2);
}

.stat-number {
    font-family: var(--so-head);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--so-ink);
}

/* ── Abschnitte ───────────────────────────────────────────── */
section {
    position: relative;
    padding: 6rem var(--so-pad-x);
}

.section--tint {
    background: var(--so-bg-2);
    border-top: 1px solid var(--so-line);
    border-bottom: 1px solid var(--so-line);
}

.section-header {
    margin-bottom: 2.75rem;
}

.section-title,
.cta-title {
    margin: 1rem 0 0.85rem;
    font-family: var(--so-head);
    font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.section-subtitle {
    max-width: 56ch;
    color: var(--so-ink-2);
    font-size: 1.0625rem;
}

/* ── Schiffe ──────────────────────────────────────────────── */
.ships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.ship-card {
    background: var(--so-bg-2);
    border: 1px solid var(--so-line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.ship-card:hover {
    border-color: var(--so-line-strong);
}

.ship-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--so-sunk);
    border-bottom: 1px solid var(--so-line);
}

.ship-content {
    padding: 1.5rem 1.5rem 1.25rem;
}

.ship-name {
    margin-bottom: 0.5rem;
    font-family: var(--so-head);
    font-size: 1.375rem;
    font-weight: 620;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ship-desc {
    margin-bottom: 1.25rem;
    color: var(--so-ink-2);
    font-size: 1rem;
}

/* Werte als Zeilen mit Haarlinie, ohne Kästchen */
.ship-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--so-line);
}

.spec-label {
    font-family: var(--so-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--so-ink-3);
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--so-ink);
}

/* ── Funktionen: nummerierte Liste in zwei Spalten, ohne Symbole ────── */
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 3rem;
    counter-reset: so-feature;
}

.feature-item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-content: start;
    padding: 1.4rem 0 1.6rem;
    border-top: 1px solid var(--so-line);
    counter-increment: so-feature;
}

.feature-item::before {
    content: counter(so-feature, decimal-leading-zero);
    grid-row: 1 / span 2;
    padding-top: 0.2rem;
    font-family: var(--so-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--so-ink-3);
}

.feature-title {
    margin-bottom: 0.4rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
}

.feature-desc {
    color: var(--so-ink-2);
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Galerie ──────────────────────────────────────────────── */
.gallery-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.gallery-item {
    border: 1px solid var(--so-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--so-sunk);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ── FAQ (details/summary: Tastatur und Screenreader ohne Skript, name="faq" hält eine Antwort offen) ── */
.faq-list {
    max-width: 820px;
    border-bottom: 1px solid var(--so-line);
}

.faq-item {
    border-top: 1px solid var(--so-line);
}

.faq-question {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    padding: 1rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #ffffff;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    flex: none;
    font-family: var(--so-mono);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    color: var(--so-ink-3);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-question:focus-visible {
    outline: 2px solid var(--so-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.faq-answer {
    padding: 0 2.5rem 1.4rem 0;
}

.faq-answer p {
    max-width: 64ch;
    color: var(--so-ink-2);
    line-height: 1.7;
}

/* ── Aufruf: Text links, Knopf rechts ─────────────────────── */
.cta-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background: var(--so-bg-2);
    border-top: 1px solid var(--so-line);
    border-bottom: 1px solid var(--so-line);
}

.cta-section .section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem 3rem;
}

.cta-title {
    margin-top: 0;
}

.cta-subtitle {
    max-width: 52ch;
    color: var(--so-ink-2);
    font-size: 1.0625rem;
}

/* ── Fuß: SpaceOrbit, darunter .b21-foot--night aus dem Kit ──────── */
.site-footer {
    background: var(--so-bg);
    border-top: 1px solid var(--so-line);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        'logo motion'
        'text text'
        'links links';
    align-items: center;
    padding: 3rem var(--so-pad-x) 1.5rem;
}

.footer-logo {
    grid-area: logo;
    font-family: var(--so-head);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-text {
    grid-area: text;
    max-width: 60ch;
    margin: 0.75rem 0 0.5rem;
    color: var(--so-ink-2);
    font-size: 1rem;
}

.footer-links {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--so-ink-2);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--so-ink);
    text-decoration: underline;
    text-decoration-color: var(--so-line-bold);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
}

.footer-motion {
    grid-area: motion;
    display: flex;
    justify-content: flex-end;
    color: var(--so-ink-2);
}

/* ── Handy und Tablet ─────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --so-nav-h: 56px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        min-height: 44px;
    }

    .hero {
        min-height: 0;
        padding-top: 3.25rem;
        padding-bottom: 2.5rem;
    }

    .hero-actions {
        gap: 0.75rem 1.5rem;
    }

    .hero-stats {
        margin-top: 2.75rem;
    }

    .stat-item {
        padding: 0.85rem 0.9rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    section {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .ship-content {
        padding: 1.25rem 1.25rem 1rem;
    }

    .ship-specs {
        gap: 0 1rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .faq-answer {
        padding-right: 0;
    }

    .cta-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            'logo'
            'text'
            'links'
            'motion';
        padding-top: 2.5rem;
    }

    .footer-motion {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* Kopfleiste ist am Handy 44 px hoch (b21/bar.css); die Horizont-Linie läge dort über der Überschrift */
@media (max-width: 767px) {
    :root {
        --so-bar-h: 44px;
    }

    .hero {
        background-image: none;
    }
}

/* ── Bewegung reduzieren: System (prefers-reduced-motion) oder Schalter im Fuß (b21/motion.js) ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

:root[data-motion='reduce'] *,
:root[data-motion='reduce'] *::before,
:root[data-motion='reduce'] *::after {
    transition: none !important;
    animation: none !important;
}
