@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg:        #0d0d0d;
    --surface:   #161616;
    --surface2:  #1f1f1f;
    --surface3:  #2a2a2a;
    --border:    #2e2e2e;
    --border2:   #3d3d3d;
    --accent:       #f59e0b;
    --accent-dim:   #b45309;
    --accent-glow:  rgba(245,158,11,.15);
    --accent-bright:#fbbf24;
    --text:       #f2f2f2;
    --text-dim:   #c9c9c9;
    --text-muted: #8a8a8a;
    --radius:    10px;
    --radius-lg: 16px;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'DM Mono', 'Courier New', monospace;
    --shadow:    0 8px 30px rgba(0,0,0,.35);
    --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text-dim);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--text); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
.center { text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 16px;
}
.eyebrow.center { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 44px;
}
section > .wrap > h2.center + .section-lead { margin-top: -6px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #0d0d0d; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-ghost { border-color: var(--border2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }
.btn-block { width: 100%; }

/* ── Header ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13,13,13,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; color: var(--text); }
.logo em { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .93rem; font-weight: 600; }
.nav a { color: var(--text-dim); transition: color .15s; }
.nav a:hover { color: var(--accent); }
.nav-cta {
    background: var(--accent); color: #0d0d0d !important;
    padding: 9px 18px; border-radius: var(--radius);
}
.nav-cta:hover { background: var(--accent-bright); }
.nav-app {
    border: 1px solid var(--border); color: var(--text) !important;
    padding: 8px 16px; border-radius: var(--radius);
}
.nav-app:hover { border-color: var(--accent-dim); color: var(--accent) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Hero ── */
.hero { padding: 84px 0 60px; position: relative; }
.hero::before {
    content: '';
    position: absolute; inset: -20% -10% auto -10%; height: 500px;
    background: radial-gradient(ellipse at 30% 0%, rgba(245,158,11,.14), transparent 60%);
    pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; }
.lead { font-size: 1.12rem; color: var(--text-dim); max-width: 520px; margin: 20px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-mono); font-size: 1.6rem; color: var(--accent); }
.hero-stats span { font-size: .8rem; color: var(--text-muted); }

.hero-visual { position: relative; height: 460px; }

/* ── Device mockups (reine CSS-Illustrationen, keine echten Screenshots) ── */
.device {
    position: absolute;
    background: #050505;
    border: 6px solid #050505;
    border-radius: 34px;
    box-shadow: var(--shadow), 0 0 0 1px var(--border2);
    overflow: hidden;
}
.device-phone { width: 220px; height: 440px; right: 30px; top: 10px; }
.device-tablet { width: 400px; height: 300px; left: -10px; bottom: 0; border-radius: 20px; }
.device.standalone { position: static; margin: 0 auto; box-shadow: var(--shadow); }
.device-screen { width: 100%; height: 100%; background: var(--surface); }
/* object-fit:contain statt cover - echte Screenshots haben ein anderes
   Seitenverhaeltnis als der Geraete-Rahmen, "cover" hat dadurch Inhalt am
   linken/rechten Rand abgeschnitten (z.B. Kopfzeile, Tab-Beschriftungen).
   "contain" zeigt den kompletten Screenshot, mit einem schmalen Rand aus
   der Surface-Farbe unten statt fehlendem Inhalt. */
.device-screen img { width: 100%; height: 100%; object-fit: contain; object-position: top center; display: block; }

/* Küchen-Terminal: 3 Spalten (Eingehend / In Vorbereitung / Ausgegeben) */
/* Träger-App: gestapelte Karten (Tablett-Liste) */
.mock-traeger, .mock-traeger-detail {
    background:
        linear-gradient(var(--surface2) 0 100%) 10px 14px / calc(100% - 20px) 74px no-repeat,
        linear-gradient(var(--accent-glow) 0 100%) 10px 100px / calc(100% - 20px) 74px no-repeat,
        linear-gradient(var(--surface2) 0 100%) 10px 186px / calc(100% - 20px) 74px no-repeat,
        var(--surface);
}

/* Browser-Rahmen für Desktop-Ansichten (Admin, Auswertung) - drei Punkte
   simulieren eine Fensterleiste statt Handy/Tablet-Rand. */
.device-browser {
    border-radius: 10px; border-width: 0; padding-top: 26px; position: relative;
}
.device-browser::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 26px;
    background: #050505;
    box-shadow: inset 12px 0 0 -8px #3d3d3d, inset 24px 0 0 -8px #3d3d3d, inset 36px 0 0 -8px #3d3d3d;
}

/* Kassa: Rechnungszeilen + hervorgehobene Summenzeile */

