/* fourplex CI 2026: Cyan, Volcanite, Soft. Buvera nur Regular, Medium, Bold. */
@font-face { font-family: Buvera; src: url(/fonts/Buvera-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Buvera; src: url(/fonts/Buvera-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Buvera; src: url(/fonts/Buvera-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --cyan: #009dc5;
  --cyan-dunkel: #00809f;
  --cyan-10: #e6f5f9;
  --volcanite: #1f2425;
  --volcanite-70: #5c6263;
  --soft: #d1d6d9;
  --soft-50: #e8eaec;
  --grund: #f3f5f6;
  --weiss: #fff;
  --fehler: #c0392b;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(31, 36, 37, .06), 0 12px 32px rgba(31, 36, 37, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.55 Buvera, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--volcanite); background: var(--grund);
}
a { color: var(--cyan-dunkel); }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- Kopf ---------- */
.kopf { position: relative; overflow: hidden; background: var(--volcanite); color: var(--weiss); padding: 22px 0 120px; }
.kopf-innen { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.logo img { display: block; height: 42px; width: auto; }
.band { margin-top: 56px; }
.overline { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
h1 { margin: 0; font-weight: 700; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.chevrons { position: absolute; right: -120px; top: -30px; width: 460px; height: 460px; fill: none; stroke: var(--cyan); stroke-width: 26; opacity: .9; }
@media (max-width: 700px) {
  .chevrons { right: -230px; opacity: .5; }
  .kopf { padding-bottom: 96px; }
  .band { margin-top: 36px; }
}

/* ---------- Inhalt ---------- */
.inhalt { flex: 1; width: 100%; max-width: 1040px; margin: -76px auto 0; padding: 0 24px 48px; position: relative; z-index: 2; }
.karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); }
.laden { padding: 48px; text-align: center; color: var(--volcanite-70); background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); }

/* Person-Kopf */
.person { display: flex; align-items: center; gap: 16px; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--cyan); color: var(--weiss);
  display: grid; place-items: center; font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.person-name { font-weight: 700; font-size: 20px; line-height: 1.2; }
.person-name.abstand { margin-top: 14px; }
.person-rolle { color: var(--volcanite-70); font-size: 14px; }

/* Auswahl der Terminart */
.auswahl { padding: 32px; }
.auswahl .person { margin-bottom: 28px; }
.typen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.typ { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 2px solid var(--soft-50); border-radius: 12px;
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; }
.typ:hover, .typ:focus-visible { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 157, 197, .14); outline: none; }
.typ h2 { margin: 0; font-size: 19px; font-weight: 700; }
.typ p { margin: 0; color: var(--volcanite-70); font-size: 15px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--cyan-10);
  color: var(--cyan-dunkel); font-size: 13px; font-weight: 500; }
.typ .pfeil { position: absolute; right: 20px; top: 22px; width: 18px; height: 18px; stroke: var(--cyan); stroke-width: 2.5; fill: none; }

/* Buchung: zwei Spalten */
.buchung { display: grid; grid-template-columns: 300px 1fr; min-height: 520px; }
.info { padding: 32px 28px; border-right: 1px solid var(--soft-50); }
.zurueck { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 14px -6px; padding: 6px 10px 6px 6px; border: 0; border-radius: 8px;
  background: none; color: var(--cyan-dunkel); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; }
.zurueck:hover { background: var(--cyan-10); }
.zurueck svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.info h2 { margin: 24px 0 12px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.info .fakten { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; color: var(--volcanite-70); font-size: 15px; }
.info .fakten li[hidden] { display: none; }
.info .fakten li { display: flex; gap: 10px; align-items: flex-start; }
.info .fakten svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--cyan); stroke-width: 2; fill: none; }
.info .fakten strong { color: var(--volcanite); font-weight: 500; }
.info p.text { margin: 0; color: var(--volcanite-70); font-size: 15px; }

.schritt { padding: 32px; }
.schritt h3 { margin: 0 0 20px; font-size: 18px; font-weight: 700; }
.kal-und-zeiten { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; }

