:root {
  --tuerkis: #0f9488;
  --tuerkis-dunkel: #0b6f66;
  --tuerkis-hell: #e3f4f2;
  --text: #1d2626;
  --leise: #5f6f6e;
  --linie: #d9e2e1;
  --flaeche: #f6f8f8;
  --gruen: #1f8a4c; --gruen-h: #e2f4e9;
  --gelb: #9a6a00; --gelb-h: #fdf2d6;
  --rot: #b3261e; --rot-h: #fbe4e2;
  --blau: #1d5fa8; --blau-h: #e2edf9;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text); background: var(--flaeche);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--tuerkis-dunkel); }
h1 { font-size: 1.7rem; margin: .2em 0 .5em; }
h2 { font-size: 1.15rem; margin: .2em 0 .6em; }
h3 { font-size: 1.05rem; margin: 0; }
main { max-width: 1150px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.kopf {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  padding: .7rem 1.2rem; background: var(--tuerkis); color: #fff;
}
.kopf a { color: #fff; text-decoration: none; }
.marke { font-weight: 700; font-size: 1.1rem; }
.logo { display: inline-block; background: #fff; color: var(--tuerkis); border-radius: 8px; width: 1.6em; text-align: center; }
.kopf nav { display: flex; flex-wrap: wrap; gap: .2rem; flex: 1; }
.kopf nav a { padding: .35rem .7rem; border-radius: 8px; opacity: .9; }
.kopf nav a:hover, .kopf nav a.aktiv { background: rgba(255,255,255,.18); opacity: 1; }
.anmeldung { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.anmeldung .link { color: #fff; }

.fuss { display: flex; justify-content: space-between; max-width: 1150px; margin: 0 auto; padding: 1rem; color: var(--leise); font-size: .85rem; }

.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.karte.schmal { max-width: 380px; margin: 2rem auto; }
.schmal-breit { max-width: 720px; }
.karte.text { max-width: 760px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.zwei.breit-links { grid-template-columns: 1.6fr 1fr; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
@media (max-width: 800px) { .zwei, .zwei.breit-links, .drei { grid-template-columns: 1fr; } }

.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.titelzeile.klein { margin-bottom: .3rem; }
.leise { color: var(--leise); }
.klein { font-size: .85rem; }
.gross { font-size: 1.15rem; }
.nowrap { white-space: nowrap; }

.held { margin-bottom: 1.5rem; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.kachel {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--linie); border-left: 6px solid var(--tuerkis); border-radius: var(--radius);
  transition: transform .1s, box-shadow .1s;
}
.kachel:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,148,136,.15); }
.kachel b { font-size: 1.15rem; color: var(--tuerkis-dunkel); }
.kachel span { color: var(--leise); }

.geraete-leiste { display: flex; flex-wrap: wrap; gap: .5rem; }
.geraet-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; background: #fff; border: 1px solid var(--linie); border-radius: 99px; text-decoration: none; color: var(--text); font-size: .92rem; }
.punkt { width: .65rem; height: .65rem; border-radius: 50%; background: var(--gruen); }
.geraet-chip.wartung .punkt { background: #e0a100; }
.geraet-chip.defekt .punkt { background: var(--rot); }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--flaeche); color: var(--leise); border: 1px solid var(--linie); white-space: nowrap; }
.badge.gruen { background: var(--gruen-h); color: var(--gruen); border-color: transparent; }
.badge.gelb { background: var(--gelb-h); color: var(--gelb); border-color: transparent; }
.badge.rot { background: var(--rot-h); color: var(--rot); border-color: transparent; }
.badge.blau { background: var(--blau-h); color: var(--blau); border-color: transparent; }
.badge.lehrkraft { background: #fff; color: var(--tuerkis-dunkel); border-color: transparent; }
.badge.niv-einstieg { background: var(--gruen-h); color: var(--gruen); border-color: transparent; }
.badge.niv-fortgeschritten { background: var(--blau-h); color: var(--blau); border-color: transparent; }
.badge.niv-profi { background: #efe5fb; color: #6b3fa0; border-color: transparent; }

.projekt-karte { display: flex; flex-direction: column; gap: .45rem; background: #fff; border: 1px solid var(--linie); border-top: 5px solid var(--gruen); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--text); }
.projekt-karte.niveau-fortgeschritten { border-top-color: var(--blau); }
.projekt-karte.niveau-profi { border-top-color: #6b3fa0; }
.projekt-karte:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.projekt-karte p { margin: 0; flex: 1; }
.projekt-karte .oben { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.projekt-karte .unten { font-size: .85rem; }

.steckbrief { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 1rem; }
.steckbrief span { display: block; font-size: .78rem; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; }
.schritte li { margin-bottom: .35rem; }

.liste { list-style: none; padding: 0; margin: 0; }
.liste li { padding: .45rem 0; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.regeln { margin: .6rem 0; padding-left: 1.2rem; font-size: .93rem; }
.hinweis { background: var(--gelb-h); border-radius: 8px; padding: .45rem .7rem; font-size: .92rem; margin: .4rem 0; }

.pass { list-style: none; padding: 0; margin: 0; }
.pass li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--linie); }
.pass .symbol { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--flaeche); color: var(--leise); }
.pass li.ja .symbol { background: var(--gruen); color: #fff; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
input, select, textarea { font: inherit; padding: .5rem .65rem; border: 1px solid #c4d0cf; border-radius: 8px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--tuerkis); outline-offset: 0; border-color: var(--tuerkis); }
.formular label { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; font-weight: 600; font-size: .92rem; }
.formular label input, .formular label select, .formular label textarea { font-weight: 400; }
label.check { flex-direction: row !important; align-items: center; font-weight: 400 !important; gap: .4rem; margin-bottom: .3rem !important; display: inline-flex !important; margin-right: 1rem; }
fieldset { border: 1px solid var(--linie); border-radius: 8px; margin: 0 0 .8rem; padding: .5rem .8rem; }
legend { font-weight: 600; font-size: .92rem; }
.zeile { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.zeile input { flex: 1; min-width: 160px; }
.inline { display: inline; }

.knopf { display: inline-block; padding: .55rem 1rem; background: var(--tuerkis); color: #fff; border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--tuerkis-dunkel); }
.knopf.hell { background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); }
.knopf.hell:hover { background: #cdebe7; }
.knopf.breit { display: block; text-align: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--tuerkis-dunkel); text-decoration: underline; cursor: pointer; }
.link.rot { color: var(--rot); }
.mini { width: 2rem; height: 2rem; border: 1px solid var(--linie); background: #fff; border-radius: 6px; font-size: 1rem; cursor: pointer; }

.meldung { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; background: var(--gruen-h); color: var(--gruen); font-weight: 600; }
.meldung.fehler { background: var(--rot-h); color: var(--rot); }

.tabelle { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.tabelle th, .tabelle td { padding: .5rem .7rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: middle; }
.tabelle th { background: var(--flaeche); font-size: .82rem; color: var(--leise); }
.tabelle .r { text-align: right; }
.tabelle .c { text-align: center; }
.tabelle tr.gruppe td { background: var(--tuerkis-hell); font-weight: 700; color: var(--tuerkis-dunkel); font-size: .85rem; }
.tabelle tr.knapp td:first-child { border-left: 4px solid var(--rot); }
.tabelle tr.knapp b { color: var(--rot); }
.tabelle-scroll { overflow-x: auto; }
.matrix th.c { font-size: .72rem; max-width: 6rem; }
.haken { color: var(--gruen); font-weight: 700; }
tr.inaktiv td { opacity: .5; }
.sammelleiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; }

.kaertchen { display: grid; grid-template-columns: repeat(auto-fill, minmax(85mm, 1fr)); gap: 0; }
.kaertchen-eins { border: 1px dashed #999; padding: 5mm; height: 50mm; display: flex; flex-direction: column; justify-content: space-between; background: #fff; }
.code-gross { font: 700 2rem/1 ui-monospace, Menlo, monospace; color: var(--tuerkis-dunkel); letter-spacing: .05em; }
code { font-family: ui-monospace, Menlo, monospace; }

@media print {
  .kopf, .fuss, .nicht-drucken, .meldung { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .kaertchen { grid-template-columns: repeat(2, 85mm); }
  .kaertchen-eins { break-inside: avoid; }
}

.matrix code, .matrix td:nth-child(3) { white-space: nowrap; }

/* Plan */
.wochenkopf { margin-top: 1.2rem; display: flex; gap: .6rem; align-items: center; }
.termin { border-left: 5px solid var(--gruen); padding: .8rem 1rem; margin-bottom: .6rem; }
.termin.status-offen { border-left-color: #e0a100; }
.termin.status-zu { border-left-color: var(--rot); opacity: .65; }
.termin.heute { box-shadow: 0 0 0 2px var(--tuerkis); }
.termin p { margin: .2rem 0 0; }
.anmeldungen li { padding: .3rem 0; font-size: .93rem; }
.anmeldungen li.erledigt { opacity: .55; text-decoration: line-through; }
.anmeldungen code { background: var(--flaeche); border-radius: 4px; padding: 0 .3rem; font-size: .82rem; margin-right: .3rem; }
.stand.hilfe { border-color: #e0a100; }
.stand p { margin: .3rem 0; }
.stand-form { border-bottom: 1px solid var(--linie); padding-bottom: .8rem; margin-bottom: .8rem; }
.stand-form:last-child { border-bottom: 0; margin-bottom: 0; }
.regeln-karte { background: var(--gelb-h); border-color: transparent; }
details summary { cursor: pointer; color: var(--tuerkis-dunkel); margin-top: .8rem; }
