/* Die oeffentliche Buchungsseite - MD3 Outlined, wie die Booking Suite.
   Die Akzentfarbe kommt vom Anwender (Baukasten -> Theme-Primaerfarbe). */
:root{
  --akzent:#2f7ad6;
  --tinte:#16233a; --leise:#5f6f86; --blass:#8494ab;
  --grund:#f3f6fb; --flaeche:#ffffff; --linie:#dde4ee; --rahmen:#b9c4d2;
  --fehler:#b3261e;
  --akzent-t: color-mix(in srgb, var(--akzent) 12%, transparent);
  --akzent-d: color-mix(in srgb, var(--akzent) 78%, #000);
}
*{ box-sizing:border-box; }
html,body{ margin:0; }
body{ font-family:'Roboto Flex','Segoe UI',system-ui,-apple-system,sans-serif; font-size:15px; line-height:1.5;
  color:var(--tinte); background:var(--grund); -webkit-font-smoothing:antialiased; padding-inline:16px; }
.ms{ font-family:'Material Symbols Rounded'; font-weight:normal; font-style:normal; line-height:1; display:inline-block;
  white-space:nowrap; direction:ltr; -webkit-font-smoothing:antialiased; font-size:20px; }
button{ font:inherit; }
:focus-visible{ outline:2px solid var(--akzent); outline-offset:2px; }

.app{ max-width:920px; margin:0 auto; padding-block:28px 48px; }

/* Kopf */
.kopf{ border-radius:20px; padding:26px 26px 24px; color:#fff; margin-bottom:18px;
  background:linear-gradient(135deg, var(--akzent), var(--akzent-d)); }
.kopf h1{ margin:0; font-size:26px; font-weight:700; letter-spacing:-.01em; text-wrap:balance; }
.kopf p{ margin:6px 0 0; opacity:.9; max-width:62ch; }
.kopf .wer{ display:flex; align-items:center; gap:10px; margin-top:16px; font-size:13.5px; }
.kopf .av{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.22); display:grid; place-items:center; font-weight:700; }
.kopf .wer small{ display:block; opacity:.8; font-size:12px; }

.karte{ background:var(--flaeche); border:1px solid var(--linie); border-radius:16px; padding:20px; }
.abschnitt-t{ font-size:13px; font-weight:700; letter-spacing:.3px; color:var(--leise); margin:0 0 12px; text-transform:uppercase; }

