/* Treffpunkt · Grundgestaltung: Farben, Schrift, Knöpfe, Formulare, Meldungen.
   Die Akzentfarbe setzt die Seite je Marke per JS auf :root (--akzent, --akzent-dunkel). */

:root {
  --hg: #f4f2ee;
  --flaeche: #ffffff;
  --flaeche-2: #f7f5f1;
  --flaeche-3: #ebe8e1;
  --rand: #e2ded5;
  --rand-stark: #c9c3b6;
  --text: #22252c;
  --text-2: #5c5f69;
  --text-3: #8b8d95;
  --akzent: #8A6A32;
  --akzent-dunkel: #6D5727;
  --akzent-text: #ffffff;
  --gefahr: #d43b3b;
  --gefahr-dunkel: #b02a2a;
  --ok: #2b9a4a;
  --warn: #e8890c;
  --schatten: 0 12px 40px rgba(20, 22, 30, .14), 0 2px 6px rgba(20, 22, 30, .06);
  --schatten-k: 0 2px 10px rgba(20, 22, 30, .08);
  --radius: 14px;
  --radius-k: 9px;
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hg: #141519; --flaeche: #1d1e24; --flaeche-2: #23252c; --flaeche-3: #2c2e36; --rand: #33353f; --rand-stark: #4a4d59;
    --text: #eeeef2; --text-2: #aeb0bb; --text-3: #7e808c;
    --schatten: 0 12px 40px rgba(0, 0, 0, .5); --schatten-k: 0 2px 10px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --hg: #141519; --flaeche: #1d1e24; --flaeche-2: #23252c; --flaeche-3: #2c2e36; --rand: #33353f; --rand-stark: #4a4d59;
  --text: #eeeef2; --text-2: #aeb0bb; --text-3: #7e808c;
  --schatten: 0 12px 40px rgba(0, 0, 0, .5); --schatten-k: 0 2px 10px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--hg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .8em; }
a { color: var(--akzent); }
[hidden] { display: none !important; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--rand-stark); border-radius: var(--radius-k);
  background: var(--flaeche); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { background: var(--flaeche-2); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf.haupt:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf.gefahr { background: var(--gefahr); border-color: var(--gefahr); color: #fff; }
.knopf.gefahr:hover { background: var(--gefahr-dunkel); }
.knopf.leise { background: transparent; border-color: transparent; }
.knopf.leise:hover { background: var(--flaeche-3); }
.knopf.gross { min-height: 48px; padding: 0 22px; font-size: 1.05rem; }
.knopf svg { width: 20px; height: 20px; flex: none; }

/* Formulare */
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; color: var(--text-2); }
input[type="text"], input[type="password"], input[type="datetime-local"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--rand-stark); border-radius: var(--radius-k);
  background: var(--flaeche); color: var(--text); font: inherit; font-size: 16px; /* 16px: iOS zoomt sonst */
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .knopf:focus-visible {
  outline: 2px solid var(--akzent); outline-offset: 2px;
}
.feld { margin-bottom: 14px; }
.schalter { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); cursor: pointer; }
.schalter input { width: 18px; height: 18px; accent-color: var(--akzent); }

/* Karten, Meldungen */
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten-k); padding: 20px; }
.meldung { padding: 10px 14px; border-radius: var(--radius-k); background: var(--flaeche-3); color: var(--text); }
.meldung.fehler { background: color-mix(in srgb, var(--gefahr) 14%, var(--flaeche)); color: var(--text); border: 1px solid color-mix(in srgb, var(--gefahr) 40%, transparent); }
.leise-text { color: var(--text-2); font-size: .9rem; }
.klein { font-size: .82rem; color: var(--text-3); }
