/* Gemeinschaftsgarten - Aussehen. Gilt fuer seite.html und hilfe.html. */

:root {
  --gruen: #2f6b2f;
  --gruen-dunkel: #1f4d1f;
  --gruen-hell: #e7f2dd;
  --linie: #cfdcc2;
  --creme: #fbf7ee;
  --tinte: #1f2a1c;
  --grau: #55604f;
  --erde: #8a5a2b;
  --wasser: #2a78b8;
  --wasser-hell: #e3f1fb;
  --ernte: #a85a14;
  --rot: #b3261e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 22px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--creme);
  color: var(--tinte);
  line-height: 1.45;
}
body.fenster-offen { overflow: hidden; }
a { color: #1d5f95; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: .45rem 0; }
ul, ol { margin: .45rem 0; padding-left: 1.2rem; }
small { font-size: .8em; color: var(--grau); }

/* ----- Kopf ----- */
.kopf { background: linear-gradient(135deg, #2f6b2f, #4a8a35); color: #fff; }
.kopf-innen { max-width: 46rem; margin: 0 auto; padding: .7rem .8rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.kopf-text { min-width: 0; }
.kopf h1 { font-size: 21px; font-size: clamp(18px, 5.6vw, 1.3rem); overflow-wrap: break-word; }
.kopf p { margin: .1rem 0 0; font-size: .82rem; opacity: .92; }
.kopf-hilfe { flex: none; background: #fff; color: var(--gruen-dunkel); font-weight: 700; text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-size: 18px; font-size: clamp(16px, 4.8vw, .9rem); }
.kopf-hilfe:hover, .kopf-hilfe:focus { background: #f2f8ea; }

.garten { max-width: 46rem; margin: 0 auto; padding: .6rem .6rem 1.4rem; }
.lade { text-align: center; color: var(--grau); padding: 2rem 0; }

/* ----- Karten und Knoepfe ----- */
.karte { background: #fff; border: 2px solid var(--linie); border-radius: 16px; padding: .75rem .85rem; margin: .65rem 0; }
.karte h2 { font-size: 1.2rem; color: var(--gruen-dunkel); }
.karte h3 { font-size: 1.02rem; color: var(--gruen-dunkel); }
.abschnitt { font-size: 1.02rem; color: var(--gruen-dunkel); margin: 1rem .2rem .2rem; }
.still { color: var(--grau); }
.klein { font-size: .85rem; color: var(--grau); }
.mittig { text-align: center; }
.hinweis { background: #fff8e1; border-left: 6px solid #e0a100; padding: .5rem .7rem; border-radius: 8px; }
.zahlen { background: var(--gruen-hell); padding: .5rem .7rem; border-radius: 10px; }
.punkte li { margin: .35rem 0; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  min-height: 2.5rem; padding: .55rem 1rem; border-radius: 12px; border: 2px solid transparent;
  background: var(--gruen); color: #fff; cursor: pointer;
}
.knopf:hover { filter: brightness(1.08); }
.knopf:focus-visible, .feld:focus-visible, .reiter-knopf:focus-visible, .saat-knopf:focus-visible, .filter-knopf:focus-visible, .als-link:focus-visible, summary:focus-visible, .kopf-hilfe:focus-visible {
  outline: 4px solid #ffbf47; outline-offset: 2px;
}
.knopf[disabled] { opacity: .55; cursor: default; }
.knopf-gross { font-size: 1.1rem; padding: .8rem 1.4rem; }
.knopf-klein { font-size: .82rem; min-height: 2.1rem; padding: .35rem .7rem; }
.knopf-wasser { background: var(--wasser); }
.knopf-ernte { background: var(--ernte); }
.knopf-duenger { background: #5b7f1f; }
.knopf-hell { background: var(--gruen-hell); color: var(--gruen-dunkel); border-color: #b9d3a4; }
.knopf-rot { background: var(--rot); }
.knopf-gruss { background: #fff; color: var(--tinte); border-color: #e0566a; }
/* Zeichen auf farbigen Knoepfen stehen auf einem weissen Kreis, sonst verschwinden sie (blauer Tropfen auf blauem Knopf) */
.knopf .zeichen { background: #fff; border-radius: 50%; padding: .12em; width: 1.5em; height: 1.5em; }
.knopf-hell .zeichen, .knopf-gruss .zeichen { background: none; padding: 0; width: 1.25em; height: 1.25em; }
.als-link { font: inherit; font-size: .85rem; background: none; border: 0; padding: .3rem; color: #1d5f95; text-decoration: underline; cursor: pointer; }
.zeichen { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ----- Meldung: steht im Textfluss dort, wo etwas passiert ist (schwebte frueher und verdeckte Knoepfe) ----- */
.meldung {
  display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; text-align: left;
  background: #f2faea; border: 3px solid var(--gruen); border-radius: 14px; padding: .55rem .6rem .55rem .85rem;
  margin: .65rem 0; font-weight: 600;
}
.meldung-hinweis { border-color: #e0a100; background: #fff8e1; }
.meldung-fehler { border-color: var(--rot); background: #fdecea; }
#fenster-meldung { margin-top: 0; }
.meldung-zu { font: inherit; font-size: 1.3rem; line-height: 1; background: none; border: 0; padding: .3rem .6rem; min-width: 2rem; min-height: 2rem; cursor: pointer; color: var(--grau); flex: none; }

/* ----- Reiter ----- */
.reiter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: .2rem 0 .1rem; }
.reiter-knopf {
  font: inherit; font-weight: 700; font-size: 16px; font-size: clamp(15px, 4.2vw, 1rem); line-height: 1.2;
  padding: .6rem .2rem; min-height: 2.6rem; border-radius: 12px; cursor: pointer;
  background: var(--gruen-hell); color: var(--gruen-dunkel); border: 2px solid #b9d3a4; position: relative;
}
.reiter-knopf.aktiv { background: var(--gruen); color: #fff; border-color: var(--gruen); }
.reiter-marke { display: inline-block; min-width: 1.4em; padding: 0 .3em; border-radius: 999px; background: #d0202e; color: #fff; font-size: .8em; }

/* ----- Mein Beet ----- */
.beet-titel p { margin: .1rem 0 0; color: var(--grau); font-size: .9rem; }
.vorrat { list-style: none; padding: 0; margin: .35rem 0 .1rem; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.vorrat li { display: flex; align-items: center; gap: .35rem; }
.vorrat b { font-size: 1.15rem; }
.stufe-text { font-size: .8rem; color: var(--grau); margin: .15rem 0 0; }
.balken { display: block; width: 100%; height: .7rem; border: 0; border-radius: 999px; overflow: hidden; background: #e3ead9; -webkit-appearance: none; appearance: none; }
.balken::-webkit-progress-bar { background: #e3ead9; border-radius: 999px; }
.balken::-webkit-progress-value { background: #6cb14c; border-radius: 999px; }
.balken::-moz-progress-bar { background: #6cb14c; border-radius: 999px; }
.balken-gross { height: 1.1rem; margin: .5rem 0 .2rem; }

.beet-kopf { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem .9rem; align-items: center; padding-top: .55rem; padding-bottom: .55rem; }
.beet-kopf .balken { margin-top: .3rem; }
@media (min-width: 44em) {
  .beet-kopf { grid-template-columns: auto minmax(0, 1fr); }
  .beet-kopf .balken, .beet-kopf .stufe-text { grid-column: 1 / -1; }
  .beet-kopf .vorrat { justify-content: flex-end; margin: 0; }
}
.heute-satz { margin: .2rem 0 .1rem; }
.heute-satz.fertig { font-weight: 600; color: var(--gruen-dunkel); }
.heute-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.heute-knoepfe .knopf { flex: 1 1 6.4rem; padding-left: .5rem; padding-right: .5rem; }
.heute { list-style: none; padding: 0; margin: .3rem 0 0; }
.heute li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding: .5rem 0; border-top: 2px dashed var(--linie); }
.heute li:first-child { border-top: 0; }
.heute li span { flex: 1 1 12rem; }
.heute .fertig span { font-weight: 600; color: var(--gruen-dunkel); }

.beet {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
  margin: .65rem 0; padding: .5rem; border-radius: 18px;
  background: linear-gradient(#c9e8b0, #a9d68c); border: 3px solid #7fb35f;
}
@media (min-width: 40em) {
  .beet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .beet-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feld {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .1rem;
  font: inherit; color: inherit; text-align: center; min-width: 0;
  background: #fffdf6; border: 2px solid #d9c9a8; border-radius: 14px; padding: .25rem .25rem .5rem;
}
button.feld { cursor: pointer; }
button.feld:hover { border-color: var(--erde); }
.feld-bild { display: block; width: 100%; max-width: 8.2rem; }
.feld-bild svg, .fenster-bild svg, .saat-bild svg, .mini-feld svg { display: block; width: 100%; height: auto; }
.feld-name { font-weight: 700; font-size: .9rem; max-width: 100%; overflow-wrap: break-word; }
.feld-stand { font-size: .76rem; color: var(--grau); }
.feld-pracht { font-size: .76rem; font-weight: 700; }
.pracht-praechtig { color: #8a6100; }
.pracht-gut { color: #2f6b2f; }
.pracht-mickrig { color: #7b7f2a; }
.feld-leer { border-style: dashed; background: #fbf6ea; }
.feld-leer .feld-name { color: var(--grau); font-weight: 600; }
.feld-reif { border-color: #e0a100; box-shadow: 0 0 0 3px #ffe9a8; }
.feld-welk { border-color: #d98a2b; }
.feld .knopf { margin-top: .3rem; }
@keyframes wachsen { 0% { transform: scale(.84); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
.feld-neu .feld-bild { animation: wachsen .7s ease-out; }
@keyframes funkeln { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.funkel { animation: funkeln 2.2s ease-in-out infinite; }
.funkel + .funkel { animation-delay: .7s; }

.marke { display: inline-block; white-space: nowrap; font-size: .72rem; font-weight: 700; line-height: 1.25; padding: .15rem .55rem; border-radius: 999px; margin-top: .2rem; border: 1px solid transparent; }
.marke-durst { background: var(--wasser-hell); color: #174f7d; border-color: #a9cfee; }
.marke-welk { background: #fdebd3; color: #7a4100; border-color: #efc48a; }
.marke-nass { background: #e3f4e3; color: #1f6b2a; border-color: #a8d5b5; }
.marke-reif { background: #fff1c7; color: #6b4500; border-color: #e7c460; }
.marke-gruss { background: #fde8ec; color: #8a1f33; border-color: #f0b3c0; }

.post { list-style: none; padding: 0; margin: .3rem 0 0; }
.post li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; padding: .45rem 0; border-top: 2px dashed var(--linie); }
.post li:first-child { border-top: 0; }
.post li span { flex: 1 1 12rem; }
.post .neu { background: #fffbe8; margin: 0 -.4rem; padding-left: .4rem; padding-right: .4rem; border-radius: 8px; }

.einstell summary { font-weight: 700; cursor: pointer; color: var(--gruen-dunkel); }
.einstell label, .einstell legend { font-weight: 600; }
.einstell input[type="email"] { display: block; width: 100%; max-width: 24rem; font: inherit; padding: .5rem .6rem; margin: .2rem 0 .5rem; border: 2px solid #9db389; border-radius: 10px; }
.einstell fieldset { border: 0; padding: 0; margin: .3rem 0 .6rem; }
.wahl { display: flex; align-items: flex-start; gap: .5rem; padding: .3rem 0; font-weight: 400 !important; }
.wahl input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; }
.mail-stand { font-weight: 600; color: var(--gruen-dunkel); }
.sicher { background: #fdecea; border-radius: 10px; padding: .5rem .7rem; margin-top: .6rem; }

/* ----- Nachbarn ----- */
.kanne { background: var(--wasser-hell); padding: .5rem .7rem; border-radius: 10px; }
.nachbarn { list-style: none; padding: 0; margin: .3rem 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
@media (min-width: 44em) { .nachbarn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nachbar { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.nachbar h4 { font-size: 1.02rem; overflow-wrap: anywhere; }
.nachbar-kopf p { margin: 0; font-size: .82rem; color: var(--grau); }
.nachbar-stand { margin: 0; }
.nachbar .knopf { align-self: flex-start; margin-top: auto; }
.mini { display: flex; flex-wrap: wrap; gap: .15rem; background: linear-gradient(#c9e8b0, #a9d68c); border-radius: 10px; padding: .2rem; }
.mini-feld { width: 12.5%; min-width: 2rem; flex: 0 0 auto; }
.filter { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .5rem; }
.filter-knopf { font: inherit; font-weight: 600; font-size: .88rem; padding: .4rem .8rem; min-height: 2.2rem; border-radius: 999px; border: 2px solid #b9d3a4; background: #fff; color: var(--gruen-dunkel); cursor: pointer; }
.filter-knopf.aktiv { background: var(--gruen); color: #fff; border-color: var(--gruen); }
.gruesse { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ----- Gemeinsam ----- */
.anlage { border: 3px solid #7fb35f; border-radius: 18px; overflow: hidden; margin: .6rem 0; background: #bfe4fb; }
.anlage-bild { display: block; width: 100%; height: auto; }
.projekt-zahl { font-size: 1.05rem; }
.helfer { list-style: none; padding: 0; margin: .3rem 0 0; }
.helfer li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px dashed var(--linie); }
.helfer li:first-child { border-top: 0; }
.helfer li span:first-child { overflow-wrap: anywhere; font-weight: 600; }
.helfer li span:last-child { flex: none; color: var(--grau); }
.fertige { list-style: none; padding: 0; }
.fertige li { padding: .2rem 0; }

/* ----- Fenster zum Feld ----- */
.fenster { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; background: rgba(20, 30, 15, .6); display: flex; align-items: flex-end; justify-content: center; }
.fenster-innen { background: #fff; width: 100%; max-width: 30rem; min-width: 0; max-height: 94vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: .9rem .9rem 1.1rem; outline: none; text-align: center; }
@media (min-width: 40em) {
  .fenster { align-items: center; }
  .fenster-innen { border-radius: 20px; }
}
.fenster-innen h2 { font-size: 1.25rem; color: var(--gruen-dunkel); }
.fenster-bild { width: 9rem; max-width: 55%; margin: 0 auto; background: linear-gradient(#e9f6fd, #dff1d3); border-radius: 16px; }
.fenster-stand { color: var(--grau); margin: .1rem 0 .4rem; }
.fenster-text { text-align: left; }
.fenster-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .6rem 0 .3rem; }
.fenster-knoepfe .knopf { flex: 1 1 9rem; }
.erledigt { display: inline-flex; align-items: center; gap: .35rem; flex: 1 1 9rem; justify-content: center; min-height: 2.5rem; padding: .4rem .8rem; border-radius: 12px; background: #f1f3ee; color: var(--grau); font-weight: 600; }
.fenster-klein { margin: .2rem 0; }
.fenster-zu { width: 100%; margin-top: .6rem; }
.saat { list-style: none; padding: 0; margin: .6rem 0 0; text-align: left; }
.saat li { margin: .35rem 0; }
.saat-knopf, .saat-zu { display: flex; align-items: center; gap: .6rem; width: 100%; font: inherit; color: inherit; text-align: left; border-radius: 14px; padding: .25rem .6rem .25rem .3rem; }
.saat-knopf { background: #f7fbf1; border: 2px solid #b9d3a4; cursor: pointer; }
.saat-knopf:hover { border-color: var(--gruen); background: #eef7e3; }
.saat-zu { background: #f5f5f1; border: 2px dashed #cfcfc6; }
.saat-zu .saat-bild { opacity: .45; }
.saat-zu .saat-name { color: var(--grau); }
.saat-bild { width: 3.3rem; flex: none; }
.saat-text { display: flex; flex-direction: column; min-width: 0; }
.saat-name { font-weight: 700; }
.saat-daten { font-size: .8rem; color: var(--grau); }

.fusszeile { text-align: center; font-size: .85rem; color: var(--grau); margin-top: 1.2rem; }
.teilen { display: inline-block; margin-left: .3rem; color: #128c4a; font-weight: 600; }

/* ----- Hilfeseite ----- */
.hilfe h2 { margin-top: .2rem; }
.hilfe h3 { margin-top: .9rem; }
.hilfe .schritte li { margin: .4rem 0; }
.hilfe table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.hilfe th, .hilfe td { text-align: left; padding: .3rem .4rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.hilfe .zurueck { text-align: center; margin: 1rem 0; }
.hilfe .bildreihe { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.hilfe .bildreihe figure { margin: 0; flex: 1 1 5.5rem; max-width: 8rem; text-align: center; font-size: .78rem; color: var(--grau); background: linear-gradient(#e9f6fd, #dff1d3); border-radius: 12px; padding: .2rem .2rem .4rem; }
.hilfe .bildreihe svg { display: block; width: 100%; height: auto; }

.knopf small { color: inherit; opacity: .9; font-weight: 600; }
@media (max-width: 34em) {
  .garten { padding-left: .4rem; padding-right: .4rem; }
  .karte { padding: .6rem .7rem; }
  .kopf-innen { padding-top: .45rem; padding-bottom: .45rem; }
  .nur-breit { display: none; }
  .kopf-hilfe { padding: .35rem .8rem; }
  .nachbar .marke, .karte .marke { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .feld-neu .feld-bild, .funkel { animation: none; }
}
@media print {
  .kopf-hilfe, .reiter, .meldung, .fenster, .fusszeile { display: none !important; }
}