/* Termintypen */
.typen{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
.typ{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; gap:6px; padding:16px 16px 14px;
  border-radius:14px; background:var(--flaeche); border:1px solid var(--linie); border-left:4px solid var(--typfarbe, var(--akzent));
  transition:border-color .15s, box-shadow .15s; }
.typ:hover{ box-shadow:0 4px 18px -8px rgba(22,35,58,.28); border-color:var(--rahmen); }
.typ b{ font-size:16px; }
.typ .meta{ display:flex; gap:12px; flex-wrap:wrap; color:var(--leise); font-size:13px; }
.typ .meta span{ display:inline-flex; align-items:center; gap:4px; }
.typ .meta .ms{ font-size:17px; }
.typ p{ margin:2px 0 0; color:var(--leise); font-size:13.5px; }

/* Auswahl: Kalender + Zeiten */
.wahl{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:14px; }
@media (max-width:760px){ .wahl{ grid-template-columns:1fr; } }
.zurueck{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:4px; color:var(--akzent-d); font-weight:600; font-size:14px;
  padding:6px 10px 6px 4px; border-radius:20px; margin-bottom:10px; }
.zurueck:hover{ background:var(--akzent-t); }
.typ-kopf{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.typ-kopf b{ font-size:18px; }
.typ-kopf span{ color:var(--leise); font-size:13.5px; }

.monat{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.monat b{ font-size:15px; }
.pfeil{ all:unset; cursor:pointer; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:var(--leise); }
.pfeil:hover:not([disabled]){ background:var(--akzent-t); color:var(--akzent-d); }
.pfeil[disabled]{ opacity:.3; cursor:default; }
.raster{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.wt{ text-align:center; font-size:11.5px; font-weight:600; color:var(--blass); padding:4px 0; }
.tag{ all:unset; box-sizing:border-box; aspect-ratio:1; max-width:100%; display:grid; place-items:center; border-radius:50%;
  font-size:14px; font-variant-numeric:tabular-nums; color:var(--blass); }
.tag.frei{ cursor:pointer; color:var(--akzent-d); font-weight:700; background:var(--akzent-t); }
.tag.frei:hover{ background:color-mix(in srgb, var(--akzent) 22%, transparent); }
.tag.an{ background:var(--akzent); color:#fff; }
.tz{ font-size:12px; color:var(--blass); margin-top:12px; }

.zeiten{ display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:8px; }
.zeit{ all:unset; box-sizing:border-box; cursor:pointer; text-align:center; padding:10px 6px; border-radius:8px; border:1px solid var(--rahmen);
  font-weight:600; font-variant-numeric:tabular-nums; color:var(--tinte); transition:background .12s, border-color .12s; }
.zeit:hover{ border-color:var(--akzent); color:var(--akzent-d); background:var(--akzent-t); }
.leer-hinweis{ color:var(--leise); padding:10px 2px; }

/* Formular (MD3 Outlined) */
.feld{ position:relative; margin-bottom:16px; }
.feld .box{ position:relative; border-radius:4px; box-shadow:inset 0 0 0 1px var(--rahmen); transition:box-shadow .12s; }
.feld:focus-within .box{ box-shadow:inset 0 0 0 2px var(--akzent); }
.feld input, .feld textarea, .feld select{ all:unset; box-sizing:border-box; width:100%; font:inherit; font-size:15px; color:var(--tinte);
  height:54px; padding:0 15px; caret-color:var(--akzent); }
.feld textarea{ height:auto; min-height:96px; padding:16px 15px; line-height:1.45; display:block; }
.feld select{ cursor:pointer; line-height:52px; }
.feld label{ position:absolute; top:15px; left:11px; padding:0 4px; pointer-events:none; color:var(--leise); background:var(--flaeche);
  font-size:15px; transition:all .15s cubic-bezier(.2,0,0,1); }
.feld input:focus ~ label, .feld input:not(:placeholder-shown) ~ label,
.feld textarea:focus ~ label, .feld textarea:not(:placeholder-shown) ~ label,
.feld.sel label{ top:-9px; font-size:12px; color:var(--akzent-d); }
.feld .pfeil-sel{ position:absolute; right:12px; top:16px; color:var(--leise); pointer-events:none; }
.feld.err .box{ box-shadow:inset 0 0 0 2px var(--fehler); }
.feld.err label{ color:var(--fehler); }
.opt{ display:flex; align-items:center; gap:10px; cursor:pointer; margin-bottom:16px; font-size:15px; }
.opt input{ width:18px; height:18px; accent-color:var(--akzent); }
.falle{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.gewaehlt{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:12px; background:var(--akzent-t);
  color:var(--akzent-d); font-weight:600; margin-bottom:18px; }
.btn{ all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 24px; border-radius:22px; font-weight:600; font-size:15px; background:var(--akzent); color:#fff;
  transition:box-shadow .15s, opacity .15s; }
.btn:hover{ box-shadow:0 2px 10px -2px color-mix(in srgb, var(--akzent) 60%, transparent); }
.btn[disabled]{ opacity:.55; cursor:default; box-shadow:none; }
.btn.voll{ width:100%; }
.btn.umriss{ background:transparent; color:var(--akzent-d); box-shadow:inset 0 0 0 1px var(--rahmen); }
.fehlermeldung{ color:var(--fehler); font-size:14px; margin:-4px 0 14px; }
.klein{ color:var(--blass); font-size:12.5px; margin-top:14px; line-height:1.5; }

/* Bestaetigung */
.fertig{ text-align:center; padding:34px 20px; }
.fertig .haken{ width:64px; height:64px; border-radius:50%; background:var(--akzent-t); color:var(--akzent-d); display:grid; place-items:center; margin:0 auto 14px; }
.fertig .haken .ms{ font-size:36px; }
.fertig h2{ margin:0 0 8px; font-size:22px; }
.fertig p{ color:var(--leise); margin:0 auto 20px; max-width:46ch; }
.fertig .was{ display:inline-flex; flex-direction:column; gap:2px; text-align:left; padding:14px 18px; border-radius:12px; border:1px solid var(--linie); margin-bottom:22px; }

.fuss{ text-align:center; color:var(--blass); font-size:12px; margin-top:26px; }

/* Hinweisseiten */
.leer{ min-height:100vh; display:grid; place-items:center; padding-block:24px; }
.leer-karte{ background:var(--flaeche); border:1px solid var(--linie); border-radius:18px; padding:28px 30px; max-width:440px; }
.leer-karte h1{ font-size:20px; margin:0 0 6px; }
.leer-karte p{ margin:0; color:var(--leise); }

@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }
