:root {
  --gruen: #3d5a2a; --gruen-hell: #e7efdc; --gruen-mittel: #6b8f47;
  --erde: #8a5a2b; --creme: #f6f3ea; --papier: #ffffff; --text: #26261f; --leise: #6d6a5e;
  --rand: #e2ddcd; --rot: #b23a2b; --gelb: #f4d35e; --orange: #e08a2e; --blau: #3f74a8; --lila: #7a5aa8;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--creme); color: var(--text); padding-bottom: 80px; }
a { color: var(--gruen); }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
hr { border: 0; border-top: 1px solid var(--rand); margin: 1rem 0; }

.kopf { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; background: var(--gruen); color: #fff; padding-top: max(.6rem, env(safe-area-inset-top)); }
.marke { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.marke img { width: 30px; height: 30px; border-radius: 7px; }
.hauptnav { display: none; gap: .25rem; flex: 1; }
.hauptnav a { color: #e8f0dc; text-decoration: none; padding: .4rem .7rem; border-radius: 8px; }
.hauptnav a.aktiv, .hauptnav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.kopf .melden { margin-left: auto; background: #fff; color: var(--gruen); }
.zahl { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 99px; background: var(--rot); color: #fff; font-size: .8rem; text-align: center; font-weight: 700; }
.zahl.grau { background: #9a978b; }

.unten { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; background: #fff; border-top: 1px solid var(--rand); padding-bottom: env(safe-area-inset-bottom); }
.unten a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: .4rem 0; text-decoration: none; color: var(--text); font-size: 1.2rem; }
.unten a span { font-size: .7rem; color: var(--leise); }
.unten a.plus { color: var(--gruen); font-weight: 700; }
@media (min-width: 800px) {
  .hauptnav { display: flex; }
  .unten { display: none; }
  body { padding-bottom: 2rem; }
}

.inhalt { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.karte { background: var(--papier); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.karte.hervor { border-color: var(--gruen-mittel); box-shadow: 0 0 0 3px var(--gruen-hell); }
.karte.schmal { max-width: 460px; margin: 2rem auto; }
.anmeldung { text-align: center; }
.anmeldung form { text-align: left; }
.anmeldung .logo { width: 72px; height: 72px; border-radius: 16px; }
.zweispaltig { display: grid; gap: 1rem; }
@media (min-width: 900px) { .zweispaltig { grid-template-columns: 3fr 2fr; align-items: start; } }
.titelzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.leise { color: var(--leise); font-size: .9rem; }

.zeile { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem .25rem; border-bottom: 1px solid var(--rand); text-decoration: none; color: inherit; }
.zeile:last-child { border-bottom: 0; }
a.zeile:hover, .zeile a.zeile-haupt:hover { background: var(--creme); }
.zeile.gewaehlt { background: var(--gruen-hell); }
.zeile.inaktiv { opacity: .55; }
.zeile-haupt { display: flex; flex-direction: column; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.zeile-haupt strong { overflow-wrap: anywhere; }
.zeile-neben { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.datumsblock { width: 46px; text-align: center; background: var(--gruen-hell); border-radius: 8px; padding: .2rem 0; line-height: 1.1; flex-shrink: 0; }
.datumsblock span { display: block; font-weight: 700; font-size: 1.2rem; color: var(--gruen); }
.datumsblock small { color: var(--leise); text-transform: uppercase; font-size: .7rem; }

.status { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.status.gross { font-size: .95rem; padding: .3rem .8rem; }
.status.gelb { background: #fbf0c4; color: #7a5d00; }
.status.lila { background: #ece4f6; color: var(--lila); }
.status.blau { background: #e0ebf6; color: var(--blau); }
.status.orange { background: #fbe6cf; color: #9a5310; }
.status.gruen { background: var(--gruen-hell); color: var(--gruen); }
.status.grau { background: #ecebe6; color: #67655c; }
.marke-dringend { font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; background: #fbe6cf; color: #9a5310; }
.marke-dringend.notfall { background: var(--rot); color: #fff; }
.etikett { display: inline-block; background: var(--gruen-hell); color: var(--gruen); border-radius: 6px; padding: 0 .45rem; margin: .1rem .25rem .1rem 0; font-size: .8rem; }
.etikett.hell { background: #f1ece0; color: var(--erde); }

.knopf { display: inline-block; border: 0; border-radius: 10px; background: var(--gruen); color: #fff; padding: .65rem 1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.knopf:hover { filter: brightness(1.08); }
.knopf.zweit { background: #fff; color: var(--gruen); border: 1px solid var(--gruen-mittel); }
.knopf.gruen { background: var(--gruen-mittel); }
.knopf.rot { background: var(--rot); }
.knopf.klein { padding: .35rem .7rem; font-size: .88rem; }
.knopf.breit { width: 100%; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; }

.formular .feld, form .feld { margin-bottom: .9rem; }
.beschriftung { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=time], input[type=tel], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #cfc9b6; border-radius: 9px; font: inherit; background: #fff; color: var(--text);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gruen-hell); border-color: var(--gruen-mittel); }
.auswahlliste { display: flex; flex-wrap: wrap; gap: .4rem; }
.auswahlliste .option { display: flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--rand); border-radius: 99px; background: #fff; cursor: pointer; }
.auswahlliste .option:has(input:checked) { background: var(--gruen-hell); border-color: var(--gruen-mittel); }
.auswahlliste ul, .auswahlliste li { list-style: none; margin: 0; padding: 0; }
.feld-haken label { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.fehler input, .fehler select, .fehler textarea { border-color: var(--rot); }
.fehlertext { color: var(--rot); display: block; }
.feld small { display: block; }

.hinweis { padding: .7rem 1rem; border-radius: 10px; margin-bottom: .75rem; background: var(--gruen-hell); }
.hinweis.error { background: #f8dcd7; color: #7c2015; }
.hinweis.info { background: #e0ebf6; }
.hinweis.warning { background: #fbf0c4; }

.reiter { display: flex; gap: .25rem; margin-bottom: 1rem; overflow-x: auto; border-bottom: 1px solid var(--rand); }
.reiter a { padding: .5rem .9rem; text-decoration: none; color: var(--leise); border-bottom: 3px solid transparent; white-space: nowrap; }
.reiter a.aktiv { color: var(--gruen); border-color: var(--gruen); font-weight: 600; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filter input, .filter select { width: auto; flex: 1 1 160px; }

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; }
.beschreibung { background: var(--creme); border-radius: 10px; padding: .1rem 1rem; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-top: 1rem; }
.fotos img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; }

.feed { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.feed-beitrag { background: var(--creme); border-radius: 12px 12px 12px 4px; padding: .55rem .8rem; max-width: 92%; }
.feed-beitrag.eigen { background: var(--gruen-hell); align-self: flex-end; border-radius: 12px 12px 4px 12px; }
.feed-kopf { font-size: .9rem; }
.feed-system { font-size: .85rem; color: var(--leise); text-align: center; padding: .1rem .5rem; }
.foto-knopf { cursor: pointer; padding: .55rem .8rem; border: 1px solid var(--rand); border-radius: 10px; }
.aktion { margin-bottom: .75rem; }
.aktion summary { list-style: none; display: inline-block; }
.aktion summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: .6rem; }
.werkzeuge { display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--rand); padding-top: .75rem; margin-top: .5rem; }
.werkzeuge details { flex-basis: 100%; }
.werkzeuge details:not([open]) { flex-basis: auto; }

.monatskopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.monatskopf h2 { margin: 0; }
.monat { width: 100%; border-collapse: collapse; table-layout: fixed; }
.monat th { font-size: .8rem; color: var(--leise); padding: .25rem 0; }
.monat td { border: 1px solid var(--rand); vertical-align: top; height: 86px; padding: 2px; font-size: .78rem; overflow: hidden; }
.monat td.fremd { background: #faf8f2; color: #b3ae9e; }
.monat td.heute { background: var(--gruen-hell); }
.tagzahl a, .tagzahl { color: inherit; text-decoration: none; font-weight: 600; }
.kal-termin { display: block; background: var(--gruen-mittel); color: #fff; border-radius: 4px; padding: 0 3px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; font-size: .75rem; }
.kal-termin.gruppe { background: var(--erde); }
.legende .kal-termin { display: inline-block; margin-right: .5rem; }
@media (max-width: 600px) { .monat td { height: 64px; } .kal-termin { font-size: .65rem; } }
.werkzeuge .aktion, .werkzeuge form { margin: 0; }
.werkzeuge > a, .werkzeuge summary, .werkzeuge form > button { vertical-align: top; }
@media (max-width: 899px) {
  .vorgang-seite { display: flex; flex-direction: column; gap: 0; }
  .vorgang-seite > div { display: contents; }
  .reihe-1 { order: 1; } .reihe-2 { order: 2; } .reihe-3 { order: 3; } .reihe-4 { order: 4; } .reihe-5 { order: 5; }
}
