/* ==========================================================================
   Terminbuchung – Akram Safar
   Styles for termin.html (public booking page)
   ========================================================================== */

.termin-page-nav .next-hero-title {
  font-size: clamp(3rem, 12vw, 11rem) !important;
  line-height: 0.95 !important;
}

/* Six Caps has no lowercase digits – numbers in this font fall back to a box */
.termin-day,
.termin-calendar-head h2,
.termin-month-label,
.termin-slot,
.termin-success-card dd {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif !important;
}

.termin-page-nav .page-nav-caption {
  padding-top: 130px;
  padding-bottom: 0;
  height: auto !important;
  min-height: 0 !important;
}

/* Intro ------------------------------------------------------------------ */
.termin-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.termin-intro p {
  color: #cfcfcf;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 26px;
}

.termin-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.termin-benefits li {
  color: #e7e7e7;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.termin-benefits i {
  color: #00a3c4;
  font-size: 15px;
}

/* remove the empty gap between the intro and the booking widget ---------- */
.termin-intro-row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.termin-booking-row {
  padding-top: 30px !important;
  padding-bottom: 90px !important;
}

/* Shell ------------------------------------------------------------------ */
.termin-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Steps ------------------------------------------------------------------ */
.termin-steps {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
  counter-reset: none;
}

.termin-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c6c6c;
  padding: 9px 18px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.termin-steps li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #9a9a9a;
  transition: all 0.25s ease;
}

.termin-steps li.active {
  color: #fff;
  border-color: rgba(0, 163, 196, 0.85);
  background: rgba(0, 163, 196, 0.16);
}

.termin-steps li.active span {
  background: #00a3c4;
  color: #fff;
}

.termin-steps li.done {
  color: #b9b9b9;
  border-color: rgba(255, 255, 255, 0.14);
}

.termin-steps li.done span {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
}

/* Panel ------------------------------------------------------------------ */
.termin-panel {
  animation: terminFade 0.35s ease;
}

.termin-panel.hidden {
  display: none;
}

@keyframes terminFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Calendar + times ------------------------------------------------------- */
#step-panel-1 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.termin-calendar,
.termin-times {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 26px;
}

.termin-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.termin-calendar-head h2 {
  font-family: "Poppins", sans-serif !important;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}

.termin-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #e4e4e4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 13px;
}

.termin-nav-btn:hover:not(:disabled) {
  background: rgba(0, 163, 196, 0.25);
  border-color: rgba(0, 163, 196, 0.8);
  color: #fff;
}

.termin-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.termin-weekdays,
.termin-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.termin-weekdays {
  margin-bottom: 8px;
}

.termin-weekdays span {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c6c6c;
  padding: 4px 0;
}

.termin-day {
  font-family: "Poppins", sans-serif !important;
  aspect-ratio: 1 / 1;
  min-height: 46px;
  min-width: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e4;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.18s ease;
  position: relative;
  padding: 0;
}

.termin-day .termin-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00a3c4;
  box-shadow: 0 0 6px rgba(0, 163, 196, 0.9);
}

.termin-day:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 500;
}

.termin-day:not(:disabled):hover {
  border-color: #00a3c4;
  background: rgba(0, 163, 196, 0.18);
  transform: translateY(-1px);
}

.termin-day:hover:not(:disabled) {
  background: rgba(0, 163, 196, 0.2);
  border-color: rgba(0, 163, 196, 0.6);
  color: #fff;
}

.termin-day.selected {
  background: #00a3c4;
  border-color: #00a3c4;
  box-shadow: 0 0 0 2px rgba(0, 163, 196, 0.25);
  color: #fff;
  font-weight: 600;
}

.termin-day.selected .termin-day-dot {
  background: #fff;
}

.termin-day:disabled {
  background: transparent;
  color: #3f3f3f;
  cursor: not-allowed;
}

.termin-day.empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.termin-day.today::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.termin-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #7d7d7d;
  margin: 18px 0 0;
}

.termin-legend span {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.termin-legend .legend-free { background: rgba(255, 255, 255, 0.12); margin-left: 4px; }
.termin-legend .legend-selected { background: #00a3c4; margin-left: 12px; }
.termin-legend .legend-off { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.08); margin-left: 12px; }

.termin-times h3 {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}

.termin-times-hint {
  font-size: 13px;
  color: #7d7d7d;
  margin: 0 0 18px;
}

.termin-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 60px;
}

