/* Basketsum · Werte siehe DESIGN.md im Projekt-Root */
:root {
  --ink: #2A2B27;
  --muted: #5E625A;
  --line: #E8E2DA;
  --bg: #FEF8F5;
  --surface: #F5EFE9;
  --primary: #53745F;
  --primary-hover: #46644F;
  --accent: #A9C4A8;
  --on-primary: #FFFFFF;
  --on-primary-muted: #E4ECE3;
  --flaeche: #E4ECE3;
  --auf-flaeche: #2A2B27;
  --auf-flaeche-leise: #5A6356;
  --success: #4F7A57;
  --error: #B42318;

  --font-head: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 6px; --r-md: 14px; --r-lg: 28px;
  --shadow: 0 10px 30px rgba(42, 43, 39, .10);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }
.skip { position: absolute; left: -999px; top: var(--s2); background: var(--primary); color: var(--on-primary); padding: var(--s2) var(--s4); border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: var(--s4); }

h1, h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 56px; line-height: 1.05; }
h2 { font-size: 36px; line-height: 1.15; margin-bottom: var(--s4); }
h3 { font-size: 21px; line-height: 1.3; font-weight: 650; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s4); max-width: 62ch; }
.lead { font-size: 21px; line-height: 1.55; }
.small { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; font: 600 17px/1 var(--font-body); padding: 15px 22px; border-radius: var(--r-sm); text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: var(--on-primary); color: var(--primary); }
.btn-light:hover { background: #F4F1EA; }

/* Kopf */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s3); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav a { margin-left: var(--s5); color: var(--muted); text-decoration: none; font-size: 16px; padding: var(--s3) 0; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: var(--s8) 0 var(--s9); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.hero h1 { margin-bottom: var(--s5); }
.hero .note { margin-top: var(--s4); }

/* Beispiel-Bon */
.demo { margin: 0; background: var(--surface); border-radius: var(--r-lg); padding: var(--s6); display: grid; grid-template-columns: minmax(200px, 1fr) 1fr; gap: var(--s5); align-items: start; }
.bon { background: #fff; border-radius: 3px; padding: var(--s4) var(--s4) var(--s5); font: 13px/1.7 var(--font-mono); color: #2B2B2B; transform: rotate(-1.5deg); box-shadow: var(--shadow); }
.bon .kopf { text-align: center; margin-bottom: var(--s2); color: #555; }
.bon .z { display: flex; justify-content: space-between; gap: var(--s3); white-space: nowrap; }
.bon .summe { border-top: 1px dashed #8A8A8A; margin-top: var(--s2); padding-top: var(--s1); font-weight: 700; }
.sortiert { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.sortiert li { display: flex; justify-content: space-between; gap: var(--s3); white-space: nowrap; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sortiert li:last-child { border-bottom: 0; }
.sortiert b { font-variant-numeric: tabular-nums; font-weight: 600; }
.sortiert .leise { color: var(--muted); }
.demo figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* Abschnitte */
section { padding: var(--s9) 0 0; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s7); margin-top: var(--s6); counter-reset: n; }
.schritte li { list-style: none; border-top: 2px solid var(--primary); padding-top: var(--s4); }
.schritte li::before { counter-increment: n; content: counter(n); display: block; font: 600 15px/1 var(--font-body); color: var(--primary); margin-bottom: var(--s3); }
.schritte p { color: var(--muted); }
.schritte { padding: 0; margin-bottom: 0; }

.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s8); align-items: center; }
.feature .shot { max-width: 320px; justify-self: center; border-radius: var(--r-md); box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature h3 { margin-top: var(--s5); }
.feature p { color: var(--muted); }

.dunkel { background: var(--flaeche); color: var(--auf-flaeche); border-radius: var(--r-lg); padding: var(--s7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.dunkel p, .dunkel li { color: var(--auf-flaeche-leise); }
.dunkel ul { margin: 0; padding-left: 20px; }
.dunkel li { margin-bottom: var(--s3); }
.dunkel li::marker { color: var(--primary); }

.faq > * { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s4) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 0; }

.schluss { padding: var(--s9) 0 var(--s8); }
.schluss .wrap { border-top: 1px solid var(--line); padding-top: var(--s8); display: flex; justify-content: space-between; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.schluss h2 { margin: 0; }

/* Rechtstexte */
.legal { max-width: 760px; padding-top: var(--s7); padding-bottom: var(--s8); }
.legal h1 { font-size: 40px; margin-bottom: var(--s4); }
.legal h2 { font-family: var(--font-body); font-size: 20px; font-weight: 650; margin: var(--s6) 0 var(--s2); letter-spacing: 0; }
.legal p, .legal li { font-size: 17px; }
.legal .note { background: var(--surface); padding: var(--s3) var(--s4); border-radius: var(--r-sm); color: var(--muted); }
.ph { background: #FFE9A8; padding: 0 4px; border-radius: 4px; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s6); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
.site-footer a { color: var(--muted); margin-left: var(--s4); display: inline-block; padding: 13px 0; }
.site-footer a:first-child { margin-left: 0; }

/* Tablet */
@media (max-width: 960px) {
  .hero .wrap, .feature, .dunkel { grid-template-columns: 1fr; gap: var(--s6); }
  .feature .shot { justify-self: start; }
}
/* Handy */
@media (max-width: 640px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .lead { font-size: 19px; }
  .hero { padding: var(--s6) 0 var(--s8); }
  section { padding-top: var(--s8); }
  .site-nav a:not(:last-child) { display: none; }
  .demo { grid-template-columns: 1fr; padding: var(--s5); }
  .schritte { grid-template-columns: 1fr; gap: var(--s5); }
  .dunkel { padding: var(--s5); }
  .feature .shot { max-width: 260px; }
}

/* v3: wärmer – farbiger Kopf, Kritzel, Kategorie-Farben, getönte Abschnitte (siehe DESIGN.md) */
:root {
  --minze-hell: #EEF3EC;
  --kat-obst: #DFBC6B; --kat-gemuese: #7FB585; --kat-fleisch: #D48B77; --kat-milch: #9FBCD5;
  --kat-drogerie: #B09ECE; --kat-pfand: #BEC3BC; --kat-benzin: #8994A1; --kat-suess: #DD9FB3; --kat-weg: #B42318;
}
.hero { background: var(--flaeche); color: var(--auf-flaeche); padding: var(--s8) 0 var(--s9); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.hero .lead { color: var(--auf-flaeche-leise); }
.hero .small { color: var(--auf-flaeche-leise); }
.kritzel { position: relative; white-space: nowrap; }
.kritzel svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.32em; overflow: visible; }
.kritzel path { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; }
.hero .demo { background: rgba(255,255,255,.45); border: 1px solid rgba(42,43,39,.08); color: var(--auf-flaeche); }
.hero .bon { transform: rotate(-3deg) translateY(4px); }
.hero .sortiert li { border-bottom-color: rgba(42,43,39,.10); }
.hero .sortiert .leise, .hero .demo figcaption { color: var(--auf-flaeche-leise); }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
.punkt.obst, .balken .obst { background: var(--kat-obst); }
.punkt.gemuese, .balken .gemuese { background: var(--kat-gemuese); }
.punkt.fleisch, .balken .fleisch { background: var(--kat-fleisch); }
.punkt.milch, .balken .milch { background: var(--kat-milch); }
.punkt.drogerie, .balken .drogerie { background: var(--kat-drogerie); }
.punkt.pfand { background: var(--kat-pfand); }
.balken .benzin { background: var(--kat-benzin); }
.balken .suess { background: var(--kat-suess); }
.balken .weggeworfen { background: var(--kat-weg); }

section.getoent { background: var(--minze-hell); margin-top: var(--s9); padding: var(--s8) 0; }
section.getoent + section { padding-top: var(--s9); }
.monat { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s8); align-items: center; }
.balken { background: var(--bg); border-radius: var(--r-md); padding: var(--s5) var(--s5) var(--s4); box-shadow: 0 1px 0 rgba(18,32,26,.05); }
.balken .zeile { display: grid; grid-template-columns: 130px 1fr 64px; gap: var(--s3); align-items: center; padding: 7px 0; font-size: 15px; }
.balken .zeile i { display: block; height: 12px; width: var(--w); border-radius: 6px; }
.balken .zeile b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.balken .weg { border-top: 1px dashed var(--line); margin-top: var(--s2); padding-top: var(--s3); color: var(--error); }
@media (max-width: 960px) { .monat { grid-template-columns: 1fr; gap: var(--s5); } }
@media (max-width: 640px) {
  .balken .zeile { grid-template-columns: 104px 1fr 56px; font-size: 14px; }
  section.getoent { margin-top: var(--s8); padding: var(--s7) 0; }
}
