.buchung {
  padding: clamp(16px, 3vh, 40px) var(--rand) 32px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 160px);
  align-items: start;
}

.einleitung {
  width: max-content;
  max-width: 100%;
  position: sticky;
  top: 110px;
  padding-top: 24px;
}
.einleitung h1 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.018em;
  text-wrap: balance;
  hyphens: manual;
}
.unterzeile {
  margin: 18px 0 0;
  width: 0;
  min-width: 100%;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--leise);
  letter-spacing: -0.008em;
}

.eckdaten {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 0.9688rem;
}
.eckdaten li { display: flex; align-items: center; gap: 12px; }
.eckdaten svg, .schritt svg, .bestaetigung svg, .ablage svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.eckdaten svg { color: var(--blau); }

.auswahl {
  margin-top: 36px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--blau-zart);
  display: grid;
  gap: 2px;
}
.auswahl span { font-size: 0.8125rem; color: var(--blau-text); font-weight: 600; }
.auswahl strong { font-size: 1.125rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.karte {
  background: var(--karte);
  border-radius: var(--r-karte);
  box-shadow: var(--schatten);
  padding: 8px 28px;
}

.schritt { padding: 24px 0; }
.schritt + .schritt { border-top: 1px solid var(--linie); }
.schritt-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.schritt h2 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.monat { color: var(--leise); font-size: 0.9375rem; }

.blaettern { margin-left: auto; display: flex; gap: 6px; }
.blaettern button {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--feld);
  box-shadow: inset 0 0 0 1px var(--linie);
  color: var(--tinte);
  transition: transform 160ms var(--aus), opacity 200ms ease;
}
.blaettern button:active { transform: scale(0.92); }
.blaettern button[disabled] { opacity: 0.35; cursor: default; }
.blaettern svg { width: 18px; height: 18px; }

.tagesleiste {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 6 * 8px) / 7);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 4px;
  overscroll-behavior-x: contain;
}
.tagesleiste::-webkit-scrollbar { display: none; }

.tag {
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 0 9px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--linie);
  transition: transform 160ms var(--aus), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.tag small { font-size: 0.75rem; color: var(--leise); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.tag strong { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tag i { font-style: normal; font-size: 0.6875rem; color: var(--hauch); white-space: nowrap; }
.tag:active:not([disabled]) { transform: scale(0.95); }
.tag[disabled] { cursor: default; opacity: 0.42; box-shadow: none; }
.tag[aria-selected="true"] {
  background: var(--blau-text);
  color: #fff;
  box-shadow: none;
}
.tag[aria-selected="true"] small, .tag[aria-selected="true"] i { color: rgba(255, 255, 255, 0.82); }
@media (hover: hover) and (pointer: fine) {
  .tag:not([disabled]):not([aria-selected="true"]):hover { background: var(--feld); }
}

.lade-tage { display: contents; }
.lade-tage i {
  height: 76px;
  border-radius: 14px;
  background: var(--feld);
  animation: pulsieren 1.2s ease-in-out infinite alternate;
}
@keyframes pulsieren { to { opacity: 0.45; } }

.zeiten { display: grid; gap: 18px; min-height: 120px; }
.tageszeit h3 {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--leise);
}
.zeit-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.zeit {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--blau-zart);
  color: var(--blau-text);
  font-weight: 600;
  font-size: 0.9688rem;
  font-variant-numeric: tabular-nums;
  transition: transform 160ms var(--aus), background-color 200ms ease, color 200ms ease, opacity 300ms var(--aus), translate 300ms var(--aus);
}
.zeit:active { transform: scale(0.95); }
.zeit[aria-pressed="true"] { background: var(--blau-text); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .zeit:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--blau) 20%, transparent); }
}
@starting-style {
  .zeit { opacity: 0; translate: 0 6px; }
}

.leer {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--leise);
  border-radius: 14px;
  background: var(--feld);
}

.angaben {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-rows: 0fr;
  padding: 0;
  opacity: 0;
  transition: grid-template-rows 480ms var(--schublade), opacity 320ms ease;
}
.angaben.offen { grid-template-rows: 1fr; opacity: 1; }
.angaben:not(.offen) { border-top-color: transparent; }
.angaben-innen { min-height: 0; overflow: hidden; margin: 0 -2px; }
.angaben-inhalt { display: grid; gap: 20px; padding: 26px 2px 30px; }
.angaben-inhalt > .schritt-kopf { margin-bottom: -4px; }

