/* Terminplaner — oeffentliche Seiten.
   Aufbau und Masse orientieren sich am Vorbild: Karte auf hellem Grund,
   linke Spalte mit Veranstalter, rechte Spalte mit Kalender und Zeiten. */

:root {
  --blau: #0069ff;
  --blau-dunkel: #0050c7;
  --blau-hell: #e8f0fe;
  --text: #1a1a1a;
  --text-blass: #6b7280;
  --rand: #e4e7ec;
  --grund: #f5f6f8;
  --karte: #ffffff;
  --rot: #d92d20;
  --radius: 10px;
  --schatten: 0 1px 3px rgba(16, 24, 40, .08), 0 8px 28px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

.huelle {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 24px;
}

/* ---------------------------------------------------------------- Karte */

.karte {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  min-height: 560px;
}

/* Die Spalten muessen mitwachsen, sonst wird die Zeitenliste abgeschnitten. */
.karte > * { min-width: 0; }

.karte-breit { grid-template-columns: 340px 1fr; }
.karte-schmal { grid-template-columns: 1fr; min-height: 0; max-width: 560px; margin: 0 auto; }

.karte-links {
  padding: 32px;
  border-right: 1px solid var(--rand);
}

.karte-rechts { padding: 28px 32px 32px; min-width: 0; }

.karte-mitte { padding: 40px 32px; text-align: center; }

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
}

.avatar.gross { width: 88px; height: 88px; margin: 0 auto 16px; }

.avatar-buchstabe {
  background: var(--blau);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 600;
}

.veranstalter {
  margin: 0 0 4px;
  color: var(--text-blass);
  font-size: 15px;
  font-weight: 600;
}

.termin-titel {
  margin: 0 0 20px;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #0a2540;
}

.termin-titel.klein { font-size: 19px; margin-bottom: 12px; }

.merkmale { list-style: none; margin: 0 0 20px; padding: 0; }

.merkmale li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: #425466;
  font-size: 15px;
  font-weight: 600;
}

.merkmale li.hervor { color: var(--blau); }

.symbol { flex: 0 0 20px; line-height: 0; padding-top: 2px; }
.symbol svg { width: 20px; height: 20px; }

.beschreibung { color: #425466; font-size: 15px; }
.beschreibung p { margin: 0 0 10px; }
.beschreibung a { color: var(--blau); }

.abschnitt-titel {
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: 700;
  color: #0a2540;
}

/* ------------------------------------------------------------- Kalender */

.planer { display: grid; grid-template-columns: 1fr; gap: 24px; }
.planer.mit-zeiten { grid-template-columns: 1fr 200px; }

.kalenderkopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.kalenderkopf strong { font-size: 17px; font-weight: 600; min-width: 160px; text-align: center; }

.pfeil {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--blau);
  text-decoration: none;
}

.pfeil svg { width: 20px; height: 20px; }
.pfeil:hover { background: var(--blau-hell); }
.pfeil.aus { color: #c9ced6; }

.kalenderraster { width: 100%; border-collapse: collapse; }

.kalenderraster th {
  padding: 6px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-blass);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kalenderraster td { padding: 3px; text-align: center; }

.tag {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 15px;
  color: #b3b9c4;
}

a.tag.frei {
  background: var(--blau-hell);
  color: var(--blau);
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

a.tag.frei:hover { background: var(--blau); color: #fff; }
a.tag.frei.gewaehlt { background: var(--blau); color: #fff; }

.tag.heute::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.tag.heute { position: relative; }

/* ---------------------------------------------------------------- Zeiten */

.zeitentitel { margin: 0 0 12px; font-size: 15px; font-weight: 600; }

.zeiten { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; padding-right: 4px; }

.zeiten li { margin-bottom: 8px; }

.zeitknopf {
  display: block;
  padding: 12px 8px;
  border: 1px solid var(--blau);
  border-radius: 6px;
  color: var(--blau);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.zeitknopf:hover { background: var(--blau); color: #fff; }

.zeitzone { margin-top: 22px; }

.zeitzone-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #f1f3f6;
  font-size: 14px;
  color: #425466;
}

.zeitzone-knopf select {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  max-width: 260px;
}

.zeitzone-fest {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-blass);
  font-size: 14px;
}

.dauerwahl { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--text-blass); }

.dauerknopf {
  padding: 6px 12px;
  border: 1px solid var(--rand);
  border-radius: 18px;
  text-decoration: none;
  font-weight: 600;
  color: #425466;
}

.dauerknopf.aktiv, .dauerknopf:hover { border-color: var(--blau); color: var(--blau); background: var(--blau-hell); }

/* -------------------------------------------------------------- Formular */

.formularspalte { max-width: 520px; }

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--blau);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.zurueck svg { width: 18px; height: 18px; }

.feld { margin-bottom: 18px; }

.feld label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0a2540;
}

.pflicht { color: var(--rot); }

.hinweis-klein { margin: -2px 0 6px; font-size: 13px; color: var(--text-blass); }

.feld input[type=text], .feld input[type=email], .feld input[type=tel],
.feld input[type=number], .feld textarea, .feld select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8bfca;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.feld input:focus, .feld textarea:focus {
  outline: 2px solid var(--blau);
  outline-offset: -1px;
  border-color: var(--blau);
}

.auswahl { display: grid; gap: 6px; }

.auswahlzeile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 15px;
  margin: 0;
}

