/* Running Dinner – Palette: Schiefer/Salbei/Tomate */
:root {
  --ink: #1d2a26;        /* Text */
  --ink-soft: #4b5b55;
  --paper: #eef1ec;      /* Seitenhintergrund, kühl-grünlich */
  --card: #ffffff;
  --line: #cfd6d1;
  --accent: #d24d34;     /* Tomate */
  --accent-ink: #9c3220;
  --sage: #7d9a86;
  --mustard: #d9a63a;
  --ok: #2f7d4f;
  --bad: #b3261e;
  --radius: 10px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.5; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
small, .muted { color: var(--ink-soft); }
.page { max-width: 880px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
body.admin .page { max-width: 1200px; }

/* Header mit Routen-Marke: drei Stationen, eine Linie */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; }
.route-mark { display: inline-flex; align-items: center; position: relative; width: 56px; height: 14px; }
.route-mark::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--sage); }
.route-mark i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--sage); margin-right: 8px; }
.route-mark i:last-child { margin-right: 0; background: var(--accent); border-color: var(--accent); }
.site-footer { text-align: center; padding: 1.5rem; color: var(--ink-soft); font-size: .9rem; }

/* Hero */
.hero { padding: 2rem 0 1.5rem; }
.eyebrow { font-family: var(--font-display); font-style: italic; color: var(--accent-ink); margin: 0 0 .4rem; letter-spacing: .02em; }
.lede { font-size: 1.15rem; max-width: 60ch; }
.hero .info { white-space: pre-line; background: var(--card); border-left: 4px solid var(--mustard); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* Karten & Formulare */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1rem 0; }
.card.narrow { max-width: 420px; margin: 3rem auto; }
fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
legend { padding: 0; margin-bottom: .8rem; }
.step { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.25rem; }
.step::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.field { display: block; margin-bottom: 1rem; }
.field > span, .field > label > span { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input:not([type]), textarea, select {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--mustard); outline-offset: 1px; }
.field small { display: block; margin-top: .3rem; }
.field.has-error input, .field.has-error textarea, .check.has-error { border-color: var(--bad); }
.field em, .error { color: var(--bad); font-style: normal; font-size: .9rem; display: block; margin-top: .3rem; }
.error.banner, .flash { padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.error.banner { background: #fbe9e7; }
.flash { background: #e6f0e9; color: var(--ok); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.2rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0 1rem; }
.check input { margin-top: .3rem; }
.radios { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: .3rem 0; }
.radios label { display: inline-flex; gap: .4rem; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
small.hint { display: block; margin: -.6rem 0 1rem; }
/* Einwilligung nach Art. 9 DSGVO und WG-Auswahl: abgesetzter Block */
.field.consent, .field.wg-box { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; margin-bottom: 1rem; }
.field.consent .check, .field.wg-box .radios { margin-bottom: .3rem; }
.field.wg-box .radios { flex-direction: column; gap: .5rem; align-items: flex-start; }
.field.has-error.consent, .field.has-error.wg-box { border-color: var(--bad); }
.legal-note { font-size: .85rem; margin-top: .8rem; }
pre.codes { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; overflow-x: auto; font-size: .95rem; }
.btn.small { padding: .25rem .8rem; font-size: .85rem; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: .65rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .6; cursor: default; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
.pay-note { color: var(--ink-soft); }
.closed h2 { margin-top: 0; }
.status h1 { margin-top: .2rem; }
.prose p, .prose li { max-width: 70ch; }
.prose h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.prose ul { max-width: 70ch; padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
/* Platzhalter in den Rechtstexten sichtbar machen, damit sie nicht live stehen bleiben */
.prose mark { background: var(--mustard); color: var(--ink); padding: 0 .25rem; border-radius: 3px; }
.prose .draft { background: #fdf3e0; border-left: 4px solid var(--mustard); padding: .7rem 1rem; border-radius: 4px; }

/* Adress-Vorschläge */
.addr { position: relative; }
.suggest { list-style: none; margin: 0; padding: .3rem 0; position: absolute; z-index: 5; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 260px; overflow: auto; }
.suggest li { padding: .5rem .8rem; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected=true] { background: var(--paper); }
.suggest li.empty { color: var(--ink-soft); cursor: default; }
.chosen { margin: .5rem 0 0; }

/* Admin */
.admin-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.admin-nav a { text-decoration: none; color: var(--ink); padding: .3rem .1rem; border-bottom: 2px solid transparent; }
.admin-nav a.active { border-color: var(--accent); }
.inline { display: inline; }
.inline-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin: .5rem 0; }
.inline-form .field { margin: 0; }
.toolbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.toolbar h1 { margin-right: auto; }
.toolbar form { display: flex; gap: .5rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.stat span { font-size: .85rem; color: var(--ink-soft); }
.stat.bad b { color: var(--bad); }
.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: .93rem; }
table.data th, table.data td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data.compact td { padding: .35rem .5rem; }
.tag { display: inline-block; font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin: 0 .2rem .2rem 0; }
.tag.paid { background: #e6f0e9; color: var(--ok); }
.tag.pending { background: #fdf3dc; }
.tag.cancelled, .tag.warn { background: #fbe9e7; color: var(--bad); }
.tag.vegan { background: #dcefe2; color: var(--ok); }
.tag.veg { background: #eef5e2; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.progress { height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .5s; }
ol.route { list-style: none; padding: 0; counter-reset: stop; }
ol.route li h2 { margin-top: 0; }
details summary { cursor: pointer; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
