/* HAWEOS-Design (docs/branding/design-system.md): Steintöne, Amber nur als Knopfgrund, Outfit, 8-px-Raster. */
@font-face { font-family: "Outfit"; font-weight: 400 700; font-display: swap;
  src: url(/static/schrift/outfit-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; }
@font-face { font-family: "Outfit"; font-weight: 400 700; font-display: swap;
  src: url(/static/schrift/outfit-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; }

:root {
  --grund: #EDEAE3; --papier: #FEFDFB; --weiss: #FFFFFF; --hell: #F5F5F4;
  --linie: #C8C5C2; --rand: #BBBAB7;
  --text: #1C1917; --text2: #44403C; --leise: #5B5551;
  --cta: #BC5A00; --cta-dunkel: #A64F00; --cta-kante: #7A3B00; --marke: #D26400; --amber-zart: #FEF3C7; --amber-rand: #E5C77A;
  --gruen: #2A722E; --gruen-text: #22602A; --gruen-zart: #E5EFE5;
  --info: #4E6275; --info-text: #3E4F5E; --info-zart: #E8EDF2;
  --rot: #A83A32; --rot-zart: #F8E9E7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 400 16px/1.5 "Outfit", system-ui, -apple-system, sans-serif; }
a { color: var(--cta-dunkel); } a:hover { color: var(--cta-kante); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; }
h1 { font-size: 28px; } h2, .h2 { font-size: 22px; } h3, .h3 { font-size: 18px; }
input.kurz { width: 140px; } select.schmal { width: auto; }
p { margin: 0; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* Kopf */
.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.marke { width: 28px; height: 28px; border-radius: 7px; background: var(--marke); display: inline-block; }
.wort { font-weight: 700; font-size: 18px; letter-spacing: 1px; color: var(--text); text-decoration: none; }
.pille { background: var(--amber-zart); color: var(--cta-kante); font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.fuell { flex: 1; }
.kopf-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; align-items: center; }
.wer { font-size: 15px; color: var(--text2); }
.reiter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--text2); font-weight: 600; text-decoration: none; }
.reiter:hover { background: var(--hell); color: var(--text); }
.reiter[aria-current="page"] { background: var(--hell); color: var(--text); box-shadow: inset 0 -3px 0 var(--marke); }
.zahl { background: var(--cta); color: #fff; font-size: 14px; padding: 1px 8px; border-radius: 999px; }

/* Rahmen */
.seite { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 48px; }
.seite.schmal { max-width: 840px; gap: 16px; padding-top: 32px; }
.reihe { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.haupt { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.neben { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stapel { display: flex; flex-direction: column; gap: 14px; }
.stapel-klein { display: flex; flex-direction: column; gap: 6px; }
.zeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.zeile-zwischen { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.einleitung { font-size: 16px; line-height: 1.55; color: var(--text2); max-width: 680px; }
.klein { font-size: 14px; line-height: 1.5; color: var(--leise); }
.mitte { text-align: center; }
.karte { background: var(--papier); border: 1px solid var(--rand); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.karte.eng { padding: 20px; gap: 10px; }
.karte.ohne { padding: 0; gap: 0; overflow: hidden; }
.kasten-info { background: var(--info-zart); border: 1px solid var(--linie); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.kasten-hinweis { background: var(--amber-zart); border: 1px solid var(--amber-rand); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.kasten-fehler { background: var(--rot-zart); border: 1px solid var(--rot); border-radius: 12px; padding: 12px 16px; color: var(--text); }
.kasten-ok { background: var(--gruen-zart); border: 1px solid var(--gruen); border-radius: 12px; padding: 12px 16px; }
.liste-zeile { padding: 16px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--linie); }
.liste-zeile:last-child { border-bottom: 0; }

/* Knöpfe */
.knopf, .knopf2, .knopf-rot, .knopf-klein { font-family: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.knopf { min-height: 48px; padding: 0 24px 2px; border: 0; border-radius: 8px; background: var(--cta); color: #fff; font-size: 16px; font-weight: 600; box-shadow: inset 0 -3px 0 var(--cta-kante), 0 2px 6px rgba(0,0,0,.2); }
.knopf:hover { background: var(--cta-dunkel); color: #fff; }
.knopf:active { box-shadow: inset 0 -1px 0 var(--cta-kante), 0 1px 2px rgba(0,0,0,.14); transform: translateY(1px) scale(.97); }
.knopf[disabled] { background: #8A8580; box-shadow: none; cursor: wait; }
.knopf2 { min-height: 48px; padding: 0 20px 2px; border: 1px solid var(--rand); border-radius: 8px; background: var(--weiss); color: var(--text); font-size: 16px; font-weight: 600; box-shadow: inset 0 -3px 0 var(--linie), 0 2px 6px rgba(0,0,0,.14); }
.knopf2:hover { background: var(--hell); color: var(--text); }
.knopf-rot { min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--rot); font-size: 16px; font-weight: 600; }
.knopf-rot:hover { background: var(--rot-zart); }
.knopf-klein { min-height: 44px; padding: 0 12px; border: 1px solid var(--rand); border-radius: 8px; background: var(--weiss); color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; }
.knopf-klein:hover { background: var(--hell); }
.knopf-klein.rot { border-color: transparent; background: transparent; color: var(--rot); }
.knopf-klein.rot:hover { background: var(--rot-zart); }
.inline { display: inline; margin: 0; }

/* Chips (Auswahl als Radio, Filter als Knopf) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.chips legend { font-size: 16px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span, .fchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rand); border-radius: 999px; background: var(--weiss); color: var(--text); font: 500 15px "Outfit", sans-serif; cursor: pointer; }
.fchip { min-height: 40px; padding: 0 14px; }
.chip span:hover, .fchip:hover { background: var(--hell); }
.chip input:checked + span, .fchip[aria-pressed="true"] { background: var(--text2); color: #fff; border-color: var(--text2); }
.chip input:focus-visible + span { outline: 3px solid var(--cta); outline-offset: 2px; }

/* Formulare */
label.feld { font-size: 14px; font-weight: 600; color: var(--text2); }
label.gross { font-size: 16px; font-weight: 600; color: var(--text); }
input[type=text], input[type=email], input[type=password], select, textarea { font: 400 16px/1.5 "Outfit", sans-serif; color: var(--text); width: 100%; border: 1px solid var(--rand); border-radius: 8px; background: var(--weiss); }
input[type=text], input[type=email], input[type=password], select { min-height: 48px; padding: 0 14px; }
textarea { padding: 12px 14px; resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--cta); margin: 0; flex: none; }
.haken { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 16px; cursor: pointer; }
.raster-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }

/* Status */
.s-erp, .s-gep, .s-ueb, .s-nein, .s-neu { display: inline-block; flex: none; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.s-erp { background: var(--gruen-zart); color: var(--gruen-text); }
.s-gep { background: var(--amber-zart); color: var(--cta-kante); }
.s-ueb, .s-neu { background: var(--info-zart); color: var(--info-text); }
.s-nein { background: var(--hell); color: var(--text2); border: 1px solid var(--linie); padding: 2px 10px; }
.stufe { align-self: flex-start; background: var(--amber-zart); color: var(--cta-kante); font-size: 15px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.stufe.schon_da { background: var(--gruen-zart); color: var(--gruen-text); }
.stufe.neu { background: var(--info-zart); color: var(--info-text); }

/* Inspiration */
.raster-faelle { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.fall { background: var(--papier); border: 1px solid var(--rand); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fall[hidden] { display: none; }
.kategorie { font-size: 14px; font-weight: 600; color: var(--leise); letter-spacing: 1px; text-transform: uppercase; }
.nachricht-bsp { background: var(--hell); border: 1px solid var(--linie); border-radius: 14px 14px 14px 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.bsp-kopf { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--leise); }
.bsp-kopf strong { color: var(--text); }
.av { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--amber-zart); color: var(--cta-kante); display: flex; align-items: center; justify-content: center; }
.av.gross { width: 32px; height: 32px; }
.idee-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; font-size: 15px; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; color: var(--cta-dunkel); font-family: inherit; cursor: pointer; }
.funktionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 32px; }
.fkt { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--linie); }
.fkt strong { font-size: 16px; font-weight: 600; }
.fkt .d { display: block; font-size: 15px; color: var(--text2); line-height: 1.45; margin-top: 2px; }

/* Zugang */
.zugang { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 40px; padding: 64px 16px; }
.zugang-spalte { flex: 1 1 480px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 24px; }
.schritte { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.schritte li { display: flex; gap: 12px; align-items: flex-start; }
.schritte .nr { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--hell); border: 1px solid var(--linie); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.schritte .t { padding-top: 3px; line-height: 1.45; }
.handy { flex: 0 1 360px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.handy-rahmen { background: var(--papier); border: 1px solid var(--rand); border-radius: 28px; padding: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 10px; }
.handy .nachricht-bsp { font-size: 15px; gap: 8px; }
.ok-text { display: flex; align-items: center; gap: 10px; color: var(--gruen); font-weight: 600; font-size: 15px; }

/* Chat */
.chat-reihe { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.chat-spalte { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.verlauf { background: var(--hell); border: 1px solid var(--linie); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ich { align-self: flex-end; max-width: 78%; background: var(--text2); color: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ki-reihe { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.ki { background: var(--papier); border: 1px solid var(--rand); border-radius: 16px 16px 16px 4px; padding: 12px 16px; line-height: 1.5; display: flex; flex-direction: column; gap: 12px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ki.breit { flex: 1; white-space: normal; }
.vorschlaege { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 42px; }
.treffer { border: 1px solid var(--linie); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--weiss); white-space: normal; }
.treffer-neu { background: var(--info-zart); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; white-space: normal; }
.tippt { color: var(--leise); font-style: italic; }
.eingabe { background: var(--papier); border: 1px solid var(--rand); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 12px; display: flex; gap: 10px; align-items: flex-end; }
.eingabe textarea { flex: 1; min-width: 0; resize: none; }
.senden { flex: none; width: 48px; height: 48px; border: 0; border-radius: 8px; background: var(--cta); color: #fff; box-shadow: inset 0 -3px 0 var(--cta-kante), 0 2px 6px rgba(0,0,0,.2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.senden:hover { background: var(--cta-dunkel); }
.senden[disabled] { background: #8A8580; box-shadow: none; cursor: wait; }
.verstanden dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.verstanden dt { font-size: 14px; font-weight: 600; color: var(--leise); }
.verstanden dd { margin: 0; font-size: 15px; line-height: 1.45; }
.verstanden .offen { color: var(--leise); font-style: italic; }
.zf-liste { margin: 0; padding-left: 20px; line-height: 1.6; }
.bewertung { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-left: 42px; }
.daumen { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss); color: var(--text2); font: 500 15px "Outfit", sans-serif; cursor: pointer; }
.daumen[aria-pressed="true"] { background: var(--text2); color: #fff; }

/* Verwaltung */
.tabelle-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 14px; font-weight: 600; color: var(--text2); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linie); white-space: nowrap; background: var(--hell); }
td { font-size: 15px; line-height: 1.45; padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.zahl-rechts, th.zahl-rechts { text-align: right; font-variant-numeric: tabular-nums; }
td.aktionen { text-align: right; white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; color: var(--text2); white-space: nowrap; }
.punkt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.punkt::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.punkt.aktiv { color: var(--gruen-text); } .punkt.eingeladen { color: var(--info-text); } .punkt.widerrufen { color: var(--leise); }
.tabelle-breit { min-width: 900px; }
.gruppen { flex: 1 1 340px; min-width: 0; }
.gruppe-knopf { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.gruppe-knopf:hover { background: var(--hell); color: var(--text); }
.gruppe-knopf[aria-current="true"] { background: var(--amber-zart); box-shadow: inset 4px 0 0 var(--marke); }
.gruppe-knopf:last-child { border-bottom: 0; }
.gruppe-titel { font-size: 16px; font-weight: 600; }
.idee-box { border: 1px solid var(--linie); border-radius: 8px; }
.idee-box > div { padding: 14px 16px; border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 6px; }
.idee-box > div:last-child { border-bottom: 0; }
details summary { cursor: pointer; color: var(--cta-dunkel); font-size: 15px; font-weight: 500; min-height: 32px; }
.label-chip { background: var(--hell); border: 1px solid var(--linie); font-size: 14px; padding: 3px 10px; border-radius: 999px; }
.link-feld { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: var(--hell); padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.trenner { border-top: 1px solid var(--linie); padding-top: 12px; }

@media (max-width: 600px) {
  .seite { padding: 24px 16px 48px; gap: 36px; }
  .kopf-innen { padding: 10px 16px; }
  .ich { max-width: 90%; }
  .vorschlaege, .bewertung { padding-left: 0; }
  .karte { padding: 18px; }
}
