/* Buchungsseite – Look wie praximate.com: Indigo, Teal, Warmweiß; Bricolage Grotesque + Inter, lokal. Mobil zuerst. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-latin-wght.woff2') format('woff2-variations'), url('fonts/bricolage-grotesque-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght.woff2') format('woff2-variations'), url('fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #3730a3;
  --indigo-dunkel: #312e81;
  --teal: #0d9488;
  --teal-dunkel: #0f766e;
  --warmweiss: #f8fafc;
  --text: #1e1b4b;
  --text-leise: #475569;
  --linie: #cbd5e1;
  --fehler: #b91c1c;
  --fehler-hell: #fef2f2;
  --hinweis-hell: #ecfdf5;
  --radius: 12px;
  --schatten: 0 1px 2px rgba(30, 27, 75, .06), 0 4px 16px rgba(30, 27, 75, .06);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* sonst überschreiben display-Regeln (z. B. .mock-leiste) das hidden-Attribut */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--warmweiss);
  color: var(--text);
  font: 400 1.0625rem/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, .praxis { font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 .75rem; color: var(--indigo-dunkel); }
h1:focus { outline: none; }
h1:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
h2 { font-size: 1.15rem; font-weight: 650; margin: 1.25rem 0 .5rem; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--teal-dunkel); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.sprungmarke { position: absolute; left: -9999px; top: 0; background: var(--indigo); color: #fff; padding: .5rem 1rem; z-index: 10; }
.sprungmarke:focus { left: 1rem; top: 1rem; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mock-leiste { background: #1e1b4b; color: #fff; padding: .5rem 1rem; font-size: .875rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.mock-leiste p { margin: 0; }
.mock-leiste code { background: rgba(255, 255, 255, .15); padding: 0 .3rem; border-radius: 4px; }
.mock-leiste select { font: inherit; padding: .2rem .4rem; border-radius: 6px; }

.kopf { background: var(--indigo); color: #fff; padding: 1.25rem 1rem 1.5rem; }
.kopf .praxis { font-size: 1.6rem; font-weight: 700; margin: 0; }
.kopf .untertitel { margin: .15rem 0 0; color: #c7d2fe; font-weight: 500; }

main { flex: 1; width: 100%; max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.schirm { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.5rem 1.25rem; }
.einleitung, .hinweis-text { color: var(--text-leise); }
.schritte { padding-left: 1.25rem; color: var(--text-leise); margin: 0 0 1.25rem; }

.feld { margin: 0 0 1.1rem; border: 0; padding: 0; }
.feld > label, .feld > legend { display: block; font-weight: 600; margin-bottom: .35rem; }
input[type='text'], input:not([type]), input[type='email'], input[type='date'], textarea, .code-feld {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: .7rem .8rem;
  border: 1.5px solid var(--linie);
  border-radius: 10px;
  background: #fff;
  min-height: 48px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(13, 148, 136, .25); outline-offset: 0; }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--fehler); }
.code-feld { font-size: 1.6rem; letter-spacing: .35em; text-align: center; max-width: 14rem; font-variant-numeric: tabular-nums; }
.feld-hilfe { font-size: .9rem; color: var(--text-leise); margin: .35rem 0 0; }
.feld-fehler { font-size: .9rem; color: var(--fehler); margin: .35rem 0 0; font-weight: 600; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.datenschutz-kurz { font-size: .875rem; color: var(--text-leise); }

.wahl-gruppe { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .25rem .75rem .25rem .5rem; border: 1.5px solid var(--linie); border-radius: 10px; margin: 0 .5rem .5rem 0; cursor: pointer; }
fieldset .wahl { display: inline-flex; }
.wahl input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal); }
.schalter { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; }
.schalter input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem; margin-top: .5rem;
  font: 650 1.05rem/1 'Inter', system-ui, sans-serif;
  color: #fff; background: var(--teal); border: 0; border-radius: 999px; cursor: pointer;
}
.knopf:hover { background: var(--teal-dunkel); }
.knopf[disabled] { opacity: .6; cursor: progress; }
.knopf-leise { background: transparent; color: var(--indigo); border: 1.5px solid var(--indigo); margin-left: 0; }
.knopf-leise:hover { background: #eef2ff; color: var(--indigo-dunkel); }
section > .knopf + .knopf { margin-left: .5rem; }

.meldung { background: var(--fehler-hell); color: var(--fehler); border-left: 4px solid var(--fehler); padding: .75rem 1rem; border-radius: 8px; font-weight: 600; }
#slot-weg-meldung, #suchen-lange { background: var(--hinweis-hell); color: var(--teal-dunkel); border-left-color: var(--teal); }
.zusammenfassung { font-size: 1.2rem; font-weight: 650; }
.hilfe { margin-top: 1.25rem; }
.hilfe summary { cursor: pointer; color: var(--indigo); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

.lade { width: 48px; height: 48px; border-radius: 50%; border: 5px solid #e0e7ff; border-top-color: var(--teal); animation: drehen 1s linear infinite; margin: 1rem 0; }
@keyframes drehen { to { transform: rotate(360deg); } }

.kalender .tag { border-top: 1px solid var(--linie); }
.kalender .tag:first-child { border-top: 0; }
.zeiten { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.zeit {
  width: 100%; min-height: 48px; font: 650 1rem/1 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  background: #eef2ff; color: var(--indigo-dunkel); border: 1.5px solid #c7d2fe; border-radius: 10px; cursor: pointer;
}
.zeit:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.fuss { text-align: center; padding: 1.25rem 1rem 2rem; color: var(--text-leise); font-size: .9rem; }
.fuss nav { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: .35rem; }
.fuss nav a { min-height: 44px; display: inline-flex; align-items: center; }
.fuss p { margin: 0; }

@media (min-width: 48rem) {
  .kopf { padding: 1.75rem 2rem 2rem; }
  .kopf .praxis { font-size: 2rem; }
  main { padding-top: 2.5rem; }
  .schirm { padding: 2rem 2.25rem; }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .lade { animation: none; border-top-color: var(--teal); }
}