/* Kalender */
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kal-monat { font-weight: 500; font-size: 16px; }
.kal-nav { display: flex; gap: 6px; }
.rund { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cyan-10); color: var(--cyan-dunkel); cursor: pointer; display: grid; place-items: center; }
.rund:disabled { background: none; color: var(--soft); cursor: default; }
.rund svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.kal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.kal .wt { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--volcanite-70); padding: 6px 0; }
.tag { aspect-ratio: 1; max-height: 48px; width: 100%; border: 0; border-radius: 50%; background: none; font-size: 15px; color: var(--soft); cursor: default; position: relative; }
.tag.frei { background: var(--cyan-10); color: var(--cyan-dunkel); font-weight: 700; cursor: pointer; }
.tag.frei:hover { background: #cdeaf2; }
.tag.gewaehlt, .tag.frei.gewaehlt:hover { background: var(--cyan); color: var(--weiss); }
.tag.heute::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.kal-hinweis { margin-top: 14px; font-size: 13px; color: var(--volcanite-70); }

/* Uhrzeiten */
.zeiten-titel { margin: 6px 0 14px; font-weight: 500; font-size: 15px; }
.zeiten { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.zeit { padding: 11px 0; border: 2px solid var(--cyan); border-radius: 10px; background: var(--weiss); color: var(--cyan-dunkel);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: background .12s, color .12s; font-variant-numeric: tabular-nums; }
.zeit:hover, .zeit:focus-visible { background: var(--cyan); color: var(--weiss); outline: none; }
.leer { color: var(--volcanite-70); font-size: 14px; }

/* Formular */
.formular { display: grid; gap: 16px; max-width: 520px; }
.feld { display: grid; gap: 6px; }
.feld label, .feld .label { font-size: 14px; font-weight: 500; }
.feld .opt { color: var(--volcanite-70); font-weight: 400; }
.feld input, .feld textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--soft); border-radius: 10px; background: var(--weiss); transition: border-color .12s; }
.feld textarea { min-height: 96px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--cyan); }
.feld.falsch input { border-color: var(--fehler); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ortwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ortwahl label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--soft); border-radius: 10px; cursor: pointer; font-size: 15px; }
.ortwahl input { accent-color: var(--cyan); width: 18px; height: 18px; padding: 0; flex: none; margin: 0; }
.ortwahl label:has(input:checked) { border-color: var(--cyan); background: var(--cyan-10); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--volcanite-70); }
.check input { margin-top: 3px; accent-color: var(--cyan); width: 18px; height: 18px; flex: none; }
.check.falsch { color: var(--fehler); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 12px 14px; border-radius: 10px; background: #fbeceb; color: var(--fehler); font-size: 14px; }
.knopf { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 10px;
  background: var(--cyan); color: var(--weiss); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .12s; }
.knopf:hover { background: var(--cyan-dunkel); }
.knopf:disabled { opacity: .6; cursor: wait; }
.gewaehlt-zeit { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 20px; padding: 10px 14px; border-radius: 10px; background: var(--cyan-10); color: var(--cyan-dunkel); font-weight: 500; font-size: 15px; }

/* Bestaetigung */
.fertig { padding: 56px 32px; text-align: center; }
.fertig .haken { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; }
.fertig .haken svg { width: 34px; height: 34px; stroke: var(--weiss); stroke-width: 3; fill: none; }
.fertig h2 { margin: 0 0 10px; font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.fertig p { margin: 0 auto 8px; max-width: 480px; color: var(--volcanite-70); }
.zusammenfassung { display: inline-grid; gap: 8px; margin: 22px 0; padding: 18px 24px; border-radius: 12px; background: var(--grund); text-align: left; }
.zusammenfassung div { display: flex; gap: 10px; }
.zusammenfassung span:first-child { color: var(--volcanite-70); min-width: 70px; }
.gewaehlt-zeit svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.testhinweis.oben { margin-top: 16px; }
.testhinweis { margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: #fff4e0; color: #8a5a00; font-size: 14px; }

/* Fuss */
.fuss { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; max-width: 1040px; width: 100%; margin: 0 auto; padding: 20px 24px 32px; font-size: 13px; color: var(--volcanite-70); }
.fuss a { color: inherit; }

@media (max-width: 860px) {
  .buchung { grid-template-columns: 1fr; }
  .info { border-right: 0; border-bottom: 1px solid var(--soft-50); padding: 24px; }
  .info h2 { margin-top: 18px; }
  .kal-und-zeiten { grid-template-columns: 1fr; }
  .zeiten { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); max-height: none; }
  .schritt, .auswahl { padding: 24px; }
}
@media (max-width: 520px) {
  .inhalt { padding: 0 12px 32px; }
  .zwei, .ortwahl { grid-template-columns: 1fr; }
  .schritt, .auswahl, .info { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