/* Admin: schmale Seitenleiste + Tabellenzeilen im Inhaltsbereich */
.mock-admin {
    background:
        linear-gradient(var(--surface2) 0 100%) 0 26px / 26% calc(100% - 26px) no-repeat,
        repeating-linear-gradient(180deg, var(--surface3) 8px 8px, transparent 8px 34px) 32% 40px / 62% 24px no-repeat,
        repeating-linear-gradient(180deg, var(--border) 0 1px, transparent 1px 34px) 32% 40px / 62% 140px no-repeat,
        var(--surface);
}

/* Auswertung: KPI-Kacheln oben + Balkendiagramm darunter */
.mock-auswertung {
    background:
        linear-gradient(var(--accent-glow) 0 100%) 6% 14px / 27% 34px no-repeat,
        linear-gradient(var(--surface2) 0 100%) 36.5% 14px / 27% 34px no-repeat,
        linear-gradient(var(--surface2) 0 100%) 67% 14px / 27% 34px no-repeat,
        linear-gradient(var(--accent) 0 100%) 8% 100% / 8% 40% no-repeat,
        linear-gradient(var(--accent-dim) 0 100%) 20% 100% / 8% 65% no-repeat,
        linear-gradient(var(--accent) 0 100%) 32% 100% / 8% 30% no-repeat,
        linear-gradient(var(--accent-dim) 0 100%) 44% 100% / 8% 80% no-repeat,
        linear-gradient(var(--accent) 0 100%) 56% 100% / 8% 50% no-repeat,
        linear-gradient(var(--accent-dim) 0 100%) 68% 100% / 8% 90% no-repeat,
        linear-gradient(var(--accent) 0 100%) 80% 100% / 8% 45% no-repeat,
        var(--surface);
}

/* ── Problem ── */
.problem { padding: 80px 0; border-top: 1px solid var(--border); }
.problem h2 { text-align: center; margin-bottom: 44px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
}
.problem-icon { font-size: 1.9rem; margin-bottom: 14px; }
.problem-card p { color: var(--text-muted); font-size: .95rem; }

/* ── Funktionen ── */
.funktionen { padding: 90px 0; border-top: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px;
    transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--accent-glow); border: 1px solid rgba(245,158,11,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 16px;
}
.feature-card p { color: var(--text-muted); font-size: .92rem; }
.funktionen-mehr { text-align: center; margin-top: 40px; color: var(--text-muted); font-size: .95rem; }
.funktionen-mehr a { color: var(--accent); font-weight: 700; }
.funktionen-mehr a:hover { color: var(--accent-bright); }

/* ── Ablauf ── */
.ablauf { padding: 90px 0; border-top: 1px solid var(--border); background: var(--surface); }
.flow { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.flow-step {
    width: 150px; text-align: center; padding: 20px 10px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    position: relative;
}
.flow-num {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent); color: #0d0d0d; font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
}
.flow-icon { font-size: 1.7rem; margin: 8px 0 10px; }
.flow-step h3 { font-size: .95rem; margin-bottom: 6px; }
.flow-step p { font-size: .8rem; color: var(--text-muted); }
.flow-arrow { color: var(--border2); font-size: 1.4rem; align-self: center; padding-top: 40px; }

/* ── Galerie ── */
.galerie { padding: 90px 0; border-top: 1px solid var(--border); }
.mockup-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: end; margin-top: 20px; }
.mockup { text-align: center; }
.mockup figcaption { margin-top: 16px; font-size: .88rem; color: var(--text-muted); }

/* ── Zielgruppen ── */
.zielgruppen { padding: 80px 0; border-top: 1px solid var(--border); background: var(--surface); }
.ziel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.ziel-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; font-weight: 600; color: var(--text); font-size: 1rem;
}

/* ── Kontakt ── */
.kontakt { padding: 90px 0; border-top: 1px solid var(--border); }
.kontakt-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.kontakt-punkte { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-dim); }
.kontakt-form {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px; display: flex; flex-direction: column; gap: 16px;
}
.kontakt-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.kontakt-form input, .kontakt-form textarea {
    background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius);
    padding: 11px 13px; color: var(--text); font-family: var(--font-body); font-size: .95rem;
    outline: none; resize: vertical;
}
.kontakt-form input:focus, .kontakt-form textarea:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-note { font-size: .85rem; color: var(--accent); min-height: 1.2em; }

/* ── Handbuch ── */
.docs-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.docs-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.docs-hero .lead { margin: 14px 0 0; }
.docs-back { font-family: var(--font-mono); font-size: .82rem; color: var(--text-muted); margin-bottom: 18px; display: inline-block; }
.docs-back:hover { color: var(--accent); }