.termin-slot {
  font-family: "Poppins", sans-serif !important;
  padding: 13px 6px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e4;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
}

.termin-slot:hover:not(:disabled) {
  background: rgba(0, 163, 196, 0.2);
  border-color: rgba(0, 163, 196, 0.65);
  color: #fff;
}

.termin-slot.selected {
  background: #00a3c4;
  border-color: #00a3c4;
  color: #fff;
  font-weight: 600;
}

.termin-slot:disabled {
  color: #3f3f3f;
  background: transparent;
  cursor: not-allowed;
  text-decoration: line-through;
}

.termin-slot-empty {
  grid-column: 1 / -1;
  color: #7d7d7d;
  font-size: 13px;
  padding: 14px 0;
  text-align: center;
}

/* Buttons ---------------------------------------------------------------- */
.termin-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.termin-btn {
  position: relative;
  z-index: 2;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 40px;
  border: 2px solid #00a3c4;
  background: #00a3c4;
  color: #fff;
  cursor: pointer;
  transition: all 0.22s ease;
}

.termin-btn:hover:not(:disabled) {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.termin-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #6d6d6d;
  opacity: 1;
  cursor: not-allowed;
}

.termin-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #e4e4e4;
}

.termin-btn-ghost:hover:not(:disabled) {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* Form ------------------------------------------------------------------- */
.termin-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(0, 163, 196, 0.14);
  border: 1px solid rgba(0, 163, 196, 0.5);
  margin-bottom: 26px;
  color: #fff;
  font-size: 14px;
  flex-wrap: wrap;
}

.termin-summary i {
  color: #3fd0f0;
}

.termin-summary strong {
  font-weight: 600;
}

.termin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.termin-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.termin-field-full {
  grid-column: 1 / -1;
}

.termin-field label {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.termin-field input,
.termin-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f1f1f1;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.termin-field input::placeholder,
.termin-field textarea::placeholder {
  color: #5f5f5f;
}

.termin-field input:focus,
.termin-field textarea:focus {
  outline: none;
  border-color: #00a3c4;
  background: rgba(255, 255, 255, 0.07);
}

.termin-field input.invalid,
.termin-field textarea.invalid {
  border-color: #ef4444;
}

.termin-error {
  color: #f87171;
  font-size: 12.5px;
  min-height: 0;
  display: block;
}

.termin-error:empty {
  display: none;
}

.termin-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.termin-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  font-size: 13.5px;
  color: #b3b3b3;
  line-height: 1.6;
  cursor: pointer;
}

.termin-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #00a3c4;
  flex: 0 0 auto;
}

.termin-consent a {
  color: #3fd0f0;
  text-decoration: underline;
}

.termin-form-status {
  margin-top: 16px;
  font-size: 14px;
  border-radius: 12px;
  padding: 0;
}

.termin-form-status:empty {
  display: none;
}

.termin-form-status.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 13px 16px;
}

.termin-form-status.info {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #a5f3fc;
  padding: 13px 16px;
}

/* Success ---------------------------------------------------------------- */
.termin-success {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 44px 34px;
}

.termin-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  font-size: 26px;
}

.termin-success h2 {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.termin-success p {
  color: #b3b3b3;
  font-size: 15px;
  line-height: 1.7;
}

.termin-success-card {
  margin: 26px 0;
  text-align: left;
  border-radius: 16px;
  background: rgba(0, 163, 196, 0.14);
  border: 1px solid rgba(0, 163, 196, 0.45);
  padding: 20px 24px;
  color: #fff;
  font-size: 14px;
}

.termin-success-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 14px;
}

.termin-success-card dt {
  color: #a3a3a3;
  font-size: 13px;
}

.termin-success-card dd {
  margin: 0;
  font-weight: 600;
}

.termin-success-note {
  font-size: 13.5px;
}

.termin-success-note a {
  color: #3fd0f0;
  text-decoration: underline;
}

/* Loading spinner -------------------------------------------------------- */
.termin-btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
  color: transparent;
}

