/* Gartenplaner – Stylesheet (mobil zuerst, hell/dunkel) */

:root {
  color-scheme: light;
  --bg: #f4f3ec;
  --flaeche: #fcfcfb;
  --flaeche-2: #efeee7;
  --text: #1b1d18;
  --text-2: #4f504a;
  --muted: #6b6a64;
  --linie: #e1e0d9;
  --linie-stark: #c3c2b7;
  --akzent: #2f6b3a;
  --akzent-text: #ffffff;
  --akzent-hell: #e2eee1;
  --fehler: #d03b3b;
  --warnung: #fab219;
  --gut: #0ca30c;
  --gut-text: #006300;
  --schatten: 0 10px 30px rgba(0, 0, 0, 0.18);

  /* Familienfarben (kategoriale Palette, feste Reihenfolge) */
  --serie-1: #2a78d6;
  --serie-2: #eb6834;
  --serie-3: #1baf7a;
  --serie-4: #eda100;
  --serie-5: #e87ba4;
  --serie-6: #008300;
  --serie-7: #6250d6;
  --serie-8: #e34948;
  --serie-grau: #898781;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f110f;
    --flaeche: #1a1a19;
    --flaeche-2: #242422;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #9a998f;
    --linie: #2c2c2a;
    --linie-stark: #44443f;
    --akzent: #6fbf73;
    --akzent-text: #0c1a0d;
    --akzent-hell: #1e2c1f;
    --gut-text: #3ec43e;
    --schatten: 0 10px 30px rgba(0, 0, 0, 0.6);

    --serie-1: #3987e5;
    --serie-2: #d95926;
    --serie-3: #199e70;
    --serie-4: #c98500;
    --serie-5: #d55181;
    --serie-6: #008300;
    --serie-7: #9085e9;
    --serie-8: #e66767;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: 1.35rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
h3 { font-size: 0.95rem; margin: 1rem 0 0.4rem; }
h4 { font-size: 0.85rem; margin: 0.6rem 0 0.3rem; color: var(--text-2); }
p { margin: 0.4rem 0; }
a { color: var(--akzent); }

:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ------------------------------------------------------------ Kopf & Navigation */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 16px;
  padding-top: calc(0.6rem + env(safe-area-inset-top));
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--akzent);
  text-decoration: none;
  white-space: nowrap;
}
.marke img { width: 26px; height: 26px; }

.kopf-nav { display: none; gap: 0.25rem; flex-wrap: wrap; }
.kopf-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.kopf-nav a:hover { background: var(--flaeche-2); }
.kopf-nav a[aria-current] { background: var(--akzent-hell); color: var(--akzent); font-weight: 700; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  font-size: 0.7rem;
  color: var(--text-2);
  text-decoration: none;
}
.tabbar a[aria-current] { color: var(--akzent); font-weight: 700; }

body:not(.angemeldet) .tabbar,
body:not(.angemeldet) .kopf-nav { display: none; }
body:not(.angemeldet) { padding-bottom: 0; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-gross { width: 30px; height: 30px; color: var(--akzent); }

@media (min-width: 760px) {
  body { padding-bottom: 2rem; }
  .kopf-nav { display: flex; }
  .tabbar { display: none; }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* ------------------------------------------------------------ Bausteine */

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ansicht-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.blaettern { display: flex; align-items: center; gap: 2px; }
.blaettern h1 { padding: 0 4px; }

.abschnitt-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.abschnitt-kopf h2 { margin: 0; }

.knopf-reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--linie-stark);
  border-radius: 8px;
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--flaeche-2); }
.knopf .icon { width: 18px; height: 18px; }
.knopf-primaer { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf-primaer:hover { background: var(--akzent); filter: brightness(1.08); }
.knopf-gefahr { color: var(--fehler); border-color: var(--fehler); }
.knopf:disabled { opacity: 0.6; cursor: progress; }

.knopf-symbol {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 1.3rem;
  text-decoration: none;
  cursor: pointer;
}
.knopf-symbol:hover { background: var(--flaeche-2); }
.knopf-symbol:disabled { opacity: 0.35; cursor: default; }

.knopf-klein {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--linie-stark);
  border-radius: 6px;
  background: var(--flaeche);
  color: var(--text-2);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}
.knopf-klein:hover { background: var(--flaeche-2); }

.link {
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--linie-stark);
  text-underline-offset: 3px;
  cursor: pointer;
}

.rechts { margin-left: auto; }

