/* Terminvergabe — eine Datei, Farben und Maße als Variablen.
   Kein Framework, kein Build-Schritt (Regel „Oberflächen-Technik"). */
:root {
  --bg: #f4f6f8;
  --karte: #ffffff;
  --rand: #e2e6ea;
  --text: #1f2933;
  --grau: #6b7683;
  --akzent: #2563eb;
  --akzent-hell: #eff4ff;
  --gruen: #157347;
  --rot: #b02a37;
  --gelb: #b7791f;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: var(--karte);
  border-bottom: 1px solid var(--rand);
  padding: 0.9rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
header .titel { font-weight: 600; }
header .titel a { color: var(--text); }
header nav a { margin-left: 1.2rem; font-size: 0.95rem; }

main { max-width: 900px; margin: 1.5rem auto; padding: 0 1.5rem; }
body.oeffentlich main { max-width: 620px; margin-top: 2.5rem; }
main.rechtstext { max-width: 700px; }

h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.karte h2:first-child, .karte h1:first-child { margin-top: 0; }
.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.karte.schmal { max-width: 420px; margin-inline: auto; }
.karte.leer { color: var(--grau); }
.lead { font-size: 1.05rem; color: var(--text); margin: 0.2rem 0 0.6rem; }
.lead.gewaehlt { font-weight: 600; }
.lead.durchgestrichen { text-decoration: line-through; color: var(--grau); }
.hinweis { color: var(--grau); font-size: 0.92rem; }
.klein { font-size: 0.85rem; color: var(--grau); font-weight: normal; }
.mitte { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Freie Zeiten: die eigentliche Oberfläche der Anwendung. */
.zeiten { display: flex; flex-wrap: wrap; gap: 0.5rem; }
a.zeit {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--akzent);
  border-radius: var(--radius);
  color: var(--akzent);
  background: var(--akzent-hell);
  font-variant-numeric: tabular-nums;
  min-width: 5rem; text-align: center;
}
a.zeit:hover { background: var(--akzent); color: #fff; text-decoration: none; }
span.zeit {
  display: inline-block; margin: 0 0.3rem 0.2rem 0; padding: 0.1rem 0.45rem;
  border: 1px solid var(--rand); border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.vorschau { margin: 0.4rem 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--grau); }
tr.abgesagt td { color: var(--grau); }

.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: 999px;
}
.badge.ok { background: #e6f4ea; color: var(--gruen); }
.badge.neutral { background: #eef1f4; color: var(--grau); }
.badge.warn { background: #fdf3e0; color: var(--gelb); }
.badge.fehler { background: #fdecee; color: var(--rot); font-weight: normal; }

.meldung {
  border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1rem;
  border: 1px solid var(--rand);
}
.meldung.ok { background: #e6f4ea; border-color: #bfe0cb; color: var(--gruen); }
.meldung.fehler { background: #fdecee; border-color: #f2c2c8; color: var(--rot); }
.meldung.warn { background: #fdf3e0; border-color: #f0dcb4; color: var(--gelb); }

label { display: block; margin-bottom: 0.8rem; font-weight: 500; }
input, button, select, textarea {
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--rand);
  border-radius: 7px;
  background: #fff;
  width: 100%;
}
textarea { resize: vertical; }
button, .btn {
  background: var(--akzent); color: #fff; border: none; cursor: pointer;
  font-weight: 500; padding: 0.55rem 1.1rem; border-radius: 7px; width: auto;
  display: inline-block;
}
.btn:hover { text-decoration: none; }
button.sekundaer { background: #eef1f4; color: var(--text); }
button.gefahr { background: var(--rot); }
button.klein { padding: 0.25rem 0.6rem; font-size: 0.85rem; }
button:hover { opacity: 0.92; }

.stapel { margin-top: 1rem; }
.reihe {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end;
  margin-top: 1rem;
}
.reihe label { margin-bottom: 0; }
.reihe input, .reihe select { width: auto; }
.knopfreihe { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.zurueck { color: var(--grau); font-size: 0.9rem; }

/* Einwilligung: Kreuz und Text nebeneinander, nie vorausgefüllt. */
.ankreuz {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-weight: normal; background: var(--akzent-hell);
  border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 0.8rem 1rem; margin-top: 1.2rem;
}
.ankreuz input { width: auto; margin-top: 0.2rem; flex: none; }

.feedadresse {
  background: #f7f8fa; border: 1px solid var(--rand); border-radius: 7px;
  padding: 0.5rem 0.7rem; word-break: break-all; color: var(--text);
}
.fussnav { margin-top: 2rem; font-size: 0.85rem; color: var(--grau); text-align: center; }
.rechtstext h2 { margin-top: 1.8rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: 0.4rem; }

@media (max-width: 560px) {
  main { padding: 0 1rem; }
  header { padding: 0.8rem 1rem; }
  header nav a { margin: 0 0.9rem 0 0; }
  .zeiten { gap: 0.4rem; }
  a.zeit { min-width: 4.4rem; padding: 0.5rem 0.6rem; }
}
