/* Buchungsseite Schulungszentrum – Farben und Schrift wie notfalltraining.soft-aid.de */
:root {
  --akzent: #1b6d7a;
  --akzent-dunkel: #12525c;
  --akzent-hell: #e8f2f3;
  --signal: #F2A93B;
  --signal-dunkel: #D6901F;
  --tief: #10333a;
  --text: #17212b;
  --text-schwach: #5b6b7a;
  --linie: #e0e6ec;
  --flaeche: #ffffff;
  --flaeche-still: #f5f8f9;
  --fehler: #9C3B2E;
  --fehler-hell: #F3E5E1;
  --rundung: 14px;
  --schrift: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 17px/1.6 var(--schrift); color: var(--text); background: var(--flaeche-still); -webkit-font-smoothing: antialiased; }
a { color: var(--akzent-dunkel); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
.breite { width: min(100% - 3rem, 1080px); margin-inline: auto; }
main { flex: 1; }

/* Kopf */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-inhalt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.marke { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.marke img { height: 48px; width: auto; }
.marke span { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent); padding-left: .9rem; border-left: 1px solid var(--linie); }
.zurueck { font-size: .92rem; font-weight: 600; text-decoration: none; }
.zurueck:hover { text-decoration: underline; }

/* Einleitung */
.einleitung { padding: 3rem 0 1.5rem; max-width: 46rem; }
.marke-zeile { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent); }
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.fuehrung { font-size: 1.1rem; color: var(--text-schwach); margin: 0; }

/* Schrittanzeige: dünner Balken über jedem Schritt – erledigt in Petrol,
   der aktuelle Schritt in Bernstein (wie die Buttons), kommende grau.
   Erledigte Schritte zeigen die Auswahl und sind anklickbar (zurück). */
.schritte {
  list-style: none; margin: 1.8rem 0 2.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
}
.schritte li { min-width: 0; }
.schritte button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  width: 100%; padding: .95rem 0 0; background: none; border: 0; text-align: left;
  font: inherit; color: var(--text-schwach); cursor: pointer;
}
.schritte button:disabled { cursor: default; }
.schritte button::before, .schritte button::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px;
}
.schritte button::before { background: var(--linie); }
.schritte button::after { transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .3, 1), background .2s; }
.schritte li.aktiv button::after { transform: scaleX(1); background: var(--signal); }
.schritte li.erledigt button::after { transform: scaleX(1); background: var(--akzent); }

.schritt-nr { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9aa7b2; }
.schritte li.aktiv .schritt-nr { color: var(--signal-dunkel); }
.schritte li.erledigt .schritt-nr { color: var(--akzent); }
.schritte li.erledigt .schritt-nr::after { content: ' ✓'; }
.schritt-name { font-size: 1rem; font-weight: 650; color: var(--text); letter-spacing: -.01em; }
.schritte li:not(.aktiv):not(.erledigt) .schritt-name { color: #9aa7b2; }
.schritt-wert { font-size: .86rem; color: var(--text-schwach); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.schritte li.erledigt .schritt-wert { color: var(--akzent-dunkel); font-weight: 600; }
.schritte li:not(.aktiv):not(.erledigt) .schritt-wert { visibility: hidden; }

.schritte button:not(:disabled):hover .schritt-name { text-decoration: underline; text-underline-offset: 3px; }
.schritte button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .schritte button::after { transition: none; } }

.nur-schmal { display: none; }

.zurueck-knopf {
  display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .9rem;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px;
  font: 600 .88rem var(--schrift); color: var(--akzent-dunkel); cursor: pointer;
}
.zurueck-knopf:hover { border-color: var(--akzent); background: var(--akzent-hell); }

.laden { color: var(--text-schwach); }
.schritt { margin-bottom: 3.5rem; }
.schritt h2 { font-size: 1.45rem; }
.schritt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auswahl-hinweis { color: var(--text-schwach); margin: 0 0 1.2rem; }

/* Standorte */
.standorte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1rem; }
.standort { display: flex; flex-direction: row; text-align: left; padding: 0; overflow: hidden; background: var(--flaeche); border: 2px solid var(--linie); border-radius: var(--rundung); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.standort:hover, .standort:focus-visible { border-color: var(--akzent); box-shadow: 0 12px 28px -14px rgba(16, 51, 58, .35); transform: translateY(-2px); outline: none; }
.standort-bild { position: relative; flex: none; width: 15rem; min-height: 11.5rem; background: var(--akzent-hell); display: grid; place-items: center; overflow: hidden; }
.standort-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.standort-bild.leer::after { content: 'Bild folgt'; font-size: .85rem; font-weight: 600; color: var(--akzent); opacity: .7; }
.standort-text { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.standort-text h3 { font-size: 1.3rem; margin: 0; color: var(--tief); }
.standort-text address { font-style: normal; color: var(--text-schwach); font-size: .98rem; }
.standort-naechster { margin-top: auto; padding-top: .8rem; font-size: .9rem; color: var(--akzent-dunkel); font-weight: 600; }

/* Termine */
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.termin { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.2rem; padding: 1rem 1.2rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; }
.termin-datum { font-weight: 650; color: var(--tief); }
.termin-zeit { display: block; font-size: .88rem; font-weight: 400; color: var(--text-schwach); }
.plaetze-anzeige { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-schwach); white-space: nowrap; }
.balken { width: 6rem; height: .45rem; border-radius: 999px; background: var(--akzent-hell); overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--akzent); border-radius: 999px; }
.termin.knapp .balken i { background: var(--signal-dunkel); }
.termin.voll { background: var(--flaeche-still); }
.termin.voll .termin-datum { color: var(--text-schwach); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.35rem; border: 2px solid var(--akzent); border-radius: 10px; background: var(--signal); color: var(--text); font: 650 1rem var(--schrift); text-decoration: none; cursor: pointer; transition: background .15s; }
.knopf:hover { background: var(--signal-dunkel); }
.knopf:disabled { opacity: .55; cursor: default; }
.knopf-klein { padding: .5rem 1rem; font-size: .92rem; }
.knopf-still { background: var(--flaeche); border-color: var(--linie); color: var(--akzent-dunkel); }
.knopf-still:hover { background: var(--flaeche-still); border-color: var(--akzent); }