.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.themen { border: 0; margin: 0; padding: 0; min-width: 0; }
.themen legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--leise);
}
.themen-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.thema {
  position: relative;
  display: inline-flex;
}
.thema input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.thema span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--linie-stark);
  font-size: 0.9375rem;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--aus);
}
.thema input:checked + span { background: var(--tinte); color: var(--karte); box-shadow: none; }
.thema input:active + span { transform: scale(0.96); }
.thema input:focus-visible + span { outline: 2px solid var(--blau); outline-offset: 2px; }

.ablage-feld {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px dashed var(--linie-stark);
  color: var(--leise);
  font-size: 0.9375rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.ablage-feld strong { color: var(--blau-text); font-weight: 600; }
.ablage-feld small { color: var(--hauch); font-size: 0.8125rem; }
.ablage-feld svg { color: var(--blau); width: 26px; height: 26px; }
.ablage-feld.drueber, .ablage input:focus-visible + .ablage-feld { border-color: var(--blau); background: var(--blau-zart); }
@media (hover: hover) and (pointer: fine) {
  .ablage-feld:hover { border-color: var(--blau); }
}

.datei {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: var(--feld);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.datei svg { color: var(--rot); }
.datei span { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.datei strong { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei small { color: var(--leise); font-size: 0.8125rem; }
.datei button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--leise);
}
.datei button svg { color: inherit; width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .datei button:hover { background: var(--linie); } }


.senden { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.senden.laedt span { opacity: 0.6; }

.fehlertext { margin: -8px 0 0; min-height: 1.4em; color: var(--rot); font-size: 0.9375rem; text-align: center; }
.fehlertext:empty { display: none; }

.bestaetigung {
  padding: 48px 32px 40px;
  text-align: center;
  display: grid;
  justify-items: center;
}
.bestaetigung h2 { margin: 22px 0 0; font-size: 1.75rem; letter-spacing: -0.025em; font-weight: 700; }
.termin-gross { margin: 10px 0 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.012em; font-variant-numeric: tabular-nums; }
.termin-thema { margin: 4px 0 0; color: var(--leise); }
.best-aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.best-hinweis { margin: 20px 0 0; max-width: 42ch; color: var(--leise); font-size: 0.875rem; }

.haken { width: 64px !important; height: 64px !important; color: var(--gruen); }
.haken circle { stroke-width: 2.2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: zeichnen 620ms var(--aus) 80ms forwards; }
.haken path { stroke-width: 2.6; stroke-dasharray: 34; stroke-dashoffset: 34; animation: zeichnen 380ms var(--aus) 520ms forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }

.bestaetigung:not([hidden]) {
  transition: opacity 420ms ease, transform 520ms var(--aus), filter 420ms ease;
  @starting-style { opacity: 0; transform: scale(0.97); filter: blur(6px); }
}


@media (max-width: 900px) {
  .buchung { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 24px 48px; }
  .einleitung { position: static; padding-top: 4px; }
  .unterzeile { font-size: 1.0625rem; }
  .eckdaten { margin-top: 22px; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 22px; font-size: 0.875rem; }
  .auswahl { display: none; }
}

@media (max-width: 640px) {
  .logo { height: 46px; }
  .eckdaten { grid-template-columns: 1fr; gap: 10px; }
  .karte { padding: 4px 18px; border-radius: 18px; }
  .tagesleiste { grid-auto-columns: calc((100% - 4 * 8px) / 4.6); margin: 0 -18px; padding: 4px 18px; scroll-padding: 0 18px; }
  .blaettern { display: none; }
  .monat { margin-left: auto; }
  .raster { grid-template-columns: 1fr; gap: 14px; }
  .zeit-raster { grid-template-columns: repeat(4, 1fr); }
  .bestaetigung { padding: 40px 20px 32px; }
  .best-aktionen { width: 100%; }
  .best-aktionen .knopf { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .zeit-raster { grid-template-columns: repeat(3, 1fr); }
}

.verwalten { max-width: 34rem; margin: 0 auto; padding: 56px 16px; }
.verwalten .bestaetigung h2 { margin-top: 0; }
.absagen.warnen { background: var(--rot-zart); color: var(--rot); }
