/* =============================================================
   0 DELAY OS · Terminbuchung — Aussehen
   Erbt Farben und Radien der Seite. Alle Klassen mit .odt-.
   ============================================================= */

#termin-kalender {
  --odt-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --odt-kante: rgba(0, 210, 255, .22);
  --odt-kante-hell: rgba(0, 210, 255, .5);
}

.odt-kopf { max-width: 46rem; }

.odt-titel {
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.odt-untertitel {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  line-height: 1.7;
}

.odt-buehne {
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.odt-schritt + .odt-schritt,
.odt-formular { margin-top: 26px; }

.odt-marke {
  display: block;
  margin-bottom: 13px;
  color: #7f93ab;
  font: 500 .68rem/1 var(--odt-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Tage ---------- */

.odt-tage {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 210, 255, .25) transparent;
}

.odt-tage::-webkit-scrollbar { height: 6px; }
.odt-tage::-webkit-scrollbar-thumb { background: rgba(0, 210, 255, .22); border-radius: 99px; }

.odt-tag {
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 76px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  color: var(--soft);
  cursor: pointer;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.odt-tag:hover { transform: translateY(-2px); border-color: var(--odt-kante); }

.odt-tag-wochentag {
  color: #9fb0c7;
  font: 500 .68rem/1 var(--odt-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.odt-tag-datum { font-size: .95rem; font-weight: 600; }

.odt-tag-anzahl {
  color: #64798f;
  font: 500 .64rem/1 var(--odt-mono);
}

.odt-tag.odt-aktiv {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(0, 114, 255, .34), rgba(0, 210, 255, .2));
  box-shadow: 0 0 0 1px var(--odt-kante-hell) inset;
}

.odt-tag.odt-aktiv .odt-tag-wochentag,
.odt-tag.odt-aktiv .odt-tag-anzahl { color: #aeeaff; }

/* ---------- Uhrzeiten ---------- */

.odt-zeiten { display: flex; flex-wrap: wrap; gap: 9px; }

.odt-zeit {
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--soft);
  font: 600 .92rem/1 var(--odt-mono);
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.odt-zeit:hover { transform: translateY(-2px); border-color: var(--odt-kante); }

.odt-zeit.odt-aktiv {
  border-color: transparent;
  background: linear-gradient(135deg, #0072ff, #00d2ff);
  color: #02040b;
}

.odt-laedt,
.odt-leer {
  margin: 0;
  color: var(--muted);
  font: 500 .8rem/1.6 var(--odt-mono);
}

/* ---------- Formular ---------- */

.odt-felder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.odt-feld { display: grid; gap: 7px; }
.odt-feld-breit { grid-column: 1 / -1; }

.odt-label {
  color: #9fb0c7;
  font-size: .78rem;
  font-weight: 500;
}

.odt-feld input,
.odt-feld select,
.odt-feld textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: 400 .9rem/1.4 Inter, system-ui, sans-serif;
  resize: vertical;
}

.odt-feld input::placeholder,
.odt-feld textarea::placeholder { color: #6d7f95; }

.odt-feld input:focus,
.odt-feld select:focus,
.odt-feld textarea:focus {
  outline: none;
  border-color: var(--odt-kante-hell);
  background: rgba(0, 210, 255, .06);
}

.odt-feld select { appearance: none; cursor: pointer; }
.odt-feld select option { background: #050913; color: var(--text); }

/* ---------- Systemdaten ---------- */

.odt-specs {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.odt-specs-kopf { margin-bottom: 16px; }
.odt-specs-kopf .odt-marke { margin-bottom: 7px; }

.odt-specs-hinweis {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

.odt-specs-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.odt-specs-raster input,
.odt-specs-raster select {
  padding: 11px 13px;
  font-size: .86rem;
}

/* Honigtopf — für Menschen unsichtbar, für Formular-Bots verlockend */
.odt-honig {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.odt-fehler {
  margin: 14px 0 0;
  color: #ff8a84;
  font-size: .85rem;
}

.odt-absenden {
  margin-top: 20px;
  width: 100%;
  max-width: 320px;
}

.odt-absenden[disabled] { opacity: .6; cursor: progress; }

/* ---------- Bezahlung ---------- */

.odt-zahlung {
  padding: 24px;
  border: 1px solid var(--odt-kante);
  border-radius: 20px;
  background: rgba(0, 20, 38, .55);
}

.odt-zahlen-text {
  margin: 0;
  max-width: 40rem;
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.65;
}

.odt-zahlen-betrag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.odt-zb-marke {
  color: #7f93ab;
  font: 500 .68rem/1 var(--odt-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.odt-zahlen-betrag strong {
  color: #00d2ff;
  font: 700 2rem/1 var(--odt-mono);
  letter-spacing: -.02em;
}

.odt-paypal { max-width: 420px; }

/* ---------- Bestätigung ---------- */

.odt-ergebnis {
  padding: 24px;
  border: 1px solid var(--odt-kante);
  border-radius: 20px;
  background: rgba(0, 20, 38, .55);
}

.odt-r-kopf {
  color: #28c840;
  font: 500 .72rem/1 var(--odt-mono);
  letter-spacing: .06em;
}

.odt-r-titel {
  margin-top: 12px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.odt-r-zeit {
  margin-top: 6px;
  color: #00d2ff;
  font: 700 1.7rem/1 var(--odt-mono);
  letter-spacing: -.01em;
}

.odt-r-text {
  margin: 18px 0 0;
  max-width: 42rem;
  color: var(--soft);
  font-size: .92rem;
  line-height: 1.7;
  white-space: pre-line;
}

.odt-r-nachricht {
  margin: 18px 0 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(3, 8, 18, .7);
  color: #aeeaff;
  font: 400 .8rem/1.75 var(--odt-mono);
  white-space: pre-wrap;
}

.odt-r-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.odt-knopf {
  padding: 11px 18px;
  border: 1px solid var(--odt-kante);
  border-radius: 999px;
  background: rgba(0, 210, 255, .05);
  color: #cfe9ff;
  font: 500 .85rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.odt-knopf:hover { transform: translateY(-1px); border-color: var(--odt-kante-hell); }

.odt-knopf-stark {
  border-color: transparent;
  background: linear-gradient(135deg, #0072ff, #00d2ff);
  color: #02040b;
  font-weight: 650;
}

/* ---------- Fokus & kleine Bildschirme ---------- */

#termin-kalender :focus-visible {
  outline: 2px solid #00d2ff;
  outline-offset: 2px;
}

@media (max-width: 1000px) {
  .odt-specs-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .odt-specs-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .odt-buehne { padding: 20px 16px; }
  .odt-felder { grid-template-columns: minmax(0, 1fr); }
  .odt-absenden { max-width: none; }
  .odt-r-zeit { font-size: 1.4rem; }
}

@media (max-width: 460px) {
  .odt-specs-raster { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Schongang ---------- */

html.gpu-off-mode .odt-tag:hover,
html.gpu-off-mode .odt-zeit:hover,
html.gpu-off-mode .odt-knopf:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .odt-tag, .odt-zeit, .odt-knopf { transition: none; }
}
