/* ===========================================================================
   willyoubuyit — Landingpage der Plattform (Entwurf "Variante B")
   ===========================================================================

   Das Aussehen gehört dem Skeleton, nicht dem Package (ADR-0014). Diese Datei
   ist das Gegenstück zu `site.css`: dieselben Klassennamen, die die Blöcke
   rendern, nur anders gestaltet. Die Instanz wählt sie über `SITE_STYLESHEET`.

   Warum eine zweite Datei und kein Theme-Schalter im Package: Die Plattform
   ist eine Instanz wie jede andere. Sie hat einen anderen Zweck, also einen
   anderen Anstrich — mehr Unterschied gibt es nicht, und mehr soll es auch
   nicht geben.

   Zwei Abweichungen vom Entwurf, beide unvermeidbar:

   1. **Inter fehlt.** Der Entwurf setzt Inter für Fließtext. Selbst gehostet
      liegen nur Monospace-Schriften vor, und eine Schrift von einem fremden
      Server meldet jeden Besucher dorthin (ADR-0003). Also System-Sans für
      den Fließtext und IBM Plex Mono für alles, was Marke ist.
   2. **Genau ein Akzent.** Der Amber-Schein des Spiele-Themes ist hier aus:
      Mint *oder* Gold, nie beides. Das ist Vorgabe, keine Vorliebe.

   =========================================================================== */

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/ibmplexmono-400-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: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/ibmplexmono-400-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;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/ibmplexmono-600-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;
}

/* ---------------------------------------------------------------------------
   Token

   Eine Akzentfarbe als Variable, weil es dann keine zweite geben kann.
   Hierarchie entsteht über Flächenhelligkeit und Textdeckkraft.
--------------------------------------------------------------------------- */
:root {
    --bg: #0a1217;          /* Deep Petrol */
    --surface-1: #0f1a20;
    --surface-2: #14232b;
    --line: #1e323c;
    --line-soft: #172832;

    --text: #f2f2eb;        /* Warm Off-White */
    --text-mid: #b7c6cc;    /* Fließtext auf Fläche, ~8:1 gegen --bg */
    --text-dim: #93a5ad;    /* Labels und Meta, ~6.7:1 gegen --bg */

    --mint: #4dd9bf;        /* Signal Mint — der EINZIGE Akzent */
    --mint-dim: #2e7a6d;    /* nur Linien und Reste, nie Text */
    --mint-wash: rgba(77, 217, 191, 0.1);

    --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
        Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas,
        'Liberation Mono', monospace;

    --maxw: 1120px;
    --radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--mint);
    text-decoration-color: rgba(77, 217, 191, 0.4);
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: var(--mint);
}

/* Auf dunklem Grund reicht die Browser-Vorgabe für den Fokus nicht. */
:where(a, button, input, [tabindex]):focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   Navigation
--------------------------------------------------------------------------- */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 64px;
    padding: 0 24px;
    background: rgba(10, 18, 23, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
    color: var(--text);
}

.lang-toggle {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 10px;
}

.active-lang {
    color: var(--text);
}

.btn-wishlist {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--mint);
    color: #08171a;
    text-decoration: none;
}

.btn-wishlist:hover {
    background: #6fe6d0;
}

/* ---------------------------------------------------------------------------
   Abschnitte

   Großzügiger Dunkelraum, Trennung über haarfeine Linien statt Farbwechsel.
--------------------------------------------------------------------------- */
main > section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 96px 24px;
    border-top: 1px solid var(--line-soft);

    /* Die Leiste klebt oben, also muss ein Sprungziel unter ihr anfangen -
       sonst verschwindet die Überschrift, zu der gesprungen wurde. */
    scroll-margin-top: 80px;
}

main > section:first-child {
    border-top: 0;
}

.section-header {
    max-width: 62ch;
    margin-bottom: 48px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    max-width: 22ch;
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 92px;
    padding-bottom: 84px;
}

/* Der Amber-Schein des Spiele-Themes bleibt aus: pro Fläche genau ein
   Akzent. Das Element rendert das Package, also wird es hier abgeschaltet
   statt dort entfernt. */
.hero-glow-amber,
.hero-bg-code {
    display: none;
}

/* Der Terminal-Prompt gehört zum Spiel, nicht zum Produkt. Ohne das
   Typewriter-JS steht dort ohnehin nur ein Cursor. */
.terminal-prompt {
    display: none;
}

