/* Terminbuchung – gleiche Sprache wie die Startseite: dunkler Grund, helle schwebende Tafel, Glas, ein Blau. */
.t-seite { background: radial-gradient(55% 40% at 50% 0%, rgba(var(--accent-rgb), .35), transparent 75%), #0c0b10; min-height: 100vh; }
.t-kopf { display: flex; justify-content: space-between; align-items: center; padding: 1rem 6%; max-width: 1180px; margin: 0 auto; }
.t-zurueck { color: var(--text); text-decoration: none; font-size: .95rem; padding: .5rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.t-zurueck:hover { border-color: rgba(141,182,255,.6); color: #fff; }
.t-buehne { padding: clamp(10px, 2vw, 28px); padding-top: 0; }
.t-tafel {
  max-width: 1240px; margin: 0 auto; border-radius: clamp(20px, 3vw, 36px);
  padding: clamp(1.75rem, 5vw, 4rem) clamp(16px, 5vw, 64px);
  background: radial-gradient(70% 40% at 50% 0%, #fff, transparent 70%), linear-gradient(180deg, #f2f3f8, #e2e7f1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 50px 120px -40px rgba(var(--accent-rgb), .75);
  color: #2b3142;
}
.t-einleitung h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.025em; color: #0c0b10; margin: 0 0 1rem; max-width: 20ch; text-wrap: balance; }
.t-einleitung p { font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 60ch; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); color: #3a4152; }
.t-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.t-block {
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95); border-radius: 20px;
  padding: clamp(1.1rem, 2.6vw, 2rem); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -36px rgba(14,20,50,.5); min-width: 0;
}
.t-block h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.35rem; color: #0c0b10; margin: 0 0 1rem; }
.t-modus { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.1rem; }
.t-chip { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .15rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid rgba(20,26,48,.18); background: #fff; min-width: 0; }
.t-chip[aria-checked="true"] { border-color: #1b5fcb; box-shadow: 0 0 0 3px rgba(27,95,203,.25); }
.t-chip:focus-visible { outline: 2px solid #1b5fcb; outline-offset: 2px; }
.t-chip-titel { font-size: .85rem; color: #566074; font-weight: 500; }
.t-chip-titel em { font-style: normal; }
.t-chip-wert { font-weight: 600; color: #0c0b10; font-size: .95rem; }
.t-chip-wert.leer { color: #8a90a2; font-weight: 400; }
.t-tage-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; font-weight: 600; color: #0c0b10; }
.t-pfeil { all: unset; cursor: pointer; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(20,26,48,.18); background: #fff; font-size: 1.3rem; color: #0c0b10; }
.t-pfeil:disabled { opacity: .35; cursor: default; }
.t-pfeil:focus-visible { outline: 2px solid #1b5fcb; outline-offset: 2px; }
.t-tage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; margin-bottom: 1rem; }
.t-tag { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: .55rem .2rem; border-radius: 12px; border: 1px solid rgba(20,26,48,.14); background: #fff; color: #0c0b10; }
.t-tag small { display: block; font-size: .78rem; color: #566074; }
.t-tag b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; }
.t-tag[aria-selected="true"] { background: #1b5fcb; border-color: #1b5fcb; color: #fff; }
.t-tag[aria-selected="true"] small { color: #dbe7ff; }
.t-tag:disabled { opacity: .35; cursor: default; }
.t-tag:focus-visible, .t-zeit-k:focus-visible { outline: 2px solid #1b5fcb; outline-offset: 2px; }
.t-zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .45rem; min-height: 2.6rem; }
.t-zeit-k { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: .55rem .3rem; border-radius: 10px; border: 1px solid rgba(20,26,48,.18); background: #fff; font-weight: 600; color: #0c0b10; }
.t-zeit-k:hover { border-color: #1b5fcb; }
.t-zeit-k[aria-pressed="true"] { background: #1b5fcb; border-color: #1b5fcb; color: #fff; }
.t-zeit-k.andere { box-shadow: inset 0 0 0 2px rgba(27,95,203,.45); }
.t-zeit-k:disabled { opacity: .3; cursor: default; text-decoration: line-through; }
.t-klein { font-size: .9rem; color: #566074; margin: .9rem 0 0; }
.t-hinweis { padding: .7rem 1rem; border-radius: 10px; background: rgba(27,95,203,.1); border: 1px solid rgba(27,95,203,.28); color: #123f82; }
.t-warnung { background: rgba(164,38,44,.08); border-color: rgba(164,38,44,.3); color: #7a1d22; margin: .8rem 0; }
.t-felder { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.t-felder label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; color: #2b3142; min-width: 0; }
.t-breit { grid-column: 1 / -1; }
.t-felder input:not([type=radio]):not([type=checkbox]), .t-felder select, .t-felder textarea {
  font: inherit; font-size: .98rem; color: #0c0b10; background: #fff; border: 1px solid rgba(20,26,48,.18); border-radius: 10px; padding: .75rem .9rem; width: 100%;
}
.t-felder input:focus, .t-felder select:focus, .t-felder textarea:focus { outline: none; border-color: #1b5fcb; box-shadow: 0 0 0 3px rgba(27,95,203,.25); }
.t-felder [aria-invalid="true"] { border-color: #a4262c !important; }
.t-art { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.t-art legend { font-size: .9rem; font-weight: 500; margin-bottom: .35rem; padding: 0; }
.t-art label { display: flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: 999px; background: #fff; border: 1px solid rgba(20,26,48,.18); cursor: pointer; }
.t-art label:has(input:checked) { border-color: #1b5fcb; box-shadow: 0 0 0 3px rgba(27,95,203,.2); }
.t-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem !important; font-weight: 400 !important; }
.t-check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.t-check a { color: #1b5fcb; }
.t-falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.t-senden { width: 100%; justify-content: center; margin-top: 1.1rem; }
.t-senden[disabled] { opacity: .6; cursor: wait; }
.t-fertig { max-width: 640px; }
.t-fertig h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #0c0b10; margin: 0 0 1rem; }
.t-fertig p { margin: 1rem 0; }
.t-zeit { font-weight: 600; color: #0c0b10; background: #fff; border: 1px solid rgba(20,26,48,.16); border-radius: 12px; padding: .8rem 1rem; margin: .5rem 0; }
.t-fertig .btn-outline { color: #0c0b10; background: #fff; border-color: rgba(20,26,48,.18); margin-top: .5rem; }
@media (max-width: 900px) {
  .t-raster { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .t-felder { grid-template-columns: 1fr; }
  .t-modus { grid-template-columns: 1fr; }
  .t-tage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Bestätigung nach dem Absenden: mittig, mit kurzem Auftritt */
.t-fertig { max-width: 620px; margin: 0 auto; text-align: left; animation: t-auf .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes t-auf { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.t-haken { width: 64px; height: 64px; margin-bottom: 1rem; }
.t-haken svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.t-haken circle { stroke: #1b5fcb; fill: rgba(27,95,203,.1); stroke-dasharray: 151; stroke-dashoffset: 151; animation: t-zug .6s .1s ease forwards; }
.t-haken path { stroke: #1b5fcb; stroke-dasharray: 40; stroke-dashoffset: 40; animation: t-zug .4s .55s ease forwards; }
@keyframes t-zug { to { stroke-dashoffset: 0; } }
.t-fertig h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; color: #0c0b10; margin: 0 0 1.2rem; text-wrap: balance; }
.t-fertig h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; color: #0c0b10; margin: 1.6rem 0 .6rem; }
.t-zk { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid rgba(20,26,48,.16); border-radius: 16px; padding: 12px 14px; margin: 10px 0; box-shadow: 0 18px 40px -30px rgba(14,20,50,.6); }
.t-zk-tag { flex: none; width: 60px; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid rgba(20,26,48,.16); }
.t-zk-tag span { display: block; background: #1b5fcb; color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 0; text-transform: uppercase; letter-spacing: .06em; }
.t-zk-tag b { display: block; font: 600 1.5rem/1.5 'Space Grotesk', sans-serif; color: #0c0b10; }
.t-zk-text { display: grid; gap: 2px; min-width: 0; }
.t-zk-text small { color: #566074; font-size: .82rem; }
.t-zk-text strong { color: #0c0b10; font-weight: 600; }
.t-schritte { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; }
.t-schritte li { padding-left: .2rem; }
.t-schritte b { color: #0c0b10; }
.t-fertig .btn { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .t-fertig, .t-haken circle, .t-haken path { animation: none; stroke-dashoffset: 0; } }
/* hidden muss gewinnen, sonst bleibt das Formular (display:grid) nach dem Absenden stehen */
.t-seite [hidden] { display: none !important; }
.t-fertig { background: rgba(255,255,255,.75); border: 1px solid #fff; border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 40px 80px -40px rgba(14,20,50,.55); }
.t-haken { margin-inline: 0; }