/* Formular */
.formular-raster { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: start; margin-top: 1rem; }
.formular { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rundung); padding: clamp(1.3rem, 3vw, 2rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
legend { font-weight: 700; color: var(--tief); margin-bottom: .8rem; font-size: 1.05rem; }
.feld { display: block; margin-bottom: .9rem; }
.feld > span { display: block; font-size: .86rem; font-weight: 600; color: var(--text-schwach); margin-bottom: .3rem; }
.feld em, .zustimmung em, .hinweis em { color: var(--fehler); font-style: normal; }
.feld-schmal { max-width: 12rem; }
input, select, textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--linie); border-radius: 9px; font: 1rem var(--schrift); color: var(--text); background: var(--flaeche); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
input.ungueltig { border-color: var(--fehler); }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.feld-paar-plz { grid-template-columns: 8rem 1fr; }
.namen { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.zustimmung { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--text-schwach); }
.zustimmung input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; accent-color: var(--akzent); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis { font-size: .86rem; color: var(--text-schwach); margin: .4rem 0 0; }
.fehlerbox { background: var(--fehler-hell); color: var(--fehler); padding: .8rem 1rem; border-radius: 10px; font-size: .95rem; font-weight: 550; }
.formular .knopf { width: 100%; margin-top: .4rem; font-size: 1.05rem; padding: .9rem; }

.zusammenfassung { position: sticky; top: 1.5rem; background: var(--akzent-hell); border-radius: var(--rundung); padding: 1.4rem 1.5rem; }
.zusammenfassung h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent); margin-bottom: 1rem; }
.zusammenfassung dl { margin: 0; display: grid; gap: .75rem; }
.zusammenfassung dt { font-size: .8rem; color: var(--text-schwach); }
.zusammenfassung dd { margin: 0; font-weight: 600; color: var(--tief); }

/* Erfolg */
.erfolg { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rundung); padding: 2.5rem; text-align: center; max-width: 40rem; margin-inline: auto; }
.erfolg-symbol { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--akzent); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; margin: 0 auto 1rem; }

.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); padding: 1.5rem 0; font-size: .88rem; color: var(--text-schwach); }
.fuss a { color: inherit; }

@media (max-width: 820px) {
  .standorte, .formular-raster { grid-template-columns: 1fr; }
  .zusammenfassung { position: static; order: -1; }
  .termin { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; }
  .plaetze-anzeige { white-space: normal; flex-wrap: wrap; gap: .4rem .6rem; }
  .balken { width: 4.5rem; }
  .termin .plaetze-anzeige { grid-column: 1; grid-row: 2; }
  .termin .knopf, .termin .voll-text { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feld-paar, .namen { grid-template-columns: 1fr; }
  .feld-paar-plz { grid-template-columns: 7rem 1fr; }
  .marke span { display: none; }
  .nur-breit { display: none; }
  .nur-schmal { display: inline; }
  .schritte { gap: .8rem; }
  .schritt-name { font-size: .92rem; }
  .schritt-wert { font-size: .8rem; }
  .standort { flex-direction: column; }
  .standort-bild { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .standort-text { padding: 1rem 1.1rem; }
  .zurueck { font-size: .85rem; }
}