.fallgrube { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rechtstext { font-size: 12px; color: var(--text-blass); margin: 18px 0; }
.rechtstext a { color: var(--blau); }

.hauptknopf, .nebenknopf, .warnknopf, button.klein {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 24px;
  background: var(--blau);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hauptknopf:hover { background: var(--blau-dunkel); }

.nebenknopf { background: #fff; color: var(--blau); border: 1px solid var(--blau); }
.nebenknopf:hover { background: var(--blau-hell); }

.warnknopf { background: var(--rot); }
.warnknopf:hover { background: #a91b13; }

button.klein { padding: 6px 14px; font-size: 13px; }

/* --------------------------------------------------------- Zielseite */

.zielkarte {
  max-width: 640px;
  margin: 0 auto;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 40px 32px;
  text-align: center;
}

.zielkarte h1 { margin: 0 0 8px; font-size: 26px; color: #0a2540; }

.begruessung { color: #425466; margin: 0 0 26px; }

.terminliste { list-style: none; margin: 0; padding: 0; text-align: left; }

.terminliste li { margin-bottom: 12px; }

.terminkachel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--rand);
  border-left: 5px solid var(--farbe, var(--blau));
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
}

.terminkachel:hover { border-color: var(--farbe, var(--blau)); box-shadow: var(--schatten); }

.kachel-inhalt { flex: 1; min-width: 0; }
.kachel-inhalt strong { display: block; font-size: 16px; color: #0a2540; }
.kachel-zeile { display: block; font-size: 13px; color: var(--text-blass); margin-top: 2px; }
.kachel-text { display: block; font-size: 13px; color: #425466; margin-top: 6px; }
.kachel-pfeil { color: var(--text-blass); line-height: 0; }
.kachel-pfeil svg { width: 20px; height: 20px; }

/* ------------------------------------------------------ Bestaetigung */

.haken { color: #12b76a; margin-bottom: 12px; line-height: 0; }
.haken svg { width: 52px; height: 52px; }
.haken.abgesagt { color: var(--rot); }

.untertitel { color: #425466; margin: 0 0 20px; }

.terminblock {
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  margin-bottom: 20px;
}

.terminblock .merkmale { margin-bottom: 0; }
.durchgestrichen .termin-titel { text-decoration: line-through; color: var(--text-blass); }

.knopfzeile { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; }

.absagebereich { margin-top: 24px; text-align: left; }
.absagebereich summary { cursor: pointer; color: var(--rot); font-weight: 600; }
.absageformular { margin-top: 12px; }
.absageformular label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.absageformular textarea { width: 100%; padding: 10px; border: 1px solid #b8bfca; border-radius: 6px; font: inherit; }
.absageformular button { margin-top: 12px; }

/* ---------------------------------------------------------- Meldungen */

.fehlerkasten {
  background: #fef3f2;
  border: 1px solid #fecdc9;
  color: #912018;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 14px;
}

.fehlerkasten p { margin: 0 0 4px; }
.fehlerkasten p:last-child { margin: 0; }

.hinweis {
  background: var(--blau-hell);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 14px;
  color: #0a2540;
}

.leer { color: var(--text-blass); font-size: 15px; }
.leer.gross { margin-top: 20px; text-align: center; }

.seitenfuss {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 13px;
}

.seitenfuss a { color: var(--text-blass); text-decoration: none; }
.seitenfuss a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- Handy */

@media (max-width: 860px) {
  .huelle { padding: 16px 12px; }
  .karte, .karte-breit { grid-template-columns: 1fr; min-height: 0; }
  .karte-links { border-right: 0; border-bottom: 1px solid var(--rand); padding: 24px; }
  .karte-rechts { padding: 24px; }
  .termin-titel { font-size: 23px; }
  .planer.mit-zeiten { grid-template-columns: 1fr; }
  .zeiten { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .zeiten li { margin: 0; }
  .tag { width: 40px; height: 40px; }
}
