/* ============ Unser Kochbuch — Glas, wie Anker ============

   Gleiche Bauweise wie Anker: hinter allem ein weicher Farbnebel (Salbei,
   Sand, ein Hauch Tomate), darüber Karten aus Milchglas, unten eine
   schwebende Leiste. Schrift und Knöpfe sind größer als in Anker — das
   Kochbuch soll auch ohne Lesebrille am Herd funktionieren.
*/
:root {
  --bg: #EDEFE9;
  --mesh-1: rgba(72, 126, 101, .38);
  --mesh-2: rgba(226, 180, 95, .34);
  --mesh-3: rgba(214, 120, 88, .20);
  --karte: rgba(255, 255, 255, .64);
  --karte-fest: #FBFBF9;
  --karte-2: rgba(32, 48, 41, .055);
  --linie: rgba(32, 48, 41, .12);
  --glas-kante: rgba(255, 255, 255, .85);
  --glas-innen: inset 0 1px 0 rgba(255, 255, 255, .95);
  --glas-blur: blur(22px) saturate(180%);
  --text: #1B2A23;
  --leise: #55645D;
  --gruen: #2E6B54;
  --gruen-dunkel: #214C3B;
  --gruen-hell: rgba(46, 107, 84, .13);
  --auf-gruen: #fff;
  --akzent-flaeche: linear-gradient(135deg, #2E6B54, #357C62);
  --sand: #E9C46A;
  --sand-text: #7E5A12;
  --gefahr: #B4544A;
  --gefahr-flaeche: rgba(180, 84, 74, .10);
  --warn-bg: rgba(233, 196, 106, .26);
  --warn-text: #6E4A15;
  --radius: 22px;
  --radius-gross: 28px;
  --schatten: 0 1px 2px rgba(27, 42, 35, .05), 0 14px 34px -16px rgba(27, 42, 35, .34);
  --tipp-hoehe: 54px;
  color-scheme: light;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --karte: var(--karte-fest); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --karte: var(--karte-fest); }
  body::before { opacity: .4; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(115vw 62vh at 6% -8%, var(--mesh-1), transparent 70%),
    radial-gradient(105vw 58vh at 100% 12%, var(--mesh-2), transparent 72%),
    radial-gradient(125vw 66vh at 40% 108%, var(--mesh-3), transparent 70%);
}

.seite {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 18px calc(130px + env(safe-area-inset-bottom));
}
.seite.breit { max-width: 1120px; }

h1 { font-size: 32px; font-weight: 700; margin: 2px 0 6px; letter-spacing: -.03em; line-height: 1.14; }
h2 { font-size: 21px; font-weight: 680; margin: 0 0 12px; letter-spacing: -.022em; line-height: 1.25; }
h3 { font-size: 18px; font-weight: 680; margin: 0 0 6px; letter-spacing: -.02em; }
p { margin: 0 0 10px; }
a { color: var(--gruen); }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; border-radius: 10px; }

.unsichtbar {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.leise { color: var(--leise); font-size: 15.5px; }
.einleitung { color: var(--leise); font-size: 17px; max-width: 36em; margin-bottom: 18px; }
.nur-drucken { display: none; }

/* Kleine, gesperrte Überschrift über dem Titel — wie das Datum in Anker */
.vorzeile {
  margin: 0 0 2px; font-size: 13px; font-weight: 650;
  letter-spacing: .085em; text-transform: uppercase; color: var(--leise);
}

/* ---------- Karten ---------- */
.karte {
  position: relative;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-top-color: var(--glas-kante);
  border-radius: var(--radius);
  box-shadow: var(--schatten), var(--glas-innen);
  -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur);
  padding: 20px;
  margin-bottom: 16px;
}
.karte.schmal { max-width: 420px; margin: 10vh auto 0; padding: 30px 24px; border-radius: var(--radius-gross); }
.auth-logo {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: block;
  box-shadow: 0 10px 24px -12px var(--gruen);
}
.schlicht h1 { text-align: center; }
.schlicht .einleitung { text-align: center; }

