/* Coli · Bausteinkatalog. Jede Karte hat eine Facettenfarbe (--farbe) als feine Kante. */

.karte {
  --farbe: var(--tuerkis);
  position: relative; overflow: hidden;
  background: var(--flaeche); border-radius: var(--rund);
  box-shadow: var(--schatten-2), 0 0 0 1px var(--linie);
  padding: 20px 22px 18px;
  animation: karte-ein .7s var(--weich) both; animation-delay: calc(var(--i, 0) * 90ms);
}
.karte::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--farbe), color-mix(in srgb, var(--farbe) 30%, transparent));
}
@keyframes karte-ein { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.karte[data-farbe="tuerkis"] { --farbe: var(--tuerkis); }
.karte[data-farbe="gruen"] { --farbe: var(--gruen); }
.karte[data-farbe="blau"] { --farbe: var(--blau); }
.karte[data-farbe="gelb"] { --farbe: var(--gelb); }
.karte[data-farbe="orange"] { --farbe: var(--orange); }
.karte[data-farbe="pink"] { --farbe: var(--pink); }
.karte[data-farbe="rot"] { --farbe: var(--rot); }

.karte .etikett {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.karte .etikett::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--farbe); transform: rotate(45deg); }
.karte h2 { margin: 4px 0 2px; font: 500 32px/1 var(--titel); color: var(--navy); letter-spacing: .01em; }
.karte h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); }
.karte .unter { margin: 0 0 6px; color: var(--text-2); font-size: 14.5px; }
.karte p { margin: 8px 0; color: var(--text); }
.karte .kurz { color: var(--text-2); }
.marke-nr {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: 6px;
  font: 700 12.5px/1.5 var(--schrift); color: var(--navy); background: color-mix(in srgb, var(--farbe) 18%, transparent);
}
.demo {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; vertical-align: 6px;
  font: 800 11px/1.6 var(--schrift); letter-spacing: .08em; color: var(--beere); background: rgba(121, 37, 75, .08);
}

/* Aktionen */
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.aktion {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--linie-2); background: var(--flaeche); color: var(--navy);
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: transform .3s var(--feder), background .3s, border-color .3s;
}
.aktion:hover { transform: translateY(-1px); border-color: var(--navy); }
.aktion.haupt { background: var(--navy); border-color: var(--navy); color: #fff; }
.aktion svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hinweise */
.achtung, .tipp {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0;
  padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5;
}
.achtung { background: rgba(183, 44, 30, .06); color: #7b241a; }
.tipp { background: rgba(119, 192, 183, .12); color: #245b55; }
.achtung svg, .tipp svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Marken (kleine Chips in Karten) */
.marken { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.marken li { font-size: 13.5px; padding: 3px 10px; border-radius: 999px; background: rgba(18, 33, 74, .045); color: var(--text); }
.einweisung { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.einweisung.ja { color: var(--rot); background: rgba(183, 44, 30, .08); }
.einweisung.nein { color: #2f7a55; background: rgba(87, 165, 124, .12); }

details.mehr { margin-top: 10px; }
details.mehr summary { cursor: pointer; color: var(--text-2); font-size: 14.5px; list-style: none; }
details.mehr summary::-webkit-details-marker { display: none; }
details.mehr summary::after { content: ' ↓'; transition: transform .3s; display: inline-block; }
details.mehr[open] summary::after { transform: rotate(180deg); }

/* ── Weg & Projektpfad ───────────────────────────────── */
.fortschritt { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 13.5px; color: var(--text-2); }
.fortschritt .balken-f { flex: 1; height: 6px; border-radius: 6px; background: rgba(18, 33, 74, .06); overflow: hidden; }
.fortschritt .balken-f i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--facetten); transition: width .8s var(--weich); }
.schritte { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.schritt { position: relative; padding: 0 0 4px 38px; }
.schritt::before {
  content: ''; position: absolute; left: 13px; top: 30px; bottom: -4px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--farbe), rgba(18, 33, 74, .06));
  opacity: .5;
}
.schritt:last-child::before { display: none; }
.schritt > button.kopfzeile {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 0; border-radius: 10px;
}
.schritt > button.kopfzeile:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
.schritt .nr {
  position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  color: var(--navy); background: color-mix(in srgb, var(--farbe) 22%, #fff);
  transition: background .4s var(--weich), color .4s;
}
.schritt.erledigt .nr { background: var(--farbe); color: #fff; }
.schritt .titel { font-weight: 700; color: var(--navy); flex: 1; }
.schritt .pfeil { color: var(--text-3); transition: transform .4s var(--weich); }
.schritt.offen .pfeil { transform: rotate(180deg); }
.schritt .koerper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--weich); }
.schritt.offen .koerper { grid-template-rows: 1fr; }
.schritt .koerper > div { overflow: hidden; }
.schritt .koerper p { margin: 2px 0 8px; color: var(--text-2); font-size: 15.5px; }
.aufgaben { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 4px; }
.aufgaben label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; padding: 4px 0; }
.aufgaben input {
  appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 7px;
  border: 1.5px solid var(--linie-2); background: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .3s var(--weich), border-color .3s;
}
.aufgaben input::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .3s var(--feder); margin-top: -2px; }
.aufgaben input:checked { background: var(--farbe); border-color: var(--farbe); }
.aufgaben input:checked::after { transform: rotate(-45deg) scale(1); }
.aufgaben input:checked + span { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--linie-2); }
.schritt .links { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; text-decoration: none;
  color: var(--beere); padding: 5px 11px; border-radius: 10px; background: rgba(121, 37, 75, .05);
  transition: background .3s;
}
.link:hover { background: rgba(121, 37, 75, .1); }
.link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.frag-schritt { border: 0; background: none; cursor: pointer; color: var(--text-2); font-size: 14px; padding: 4px 0 10px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linie-2); }