.termin-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: terminSpin 0.7s linear infinite;
}

@keyframes terminSpin {
  to { transform: rotate(360deg); }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  #step-panel-1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .termin-page-nav .page-nav-caption {
    padding-top: 120px;
    padding-bottom: 24px;
  }

  .termin-shell {
    padding: 0 4px;
  }

  .termin-steps {
    gap: 6px;
    margin-bottom: 24px;
  }

  .termin-steps li {
    font-size: 10.5px;
    padding: 7px 11px;
    gap: 6px;
    letter-spacing: 0.03em;
  }

  .termin-steps li span {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .termin-calendar,
  .termin-times {
    padding: 18px;
    border-radius: 18px;
  }

  .termin-days,
  .termin-weekdays {
    gap: 4px;
  }

  .termin-day {
    font-size: 13px;
    border-radius: 10px;
  }

  .termin-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .termin-form-grid {
    grid-template-columns: 1fr;
  }

  .termin-summary {
    font-size: 13px;
    padding: 14px 16px;
  }

  .termin-step-actions {
    justify-content: stretch;
  }

  .termin-step-actions .termin-btn {
    width: 100%;
  }

  .termin-success {
    padding: 32px 20px;
  }

  .termin-success-card dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .termin-success-card dt {
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .termin-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .termin-benefits {
    flex-direction: column;
    align-items: center;
  }
}


/* ==========================================================================
   Click-Sicherheit: nichts darf die Buchungsflächen überdecken
   (Preloader, Cursor-Ball, Overlay-Layer)
   ========================================================================== */
.preloader-wrap {
  pointer-events: none !important;
}

.termin-shell,
.termin-shell * {
  position: relative;
}

.termin-shell {
  z-index: 5;
}

#magic-cursor,
#ball,
#clone-image,
.cd-cover-layer {
  pointer-events: none;
}

#magic-cursor {
  z-index: 1;
}


/* Six Caps lacks digits in some builds – force a readable font everywhere
   inside the booking widget, including elements styled by other sheets. */
.termin-shell,
.termin-shell *,
#termin-steps li,
#termin-steps li span {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  font-variant-numeric: tabular-nums;
}

.termin-shell .termin-day,
.termin-shell .termin-slot {
  letter-spacing: 0;
}


/* ==========================================================================
   Icon-/Ziffern-Font sicherstellen
   Die Icon-Schrift (Font Awesome) und die Display-Schrift des Themes
   überschreiben sonst Ziffern und Pfeile im Buchungs-Widget.
   ========================================================================== */
.termin-shell .termin-calendar-head h2,
.termin-shell .termin-day,
.termin-shell .termin-day span,
.termin-shell .termin-day .termin-day-dot,
.termin-shell .termin-slot,
.termin-shell .termin-btn,
.termin-shell .termin-steps li,
.termin-shell .termin-steps li span,
.termin-shell .termin-weekdays span,
.termin-shell .termin-legend,
.termin-shell .termin-legend span,
.termin-shell .termin-error,
.termin-shell .termin-hint,
.termin-shell .termin-times h3,
.termin-shell .termin-times-hint,
.termin-shell .termin-slot-empty,
.termin-shell .termin-success h2,
.termin-shell .termin-success-card,
.termin-shell .termin-success-card dt,
.termin-shell .termin-success-card dd,
.termin-shell .termin-form-grid label,
.termin-shell .termin-consent,
.termin-shell .termin-consent input,
.termin-shell .termin-field input,
.termin-shell .termin-field textarea {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

/* Pfeile (Vor/Zurück im Kalender) ohne Icon-Font zeichnen */
.termin-nav-btn i {
  display: none !important;
}

.termin-nav-btn::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
}

#cal-prev::before {
  transform: rotate(-135deg);
  margin-left: 2px;
}

#cal-next::before {
  transform: rotate(45deg);
  margin-right: 2px;
}





/* Der Höhen-Titel des Themes liegt sonst ÜBER dem Kalender und schluckt
   Klicks und Ziffern – wir halten ihn strikt hinter dem Inhalt. */
