/* Robotik-Check (Wizard) + Terminanfrage – Styles für [form-robotik-check] und [form-termin] */
.rc-wrapper, .tm-wrapper {
  --rc-blue: #1154a6;
  --rc-blue-hover: #0f4c95;
  --rc-blue-light: #e7eef6;
  --rc-surface: #f3f6fb;
  --rc-ink: #000924;
  --rc-ink-muted: #000924a6;
  --rc-line: #00092426;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  color: var(--rc-ink);
}
.rc-wrapper *, .tm-wrapper * { box-sizing: border-box; }
.rc-wrapper [hidden], .tm-wrapper [hidden] { display: none !important; }

.rc-wrapper [data-botfield], .tm-wrapper [data-botfield] { display: none !important; visibility: hidden !important; opacity: 0 !important; }

.rc-wrapper .form-text, .tm-wrapper .form-text { display: none; padding: 16px 20px; border-radius: 8px; margin: 16px 0; font-weight: 500; }
.rc-wrapper .form-text.show, .tm-wrapper .form-text.show { display: block; }
.rc-wrapper .form-text[data-text-type="success"], .tm-wrapper .form-text[data-text-type="success"] { background: #f0fdf4; border-left: 4px solid #22c55e; color: #166534; }
.rc-wrapper .form-text[data-text-type="error"], .tm-wrapper .form-text[data-text-type="error"] { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.rc-wrapper .form-text p, .tm-wrapper .form-text p { margin: 0; font-size: 14px; }

/* ---------- Wizard ---------- */
.rc-wrapper form { display: flex; flex-direction: column; gap: 30px; }
.rc-head { display: flex; flex-direction: column; gap: 16px; }
.rc-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--rc-ink-muted); }
.rc-meta strong { color: var(--rc-ink); font-weight: 600; }

.rc-stepper { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-stepper .rc-bar { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; transform: translateY(-50%); background: #00092414; z-index: 0; }
.rc-stepper .rc-bar > span { display: block; height: 100%; width: 0; background: var(--rc-blue); transition: width .35s ease; }
.rc-dot { position: relative; z-index: 1; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rc-line); color: #00092466; display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.rc-dot.is-done { background: var(--rc-blue-light); box-shadow: none; color: var(--rc-blue); }
.rc-dot.is-on { width: 34px; height: 34px; background: var(--rc-blue); box-shadow: 0 0 0 5px #1154a626; color: #fff; }

.rc-step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.rc-step.is-active { display: block; }
.rc-qhead { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.rc-qico { flex: none; width: 72px; height: 72px; border-radius: 8px; background: var(--rc-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rc-qhead .rc-hint { margin: 0; }
.rc-q { float: none; width: auto; padding: 0; margin: 0 0 8px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.rc-hint { margin: 0 0 24px; font-size: 14px; line-height: 1.55; color: var(--rc-ink-muted); }

.rc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--rc-min, 140px), 1fr)); gap: 8px; }
.rc-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 148px; padding: 24px 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rc-line); text-align: center; font-size: 15px; line-height: 1.3; font-weight: 600; cursor: pointer; transition: box-shadow .15s, background .15s, transform .15s; }
.rc-tile:hover { box-shadow: inset 0 0 0 2px var(--rc-blue); background: var(--rc-surface); transform: translateY(-1px); }
.rc-tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rc-tile:has(input:checked) { box-shadow: inset 0 0 0 2px var(--rc-blue); background: var(--rc-blue-light); }
.rc-tile:has(input:focus-visible) { outline: 2px solid var(--rc-blue); outline-offset: 2px; }
.rc-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--rc-blue-light); color: var(--rc-blue); display: inline-flex; align-items: center; justify-content: center; }

.rc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.rc-actions .rc-submit, .rc-actions .btn-group { margin-left: auto; }
.rc-back { all: unset; cursor: pointer; font-size: 14px; color: var(--rc-ink-muted); padding: 12px 4px; }
.rc-back:hover { color: var(--rc-blue); }
.rc-note { margin-left: auto; font-size: 13px; color: var(--rc-ink-muted); }