/* ── Raum ────────────────────────────────────────────── */
.lage { margin: 12px 0 4px; padding: 12px 14px 8px; border-radius: 14px; background: var(--creme); }
.lage img { display: block; width: 100%; height: auto; }
.lage figcaption { margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* ── Geräte ──────────────────────────────────────────── */
.bereiche { display: grid; gap: 12px; margin-top: 12px; }
.bereich { padding: 12px 14px; border-radius: 14px; background: rgba(18, 33, 74, .025); }
.bereich .zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.bereich .ort { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }

/* ── Zeiten ──────────────────────────────────────────── */
.ampel { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-size: 18px; font-weight: 700; color: var(--navy); }
.ampel i { width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); }
.ampel.offen i { background: var(--gruen); box-shadow: 0 0 0 6px rgba(87, 165, 124, .16); animation: puls 2.4s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 10px rgba(87, 165, 124, .06); } }
.tage { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.tage li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 10px; font-size: 15px; }
.tage li.heute { background: color-mix(in srgb, var(--farbe) 20%, transparent); font-weight: 700; }

/* ── Belegung (Demo) ─────────────────────────────────── */
.slots { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 14px 0 6px; }
.slot { height: 34px; border-radius: 8px; background: rgba(18, 33, 74, .09); position: relative; }
.slot.frei { background: color-mix(in srgb, var(--hellgruen) 55%, #fff); }
.slot.jetzt { outline: 2px solid var(--navy); outline-offset: 1px; }
.slot-achse { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; font-size: 11.5px; color: var(--text-3); }
.legende { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); margin-top: 8px; flex-wrap: wrap; }
.legende span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: rgba(18, 33, 74, .09); }
.legende .f::before { background: color-mix(in srgb, var(--hellgruen) 55%, #fff); }
.personen { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-2); margin-top: 6px; }

/* ── Kontakt ─────────────────────────────────────────── */
.team { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.team li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; flex-wrap: wrap; }
.team li span { color: var(--text-2); }

/* ── Auswahl (Rückfrage) ─────────────────────────────── */
.karte.auswahl { padding-top: 16px; }
.karte.auswahl::before { background: var(--facetten); opacity: .7; }
.optionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.optionen button {
  border: 1px solid var(--linie-2); background: #fff; border-radius: 14px; cursor: pointer;
  padding: 10px 16px; font-size: 15.5px; text-align: left; color: var(--navy);
  transition: transform .3s var(--feder), border-color .3s, background .3s;
}
.optionen button:hover { transform: translateY(-2px); border-color: var(--navy); }
.karte.erledigt .optionen button { opacity: .45; pointer-events: none; }
.karte.erledigt .optionen button.gewaehlt { opacity: 1; background: var(--navy); color: #fff; }

/* ── Vision ──────────────────────────────────────────── */
.stufen { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stufe { padding: 14px 16px; border-radius: 16px; background: rgba(18, 33, 74, .025); }
.stufe h3 { display: flex; align-items: center; gap: 8px; }
.stufe h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.stufe-heute h3::before { background: var(--gruen); }
.stufe-demo h3::before { background: var(--gelb); }
.stufe-spaeter h3::before { background: var(--blau); }
.stufe ul { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--text-2); }
.stufe li { margin: 4px 0; }

/* ── Übersicht ───────────────────────────────────────── */
.kacheln { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kachel {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; justify-content: flex-start; text-align: left;
  background: rgba(18, 33, 74, .025); transition: transform .3s var(--feder), background .3s, box-shadow .3s;
}
.kachel:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--schatten-1), 0 0 0 1px var(--linie); }
.kachel:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
.kachel b { display: block; color: var(--navy); }
.kachel small { color: var(--text-3); font-weight: 700; }
.kachel span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.wege-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ── Hinweis-Karte ───────────────────────────────────── */
.karte.hinweis { padding: 14px 18px; }
.karte.hinweis .achtung { margin: 0; background: none; padding: 0; }

body[data-modus="raum"] .karte { padding: 28px 30px; }
body[data-modus="raum"] .karte h2 { font-size: 44px; }

/* Symbole in Karten: Linien, keine Flächen */
.karte svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.schritt .pfeil { display: grid; place-items: center; }
.personen svg { width: 18px; height: 18px; }