.docs-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    padding: 56px 0 100px;
    align-items: start;
}
.docs-nav {
    position: sticky; top: 90px;
    display: flex; flex-direction: column; gap: 22px;
    max-height: calc(100vh - 110px); overflow-y: auto;
}
.docs-nav-group span {
    display: block; font-family: var(--font-mono); font-size: .7rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 8px;
}
.docs-nav-group a {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 0; font-size: .88rem; color: var(--text-dim);
    border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px;
    transition: color .15s, border-color .15s;
}
.docs-nav-group a:hover { color: var(--accent); border-left-color: var(--accent-dim); }
.docs-nav-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }

.docs-content { min-width: 0; max-width: 760px; }
.doc-app {
    padding-top: 8px; margin-bottom: 68px; scroll-margin-top: 90px;
}
.doc-app:last-child { margin-bottom: 0; }
.doc-app-top { display: flex; gap: 30px; justify-content: space-between; margin-bottom: 26px; }
.doc-app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.doc-app-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    flex-shrink: 0;
}
.doc-app-head h2 { margin-bottom: 2px; }
.doc-app-role { font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted); }
.doc-app-intro { color: var(--text-muted); margin: 14px 0 0; max-width: 52ch; }
.doc-app-text { flex: 1; min-width: 0; }

.doc-app-visual { flex-shrink: 0; }
.doc-app-visual .device { position: static; }
.doc-app-visual .device-phone { width: 130px; height: 260px; border-width: 5px; border-radius: 22px; }
.doc-app-visual .device-tablet { width: 220px; height: 165px; border-radius: 14px; }
.doc-app-visual .device-browser { width: 240px; height: 165px; }

.doc-feature-list { display: flex; flex-direction: column; }
.doc-feature {
    padding: 22px 0; border-top: 1px solid var(--border);
}
.doc-feature:last-child { border-bottom: 1px solid var(--border); }
.doc-feature h4 {
    color: var(--text); font-size: 1rem; font-weight: 700;
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.doc-feature h4::before {
    content: '';
    width: 6px; height: 6px; border-radius: 2px;
    background: var(--role, var(--accent)); flex-shrink: 0;
}
.doc-feature p { color: var(--text-muted); font-size: .93rem; max-width: 68ch; }
.doc-feature p + p { margin-top: 10px; }
.doc-feature p code {
    font-family: var(--font-mono); font-size: .82em; background: var(--surface2);
    border: 1px solid var(--border2); border-radius: 4px; padding: 1px 6px; color: var(--accent);
}

/* Je App eine eigene Kennfarbe - dient dem Wiederfinden in Sidebar + Icon,
   nicht der Dekoration. Bleibt in derselben warm-kühl-Familie, kein Regenbogen. */
.role-warum      { --role: #fbbf24; }
.role-kellner    { --role: #f59e0b; }
.role-terminal   { --role: #fb923c; }
.role-traeger    { --role: #34d399; }
.role-kassa      { --role: #60a5fa; }
.role-admin      { --role: #a78bfa; }
.role-auswertung { --role: #22d3ee; }

.doc-app-icon { background: color-mix(in srgb, var(--role) 16%, transparent); border: 1px solid color-mix(in srgb, var(--role) 35%, transparent); }
.docs-nav-dot { background: var(--role); }
.docs-nav-group a:hover { border-left-color: var(--role); color: var(--role); }

@media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; gap: 30px; }
    .docs-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
    .docs-nav-group { display: contents; }
    .docs-nav-group span { display: none; }
}
@media (max-width: 700px) {
    .doc-app-top { flex-direction: column; }
    .doc-app-visual { align-self: center; }
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner p { font-size: .82rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { height: 340px; margin-top: 10px; }
    .device-tablet { width: 300px; height: 220px; }
    .device-phone { width: 170px; height: 340px; }
    .problem-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .mockup-row { grid-template-columns: 1fr; gap: 40px; }
    .ziel-grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border);
           flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px;
           transform: translateY(-120%); transition: transform .2s ease; }
    .nav.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
    .problem-grid, .feature-grid, .ziel-grid { grid-template-columns: 1fr; }
    .flow { flex-direction: column; align-items: center; }
    .flow-arrow { transform: rotate(90deg); padding: 0; }
    .flow-step { width: 100%; max-width: 280px; }
}

/* ── Theme (respektiert System-Einstellung; Seite ist bewusst dark-first) ── */
@media (prefers-color-scheme: light) {
    body { background: var(--bg); }
}