.rc-result { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 20px; background: var(--rc-blue); color: #fff; margin-bottom: 24px; }
.rc-result-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #b5cae3; }
.rc-result strong { font-size: 20px; line-height: 1.3; font-weight: 600; }
.rc-result span:last-child { font-size: 14px; line-height: 1.55; color: #dbe5f2; }
.rc-contact-title { margin: 0 0 16px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.rc-contact .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 8px; margin-bottom: 16px; }

/* ---------- Termin ---------- */
.tm-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px #00092412, 0 50px 100px -40px #0d3f7d44; overflow: hidden; }
.tm-side { padding: 30px; border-right: 1px solid #00092412; display: flex; flex-direction: column; gap: 16px; }
.tm-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--rc-blue-light); display: flex; align-items: center; justify-content: center; flex: none; }
.tm-avatar img { display: block; width: 34px; height: auto; }
.tm-who { display: flex; flex-direction: column; gap: 8px; }
.tm-name { font-size: 14px; color: var(--rc-ink-muted); }
.tm-title { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.tm-row { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #000924cc; }
.tm-row > svg { flex: none; color: #000924a6; }
.tm-seg { display: inline-flex; padding: 4px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #00092418; }
.tm-seg-btn { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 9px; font: 600 13px/1.2 inherit; font-family: inherit; color: #000924a6; }
.tm-seg-btn.is-on { background: var(--rc-blue-light); color: var(--rc-blue); }
.tm-seg-btn:focus-visible, .tm-navbtn:focus-visible, .tm-day:focus-visible, .tm-slot:focus-visible { outline: 2px solid var(--rc-blue); outline-offset: 2px; }
.tm-fine { margin: auto 0 0; padding-top: 8px; font-size: 13px; line-height: 1.6; color: var(--rc-ink-muted); }
.tm-fine a { font-weight: 600; }

.tm-main { min-width: 0; }
.tm-pick { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.tm-cal { padding: 30px; min-width: 0; }
.tm-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; font-size: 20px; }
.tm-cal-head strong { font-weight: 600; }
.tm-cal-head strong span { font-weight: 400; color: var(--rc-ink-muted); }
.tm-nav { display: flex; gap: 8px; }
.tm-navbtn { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.tm-navbtn:hover { background: var(--rc-surface); }
.tm-navbtn:disabled { opacity: .25; cursor: default; background: none; }
.tm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tm-wd { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--rc-ink-muted); padding: 6px 0; }
.tm-day { all: unset; box-sizing: border-box; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 400; color: #00092452; }
.tm-day.is-avail { background: var(--rc-blue-light); color: var(--rc-ink); font-weight: 600; cursor: pointer; }
.tm-day.is-avail:hover { box-shadow: inset 0 0 0 2px var(--rc-blue); }
.tm-day.is-sel { background: var(--rc-blue); color: #fff; box-shadow: 0 8px 20px -8px var(--rc-blue); }
.tm-slots { padding: 30px; border-left: 1px solid #00092412; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tm-slot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.tm-slot { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px; border-radius: 10px; text-align: center; box-shadow: inset 0 0 0 1.5px #00092422; font-size: 14px; font-weight: 600; }
.tm-slot:hover { box-shadow: inset 0 0 0 2px var(--rc-blue); color: var(--rc-blue); }

.tm-details { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.tm-summary { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--rc-blue-light); }
.tm-summary strong { font-size: 16px; font-weight: 600; }
.tm-summary span { font-size: 13px; color: var(--rc-ink-muted); }
.tm-details .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 12px; }

@media (max-width: 1100px) { .tm-pick { grid-template-columns: 1fr; } .tm-slots { border-left: 0; border-top: 1px solid #00092412; } }
@media (max-width: 860px)  { .tm-card { grid-template-columns: 1fr; } .tm-side { border-right: 0; border-bottom: 1px solid #00092412; } }
@media (prefers-reduced-motion: reduce) { .rc-tile, .rc-dot, .rc-stepper .rc-bar > span { transition: none; } }

/* ---------- Standalone-Basis (kein Theme-CSS nötig) ---------- */
.rc-wrapper, .tm-wrapper { font-family: inherit; font-size: 16px; line-height: 1.5; }
.rc-wrapper form, .tm-wrapper form { margin: 0; }
.rc-wrapper fieldset, .tm-wrapper fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rc-wrapper fieldset.rc-step { margin: 0; }
.rc-wrapper label, .tm-wrapper label { font-size: 13px; font-weight: 600; }
.rc-wrapper fieldset > label:first-child, .tm-wrapper fieldset > label:first-child { display: block; margin-bottom: 8px; }
.rc-wrapper .rc-tile, .tm-wrapper .rc-tile { font-size: 15px; }
.rc-wrapper .form-control, .tm-wrapper .form-control {
  display: block; width: 100%; height: 54px; padding: 0 18px; margin: 0; border: 0; border-radius: 14px; background: #fff; color: var(--rc-ink);
  box-shadow: inset 0 0 0 1.5px var(--rc-line); font: inherit; font-size: 16px; font-weight: 500; appearance: none; -webkit-appearance: none;
}
.rc-wrapper .form-control::placeholder, .tm-wrapper .form-control::placeholder { color: #00092466; font-weight: 400; }
.rc-wrapper .form-control:focus, .tm-wrapper .form-control:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rc-blue); }
.rc-wrapper .form-control.is-invalid, .tm-wrapper .form-control.is-invalid { box-shadow: inset 0 0 0 2px #cc1c1c; }
.rc-wrapper .phone-field, .tm-wrapper .phone-field { display: flex; align-items: stretch; height: 54px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rc-line); overflow: hidden; }
.rc-wrapper .phone-field:focus-within, .tm-wrapper .phone-field:focus-within { box-shadow: inset 0 0 0 2px var(--rc-blue); }
.rc-wrapper .phone-prefix, .tm-wrapper .phone-prefix { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-right: 1px solid #00092414; font-size: 15px; font-weight: 600; }
.rc-wrapper .phone-field .form-control, .tm-wrapper .phone-field .form-control { height: 100%; box-shadow: none; border-radius: 0; flex: 1; min-width: 0; }
.rc-wrapper input.checkbox, .tm-wrapper input.checkbox { width: 18px; height: 18px; margin: 2px 12px 0 0; accent-color: var(--rc-blue); flex: none; float: left; }
.rc-wrapper fieldset:has(> input.checkbox) label, .tm-wrapper fieldset:has(> input.checkbox) label { display: block; overflow: hidden; font-size: 12px; line-height: 18px; font-weight: 400; color: var(--rc-ink-muted); }
.rc-wrapper a, .tm-wrapper a { color: var(--rc-blue); }
.rc-wrapper .btn, .tm-wrapper .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 16px 30px; border: 0; border-radius: 56px; cursor: pointer;
  background: var(--rc-blue); color: #fff; font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; transition: background .15s, transform .15s;
}
.rc-wrapper .btn:hover:not(:disabled), .tm-wrapper .btn:hover:not(:disabled) { background: var(--rc-blue-hover); transform: translateY(-1px); }
.rc-wrapper .btn:disabled, .tm-wrapper .btn:disabled { opacity: .45; cursor: not-allowed; }
.rc-wrapper .btn:focus-visible, .tm-wrapper .btn:focus-visible { outline: 2px solid var(--rc-blue); outline-offset: 3px; }
.rc-wrapper .btn[aria-busy="true"], .tm-wrapper .btn[aria-busy="true"] { opacity: .7; }
.rc-wrapper .alert, .tm-wrapper .alert { padding: 12px 16px; border-radius: 8px; background: #fef5e7; }


/* ---------- Telefonfeld (überschreibt lead.css, damit Präfix + Eingabe ein Feld bilden) ---------- */
.rc-wrapper .phone-field, .tm-wrapper .phone-field { display: flex; align-items: stretch; width: 100%; height: 54px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rc-line); overflow: hidden; }
.rc-wrapper .phone-field:focus-within, .tm-wrapper .phone-field:focus-within { box-shadow: inset 0 0 0 2px var(--rc-blue); }
.rc-wrapper .phone-field:has(.form-control.is-invalid), .tm-wrapper .phone-field:has(.form-control.is-invalid),
.rc-wrapper .phone-field:has(.form-control[aria-invalid="true"]), .tm-wrapper .phone-field:has(.form-control[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px #cc1c1c; }
.rc-wrapper .phone-field .phone-prefix, .tm-wrapper .phone-field .phone-prefix,
.rc-wrapper .phone-field:focus-within .phone-prefix, .tm-wrapper .phone-field:focus-within .phone-prefix,
.rc-wrapper .phone-field:has(.form-control[aria-invalid="true"]) .phone-prefix, .tm-wrapper .phone-field:has(.form-control[aria-invalid="true"]) .phone-prefix {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; background: transparent; border: 0; border-right: 1px solid #00092414; border-radius: 0; color: var(--rc-ink); font-size: 15px; font-weight: 600; line-height: 1;
}
.rc-wrapper .phone-field .form-control, .tm-wrapper .phone-field .form-control { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rc-wrapper .phone-field .form-control:focus, .tm-wrapper .phone-field .form-control:focus { box-shadow: none; outline: none; }

/* ---------- Toggle statt Checkbox (DSGVO) ---------- */
.rc-wrapper fieldset:has(> input.checkbox), .tm-wrapper fieldset:has(> input.checkbox) { display: flex; align-items: flex-start; gap: 14px; }
.rc-wrapper input.checkbox, .tm-wrapper input.checkbox {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; float: none; width: 46px; height: 26px; margin: 0; border: 0; border-radius: 26px;
  background: #00092433; cursor: pointer; transition: background .2s; box-shadow: none;
}
.rc-wrapper input.checkbox::after, .tm-wrapper input.checkbox::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #00092440; transition: transform .2s;
}
.rc-wrapper input.checkbox:checked, .tm-wrapper input.checkbox:checked { background: var(--rc-blue); }
.rc-wrapper input.checkbox:checked::after, .tm-wrapper input.checkbox:checked::after { transform: translateX(20px); }
.rc-wrapper input.checkbox:focus-visible, .tm-wrapper input.checkbox:focus-visible { outline: 2px solid var(--rc-blue); outline-offset: 3px; }
.rc-wrapper input.checkbox.is-invalid, .tm-wrapper input.checkbox.is-invalid { box-shadow: 0 0 0 2px #cc1c1c; }
.rc-wrapper fieldset:has(> input.checkbox) label, .tm-wrapper fieldset:has(> input.checkbox) label { flex: 1; cursor: pointer; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--rc-ink-muted); }

/* ---------- Wizard: größere Icons, Kacheln dürfen in 2 Zeilen umbrechen ---------- */
.rc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rc-tiles[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rc-tiles[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc-tiles[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc-tile { min-height: 188px; padding: 28px 16px; gap: 18px; font-size: 16px; }
.rc-ico { width: 88px; height: 88px; border-radius: 20px; }
.rc-ico svg { width: 46px; height: 46px; }
.rc-qico { width: 88px; height: 88px; border-radius: 12px; }
.rc-qico svg { width: 50px; height: 50px; }
.rc-dot { width: 34px; height: 34px; }
.rc-dot svg { width: 17px; height: 17px; }
.rc-dot.is-on { width: 40px; height: 40px; }
.rc-dot.is-on svg { width: 19px; height: 19px; }
@media (max-width: 760px) {
  .rc-tiles, .rc-tiles[data-count="4"], .rc-tiles[data-count="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-tiles[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-tile { min-height: 160px; }
  .rc-ico { width: 72px; height: 72px; }
  .rc-ico svg { width: 38px; height: 38px; }
  .rc-qico { width: 64px; height: 64px; }
  .rc-qico svg { width: 38px; height: 38px; }
  .rc-dot { width: 28px; height: 28px; }
  .rc-dot.is-on { width: 32px; height: 32px; }
}
@media (max-width: 460px) { .rc-tiles[data-count="3"] { grid-template-columns: 1fr; } }


/* ---------- Erfolgs-Panel (statt grünem Hinweisbalken) ---------- */
.rc-wrapper .rc-success, .tm-wrapper .rc-success { display: none; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 24px 0; }
.rc-wrapper.is-sent .rc-success, .tm-wrapper.is-sent .rc-success { display: flex; }
.tm-wrapper .rc-success { padding: 64px 24px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px #00092412, 0 50px 100px -40px #0d3f7d44; }
.rc-success-ico { width: 94px; height: 94px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.rc-success h3 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--rc-ink); }
.rc-success p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.7; color: var(--rc-ink-muted); }
.rc-success p strong { color: var(--rc-ink); font-weight: 600; }
.rc-success p a { color: var(--rc-blue); font-weight: 700; text-decoration: underline; }
.rc-restart { all: unset; cursor: pointer; margin-top: 12px; padding: 14px 28px; border-radius: 56px; font-size: 15px; color: var(--rc-ink-muted); box-shadow: inset 0 0 0 1.5px var(--rc-line); transition: color .15s, box-shadow .15s; }
.rc-restart:hover { color: var(--rc-blue); box-shadow: inset 0 0 0 2px var(--rc-blue); }
.rc-restart:focus-visible { outline: 2px solid var(--rc-blue); outline-offset: 3px; }


/* Erfolgs-Panel: Farben/Rahmen der generischen lead.css ([data-text-type=success]) zurücksetzen */
.rc-wrapper .rc-success[data-text-type], .tm-wrapper .rc-success[data-text-type] { background: none; border: 0; border-radius: 0; color: inherit; }
.tm-wrapper .rc-success[data-text-type] { background: #fff; border-radius: 28px; }

/* "Ein Klick genügt": Hinweis-Chip mit pulsierendem Punkt und Klick-Geste */
.rc-note { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 9px 16px 9px 14px; border-radius: 56px; background: linear-gradient(180deg, #fff, #f3f6fb); box-shadow: inset 0 0 0 1px #00092418, 0 6px 16px -8px #0d3f7d40; font-size: 13px; font-weight: 600; color: var(--rc-ink); user-select: none; }
.rc-pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #22c55e33; }
.rc-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: rc-ping 1.8s ease-out infinite; }
.rc-tap { flex: none; color: var(--rc-blue); animation: rc-tap 2.2s ease-in-out infinite; transform-origin: 40% 90%; }
@keyframes rc-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes rc-tap { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 65% { transform: translateY(2px) scale(.92); } 80% { transform: translateY(-2px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .rc-pulse::after, .rc-tap { animation: none; } }

/* Wizard: mehr Luft zwischen Stepper, Frage und Antwort-Kacheln */
.rc-wrapper form { gap: 48px; }
.rc-head { gap: 20px; }
.rc-qhead { margin-bottom: 40px; }
.rc-qhead .rc-hint { margin-top: 2px; }

/* ==========================================================================
   Smartphone-Optimierung (≤ 700px): Wizard und Termin-Formular
   ========================================================================== */
@media (max-width: 700px) {
  .rc-wrapper form { gap: 28px; }
  .rc-head { gap: 14px; }
  .rc-meta { font-size: 12px; }
  .rc-stepper { gap: 2px; }
  .rc-dot { width: 26px; height: 26px; }
  .rc-dot svg { width: 13px; height: 13px; }
  .rc-dot.is-on { width: 30px; height: 30px; }
  .rc-dot.is-on svg { width: 15px; height: 15px; }
  .rc-qhead { gap: 12px; margin-bottom: 22px; }
  .rc-qico { width: 52px; height: 52px; border-radius: 10px; }
  .rc-qico svg { width: 30px; height: 30px; }
  .rc-q { font-size: 19px; line-height: 1.3; }
  .rc-hint { font-size: 13px; margin-bottom: 0; }

  /* Ja / Teilweise / Nein: kompakte Zeilen statt hoher Kacheln */
  .rc-tiles[data-count="3"] { grid-template-columns: 1fr; gap: 10px; }
  .rc-tiles[data-count="3"] .rc-tile { flex-direction: row; justify-content: flex-start; min-height: 72px; padding: 12px 18px; gap: 16px; text-align: left; }
  .rc-tiles[data-count="3"] .rc-ico { width: 48px; height: 48px; border-radius: 12px; }
  .rc-tiles[data-count="3"] .rc-ico svg { width: 26px; height: 26px; }
  /* sonstige Auswahl: 2 Spalten, kompakter */
  .rc-tiles[data-count="4"], .rc-tiles[data-count="6"] { gap: 10px; }
  .rc-tile { min-height: 132px; padding: 18px 10px; gap: 12px; font-size: 14px; border-radius: 16px; }
  .rc-ico { width: 60px; height: 60px; border-radius: 14px; }
  .rc-ico svg { width: 32px; height: 32px; }

  .rc-actions { gap: 10px; }
  .rc-note { margin-left: auto; font-size: 12px; padding: 7px 12px; }
  .rc-result { padding: 18px; }
  .rc-success { padding: 12px 0; }
  .rc-success-ico { width: 72px; height: 72px; }
  .rc-success-ico svg { width: 34px; height: 34px; }
  .rc-success p { font-size: 16px; }
  .tm-wrapper .rc-success[data-text-type] { padding: 40px 18px; }

  /* Termin */
  .tm-card { border-radius: 22px; }
  .tm-side { padding: 22px 20px; gap: 14px; }
  .tm-title { font-size: 19px; }
  .tm-cal { padding: 20px 14px; }
  .tm-grid { gap: 5px; }
  .tm-day { height: 40px; }
  .tm-slots { padding: 20px 14px; }
  .tm-slot-list { grid-template-columns: repeat(3, 1fr); }
  .tm-details { padding: 22px 16px; }
}


/* ---------- Schrittwechsel im Wizard: alt nach unten + ausblenden, neu von unten hoch + einblenden ---------- */
.rc-stage { position: relative; transition: height .42s cubic-bezier(.22,.61,.36,1); }
.rc-stage.is-animating { overflow: clip; overflow-clip-margin: 18px; }
.rc-step.is-leaving { animation: rc-leave .23s cubic-bezier(.4,0,1,1) both; }
.rc-step.is-entering { animation: rc-enter .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes rc-leave { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(26px); } }
@keyframes rc-enter { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
/* Kacheln im neuen Schritt kommen leicht versetzt nach */
.rc-step.is-entering .rc-tile { animation: rc-enter .55s cubic-bezier(.22,.61,.36,1) both; }
.rc-step.is-entering .rc-tile:nth-child(2) { animation-delay: .05s; }
.rc-step.is-entering .rc-tile:nth-child(3) { animation-delay: .1s; }
.rc-step.is-entering .rc-tile:nth-child(4) { animation-delay: .15s; }
.rc-step.is-entering .rc-tile:nth-child(5) { animation-delay: .2s; }
.rc-step.is-entering .rc-tile:nth-child(6) { animation-delay: .25s; }
@media (prefers-reduced-motion: reduce) { .rc-stage { transition: none; } .rc-step.is-leaving, .rc-step.is-entering, .rc-step.is-entering .rc-tile { animation: none; } }

/* Zurück-Button: Ghost-Variante des blauen Buttons – Outline in Grau erst beim Hover */
.rc-wrapper .rc-back, .tm-wrapper .rc-back {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 16px 30px; border-radius: 56px; cursor: pointer;
  background: transparent; color: var(--rc-ink-muted); font-family: inherit; font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; line-height: 18px;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, color .2s, background-color .2s, transform .15s;
}
.rc-wrapper .rc-back:hover, .tm-wrapper .rc-back:hover { color: var(--rc-ink); box-shadow: inset 0 0 0 1.5px #00092440; background-color: #00092408; }
.rc-wrapper .rc-back:active, .tm-wrapper .rc-back:active { transform: translateY(1px) scale(.98); }
.rc-wrapper .rc-back:focus-visible, .tm-wrapper .rc-back:focus-visible { outline: 2px solid var(--rc-blue); outline-offset: 3px; }
.rc-wrapper .rc-back[hidden], .tm-wrapper .rc-back[hidden] { display: none !important; }
@media (max-width: 700px) {
  .rc-actions { flex-direction: column-reverse; align-items: stretch; }
  .rc-actions .btn-group, .rc-actions .rc-submit { margin-left: 0; width: 100%; }
  .rc-actions .btn-group .btn { width: 100%; }
  .rc-wrapper .rc-back, .tm-wrapper .rc-back { width: 100%; }
  .rc-note { margin: 0 auto; }
}

/* Smartphone: Icon-Stepper ausblenden, stattdessen ein schlanker Fortschrittsbalken */
@media (max-width: 700px) {
  .rc-stepper { display: block; height: 5px; border-radius: 5px; background: #00092414; overflow: hidden; }
  .rc-stepper .rc-dot { display: none; }
  .rc-stepper .rc-bar { position: absolute; inset: 0; transform: none; height: 100%; background: transparent; }
  .rc-stepper .rc-bar > span { min-width: 8%; border-radius: 5px; background: var(--rc-blue); transition: width .45s cubic-bezier(.22,.61,.36,1); }
}
