/* Gestaltung der Webseite von KüKo21st. Farben, Schriften, Abstände und Radien stammen aus dem Design-System der App
   (tokens.json). Die Schriften liegen auf dem eigenen Server, es wird nichts von fremden Servern geladen. */

@font-face { font-family: "Figtree"; src: url("/schriften/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/schriften/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/schriften/Figtree-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/schriften/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ground: #faf6ee;
  --surface: #ffffff;
  --surface-sunken: #f1eadc;
  --ink: #1f2420;
  --ink-muted: #5a6258;
  --line: #ddd5c4;
  --line-strong: #8c8573;
  --herb: #1f5a43;
  --on-herb: #ffffff;
  --herb-soft: #dcebe1;
  --honig: #e8a33a;
  --on-honig: #2a1c05;
  --tomate: #a83a1e;
  --tomate-soft: #f8e3d9;
  --eis: #1a6884;
  --eis-soft: #dcecf2;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #14130f;
    --surface: #1d1b16;
    --surface-sunken: #26231c;
    --ink: #ece7dc;
    --ink-muted: #a8a698;
    --line: #37332a;
    --line-strong: #7d776a;
    --herb: #86c9a6;
    --on-herb: #0f1a14;
    --herb-soft: #1d3329;
    --honig: #e5b45a;
    --on-honig: #1a1204;
    --tomate: #f0a07e;
    --tomate-soft: #3a2219;
    --eis: #7cc8e2;
    --eis-soft: #15303a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 24px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--herb); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--herb); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }
h3 { font-size: 18px; line-height: 24px; }
p { margin: 0; }
.klein { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.oben { margin-top: var(--space-4); }
.oben-gross { margin-top: var(--space-6); }
.breite { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-4); }
.sprung { position: absolute; left: -999px; top: 0; background: var(--herb); color: var(--on-herb); padding: var(--space-3) var(--space-4); z-index: 10; }
.sprung:focus { left: var(--space-2); top: var(--space-2); }

/* Kopf */
.kopf { border-bottom: 1px solid var(--line); background: var(--ground); }
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.wortmarke { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.wortmarke img { border-radius: var(--radius-sm); }
.kopf nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.kopf nav a, .fuss nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink); }
.kopf nav a:hover, .fuss nav a:hover { color: var(--herb); text-decoration: underline; }

/* Entwurf und fehlende Angaben */
.entwurf { background: var(--tomate-soft); color: var(--ink); border-bottom: 1px solid var(--line); padding: var(--space-3) var(--space-4); text-align: center; }
.entwurf strong { color: var(--tomate); }
mark.fehlt { background: var(--tomate-soft); color: var(--tomate); font-weight: 600; padding: 0 4px; border-radius: 4px; }

/* Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.knopf.haupt { background: var(--herb); color: var(--on-herb); }
.knopf.haupt:hover { filter: brightness(1.1); }
.knopf.ruhig { border: 1.5px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.knopf.bald { border: 1.5px dashed var(--line-strong); color: var(--ink-muted); background: transparent; }

/* Auftakt */
.auftakt { overflow: hidden; }
.band { display: block; width: 100%; height: 72px; }
.auftakt-innen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-8); align-items: center; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.auftakt p.gross { font-size: 20px; line-height: 30px; margin-top: var(--space-4); max-width: 34em; }
.auftakt .knoepfe { margin-top: var(--space-6); }
.auftakt .klein { margin-top: var(--space-3); }
.haken { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-2); }
.haken li { padding-left: 28px; position: relative; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--herb); font-weight: 700; }

/* Handy-Bilder */
.handys { display: flex; gap: var(--space-4); justify-content: center; }
.handy { margin: 0; flex: 0 1 240px; }
.handy img { width: 100%; border-radius: 28px; border: 6px solid var(--ink); background: var(--surface); }
.handy figcaption { margin-top: var(--space-2); text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.handys.reihe { flex-wrap: wrap; margin-top: var(--space-8); }
.handys.reihe .handy { flex-basis: 220px; }

/* Abschnitte */
.abschnitt { padding: var(--space-8) 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--line); }
.abschnitt.abgesetzt { background: var(--surface-sunken); }
.abschnitt > .breite > h2 + p { margin-top: var(--space-3); max-width: 42em; color: var(--ink-muted); }
.label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2); }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); margin-top: var(--space-6); }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.karte h3 + p { margin-top: var(--space-2); }
.karte .tag { display: inline-block; margin-bottom: var(--space-3); padding: 2px 10px; border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 700; }
.tag.herb { background: var(--herb-soft); color: var(--herb); }
.tag.eis { background: var(--eis-soft); color: var(--eis); }
.tag.honig { background: var(--honig); color: var(--on-honig); }
.tag.tomate { background: var(--tomate-soft); color: var(--tomate); }

/* Preise */
.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); align-items: start; }
.preis { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-4); }
.preis.empfohlen { border-color: var(--herb); }
.preis .marke { display: inline-block; margin-bottom: var(--space-2); padding: 2px 10px; border-radius: var(--radius-pill); background: var(--honig); color: var(--on-honig); font-size: 12px; line-height: 16px; font-weight: 700; }
.preis .betrag { margin-top: var(--space-2); font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.preis .betrag span { font-size: 14px; font-weight: 400; color: var(--ink-muted); }
.preis ul { margin: var(--space-4) 0 0; padding-left: 20px; display: grid; gap: var(--space-1); font-size: 14px; line-height: 20px; }

/* Fragen */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin-top: var(--space-3); }
summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 600; min-height: 44px; }
details > :not(summary) { padding: 0 var(--space-4) var(--space-4); }

/* Textseiten (Impressum, Datenschutz, Hilfe) */
.text { max-width: 760px; margin: 0 auto; padding: var(--space-8) var(--space-4); }
.text h1 { font-size: clamp(28px, 5vw, 40px); }
.text h2 { font-size: 22px; line-height: 28px; margin-top: var(--space-8); }
.text h3 { margin-top: var(--space-6); }
.text p, .text ul, .text ol, .text address, .text table { margin-top: var(--space-3); }
.text ul, .text ol { padding-left: 22px; }
.text li + li { margin-top: var(--space-1); }
.text address { font-style: normal; }
.text table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; }
.text th, .text td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); }
.text th { background: var(--surface-sunken); }
.tabelle { overflow-x: auto; }
.kasten { background: var(--herb-soft); border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-4); }
.kasten.warnung { background: var(--tomate-soft); }

/* Fuß */
.fuss { border-top: 1px solid var(--line); background: var(--surface-sunken); padding: var(--space-6) 0 var(--space-8); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.fuss p { margin-top: var(--space-3); color: var(--ink-muted); font-size: 14px; line-height: 20px; }

@media (max-width: 760px) {
  .auftakt-innen { grid-template-columns: minmax(0, 1fr); }
  .auftakt .handys { order: 2; }
  .handys:not(.reihe) .handy:nth-child(2) { display: none; }
}