.zurueck {
  color: var(--gruen); font-size: 16px; font-weight: 600;
  min-height: 48px; display: inline-flex; align-items: center; gap: 6px;
  margin: -10px 0 4px; text-decoration: none;
}
.zurueck:hover { text-decoration: underline; }

/* ---------- Meldungen ---------- */
.flashes { margin-bottom: 14px; }
.flash { padding: 13px 16px; border-radius: 14px; font-size: 16px; font-weight: 550; margin-bottom: 8px; }
.flash-ok { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.flash-warn { background: var(--warn-bg); color: var(--warn-text); }

/* ---------- Knöpfe ---------- */
.knopf {
  font: inherit; font-weight: 650; font-size: 16.5px; letter-spacing: -.015em;
  min-height: var(--tipp-hoehe); padding: 0 20px; border-radius: 16px;
  border: 1px solid var(--linie); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; text-align: center;
  background: var(--karte); color: var(--text);
  box-shadow: var(--glas-innen);
  transition: transform .1s, background .15s;
}
.knopf:hover { background: rgba(255, 255, 255, .85); }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .6; cursor: wait; }
.knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.knopf-haupt {
  background: var(--akzent-flaeche); color: var(--auf-gruen); border-color: transparent;
  box-shadow: 0 8px 22px -12px var(--gruen);
}
.knopf-haupt:hover { background: var(--akzent-flaeche); filter: brightness(1.07); }
.knopf-breit { display: flex; width: 100%; margin-top: 6px; }
.knopf-gross { min-height: 60px; font-size: 18px; padding: 0 28px; }
.knopf-klein { min-height: 44px; font-size: 15px; padding: 0 14px; border-radius: 13px; }
.knopf-gemerkt { background: rgba(233, 196, 106, .28); color: var(--sand-text); border-color: rgba(201, 150, 40, .35); }
.knopf-gemerkt:hover { background: rgba(233, 196, 106, .4); }
.knopf-gemerkt svg { fill: #E0B040; stroke: #B98A1C; }
.knopf-gefahr { background: transparent; color: var(--gefahr); border-color: var(--gefahr); box-shadow: none; }
.knopf-gefahr:hover { background: var(--gefahr-flaeche); }
.knopf-gefahr-leise { background: transparent; color: var(--gefahr); border-color: transparent; box-shadow: none; min-height: 44px; font-size: 15px; padding: 0 12px; }
.knopf-gefahr-leise:hover { background: var(--gefahr-flaeche); }

/* ---------- Formulare ---------- */
.feld { display: block; margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.feld-name { display: block; font-weight: 650; font-size: 17px; margin-bottom: 4px; }
.feld-hilfe { display: block; color: var(--leise); font-size: 15px; margin-bottom: 8px; line-height: 1.45; }
.pflicht { font-weight: 400; color: var(--leise); font-size: 14px; }

input[type=text], input[type=password], input[type=search], textarea {
  width: 100%; font: inherit; font-size: 17.5px; font-weight: 400; color: var(--text);
  min-height: var(--tipp-hoehe); padding: 13px 15px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--linie); border-radius: 14px;
  -webkit-appearance: none; appearance: none;
}
textarea { line-height: 1.6; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gruen); background: var(--karte-fest); outline: 3px solid var(--gruen-hell); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #8A968F; }
input.kurz { max-width: 8em; }

.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.kategoriewahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wahl { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; }
.wahl span {
  display: flex; align-items: center; min-height: var(--tipp-hoehe); padding: 8px 14px;
  border: 1px solid var(--linie); border-radius: 14px; background: rgba(255, 255, 255, .6);
  font-weight: 550; font-size: 16.5px;
}
.wahl input:checked + span { background: var(--akzent-flaeche); color: #fff; border-color: transparent; font-weight: 650; box-shadow: 0 8px 20px -12px var(--gruen); }
.wahl input:focus-visible + span { outline: 3px solid var(--gruen); outline-offset: 2px; }

.fotowahl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foto-vorschau { width: 200px; height: 150px; object-fit: cover; border-radius: 16px; box-shadow: var(--schatten); }
.foto-knopf { cursor: pointer; }
.ankreuzen { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-size: 16px; }
.ankreuzen input { width: 22px; height: 22px; accent-color: var(--gefahr); }

.speicherleiste {
  position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 5;
  margin-top: 8px;
}
.speicherleiste .knopf { width: 100%; }

/* ---------- Übersicht ---------- */
.suchkopf { margin-bottom: 22px; }
.suche { display: flex; gap: 10px; max-width: 720px; margin-top: 12px; }
.suche-feld { position: relative; flex: 1; }
.suche-feld svg {
  position: absolute; left: 15px; top: 50%; width: 21px; height: 21px; margin-top: -10.5px;
  fill: none; stroke: var(--leise); stroke-width: 2; stroke-linecap: round; pointer-events: none; z-index: 1;
}
.suche-feld input { padding-left: 46px; background: var(--karte); box-shadow: var(--schatten); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); }

.kategorien { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--karte); border: 1px solid var(--linie);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15.5px;
  -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur);
}
.chip:hover { background: rgba(255, 255, 255, .85); }
.chip.aktiv { background: var(--akzent-flaeche); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -12px var(--gruen); }
.chip-zahl { font-size: 13px; color: var(--leise); font-weight: 600; }
.chip.aktiv .chip-zahl { color: rgba(255, 255, 255, .8); }
.filterhinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--leise); font-size: 16px; }

