/* Vereins-Bestellseite – mobile first */
:root {
  --haupt: #7a1f3d;
  --haupt-dunkel: #5c1530;
  --haupt-hell: #f6e8ed;
  --gold: #c9973a;
  --text: #1f1d1e;
  --grau: #6b6668;
  --linie: #e4dfe1;
  --flaeche: #ffffff;
  --hinter: #faf7f8;
  --ok: #1f7a4d;
  --ok-hell: #e3f4ea;
  --fehler: #b3261e;
  --fehler-hell: #fbe9e7;
  --info-hell: #eef3fb;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(60,20,35,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hinter); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--haupt); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .4em 0 .6em; }
h2 { font-size: 1.2rem; margin: 1.4em 0 .6em; }
.klein { font-size: .85rem; color: var(--grau); font-weight: normal; }
.optional { font-size: .85rem; color: var(--grau); font-weight: normal; }
.hilfe { color: var(--grau); font-size: .92rem; }
.leer { color: var(--grau); text-align: center; padding: 1.5rem 0; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.rechts { text-align: right; }
code { background: var(--haupt-hell); padding: .1em .35em; border-radius: 4px; }

/* Kopf & Navigation */
.kopf {
  position: sticky; top: 0; z-index: 10; background: var(--haupt); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: .55rem 1rem; gap: .4rem 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.marke { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.hauptnav { display: flex; gap: .25rem; flex-wrap: wrap; }
.hauptnav a {
  color: #fff; text-decoration: none; padding: .4rem .7rem; border-radius: 999px; font-size: .95rem;
  opacity: .9;
}
.hauptnav a.aktiv, .hauptnav a:hover { background: rgba(255,255,255,.18); opacity: 1; }
.zahl { background: var(--gold); color: #fff; border-radius: 999px; padding: 0 .45em; font-size: .8rem; font-weight: 700; }
main { margin: 0 auto; padding: 1rem 1rem 3rem; }
main.schmal { max-width: 640px; }
main.breit { max-width: 1400px; }
.fuss { text-align: center; color: var(--grau); font-size: .85rem; padding: 1rem 1rem 2rem; }

/* Meldungen */
.meldung { border-radius: 10px; padding: .75rem 1rem; margin: .8rem 0; background: var(--info-hell); }
.meldung.ok { background: var(--ok-hell); color: var(--ok); }
.meldung.fehler { background: var(--fehler-hell); color: var(--fehler); }
.meldung.info { background: var(--info-hell); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 48px; padding: .6rem 1.2rem; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--haupt-hell); color: var(--haupt);
}
.knopf.haupt { background: var(--haupt); color: #fff; }
.knopf.haupt:hover { background: var(--haupt-dunkel); }
.knopf.zweit { background: #fff; color: var(--haupt); border-color: var(--linie); }
.knopf.zweit:hover { border-color: var(--haupt); }
.knopf.gefahr { background: var(--fehler-hell); color: var(--fehler); }
.knopf.gross { min-height: 60px; font-size: 1.15rem; }
.knopf.breit { width: 100%; }
.knopf.klein-knopf { min-height: 38px; padding: .35rem .8rem; font-size: .9rem; border-radius: 9px; }
.knopf.rund { width: 52px; height: 52px; padding: 0; border-radius: 50%; font-size: 1.6rem; }
.knopf.whatsapp { background: #25d366; color: #fff; }
.linkknopf { background: none; border: none; color: var(--haupt); font: inherit; cursor: pointer; padding: .2rem .3rem; text-decoration: underline; }
.gefahr-text { color: var(--fehler); }

/* Formulare */
.formular label, .formular fieldset { display: block; margin: 0 0 1rem; font-weight: 600; }
.formular fieldset { border: none; padding: 0; }
.formular legend { font-weight: 600; margin-bottom: .4rem; }
input, select, textarea {
  font: inherit; width: 100%; margin-top: .3rem; padding: .7rem .8rem; min-height: 48px;
  border: 2px solid var(--linie); border-radius: 10px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--haupt); box-shadow: 0 0 0 3px var(--haupt-hell); }
textarea { min-height: 90px; resize: vertical; }
.euro-feld { display: flex; align-items: center; gap: .4rem; }
.euro-feld span { font-weight: 700; color: var(--grau); margin-top: .3rem; }
.zwei-spalten { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.zwei-spalten.oben { align-items: start; gap: 1rem; }
@media (min-width: 700px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } }
.admin-felder { background: var(--haupt-hell); border-radius: var(--radius); padding: 1rem !important; }

/* Boxen & Karten */
.box { background: var(--flaeche); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--schatten); }
.box h2:first-child { margin-top: 0; }
.zentriert { text-align: center; }
.zentriert .formular { text-align: left; }
.gross-symbol { font-size: 3rem; }
.karte {
  background: var(--flaeche); border-radius: var(--radius); padding: 1rem; margin: 0 0 .8rem;
  box-shadow: var(--schatten); border-left: 4px solid transparent;
}
.karte.eigene { border-left-color: var(--gold); }
.karte.ausgegraut { opacity: .6; }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.karte-titel { display: flex; flex-direction: column; }
.karte-titel strong { font-size: 1.08rem; }
.typ { font-size: .82rem; color: var(--grau); }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .3rem 1rem; margin: .7rem 0 0; }
.details div { min-width: 0; }
.details dt { font-size: .78rem; color: var(--grau); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.bemerkung { background: var(--hinter); border-radius: 8px; padding: .5rem .7rem; margin: .6rem 0 0; font-size: .95rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.hinweis-schloss { font-size: .88rem; color: var(--grau); margin: .7rem 0 0; }
.preis { white-space: nowrap; }

/* Status & Prio */
.status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: #eee; }
.s-offen { background: #fff2d6; color: #8a5a00; }
.s-bestellt { background: #e3ecfb; color: #1d4f9c; }
.s-geliefert { background: var(--ok-hell); color: var(--ok); }
.s-retoure { background: #efe6f7; color: #6b3a99; }
.s-storniert { background: #ececec; color: #666; }
.s-entwurf { background: #f2f2f2; color: #666; }
.prio { font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 6px; }
.p-hoch { background: var(--fehler-hell); color: var(--fehler); }
.p-mittel { background: #fff2d6; color: #8a5a00; }
.p-niedrig { background: #f0f0f0; color: #666; }

/* Summen */
.summe-box {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; justify-content: space-between;
  background: var(--haupt-hell); border-radius: var(--radius); padding: .9rem 1.1rem; margin: .8rem 0 1rem;
}
.summe-box strong { font-size: 1.35rem; color: var(--haupt); }
.summe-box .klein { flex-basis: 100%; }
.summe-box.gross strong { font-size: 1.7rem; }

/* Wizard */
.fortschritt { list-style: none; display: flex; gap: .3rem; padding: 0; margin: .2rem 0 1rem; counter-reset: s; }
.fortschritt li {
  flex: 1; text-align: center; font-size: .72rem; color: var(--grau); padding-top: .2rem;
  border-top: 4px solid var(--linie);
}
.fortschritt li span { display: none; }
.fortschritt li.fertig { border-top-color: var(--gold); }
.fortschritt li.aktiv { border-top-color: var(--haupt); color: var(--haupt); font-weight: 700; }
.kontext { color: var(--grau); margin-top: -.4rem; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.kachel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  min-height: 130px; border-radius: var(--radius); border: 2px solid var(--linie); background: #fff;
  font: inherit; font-weight: 700; font-size: 1.1rem; color: var(--text); cursor: pointer; box-shadow: var(--schatten);
}
.kachel:hover, .kachel.gewaehlt { border-color: var(--haupt); background: var(--haupt-hell); }
.kachel-symbol { font-size: 2.6rem; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 1rem; }
.chip { margin: 0 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 48px;
  padding: .4rem .9rem; border: 2px solid var(--linie); border-radius: 12px; background: #fff; font-weight: 600; cursor: pointer;
}
.chip input:checked + span { background: var(--haupt); border-color: var(--haupt); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--haupt-hell); }
.chips.gross .chip { flex: 1; }
.chips.gross .chip span { width: 100%; }
.menge { display: flex; align-items: center; gap: .7rem; margin: .3rem 0 1.2rem; }
.menge input { width: 100px; text-align: center; font-size: 1.3rem; font-weight: 700; margin: 0; }
.wizard-knoepfe { display: flex; gap: .7rem; justify-content: space-between; margin-top: 1.5rem; flex-wrap: wrap; }
.wizard-knoepfe .knopf { flex: 1; min-width: 140px; }
.wizard-knoepfe form { flex: 1; display: flex; }
.wizard-knoepfe form .knopf { width: 100%; }
.zeilen { list-style: none; padding: 0; margin: .6rem 0 0; }
.zeilen li { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem 0; border-top: 1px solid var(--linie); font-size: .95rem; }
.zeilen li > a { white-space: nowrap; font-size: .9rem; }
.liste-kompakt { list-style: none; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); }
.liste-kompakt li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--linie); }
.liste-kompakt li:first-child { border-top: none; }
.liste-kompakt li.summe { background: var(--haupt-hell); font-size: 1.1rem; }

/* Filter */
.filterchips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filterchips a { text-decoration: none; padding: .35rem .8rem; border-radius: 999px; border: 2px solid var(--linie); background: #fff; color: var(--text); font-size: .9rem; }
.filterchips a.aktiv { background: var(--haupt); color: #fff; border-color: var(--haupt); }
.gruppe h2 { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--linie); padding-bottom: .3rem; }
.gruppe-summe { font-size: 1rem; color: var(--haupt); }

/* Admin */
.adminnav { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 .5rem; }
.adminnav a { text-decoration: none; padding: .45rem .9rem; border-radius: 10px; background: #fff; border: 2px solid var(--linie); color: var(--text); font-size: .92rem; font-weight: 600; }
.adminnav a.aktiv { border-color: var(--haupt); color: var(--haupt); background: var(--haupt-hell); }
.filterleiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.filterleiste select, .filterleiste input { width: auto; min-height: 40px; padding: .35rem .6rem; margin: 0; font-size: .92rem; }
.filterleiste input[type=search] { min-width: 180px; }
.tabelle-rahmen { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th, .tabelle td { padding: .5rem .6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.tabelle th { background: var(--haupt); color: #fff; font-weight: 600; position: sticky; top: 0; white-space: nowrap; }
.tabelle th.r, .tabelle td.r { text-align: right; white-space: nowrap; }
.tabelle tbody tr:hover { background: var(--hinter); }
.tabelle tr.ausgegraut td { opacity: .5; }
.tabelle tfoot td { font-weight: 700; background: var(--haupt-hell); }
.tabelle.kompakt th { background: transparent; color: var(--grau); position: static; }
.tabelle tr.fett td { font-weight: 700; }
.artikel-zelle { min-width: 180px; }
.bemerkung-zelle { min-width: 160px; max-width: 260px; font-size: .85rem; color: var(--grau); }
.status-wahl { min-height: 34px; padding: .2rem .4rem; margin: 0; width: auto; font-size: .85rem; font-weight: 700; border-radius: 999px; }
.aktionen-zelle { display: flex; flex-wrap: wrap; gap: .35rem; }
.name-form { display: flex; gap: .2rem; align-items: center; }
.name-form input { margin: 0; min-height: 36px; padding: .25rem .5rem; min-width: 160px; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kennzahl { background: #fff; border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.kennzahl span { font-size: .85rem; color: var(--grau); }
.kennzahl strong { font-size: 1.4rem; }
.kennzahl.haupt { background: var(--haupt); }
.kennzahl.haupt span, .kennzahl.haupt strong { color: #fff; }
.kennzahl.warnung strong { color: var(--fehler); }
.balken { height: 8px; background: var(--linie); border-radius: 99px; overflow: hidden; margin: .4rem 0 .2rem; }
.balken div { height: 100%; background: var(--gold); }
.typ-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.hilfe-liste { padding-left: 1.1rem; color: var(--grau); }
.link-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.link-karte h2 { margin-top: 0; }
.link-feld { font-size: .85rem; }
.qr { background: #fff; padding: .5rem; max-width: 260px; margin: .5rem auto 0; }
.qr svg { width: 100%; height: auto; }
details summary { cursor: pointer; margin-top: .8rem; color: var(--haupt); font-weight: 600; }
.mehr { display: inline-block; }
.mehr summary { margin: 0; font-size: .9rem; padding: .45rem .3rem; }
.mehr-inhalt { display: flex; flex-direction: column; gap: .35rem; margin-top: .35rem; }
.gruppen-liste { list-style: none; padding: 0; margin: 0 0 .8rem; }
.gruppen-liste li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--linie); }
.gruppen-liste .name-form { flex: 1; }
.klein-wahl { min-height: 36px; padding: .2rem .4rem; margin: 0; width: auto; font-size: .9rem; }
.tabelle-rahmen.flach { box-shadow: none; }

/* Hinweise, Einführung, Ankündigung */
.hinweis-text section { border-bottom: 1px solid var(--linie); padding-bottom: .4rem; }
.hinweis-text section:last-child { border-bottom: none; }
.hinweis-text h2 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.hinweis-text p, .hinweis-text li { font-size: .95rem; }
.hinweis-uebung { background: var(--ok-hell); color: var(--ok); border-radius: 10px; padding: .7rem 1rem; }
.uebung-balken {
  background: repeating-linear-gradient(45deg, #fff2d6, #fff2d6 12px, #ffe9b8 12px, #ffe9b8 24px);
  color: #7a4d00; font-weight: 800; text-align: center; padding: .55rem; border-radius: 10px; margin: .4rem 0 .8rem;
  letter-spacing: .03em;
}
.tipp {
  position: relative; background: #eef3fb; border: 2px solid #c9daf5; border-radius: 14px; padding: .8rem 1rem;
  margin: 0 0 1rem; font-size: .95rem;
}
.ankuendigung { background: var(--gold); color: #fff; border-radius: 10px; padding: .75rem 1rem; margin: .8rem 0; font-weight: 600; white-space: pre-line; }
.karte-status { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.bezahlt-marke { font-size: .75rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
.bezahlt-knopf { border: 2px solid var(--linie); background: #fff; border-radius: 999px; padding: .2rem .6rem; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; color: var(--grau); }
.bezahlt-knopf.ja { background: var(--ok-hell); border-color: var(--ok-hell); color: var(--ok); font-weight: 700; }
.sammelleiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .7rem; padding: .5rem .8rem; background: var(--haupt-hell); border-radius: 10px; }
.sammelleiste select { width: auto; min-height: 38px; margin: 0; padding: .3rem .5rem; font-size: .9rem; }
.haken { display: flex !important; align-items: center; gap: .6rem; font-weight: 600; }
.haken input { width: 22px; height: 22px; min-height: 0; margin: 0; }
.tabelle input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; }
.fuss a { color: var(--grau); }
