/* AuslagenFlow – Homepage
   Farben und Schrift wie in der App (../auslagenflow/css/app.css, fonts.css). Kein JavaScript. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/atkinson-next-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: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/atkinson-next-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;
}

:root {
  --hintergrund: #f6f5f2;
  --flaeche:     #ffffff;
  --flaeche-2:   #f0efeb;
  --text:        #16171a;
  --text-2:      #555a62;
  --rand:        #dddbd5;
  --dunkel:      #16171a;
  --dunkel-text: #ffffff;
  --dunkel-text-2: #c3c6cc;
  --akzent:      #15803d;
  --akzent-aktiv:#166534;
  --akzent-text: #15803d;
  --gruen-hell:  #dcfce7;
  --gruen-text:  #14532d;
  --amber-hell:  #fef3c7;
  --amber-text:  #78350f;
  --blau-hell:   #dbeafe;
  --blau-text:   #1e3a8a;
  --grau-hell:   #e9e7e2;
  --grau-text:   #374151;
  --fokus:       #1d4ed8;
  --telefon:     #16171a;
  --schatten:    0 24px 60px rgba(22, 23, 26, 0.16);
  --schrift: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #111214;
    --flaeche:     #1b1c20;
    --flaeche-2:   #25272c;
    --text:        #ececee;
    --text-2:      #a9adb5;
    --rand:        #2f3137;
    --dunkel:      #0b0c0e;
    --telefon:     #3a3d44;
    --akzent-text: #4ade80;
    --gruen-hell:  #12301f;
    --gruen-text:  #86efac;
    --amber-hell:  #33260c;
    --amber-text:  #fcd34d;
    --blau-hell:   #172447;
    --blau-text:   #93c5fd;
    --grau-hell:   #2f3137;
    --grau-text:   #d1d5db;
    --fokus:       #93c5fd;
    --schatten:    0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font: 1.0625rem/1.6 var(--schrift);
}
img { max-width: 100%; }
a { color: var(--akzent-text); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
code { font-size: 0.92em; background: var(--flaeche-2); padding: 0.1em 0.35em; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.nobr { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--flaeche); color: var(--text); padding: 0.5rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--dunkel); color: var(--dunkel-text);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { background: #fff; border-radius: 7px; }
.topbar nav { display: flex; align-items: center; gap: 1.4rem; }
.topbar nav a { color: var(--dunkel-text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.topbar nav a:hover { color: #fff; }
/* Anleitung: durch Trennstrich von den Sprungmarken abgesetzt, als umrandeter Knopf */
.topbar nav .nav-anleitung {
  position: relative; margin-left: 0.4rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #fff; padding: 0.35rem 0.85rem; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
}
.topbar nav .nav-anleitung::before {
  content: ""; position: absolute; left: -1.15rem; top: 15%; bottom: 15%;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.topbar nav .nav-anleitung:hover { border-color: #fff; }
.topbar nav .nav-anleitung[aria-current="page"] { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.topbar nav .nav-cta {
  color: #fff; background: var(--akzent); padding: 0.4rem 0.9rem; border-radius: 999px;
}
.topbar nav .nav-cta:hover { background: var(--akzent-aktiv); }
@media (max-width: 760px) {
  .topbar nav { gap: 0.6rem; }
  .topbar nav .nav-sprung { display: none; }
  .topbar nav .nav-anleitung { margin-left: 0; }
  .topbar nav .nav-anleitung::before { display: none; }
}
@media (max-width: 420px) {
  .topbar nav .nav-anleitung { padding: 0.4rem 0.55rem; }
  .topbar nav .nav-anleitung span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

main:focus { outline: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.kicker {
  margin: 0 0 0.75rem; color: var(--akzent-text);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.lead { margin: 1.4rem 0 0; max-width: 34rem; font-size: 1.2rem; color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--akzent); color: #fff; }
.btn-primary:hover { background: var(--akzent-aktiv); }
.btn-ghost { border-color: var(--rand); color: var(--text); background: var(--flaeche); }
.btn-ghost:hover { border-color: var(--text-2); }
.meta { margin: 1.25rem 0 0; color: var(--text-2); font-size: 0.9rem; }

/* Nachgebaute App */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: min(100%, 330px);
  background: var(--hintergrund);
  border: 10px solid var(--telefon);
  border-radius: 34px;
  box-shadow: var(--schatten);
  overflow: hidden;
  font-size: 0.82rem; line-height: 1.35;
  transform: rotate(2deg);
}
.app-kopf { background: var(--dunkel); color: #fff; padding: 0.9rem 1rem 0.8rem; display: flex; flex-direction: column; }
.app-titel { font-weight: 800; font-size: 1rem; }
.app-unter { color: var(--dunkel-text-2); font-size: 0.75rem; }
.app-body { padding: 0.8rem; display: grid; gap: 0.45rem; }
.summe {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 0.7rem 0.8rem;
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.2rem 0.5rem;
}
.summe > span { color: var(--text-2); }
.summe > b { font-size: 1.25rem; }
.aufteilung { grid-column: 1 / -1; display: flex; gap: 0.8rem; color: var(--text-2); font-size: 0.72rem; }
.punkt { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.3rem; vertical-align: 0; }
.punkt--offen { background: var(--grau-text); }
.punkt--veranlasst { background: var(--blau-text); }
.punkt--erstattet { background: var(--gruen-text); }
.gruppe { margin: 0.5rem 0 0; font-weight: 700; color: var(--text-2); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.karte {
  display: flex; justify-content: space-between; gap: 0.5rem;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 0.6rem 0.7rem;
}
.karte small { display: block; color: var(--text-2); font-size: 0.72rem; }
.karte .rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; white-space: nowrap; }
.karte--gruppe { border-left: 4px solid var(--blau-text); }
.karte--blass { opacity: 0.7; }
.kommentar {
  margin-left: 1rem; background: var(--blau-hell); color: var(--blau-text);
  border-radius: 12px 12px 12px 4px; padding: 0.45rem 0.65rem;
}
.kommentar small { display: block; font-weight: 700; font-size: 0.68rem; }
.app-fuss { padding: 0.2rem 0.8rem 0.9rem; }
.plus { display: block; text-align: center; background: var(--akzent); color: #fff; font-weight: 700; padding: 0.6rem; border-radius: 10px; }

.badge {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.badge--offen       { background: var(--grau-hell);  color: var(--grau-text); }
.badge--eingereicht { background: var(--amber-hell); color: var(--amber-text); }
.badge--veranlasst  { background: var(--blau-hell);  color: var(--blau-text); }
.badge--erstattet   { background: var(--gruen-hell); color: var(--gruen-text); }

/* Statusband */
.statusband { background: var(--flaeche); border-block: 1px solid var(--rand); padding: 1.4rem 0; }
.status-weg {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.status-weg li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
.status-weg .badge { font-size: 0.9rem; padding: 0.25rem 0.8rem; }
.status-weg small { color: var(--text-2); font-size: 0.85rem; }
.status-weg li + li::before {
  content: "→"; position: absolute; left: -0.9rem; top: 0.15rem; color: var(--text-2); transform: translateX(-50%);
}
@media (max-width: 700px) {
  .status-weg { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .status-weg li + li::before { display: none; }
}

/* Abschnitte */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--flaeche-2); }
.section-lead { max-width: 44rem; margin: 0 0 2.25rem; color: var(--text-2); font-size: 1.1rem; }

.schritte {
  list-style: none; margin: 0; padding: 0; counter-reset: none;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.schritte li {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; padding: 1.4rem;
}
.nr {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.9rem;
  border-radius: 50%; background: var(--akzent); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.wer { margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--akzent-text); }
.schritte p:last-child, .rollen p, .features p { margin: 0; color: var(--text-2); }

.rollen, .features {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.rollen article { background: var(--flaeche); border-radius: 16px; padding: 1.3rem 1.4rem; border: 1px solid var(--rand); }
.features { margin-top: 2.25rem; gap: 2rem 1.75rem; }
.features article { border-top: 3px solid var(--akzent); padding-top: 1rem; }

/* Sicherheit */
.section--dunkel { background: var(--dunkel); color: var(--dunkel-text); }
.section--dunkel .kicker { color: #4ade80; }
.section--dunkel .section-lead { color: var(--dunkel-text-2); margin-bottom: 0; }
.sicherheit { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .sicherheit { grid-template-columns: 1fr; } }
.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.haken li { position: relative; padding-left: 2rem; color: var(--dunkel-text-2); }
.haken li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05rem;
  display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: #15803d; color: #fff; font-size: 0.8rem; font-weight: 800;
}

/* Herunterladen */
.holen { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .holen { grid-template-columns: 1fr; } }
.holen-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; padding: 1.6rem; }
.holen-karte--haupt { border: 2px solid var(--akzent); }
.holen-karte p { color: var(--text-2); }
.liste { margin: 0 0 1.5rem; padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.liste--punkte { margin-bottom: 1rem; }
.btn-download { font-size: 1.05rem; }
.btn-download .size { font-weight: 400; opacity: 0.85; white-space: nowrap; }
.klein { font-size: 0.9rem; margin: 1rem 0 0; }

/* Fußzeile */
.foot { border-top: 1px solid var(--rand); padding: 1.75rem 0 2.5rem; color: var(--text-2); font-size: 0.95rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; align-items: center; }
.foot p { margin: 0; }
.foot img { vertical-align: -3px; margin-right: 0.3rem; border-radius: 4px; background: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* Anleitung */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; padding-top: 2.25rem; padding-bottom: 3rem; }
.doc-seite { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow-y: auto; }
.doc-seite h2, .doc-inhalt h2 {
  margin: 1.4rem 0 0.4rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
}
.doc-seite h2:first-child { margin-top: 0; }
.doc-seite ul, .doc-inhalt ul { list-style: none; margin: 0; padding: 0; }
.doc-seite a, .doc-inhalt a {
  display: block; padding: 0.3rem 0.65rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem;
}
.doc-seite a:hover, .doc-inhalt a:hover { background: var(--flaeche-2); }
.doc-seite a[aria-current="page"], .doc-inhalt a[aria-current="page"] {
  background: var(--gruen-hell); color: var(--gruen-text); font-weight: 700;
}
.doc-inhalt { display: none; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.25rem; }
  .doc-seite { display: none; }
  .doc-inhalt { display: block; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; }
  .doc-inhalt summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 700; }
  .doc-inhalt nav { padding: 0 0.6rem 0.8rem; }
}
.doc-text { min-width: 0; max-width: 46rem; }
.doc-text:focus { outline: none; }
.doc-text h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin: 0 0 1.25rem; }
.doc-text h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.doc-text h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.doc-text h2, .doc-text h3 { scroll-margin-top: 4.5rem; }
.doc-text p, .doc-text li { color: var(--text); }
.doc-text ul, .doc-text ol { padding-left: 1.4rem; }
.doc-text li { margin: 0.3rem 0; }
.doc-text li > p { margin: 0.3rem 0; }
.crumb { margin: 0 0 0.5rem; font-size: 0.9rem; }
.crumb a { color: var(--text-2); }
.frage { margin: 1.25rem 0; }
.hinweis {
  margin: 1.25rem 0; padding: 0.8rem 1rem; border-left: 4px solid var(--akzent);
  background: var(--gruen-hell); color: var(--gruen-text); border-radius: 0 10px 10px 0;
}
.hinweis p { margin: 0; color: inherit; }
.tabelle { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); }
.tabelle table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rand); }
.tabelle th { background: var(--flaeche-2); font-size: 0.85rem; }
.tabelle tr:last-child td { border-bottom: 0; }
.doc-text pre {
  overflow-x: auto; margin: 1rem 0; padding: 0.9rem 1rem; border-radius: 10px;
  background: var(--dunkel); color: #e5e7eb; font-size: 0.88rem; line-height: 1.5;
}
.doc-text pre code { background: none; padding: 0; color: inherit; }
.kapitel { list-style: none; padding: 0 !important; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.kapitel li { margin: 0; }
.kapitel a {
  display: flex; flex-direction: column; gap: 0.2rem; height: 100%;
  padding: 0.9rem 1rem; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche);
  color: var(--text); text-decoration: none;
}
.kapitel a:hover { border-color: var(--akzent); }
.kapitel span { color: var(--text-2); font-size: 0.92rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rand); }
.pager a {
  display: flex; flex-direction: column; padding: 0.7rem 1rem; border: 1px solid var(--rand); border-radius: 12px;
  background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 700; max-width: 48%;
}
.pager a:hover { border-color: var(--akzent); }
.pager small { color: var(--text-2); font-weight: 400; }
.pager .next { margin-left: auto; text-align: right; }
.stand { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-2) !important; }

/* Impressum */
.legal { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal h3 { margin-top: 1.75rem; }
.legal .lead { font-size: 1.05rem; }
.legal-date { margin-top: 2.5rem; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { transform: none; }
}