.raster {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.rezeptkarte {
  display: flex; flex-direction: column; height: 100%;
  background: var(--karte); color: var(--text); text-decoration: none;
  border: 1px solid var(--linie); border-top-color: var(--glas-kante);
  border-radius: var(--radius);
  box-shadow: var(--schatten), var(--glas-innen);
  -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rezeptkarte:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(27,42,35,.05), 0 22px 40px -18px rgba(27,42,35,.42), var(--glas-innen); }
.rezeptkarte:active { transform: scale(.985); }
.karte-bild { position: relative; display: block; aspect-ratio: 4 / 3; margin: 6px 6px 0; border-radius: 17px; overflow: hidden; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.platzhalter {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    radial-gradient(80% 90% at 15% 10%, rgba(72, 126, 101, .30), transparent 70%),
    radial-gradient(80% 90% at 95% 95%, rgba(226, 180, 95, .38), transparent 70%),
    rgba(255, 255, 255, .5);
}
.platzhalter svg { width: 54px; height: 54px; fill: none; stroke: rgba(33, 76, 59, .45); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gemerkt-marke {
  position: absolute; top: 9px; right: 9px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .88); color: var(--sand-text); font-weight: 650; font-size: 13.5px;
  padding: 4px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.karte-text { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 16px; }
.karte-titel { font-size: 19px; font-weight: 680; letter-spacing: -.02em; line-height: 1.25; }
.karte-info { color: var(--leise); font-size: 15px; }
.karte-autor { color: var(--gruen); font-size: 14.5px; font-weight: 600; }

.leer { text-align: center; padding: 40px 24px; max-width: 560px; margin: 10px auto 0; }
.leer p { color: var(--leise); margin-bottom: 20px; }

/* ---------- Rezept ---------- */
.rezept-bild { margin: 0 0 18px; }
.rezept-bild img {
  display: block; width: 100%; max-height: 60vh; object-fit: cover;
  border-radius: var(--radius-gross); box-shadow: var(--schatten);
}
.rezept-kopf { margin-bottom: 14px; }
.rezept-kopf h1 { font-size: clamp(30px, 6vw, 40px); margin-bottom: 8px; }
.rezept-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.rezept-meta li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: var(--karte); border: 1px solid var(--linie); font-size: 15px; font-weight: 550;
}
.rezept-meta svg { width: 17px; height: 17px; fill: none; stroke: var(--gruen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rezept-meta a { text-decoration: none; }

.aktionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 10px; }
.aktionen form { margin: 0; display: flex; }
.aktionen form .knopf, .aktionen .knopf { width: 100%; }
.kochmodus-hinweis { color: var(--gruen); font-weight: 600; font-size: 15.5px; }

.rezept-spalten { display: grid; gap: 0; margin-top: 8px; }

.portionen {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--karte-2); border-radius: 999px; padding: 5px; margin-bottom: 12px;
}
.portionen output { font-size: 17px; text-align: center; }
.portionen output b { font-size: 22px; font-weight: 700; }
.rund {
  width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0;
  background: var(--akzent-flaeche); color: #fff; cursor: pointer;
  font: 500 28px/1 -apple-system, system-ui, sans-serif;
  box-shadow: 0 6px 16px -8px var(--gruen);
}
.rund:active { transform: scale(.94); }
.abhak-hinweis { color: var(--leise); font-size: 14.5px; margin-bottom: 2px; }

.zutatenliste { list-style: none; margin: 0; padding: 0; }
.zutatenliste li { border-bottom: 1px solid var(--linie); }
.zutatenliste li:last-child { border-bottom: 0; }
.zutatenliste label { display: flex; align-items: flex-start; gap: 13px; padding: 11px 0; min-height: 50px; cursor: pointer; font-size: 17.5px; }
.zutatenliste input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 27px; height: 27px; border: 2px solid rgba(32, 48, 41, .28); border-radius: 50%;
  background: rgba(255, 255, 255, .6); display: grid; place-content: center; cursor: pointer;
}
.zutatenliste input::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg) scale(0); }
.zutatenliste input:checked { background: var(--akzent-flaeche); border-color: transparent; }
.zutatenliste input:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.zutatenliste input:checked + span { text-decoration: line-through; color: #8A968F; }
.menge { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .15em; }
.zwischentitel {
  margin: 16px 0 0; padding: 0 0 4px; font-size: 13px; font-weight: 650;
  letter-spacing: .085em; text-transform: uppercase; color: var(--gruen);
}
.zwischentitel:first-child { margin-top: 4px; }

.schritte { list-style: none; counter-reset: schritt; margin: 0; padding: 0; }
.schritte li {
  counter-increment: schritt; position: relative;
  padding: 3px 0 18px 50px; font-size: 18px; line-height: 1.6;
}
.schritte li:last-child { padding-bottom: 4px; }
.schritte li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700; color: var(--gruen-dunkel);
  background: var(--gruen-hell);
}