.abzeichen {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--flaeche-2);
  color: var(--text-2);
  font-size: 0.75rem;
  white-space: nowrap;
}
.abzeichen-zeile { display: flex; flex-wrap: wrap; gap: 4px; }

.meta { color: var(--text-2); font-size: 0.85rem; }
.hilfe { color: var(--muted); font-size: 0.82rem; }
.einleitung { color: var(--text-2); margin: 0.25rem 0 1rem; }
.leer, .laden { color: var(--muted); }
.ok { color: var(--gut-text); font-weight: 600; }
.fusszeile { color: var(--muted); font-size: 0.8rem; text-align: center; }
.formular-fehler { color: var(--fehler); font-weight: 600; }
.fehlerseite { color: var(--fehler); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px 1px 6px;
  border-left: 4px solid var(--c, var(--serie-grau));
  border-radius: 4px;
  background: var(--flaeche-2);
  background: color-mix(in srgb, var(--c, var(--serie-grau)) 22%, var(--flaeche));
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: nowrap;
}
.chip-knopf {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.chip-knopf:hover .chip { filter: brightness(0.96); }
.naehrstoff { color: var(--text-2); font-size: 0.68rem; font-weight: 700; margin-left: 2px; }
.chip-fehler { outline: 2px solid var(--fehler); outline-offset: -1px; }
.chip-hinweis { outline: 1px dashed var(--text-2); outline-offset: -1px; }

.legende { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.legende-titel { font-size: 0.85rem; color: var(--text-2); margin: 18px 0 0; }

/* Status-Symbole: immer mit Text daneben */
.stufe {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.stufe-fehler { background: var(--fehler); color: #fff; }
.stufe-warnung { background: var(--warnung); color: #1b1d18; }
.stufe-hinweis { background: var(--text-2); color: var(--flaeche); font-style: italic; font-family: Georgia, serif; }
.stufe-gut { background: var(--gut); color: #fff; }

/* ------------------------------------------------------------ Befunde */

.befund-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 10px;
}
.befund-details > summary::-webkit-details-marker { display: none; }
.befund-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.befund-details > summary::after { content: '▾'; color: var(--muted); }
.befund-details[open] > summary::after { content: '▴'; }
.befund-details[open] { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 0 14px 10px; }
.befund-details[open] > summary { border: none; padding: 10px 0; }
.befund-details .gute > summary { cursor: pointer; color: var(--text-2); font-size: 0.9rem; margin-top: 6px; }

.zusammenfassung { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.zaehler { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; }

.befunde { list-style: none; margin: 4px 0; padding: 0; }
.befund {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--linie);
}
.befund:first-child { border-top: none; }
.befund .stufe { margin-top: 2px; }
.befund { flex-wrap: wrap; }
.befund-text { flex: 1 1 220px; font-size: 0.9rem; color: var(--text-2); }
.befund .knopf-klein { margin-left: 28px; }
@media (min-width: 560px) { .befund .knopf-klein { margin-left: 0; } }
.befund-text strong, .befund-text .link { color: var(--text); }
.befund.quittiert { opacity: 0.55; }
.beet .befunde { margin-top: 6px; }

/* ------------------------------------------------------------ Beetplan / Zeitleiste */

.beet-kopf h2 { margin: 0; }
.beet-kopf p { margin: 2px 0; }

.zeitleiste { display: grid; gap: 4px; margin-top: 10px; --name-breite: 4.6rem; }
.zl-zeile {
  display: grid;
  grid-template-columns: var(--name-breite) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
.zl-monate {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}
.zl-monate .jetzt { color: var(--akzent); font-weight: 800; }

.zl-name {
  min-height: 30px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.zl-kopf .zl-name { min-height: 0; cursor: default; }

.zl-spur {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 30px;
  row-gap: 2px;
  min-height: 30px;
  border-radius: 6px;
  background-color: var(--flaeche-2);
  background-image: linear-gradient(to right, var(--linie) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  cursor: copy;
}
.zl-jetzt { background: var(--akzent-hell); border-radius: 4px; }

.balken {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 2px 1px;
  padding: 0 6px 0 5px;
  border: none;
  border-left: 4px solid var(--c);
  border-radius: 4px;
  background: var(--flaeche);
  background: color-mix(in srgb, var(--c) 28%, var(--flaeche));
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.balken:hover { filter: brightness(0.95); }
.balken-text { overflow: hidden; text-overflow: ellipsis; }
.balken.weiter-links { border-left-style: dotted; }
.balken.weiter-rechts { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.balken.weiter-rechts::after { content: '›'; margin-left: auto; color: var(--text-2); padding-left: 2px; }
.balken.hat-fehler { box-shadow: inset 0 0 0 2px var(--fehler); }
.balken.hat-warnung { box-shadow: inset 0 0 0 2px var(--warnung); }
.balken .stufe { width: 15px; height: 15px; font-size: 9px; }

.notiz > summary { cursor: pointer; color: var(--text-2); font-size: 0.85rem; margin-top: 10px; }
.notiz p { color: var(--text-2); font-size: 0.9rem; }

@media (min-width: 760px) {
  .zeitleiste { --name-breite: 7rem; }
  .zl-name { font-size: 0.85rem; }
  .balken { font-size: 0.8rem; }
}

/* ------------------------------------------------------------ Fruchtfolge-Matrix */

.tabelle-scroll {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
}
.matrix { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; }
.matrix th, .matrix td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
  text-align: left;
}
.matrix thead th { font-size: 0.85rem; color: var(--text-2); }
.matrix thead a { color: inherit; font-weight: 700; }
.matrix .spalte-flaeche {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--flaeche);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
}
.matrix .beet-zeile th {
  position: sticky;
  left: 0;
  background: var(--flaeche-2);
  font-weight: 700;
  color: var(--text);
}
.matrix .jetzt { background: var(--akzent-hell); }
.matrix .spalte-flaeche.einzeln { font-weight: 700; color: var(--text); white-space: normal; max-width: 7rem; }
.matrix td .chip-knopf { display: block; margin-bottom: 4px; }

/* ------------------------------------------------------------ Kalender */

.aufgabenliste { list-style: none; margin: 0; padding: 0; }
.aufgabe {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid var(--linie);
}
.aufgabe:first-child { border-top: none; }
.aufgabe input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--akzent); }
.aufgabe label { flex: 1; display: flex; flex-direction: column; gap: 1px; cursor: pointer; }
.aufgabe-titel { font-weight: 600; }
.aufgabe-ort { font-size: 0.8rem; color: var(--akzent); font-weight: 600; }
.aufgabe-text { font-size: 0.85rem; color: var(--text-2); }
.aufgabe.erledigt .aufgabe-titel { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.aufgabe.erledigt .aufgabe-ort, .aufgabe.erledigt .aufgabe-text { color: var(--muted); }
.moeglich h3 { margin-top: 0.6rem; }

/* ------------------------------------------------------------ Formulare */

.formular { display: grid; gap: 12px; }
.formular.schmal { max-width: 420px; }
.feld { display: grid; gap: 4px; align-content: start; }
.feld > label, .beschriftung { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }

input, select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--linie-stark);
  border-radius: 8px;
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea { resize: vertical; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--akzent); }
input[type="file"] { padding: 6px; }
input[type="search"] { max-width: 420px; }

.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 0.92rem; }
.zwei-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.drei-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.monat-jahr { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: 6px; }

@media (max-width: 480px) {
  .zwei-spalten:not(.paar), .drei-spalten:not(.paar) { grid-template-columns: minmax(0, 1fr); }
}

.monatsleiste { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.monat-knopf {
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--linie-stark);
  border-radius: 6px;
  background: var(--flaeche);
  color: var(--text-2);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.monat-knopf[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 700; }

.weitere-flaechen > summary { cursor: pointer; color: var(--text-2); font-size: 0.9rem; }
.auswahl-liste {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--linie);
  border-radius: 8px;
}

.kultur-info {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--flaeche-2);
  font-size: 0.88rem;
}
.kultur-info dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; }
.kultur-info dt { color: var(--text-2); }
.kultur-info dd { margin: 0; }
.kultur-info p { color: var(--text-2); margin: 8px 0 0; }
.pruef-bereich h3 { margin-top: 0; }

.pflege-zeile { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 6px; margin-bottom: 6px; }
.flaeche-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem auto auto auto; gap: 4px; margin-bottom: 6px; }

.nachbar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 2px 1px 10px;
  border: 1.5px solid;
  border-radius: 999px;
  font-size: 0.85rem;
}
.nachbar-gut { border-color: var(--gut); }
.nachbar-schlecht { border-color: var(--fehler); border-style: dashed; }
.chip-weg {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
}
.nachbar-neu { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1fr) auto; gap: 6px; margin-top: 10px; }
@media (max-width: 560px) {
  .nachbar-neu { grid-template-columns: minmax(0, 1fr) 7.5rem; }
}