.termin-page-nav,
#page-nav.termin-page-nav,
.termin-page-nav .page-nav-wrap,
.termin-page-nav .page-nav-caption,
.termin-page-nav .page-nav-caption .inner {
  position: relative !important;
  z-index: 1 !important;
  pointer-events: none !important;
  overflow: visible !important;
}

#main-content,
#main-page-content,
.termin-booking-row,
.termin-shell {
  position: relative !important;
  z-index: 10 !important;
}

.termin-shell,
.termin-shell * {
  pointer-events: auto;
}

.termin-shell .termin-day,
.termin-nav-btn,
.termin-slot,
.termin-btn {
  cursor: pointer;
}


/* Zahlen (Ziffern) sind in der Display-Schrift des Themes nicht enthalten:
   alles, was Ziffern zeigt, nutzt Poppins – auch das Datum im Titel. */
.termin-page-nav .caption-timeline span,
.termin-page-nav .next-hero-subtitle span,
.termin-page-nav .next-hero-title span {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}


/* ---------------------------------------------------------------
   Lesbarkeit der Zahlen im Kalender
   Ein Theme-Skript färbt Zahlen nachträglich dunkel ein – deshalb
   hier mit hoher Spezifität und ohne !important-Kette erzwingen.
   --------------------------------------------------------------- */
#content-scroll .termin-shell .termin-day,
#content-scroll .termin-shell .termin-day > span,
#content-scroll .termin-shell .termin-slot,
#content-scroll .termin-shell .termin-calendar-head h2,
#content-scroll .termin-shell .termin-weekdays span,
#content-scroll .termin-shell .termin-legend,
#content-scroll .termin-shell .termin-steps li span {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

#content-scroll .termin-shell .termin-day {
  color: #ffffff !important;
  font-weight: 600 !important;
}

#content-scroll .termin-shell .termin-day:disabled {
  color: #4a4a4a !important;
}

#content-scroll .termin-shell .termin-day.selected {
  color: #ffffff !important;
}

#content-scroll .termin-shell .termin-slot {
  color: #ffffff !important;
}

#content-scroll .termin-shell .termin-slot:disabled {
  color: #4a4a4a !important;
}


/* Gesperrte / vergangene Tage: Zahl bleibt lesbar, Wirkt aber deaktiviert */
#content-scroll .termin-shell .termin-day:disabled,
#content-scroll .termin-shell .termin-day:disabled > span {
  color: #8b8b8b !important;
}

#content-scroll .termin-shell .termin-slot:disabled {
  color: #8b8b8b !important;
}

/* Zahl im Kalender: sichere Darstellung ohne Display-Font */
#content-scroll .termin-shell .termin-day > span:first-child {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit !important;
}




/* ---------------------------------------------------------------
   Mobile: Vorteils-Liste im Kopf kompakt und linksbündig,
   mit Abstand zum Logo.
   --------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .termin-intro-row .termin-benefits {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 14px 0 0 0 !important;
    padding: 0 0 0 104px !important;
    list-style: none !important;
  }

  .termin-intro-row .termin-benefits li {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .termin-intro-row .termin-benefits li i {
    flex: 0 0 18px !important;
    width: 18px !important;
    margin-right: 10px !important;
    text-align: center !important;
  }
}

@media screen and (max-width: 420px) {
  .termin-intro-row .termin-benefits {
    padding-left: 92px !important;
  }

  .termin-intro-row .termin-benefits li {
    font-size: 13px !important;
  }
}




/* Mobile Kopf: Untertitel volle Breite, Titel als einzelne Zeile
   (Schriftgröße passt sich per clamp an, damit nichts umbricht). */