.tipp {
  margin-top: 4px; padding: 16px 18px; border-radius: 16px;
  background: var(--warn-bg);
}
.tipp h3 { color: var(--warn-text); font-size: 13px; font-weight: 650; letter-spacing: .085em; text-transform: uppercase; }
.tipp p { margin: 0; white-space: pre-line; font-size: 17px; }

.loeschen { margin-top: 24px; text-align: center; }

/* ---------- Familie ---------- */
.mitglieder { list-style: none; margin: 0 0 18px; padding: 0; }
.mitglied-kopf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mitglied-kopf > div { flex: 1; min-width: 170px; }
.mitglied-kopf strong { font-size: 18px; }
.mitglied-kopf .leise { display: block; }
.mitglied-initial {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  background: var(--akzent-flaeche); color: #fff;
}
.mitglied-verwaltung { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linie); }
.mitglied-verwaltung p { width: 100%; margin: 0; font-size: 16px; }
.mitglied-verwaltung form { margin: 0; }
.linkzeile { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; width: 100%; }
.linkzeile input { flex: 1 1 240px; font-size: 15px; }
.linkzeile form { margin: 0; }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; z-index: 40;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: stretch;
  background: var(--karte);
  border: 1px solid var(--linie); border-top-color: var(--glas-kante);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten), var(--glas-innen);
  -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur);
  padding: 6px 5px;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; color: var(--leise);
  padding: 8px 2px; border-radius: 20px; min-width: 0;
}
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.aktiv { color: var(--auf-gruen); background: var(--akzent-flaeche); font-weight: 700; }
.tab-neu:not(.aktiv) { color: var(--gruen); }
.tab-neu svg { stroke-width: 2.2; }