.hero-glow {
    position: absolute;
    inset: -20% 30% 40% -10%;
    background: radial-gradient(ellipse at 30% 40%, var(--mint-wash), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero > *:not(.hero-glow) {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.3rem, 5.4vw, 3.7rem);
    max-width: 15ch;
    letter-spacing: -0.035em;
}

/* Der zweite Teil der Wortmarke trägt den Akzent — die eine Stelle, an der
   Mint als Markenfarbe auftritt. */
.hero-title .tycoon {
    color: var(--mint);
}

.hero-tagline {
    margin-top: 22px;
    color: var(--text-mid);
    font-size: 1.12rem;
    max-width: 52ch;
}

.hero-tagline em {
    font-style: normal;
    color: var(--text);
}

/* Die Schlagworte sind hier keine Ära-Marken, sondern die Kurzfassung des
   Angebots — deshalb Mono und klein, nicht als Chips. */
.hero-era {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.era-tag::before {
    content: '· ';
    color: var(--mint-dim);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* ---------------------------------------------------------------------------
   Schaltflächen
--------------------------------------------------------------------------- */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: var(--mint);
    color: #08171a;
}

.btn-primary:hover {
    background: #6fe6d0;
}

.btn-secondary {
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--mint);
    color: var(--mint);
}

/* ---------------------------------------------------------------------------
   Merkmale
--------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    /* 240px, damit vier Karten in eine Reihe passen: ein Raster, das die
       vierte allein in eine zweite Zeile schiebt, sieht nach Fehler aus. */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface-1);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.feature-icon {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.feature-name {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-mid);
    font-size: 0.96rem;
}

/* ---------------------------------------------------------------------------
   Ablauf (Zeitstrahl)
--------------------------------------------------------------------------- */
.timeline {
    display: grid;
    gap: 0;
    border-left: 1px solid var(--line);
    margin-left: 6px;
}

.timeline-item {
    position: relative;
    padding: 0 0 34px 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--mint);
}

.timeline-langs {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.timeline-desc {
    margin-top: 10px;
    color: var(--text-mid);
    max-width: 62ch;
}

/* ---------------------------------------------------------------------------
   Tarife
--------------------------------------------------------------------------- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

.plan-card {
    background: var(--surface-1);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Der beworbene Tarif hebt sich über eine Linie ab, nicht über eine zweite
   Farbe oder einen Schatten — auf Petrol wirken Schatten matschig. */
.plan-card-featured {
    border-color: var(--mint-dim);
    background: var(--surface-2);
}

.plan-name {
    font-size: 1.1rem;
}

.price-current {
    font-family: var(--font-mono);
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.plan-period {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: -8px;
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.plan-features li {
    padding-left: 18px;
    position: relative;
}

.plan-features li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: var(--mint);
}

.plan-card a {
    margin-top: auto;
}

.plan-addons {
    margin-top: 32px;
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.plan-addon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 20px;
    padding: 16px 20px;
    background: var(--surface-1);
}

.plan-addon-price {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
    text-align: right;
}

.plan-addon-why {
    grid-column: 1 / -1;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.price-note {
    margin-top: 24px;
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 70ch;
}

/* ---------------------------------------------------------------------------
   Hinweiskasten
--------------------------------------------------------------------------- */
.modding-card {
    background: var(--surface-1);
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--mint-dim);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: grid;
    gap: 18px;
    justify-items: start;
}

.modding-card p {
    color: var(--text-mid);
    max-width: 68ch;
}

/* ---------------------------------------------------------------------------
   Fußzeile
--------------------------------------------------------------------------- */
footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px 24px 64px;
    border-top: 1px solid var(--line-soft);
    display: grid;
    gap: 16px;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1rem;
}

.footer-brand span {
    color: var(--mint);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: 0.93rem;
}

.footer-links a {
    color: var(--text-mid);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ---------------------------------------------------------------------------
   Schmale Schirme
--------------------------------------------------------------------------- */
@media (max-width: 720px) {
    main > section {
        padding: 64px 20px;
    }

    nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 20px;
    }

    .nav-links {
        margin-left: 0;
        gap: 16px;
    }
}

/* ---------------------------------------------------------------------------
   Anmeldeformular
   Der eine Abschnitt, um den es die ganze Seite gibt. Deshalb hebt er sich ab
   — eine eigene Fläche, eine Mint-Kante, sonst nichts. Kein zweiter Akzent.
--------------------------------------------------------------------------- */
.signup-section {
    background: var(--surface-1);
    border-top: 1px solid var(--line-soft);
}

.signup-form {
    max-width: 62ch;
    margin-top: 28px;
    padding: 26px 24px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 2px solid var(--mint);
    border-radius: 0 10px 10px 0;
}

/* Die Falle. `display: none` waere billiger und wird von manchen Bots
   erkannt; ausserhalb des Bildschirms ist sie unauffaelliger und fuer
   Vorlesesoftware trotzdem weg (aria-hidden, tabindex="-1"). */
.signup-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.signup-label {
    flex: 1 1 100%;
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.signup-input {
    flex: 1 1 240px;
    min-width: 0;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.95rem;
}

.signup-input::placeholder {
    color: #6c8189;
}

.signup-input:focus {
    border-color: var(--mint);
    outline: none;
}

.signup-button {
    flex: 0 0 auto;
    background: var(--mint);
    color: #08171a;
    border: 0;
    border-radius: 8px;
    padding: 13px 22px;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.signup-button:hover {
    background: #6fe6d0;
}

.signup-button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.signup-consent {
    margin-top: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-dim);
}

/* Leer, bis eine Antwort da ist — und dann sichtbar genug, dass niemand
   zweimal absendet. */
.signup-status:not(:empty) {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--mint-wash);
    border: 1px solid rgba(77, 217, 191, 0.22);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-mid);
}

@media (max-width: 640px) {
    .signup-button {
        flex: 1 1 100%;
    }
}
