:root { color-scheme: light; --tinte: #1d1d1f; --grau: #6e6e73; --linie: #d2d2d7; --grund: #f5f5f7; --akzent: #d4f25c; --fehler: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--tinte); background: var(--grund); }
.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 2rem); background: #000; color: #fff; }
.kopf nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.kopf a { color: #fff; }
.kopf button { padding: 0.3rem 0.8rem; border: 1px solid #ffffff55; border-radius: 999px; background: none; color: #fff; font: inherit; cursor: pointer; }
main { max-width: 64rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; }
h1 { margin: 0 0 1.25rem; font-size: 2rem; letter-spacing: -0.02em; }
h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.karte, .tag { margin-bottom: 1.25rem; padding: 1.25rem 1.5rem; border-radius: 18px; background: #fff; }
.zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
label { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
input, textarea { min-width: 12rem; padding: 0.6rem 0.8rem; border: 1px solid #86868b; border-radius: 10px; font: inherit; }
textarea { width: 100%; }
button { padding: 0.55rem 1.1rem; border: 1px solid var(--linie); border-radius: 999px; background: #fff; font: inherit; cursor: pointer; }
button.haupt { border-color: var(--akzent); background: var(--akzent); font-weight: 600; }
.tag ul { margin: 0; padding: 0; list-style: none; }
.tag li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 0.75rem 0; border-top: 1px solid var(--linie); }
.tag li:first-child { border-top: 0; }
.tag li form { margin-left: auto; }
.tag li .videolink { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin: 0.4rem 0 0; }
.videolink label { flex: 1 1 14rem; }
.videolink input { width: 100%; }
.einstellung input { width: 100%; }
.zeit { min-width: 7.5rem; font-weight: 700; }
.frei-text, .hinweis, small { color: var(--grau); font-weight: 400; }
.meldung { padding: 0.75rem 1rem; border-radius: 12px; background: #e9f7d4; }
.fehler { padding: 0.75rem 1rem; border-radius: 12px; background: #fdecea; color: var(--fehler); font-weight: 600; }
.fehler-klein { color: var(--fehler); font-size: 0.875rem; }
table { width: 100%; overflow: hidden; border-collapse: collapse; border-radius: 18px; background: #fff; }
th, td { padding: 0.7rem 0.9rem; border-top: 1px solid var(--linie); text-align: left; vertical-align: top; }
th { background: #fafafa; color: var(--grau); font-size: 0.85rem; }
td form { display: inline; }
.status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--grund); font-size: 0.85rem; font-weight: 600; }
.kopieren { display: flex; gap: 0.5rem; }
.kopieren input { flex: 1; }
select { min-width: 12rem; padding: 0.6rem 0.8rem; border: 1px solid #86868b; border-radius: 10px; background: #fff; font: inherit; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem 1rem; align-items: end; }
.raster input, .raster select { min-width: 0; width: 100%; }
.breit { grid-column: 1 / -1; }
.haken { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.haken input { min-width: 0; width: 1.1rem; height: 1.1rem; }
.einwilligung { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.5rem; margin: 0; padding: 0.75rem 1rem; border: 1px solid var(--linie); border-radius: 12px; }
.einwilligung legend { padding: 0 0.3rem; font-size: 0.9rem; font-weight: 600; }
.nachfassen ul { margin: 0; padding: 0; list-style: none; }
.nachfassen li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--linie); }
.nachfassen li:first-child { border-top: 0; }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0 0 1rem; }
.angaben dt { color: var(--grau); }
.angaben dd { margin: 0; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.knopf { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--akzent); color: var(--tinte); font-weight: 600; text-decoration: none; }
button.gefahr { border-color: #f3b4ae; color: var(--fehler); }
.status--angeschrieben { background: #fff4d6; }
.status--termin_gebucht, .status--vorstellung_gehalten, .status--hervorgehoben { background: #e9f7d4; }
.status--gewonnen { background: var(--akzent); }
.status--verloren { color: var(--grau); }
details.karte summary { cursor: pointer; }
details.karte[open] summary { margin-bottom: 0.75rem; }
@media (max-width: 700px) {
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 0.6rem 0; border-top: 1px solid var(--linie); }
  td { padding: 0.3rem 0.9rem; border-top: 0; }
  td[data-titel]::before { content: attr(data-titel); display: block; font-size: 0.75rem; color: var(--grau); }
}