.farbwahl { display: flex; flex-wrap: wrap; gap: 8px; }
.farbe {
  width: 32px;
  height: 32px;
  border: 2px solid var(--flaeche);
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
}
.farbe[aria-checked="true"] { outline: 3px solid var(--text); outline-offset: 1px; }

/* ------------------------------------------------------------ Dialoge */

dialog.dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: none;
  border-radius: 14px;
  background: var(--flaeche);
  color: var(--text);
  box-shadow: var(--schatten);
}
dialog.dialog[open] { display: flex; flex-direction: column; }
dialog.dialog-breit { width: min(760px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }

.dialog-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--linie);
}
.dialog-kopf h2 { margin: 0; font-size: 1.1rem; }
.dialog-inhalt { flex: 1; padding: 16px; overflow: auto; }
.dialog-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
}
.dialog-fuss .links { margin-right: auto; }
.dialog-fuss:empty { display: none; }

@media (max-width: 560px) {
  dialog.dialog, dialog.dialog-breit {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
}

/* ------------------------------------------------------------ Meldungen */

#meldungen {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  gap: 6px;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
@media (min-width: 760px) { #meldungen { bottom: 24px; } }
.meldung {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--flaeche);
  box-shadow: var(--schatten);
  font-size: 0.92rem;
  transition: opacity 0.4s;
}
.meldung-fehler { background: var(--fehler); color: #fff; }
.meldung.weg { opacity: 0; }

/* ------------------------------------------------------------ Pflanzen */

.suche { margin-bottom: 6px; }
.legende-zeile { margin: 0 0 10px; }
.kultur-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kultur-karte {
  display: block;
  width: 100%;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.kultur-karte:hover { border-color: var(--linie-stark); }
.kultur-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.streifen-zeile { display: grid; grid-template-columns: 1.4rem repeat(12, minmax(0, 1fr)); gap: 2px; align-items: center; margin-bottom: 2px; }
.streifen-name { color: var(--muted); font-size: 0.68rem; font-weight: 700; }
.streifen-zelle { height: 8px; border-radius: 2px; background: var(--linie); }
.streifen-zelle.an { background: var(--akzent); }

table.einfach { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.einfach th, table.einfach td { padding: 6px 8px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
table.einfach thead th { color: var(--text-2); font-size: 0.82rem; }
.familien .chip { white-space: normal; }
.familien .meta { margin-top: 2px; }
.zahl { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------ Garten */

.eigenschaften { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 6px 0; font-size: 0.9rem; }
.eigenschaften dt { color: var(--text-2); }
.eigenschaften dd { margin: 0; }
.notiz-text { color: var(--text-2); font-size: 0.9rem; }

/* ------------------------------------------------------------ Tagebuch */

.filterleiste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.eintrag-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eintrag-kopf time { font-weight: 700; }
.eintrag-text { white-space: pre-wrap; margin-top: 8px; }
.eintrag-ernte .abzeichen { border-color: var(--gut); }
.eintrag-problem .abzeichen { border-color: var(--fehler); }
.fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.foto { position: relative; padding: 0; border: none; background: none; cursor: pointer; }
.foto img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.foto-weg {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}
.foto-gross { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }

/* ------------------------------------------------------------ Mehr & Anmeldung */

.mehr-liste { display: grid; gap: 10px; }
.mehr-eintrag { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; margin: 0; }
.mehr-eintrag span { display: grid; }
.mehr-eintrag small { color: var(--text-2); }

.anmeldung { max-width: 420px; margin: 8vh auto; display: grid; gap: 12px; }
.anmeldung h1 { color: var(--akzent); }

.liste { padding-left: 1.2rem; color: var(--text-2); font-size: 0.92rem; }
.liste li { margin-bottom: 4px; }

/* ------------------------------------------------------------ Boden & Düngung */

.boden { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--linie); }
.boden h3 { margin: 0; }
.boden-zeile { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-2); }
.boden-zeile.leer { color: var(--muted); }
.stufe-leer { display: inline-block; flex: none; width: 18px; }
.proben-liste { padding-left: 1.2rem; font-size: 0.9rem; color: var(--text-2); }
.hilfe-details > summary { cursor: pointer; color: var(--text-2); font-size: 0.9rem; }
.duengung { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--linie); font-size: 0.9rem; }
.duengung h3 { margin-top: 0; }
.duengung ul { margin: 4px 0; padding-left: 1.2rem; }
.duengung .meta { margin: 4px 0 0; }
