/* ──────────────────────────────────────────────────────────────
   Bestell-Bar – Produktseite
   Tokens, Schriften und Formensprache übernommen aus der App
   (JKOrderManager/wwwroot/css/site.css, Hell-Theme) und aus der
   Vereinspräsentation: Markenrot, "Papier/Tinte", scharfe Radien.
   ────────────────────────────────────────────────────────────── */

:root {
    --brand: #E31221;
    --brand-deep: #B30E1A;
    --brand-tint: #FBE7E9;
    --ink: #0F1115;
    --ink-soft: #4B5159;
    --ink-faint: #9097A1;
    --paper: #FFFFFF;
    --paper-tint: #F7F7F4;
    --paper-deep: #EDEBE5;
    --rule: #E5E3DE;
    --rule-strong: #C8C5BD;
    --green: #198754;

    --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

    --step--1: 0.8125rem;
    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: 1.375rem;
    --step-3: 1.75rem;
    --step-4: 2.25rem;
    --step-5: 3rem;

    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 8px;

    --wrap: 1180px;
    --gap: clamp(1.5rem, 4vw, 3rem);
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-deep); }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}

.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;
}

.skip {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    background: var(--ink); color: #fff; padding: .6rem 1rem;
    border-radius: var(--radius); transition: top .15s;
}
.skip:focus { top: 1rem; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1;
    padding: .7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-lg { font-size: 1.0625rem; padding: .95rem 1.5rem; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--brand-deep); border-color: var(--rule-strong); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-tint); }

.btn-invert { background: #fff; color: var(--brand-deep); }
.btn-invert:hover { background: var(--brand-tint); transform: translateY(-1px); }

.btn-invert-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-invert-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ── Kopfzeile ─────────────────────────────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}

.header-inner {
    display: flex; align-items: center; gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: flex; align-items: center; gap: .55rem;
    font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
    color: var(--ink); text-decoration: none;
    margin-right: auto;
}
.brand img { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: 1.75rem; }

.nav-links, .nav-actions {
    display: flex; align-items: center; gap: 1.5rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-actions { gap: .5rem; }

.nav-links a {
    color: var(--ink-soft); text-decoration: none; font-weight: 500;
    font-size: .9375rem;
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--brand); }

/* Aktiver Abschnitt (ScrollSpy) */
.nav-links a.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    cursor: pointer;
}
.bars, .bars::before, .bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink);
    margin-inline: auto; transition: transform .2s, opacity .2s;
}
.bars::before, .bars::after { content: ""; position: relative; }
.bars::before { top: -6px; }
.bars::after { top: 4px; }
[aria-expanded="true"] .bars { background: transparent; }
[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .bars::after { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-tint) 100%);
    border-bottom: 1px solid var(--rule);
    padding: clamp(3rem, 7vw, 5.5rem) 0 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--gap);
    align-items: center;
}

.eyebrow {
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 .75rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5.2vw, 3.5rem);
    margin-bottom: .5em;
}
.hero h1 em { font-style: normal; color: var(--brand); }

.lead {
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 34em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }

.hero-note { font-size: var(--step--1); color: var(--ink-faint); }

.hero-media { position: relative; padding-bottom: 2rem; }
.hero-board {
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px -24px rgba(15,17,21,.35);
    background: #fff;
}
.hero-phone {
    position: absolute;
    left: -1.5rem; bottom: 0;
    width: 30%;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 36px -18px rgba(15,17,21,.45);
    background: #fff;
}

/* ── Abschnitte ────────────────────────────────────────────── */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band { background: var(--paper-tint); border-block: 1px solid var(--rule); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-sub { color: var(--ink-soft); font-size: var(--step-1); margin: 0; }

/* Kernfakten */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
}
.band:has(.facts) { border-block: 0; }
.fact { background: var(--paper-tint); padding: clamp(1.5rem, 3vw, 2.25rem) 1.5rem; }
.fact h3 { font-size: var(--step-2); color: var(--brand); margin-bottom: .35em; }
.fact p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

/* Schritte */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.step {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    background: var(--brand); color: #fff;
    font-family: var(--font-display); font-weight: 800;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: .4em; }
.step p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

/* Feature-Zeilen */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--gap);
    align-items: center;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}
.feature + .feature { border-top: 1px solid var(--rule); }
/* Bei gedrehten Zeilen müssen auch die Spaltenbreiten tauschen, sonst landet der
   Screenshot in der schmalen Spalte und wirkt verloren. */