@media screen and (max-width: 767px) {
  .termin-page-nav .page-nav-caption.height-title {
    padding: 8px 16px 0 !important;
    text-align: center !important;
  }

  .termin-page-nav .page-nav-caption .inner {
    text-align: center !important;
  }

  .termin-page-nav .next-hero-subtitle.caption-timeline,
  .termin-page-nav .next-hero-subtitle.caption-timeline span {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline,
  .termin-page-nav .next-hero-title.caption-timeline span {
    display: block !important;
    font-size: clamp(26px, 9vw, 46px) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .termin-intro-row {
    padding-top: 0 !important;
  }
}


/* Theme legt jeden Buchstaben des Titels in ein eigenes DIV –
   für mobil die Buchstaben wieder als Fließtext behandeln. */
@media screen and (max-width: 767px) {
  .termin-page-nav .next-hero-title.caption-timeline {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: baseline !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline > div,
  .termin-page-nav .next-hero-title.caption-timeline > span {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    vertical-align: baseline !important;
    transform: none !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline span,
  .termin-page-nav .next-hero-title.caption-timeline > div > span {
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
    font-size: clamp(24px, 8.6vw, 42px) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    display: inline !important;
    white-space: normal !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline {
    font-size: 0 !important;
    line-height: 0 !important;
  }
}


/* Mobil: Titel und Untertitel unter das Logo schieben (Logo ist ~92px breit) */
@media screen and (max-width: 767px) {
  .termin-page-nav .page-nav-caption.height-title {
    padding: 4px 16px 0 100px !important;
    text-align: left !important;
  }

  .termin-page-nav .page-nav-caption .inner {
    text-align: left !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline {
    justify-content: flex-start !important;
  }

  .termin-page-nav .next-hero-subtitle.caption-timeline,
  .termin-page-nav .next-hero-subtitle.caption-timeline span {
    text-align: left !important;
  }
}

@media screen and (max-width: 420px) {
  .termin-page-nav .page-nav-caption.height-title {
    padding-left: 92px !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline span,
  .termin-page-nav .next-hero-title.caption-timeline > div > span {
    font-size: clamp(20px, 6.4vw, 30px) !important;
  }
}


/* Der Titel "Termin vereinbaren" ist im Desktop-Layout zu breit und läuft
   links aus dem Bild – hier auf eine lesbare Größe begrenzen. */
@media screen and (min-width: 768px) {
  .termin-page-nav .next-hero-title.caption-timeline {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: baseline !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline > div,
  .termin-page-nav .next-hero-title.caption-timeline > span {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline span,
  .termin-page-nav .next-hero-title.caption-timeline > div > span {
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
    font-size: clamp(40px, 5.4vw, 76px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    display: inline !important;
    white-space: nowrap !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline {
    font-size: 0 !important;
    line-height: 0 !important;
  }
}


/* Auf sehr schmalen Geräten darf die Vorteils-Liste unter das Logo rutschen */
@media screen and (max-width: 380px) {
  .termin-page-nav .page-nav-caption.height-title {
    padding-left: 16px !important;
    padding-top: 68px !important;
    text-align: center !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline {
    justify-content: center !important;
  }

  .termin-intro-row .termin-benefits {
    padding-left: 0 !important;
    align-items: center !important;
  }

  .termin-intro-row .termin-benefits li {
    justify-content: flex-start !important;
    max-width: 260px !important;
  }
}


/* Letzte Feinjustierung: Untertitel in der Kopfzeile bekommt auf kleinen
   Displays eine eigene Zeile unter dem Logo. */
@media screen and (max-width: 767px) {
  .termin-page-nav .page-nav-caption.height-title {
    display: block !important;
    padding: 0 16px !important;
    min-height: 0 !important;
  }

  .termin-page-nav .page-nav-caption.height-title > .inner {
    display: block !important;
    padding-top: 84px !important;
  }

  .termin-page-nav .next-hero-subtitle.caption-timeline,
  .termin-page-nav .next-hero-subtitle.caption-timeline span {
    font-size: 12px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    margin: 0 auto 6px !important;
    max-width: 330px !important;
  }

  .termin-page-nav .next-hero-title.caption-timeline {
    justify-content: center !important;
  }
}

@media screen and (max-width: 380px) {
  .termin-page-nav .page-nav-caption.height-title > .inner {
    padding-top: 78px !important;
  }
}


/* Kopfzeile mobil: Logo sitzt links, der Text beginnt darunter. */
@media screen and (max-width: 767px) {
  .termin-page-nav .page-nav-caption.height-title {
    padding-top: 110px !important;
  }

  .termin-page-nav .page-nav-caption.height-title > .inner {
    padding-top: 0 !important;
  }
}

@media screen and (max-width: 380px) {
  .termin-page-nav .page-nav-caption.height-title {
    padding-top: 104px !important;
  }
}