/* ---------- Breite Bildschirme ---------- */
@media (min-width: 900px) {
  .seite.rezeptseite { max-width: 1060px; }
  .rezept-spalten { grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px; align-items: start; }
  .rezept-spalten .zutaten { position: sticky; top: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 17.5px; }
  .seite { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 29px; }
  .feld-reihe { grid-template-columns: 1fr; }
  .karte { padding: 17px; }
  .raster { grid-template-columns: 1fr 1fr; gap: 12px; }
  .karte-text { padding: 10px 12px 13px; }
  .karte-titel { font-size: 17px; }
  .karte-info, .karte-autor { font-size: 14px; }
  .schritte li { padding-left: 46px; }
}
@media (max-width: 360px) {
  .raster { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Drucken ---------- */
@media print {
  body { background: #fff; font-size: 11.5pt; }
  body::before, .tabbar, .nicht-drucken, .zurueck, .flashes { display: none !important; }
  .nur-drucken { display: block; }
  .seite { padding: 0; max-width: none; }
  .karte { box-shadow: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; background: none; }
  .rezept-bild img { max-height: 6.5cm; width: auto; box-shadow: none; }
  .rezept-spalten { grid-template-columns: 6.5cm 1fr; gap: 1cm; display: grid; }
  .zutatenliste label { min-height: 0; padding: 3px 0; font-size: 11.5pt; }
  .zutatenliste input { width: 11px; height: 11px; border-width: 1px; }
  .schritte li { padding-left: 34px; font-size: 11.5pt; }
  .schritte li::before { width: 24px; height: 24px; font-size: 10pt; }
}

/* ---------- Farbe je Person ---------- */
/* Die Farbe der Person, die das Rezept eingetragen hat, umrandet die Karte.
   Zwei Linien: innen die Farbe, außen der weiche Schatten der Glaskarte. */
.rezeptkarte { border: 3px solid var(--farbe, var(--linie)); }
.rezeptkarte .karte-autor { color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.punkt { width: 11px; height: 11px; border-radius: 50%; background: var(--farbe); flex: none; display: inline-block; }
.rezept-bild img { outline: 4px solid var(--farbe); outline-offset: -4px; }
.rezept .karte.zutaten, .rezept .karte.zubereitung { border-top: 4px solid var(--farbe); }
.autor-pille { border-color: var(--farbe) !important; }
.autor-pille a { color: var(--text); }

.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.legende-person {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 10px;
  border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15.5px; font-weight: 550;
}
.legende-person:hover { background: var(--karte); }
.legende-person.aktiv { background: var(--karte); box-shadow: inset 0 0 0 2px var(--farbe); font-weight: 650; }

.farbwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.farbknopf {
  display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; font-weight: 550; color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--linie); border-radius: 14px;
}
.farbknopf .punkt { width: 18px; height: 18px; }
.farbknopf.aktiv { border: 3px solid var(--farbe); font-weight: 700; }

/* ---------- Einlesen ---------- */
.import-hinweis {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  background: var(--gruen-hell);
}
.import-hinweis > svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--gruen); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.import-hinweis > span:not(.pfeil) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.import-hinweis strong { font-size: 18px; }
.import-hinweis .pfeil { font-size: 30px; color: var(--gruen); line-height: 1; }
.gruppenlabel {
  margin: 22px 4px 10px; font-size: 13px; font-weight: 650;
  letter-spacing: .085em; text-transform: uppercase; color: var(--leise);
}
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 200px; padding: 24px; margin-bottom: 14px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(46, 107, 84, .4); border-radius: 18px; background: rgba(255, 255, 255, .45);
}
.dropzone:hover { background: rgba(255, 255, 255, .7); border-color: var(--gruen); }
.dropzone svg { width: 46px; height: 46px; fill: none; stroke: var(--gruen); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-titel { font-size: 19px; font-weight: 680; color: var(--gruen-dunkel); }
.dateiliste { list-style: none; margin: 0 0 14px; padding: 0; font-size: 16px; color: var(--gruen-dunkel); }
.dateiliste li { padding: 3px 0; word-break: break-all; }
.warte { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 16px; }
.kreisel {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  border: 3px solid var(--gruen-hell); border-top-color: var(--gruen);
  animation: drehen 0.9s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

/* „hidden" gilt immer, auch wenn eine Klasse display setzt */
[hidden] { display: none !important; }