.feature-reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-media { order: 1; }
.feature-text h3 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.feature-text > p { color: var(--ink-soft); }

.shot {
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px -22px rgba(15,17,21,.38);
    background: #fff;
}
.shot.plain { box-shadow: none; border-color: var(--rule); }

.phones { display: flex; gap: 1rem; align-items: flex-end; justify-content: center; }
.phones img {
    width: 48%;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 34px -20px rgba(15,17,21,.42);
}

/* Aufzählungen mit Haken */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .7rem;
    color: var(--ink-soft);
}
.ticks li::before {
    content: "";
    position: absolute; left: 0; top: .45em;
    width: .7rem; height: .38rem;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); }

.muted { color: var(--ink-faint); font-size: .9375rem; }

.badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.badges img { height: 44px; width: auto; }
.badges .badge-play { height: 58px; }

/* Karten */
.duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    /* Die beiden Screenshots sind unterschiedlich hoch — jede Karte darf ihre
       natürliche Höhe behalten statt unten leer auszulaufen. */
    align-items: start;
}
.trio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    margin: 0;
    overflow: hidden;
}
.card.pad { padding: 1.75rem; }
.card figcaption { padding: 1.5rem; }
.card figcaption h3 { font-size: var(--step-1); margin-bottom: .35em; }
.card figcaption p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }
.card .shot { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--rule); }
.card h3.accent { color: var(--brand); }

.licence {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    color: var(--ink-soft);
    font-size: .9375rem;
}
.licence strong { color: var(--ink); }

/* Grenzen */
.limits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.limit {
    background: var(--paper-tint);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.limit h3 { font-size: var(--step-1); color: var(--brand-deep); margin-bottom: .35em; }
.limit p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

.closing {
    margin-top: 2rem;
    font-size: var(--step-1);
    color: var(--ink-soft);
    font-style: italic;
    max-width: 46rem;
}

/* Schlussaufruf */
.cta { background: var(--brand); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner {
    display: flex; flex-wrap: wrap; gap: 2rem;
    align-items: center; justify-content: space-between;
}
.cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.9); max-width: 34em; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Fusszeile */
.site-footer { background: var(--paper-tint); border-top: 1px solid var(--rule); padding: 2.5rem 0; }
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong { font-family: var(--font-display); }
.footer-brand span { color: var(--ink-faint); font-size: var(--step--1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .9375rem; }
.footer-links a:hover { color: var(--brand-deep); text-decoration: underline; }

/* Anker unter der klebenden Kopfzeile */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Einblenden beim Scrollen — nur wenn app.js läuft (sonst wäre die Seite ohne JS leer) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Mobil ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero-grid, .feature { grid-template-columns: 1fr; }
    .feature-reverse .feature-text, .feature-reverse .feature-media { order: initial; }
    .hero-media { margin-top: 1rem; }
    .hero-phone { width: 26%; left: 0; }
}

@media (max-width: 780px) {
    .nav-toggle { display: block; }

    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        padding: 1rem 1.25rem 1.5rem;
        box-shadow: 0 18px 30px -20px rgba(15,17,21,.4);
        transform: translateY(-8px);
        opacity: 0; visibility: hidden;
        transition: opacity .18s, transform .18s, visibility .18s;
    }
    .nav.open { opacity: 1; visibility: visible; transform: none; }

    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links a {
        display: block; padding: .85rem 0;
        border-bottom: 1px solid var(--rule);
        font-size: 1.0625rem; color: var(--ink);
    }
    .nav-links a:hover { border-bottom-color: var(--rule); }
    /* Im aufgeklappten Menü trennt der untere Rand die Einträge — der aktive Punkt
       wird deshalb über Farbe und eine Markierung links gekennzeichnet. */
    .nav-links a.active {
        color: var(--brand-deep);
        border-bottom-color: var(--rule);
        box-shadow: inset 3px 0 0 0 var(--brand);
        padding-left: .75rem;
    }

    .nav-actions { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: 1.25rem; }
    .nav-actions .btn { width: 100%; padding: .85rem 1rem; }
}

@media (max-width: 560px) {
    .hero-phone { position: static; width: 60%; margin: -2.5rem auto 0; }
    .hero-media { padding-bottom: 0; }
    .phones img { width: 47%; }
    .cta-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
