/* Roemer Capital Anfrage-Funnel. Alle Klassen mit Präfix rcf-, keine globalen Selektoren (Webflow-sicher).
   Schrift: DM Sans lädt die Seite selbst (kein @import, Webflow blockt externe CSS-Imports). */

.rcf,
.rcf-dlg {
  --rcf-navy: #0E253D;
  --rcf-navy-2: #163452;
  --rcf-gold: #C6B391;
  --rcf-gold-h: #d4c3a3;
  --rcf-gold-soft: rgba(198, 179, 145, .16);
  --rcf-bronze: #8a7440;
  --rcf-paper: #F6F3EE;
  --rcf-line: #ddd6c8;
  --rcf-line-2: #cfc7b7;
  --rcf-text: #26313d;
  --rcf-muted: #5d6876;
  --rcf-white: #fff;
  --rcf-error: #a3261b;
  --rcf-radius: 2px;
  --rcf-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rcf-ease: cubic-bezier(.2, .7, .2, 1);
  --rcf-scroll-offset: 96px;
  font-family: var(--rcf-font);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* Gekapselter Reset: :where hält die Spezifität niedrig, schlägt aber Webflows Element-Regeln */
.rcf :where(*, *::before, *::after),
.rcf-dlg :where(*, *::before, *::after) { box-sizing: border-box; }
.rcf :where(h2, p, fieldset, legend, label, form, input, button, a, span),
.rcf-dlg__head :where(p, button, span),
.rcf-dlg__fallback :where(a) { margin: 0; padding: 0; font: inherit; letter-spacing: normal; text-transform: none; }
.rcf [hidden],
.rcf-dlg [hidden] { display: none !important; }

/* Karte */
.rcf {
  position: relative;
  width: 100%;
  background: var(--rcf-white);
  color: var(--rcf-navy);
  border-radius: 4px;
  padding: clamp(22px, 4.2vw, 44px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .28);
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  scroll-margin-top: var(--rcf-scroll-offset);
}

.rcf-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; display: block; }

/* Kopf */
.rcf-head { margin-bottom: 22px; }
.rcf-title { display: block; max-width: none; margin: 0; font-size: clamp(25px, 2.6vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -.015em; color: var(--rcf-navy); }
.rcf-lead { margin-top: 8px; font-size: 16.5px; line-height: 1.5; color: var(--rcf-muted); }

.rcf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.rcf-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px 8px 4px; margin-left: -4px;
  background: none; border: 0; border-radius: var(--rcf-radius); cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--rcf-muted); -webkit-appearance: none; appearance: none;
  transition: color .2s;
}
.rcf-back .rcf-ico { width: 18px; height: 18px; }
.rcf-count { margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--rcf-bronze); }

.rcf-bar { height: 4px; margin: 8px 0 28px; background: #ece6da; border-radius: var(--rcf-radius); overflow: hidden; }
.rcf-bar__fill { display: block; height: 100%; width: 20%; background: var(--rcf-bronze); border-radius: var(--rcf-radius); transition: width .45s var(--rcf-ease); }
.rcf-bar--done .rcf-bar__fill { background: var(--rcf-gold); }

.rcf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Schritte */
.rcf-form { display: block; }
.rcf-step { display: block; min-width: 0; border: 0; margin: 0; padding: 0; }
.rcf-step--in { animation: rcf-in .32s var(--rcf-ease) both; }
.rcf-step--out { animation: rcf-out .16s ease both; }
@keyframes rcf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rcf-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }

.rcf-q {
  display: block; float: none; width: 100%; padding: 0; margin: 0 0 6px;
  font-size: clamp(24px, 2.7vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -.012em; color: var(--rcf-navy);
  border-radius: var(--rcf-radius);
}
.rcf-q:focus { outline: none; }
.rcf-q:focus-visible { outline: 3px solid var(--rcf-gold); outline-offset: 4px; }
.rcf-hint { font-size: 16.5px; line-height: 1.5; color: var(--rcf-muted); }

/* Antwortkarten */
.rcf-opts { display: grid; gap: 10px; margin-top: 22px; }
.rcf-opt { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.rcf-opt__input { position: absolute; top: 50%; left: 22px; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.rcf-opt__box {
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 15px 18px 15px 20px;
  background: var(--rcf-white); border: 1.5px solid var(--rcf-line); border-radius: var(--rcf-radius);
  font-size: 18px; line-height: 1.35; color: var(--rcf-navy);
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--rcf-ease);
}
.rcf-opt__mark { position: relative; flex: 0 0 auto; width: 24px; height: 24px; border: 2px solid #a59d8f; border-radius: 50%; background: var(--rcf-white); transition: border-color .2s; }
.rcf-opt__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--rcf-navy); transform: scale(0); transition: transform .2s var(--rcf-ease); }
.rcf-opt__text { flex: 1 1 auto; }
.rcf-opt__go { width: 20px; height: 20px; color: var(--rcf-bronze); opacity: .45; transition: opacity .2s, transform .2s var(--rcf-ease); }
.rcf-opt:active .rcf-opt__box { transform: scale(.995); }
.rcf-opt__input:checked + .rcf-opt__box { border-color: var(--rcf-navy); background: var(--rcf-gold-soft); box-shadow: inset 0 0 0 1px var(--rcf-navy); }
.rcf-opt__input:checked + .rcf-opt__box .rcf-opt__mark { border-color: var(--rcf-navy); }
.rcf-opt__input:checked + .rcf-opt__box .rcf-opt__mark::after { transform: scale(1); }
.rcf-opt__input:checked + .rcf-opt__box .rcf-opt__go { opacity: 1; }
.rcf-opt__input:focus-visible + .rcf-opt__box { outline: 3px solid var(--rcf-bronze); outline-offset: 2px; }

/* Hinweis bei Umsatz unter 1 Mio. */
.rcf-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px;
  background: var(--rcf-paper); border-left: 3px solid var(--rcf-gold); border-radius: var(--rcf-radius);
  font-size: 16.5px; line-height: 1.5; color: var(--rcf-text);
}
.rcf-note .rcf-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--rcf-bronze); }

/* Knöpfe: Navy auf Gold (7,6:1) */
.rcf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 22px; padding: 16px 24px;
  background: var(--rcf-gold); color: var(--rcf-navy); border: 0; border-radius: var(--rcf-radius); cursor: pointer;
  font-family: var(--rcf-font); font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  -webkit-appearance: none; appearance: none;
  transition: background-color .25s, transform .25s var(--rcf-ease), box-shadow .25s;
}
.rcf-btn:focus-visible, .rcf-back:focus-visible { outline: 3px solid var(--rcf-navy); outline-offset: 3px; }
.rcf-btn[disabled] { opacity: .7; cursor: wait; transform: none; box-shadow: none; }
.rcf-btn .rcf-ico { width: 20px; height: 20px; }

/* Kontaktfelder */
.rcf-fields { display: grid; gap: 18px; margin-top: 22px; }
.rcf-field { display: grid; gap: 7px; }
.rcf-label { display: block; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--rcf-navy); }
.rcf-input {
  display: block; width: 100%; min-height: 56px; padding: 14px 16px; margin: 0;
  background: var(--rcf-white); color: #0C0C0C; border: 1.5px solid var(--rcf-line-2); border-radius: var(--rcf-radius); box-shadow: none;
  font-family: var(--rcf-font); font-size: 18px; line-height: 1.3; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.rcf-input:focus { outline: none; border-color: var(--rcf-navy); box-shadow: 0 0 0 3px rgba(198, 179, 145, .45); }
.rcf-input[aria-invalid="true"] { border-color: var(--rcf-error); }
.rcf-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163, 38, 27, .18); }
.rcf-err { font-size: 15.5px; line-height: 1.4; font-weight: 500; color: var(--rcf-error); }
.rcf-err--send { margin-top: 18px; padding: 12px 14px; background: #fbeeec; border-left: 3px solid var(--rcf-error); border-radius: var(--rcf-radius); }

.rcf-check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; margin-top: 22px; }
.rcf-check__input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--rcf-navy); cursor: pointer; }
.rcf-check__input:focus-visible { outline: 3px solid var(--rcf-bronze); outline-offset: 2px; }
.rcf-check__input[aria-invalid="true"] { outline: 2px solid var(--rcf-error); outline-offset: 2px; }
.rcf-check__label { display: block; margin: 0; font-size: 15.5px; font-weight: 400; line-height: 1.5; color: var(--rcf-muted); cursor: pointer; }
.rcf-check__label a { color: var(--rcf-navy); text-decoration: underline; text-underline-offset: 2px; }
.rcf-check + .rcf-err { margin: 8px 0 0 38px; }

.rcf-lock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--rcf-muted); }
.rcf-lock .rcf-ico { width: 18px; height: 18px; color: var(--rcf-bronze); }

/* Danke-Zustand */
.rcf-done { display: grid; justify-items: start; gap: 10px; padding: 6px 0 4px; outline: none; }
.rcf-done__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border: 2px solid var(--rcf-gold); border-radius: 50%; color: var(--rcf-bronze); }
.rcf-done__icon .rcf-ico { width: 28px; height: 28px; stroke-width: 2.4; }
.rcf-done__title { font-size: clamp(24px, 2.7vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -.012em; color: var(--rcf-navy); }
.rcf-done__text { font-size: 17px; color: var(--rcf-muted); }

/* Kalender-Dialog (hängt an body, eigener Variablensatz oben) */
.rcf-dlg { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px; color: var(--rcf-navy); font-size: 18px; line-height: 1.5; }
.rcf-dlg__backdrop { position: absolute; inset: 0; background: rgba(10, 28, 47, .74); }
.rcf-dlg__panel { position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); max-height: min(900px, calc(100vh - 48px)); background: var(--rcf-white); border-radius: 4px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.rcf-dlg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 20px 28px; background: var(--rcf-navy); color: var(--rcf-white); }
.rcf-dlg__line { margin: 0; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; font-weight: 500; color: var(--rcf-white); outline: none; }
.rcf-dlg__sub { margin-top: 6px; font-size: 16px; line-height: 1.45; color: #c3cfdb; }
.rcf-dlg__close {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 48px; padding: 10px 16px;
  background: transparent; color: var(--rcf-white); border: 1.5px solid rgba(255, 255, 255, .35); border-radius: var(--rcf-radius); cursor: pointer;
  font-family: var(--rcf-font); font-size: 16px; font-weight: 500; -webkit-appearance: none; appearance: none; transition: border-color .2s, background-color .2s;
}
.rcf-dlg__close:focus-visible { outline: 3px solid var(--rcf-gold); outline-offset: 2px; }
.rcf-dlg__close .rcf-ico { width: 18px; height: 18px; }
.rcf-dlg__body { position: relative; flex: 1 1 auto; min-height: 460px; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--rcf-white); }
.rcf-dlg__cal { width: 100%; min-height: 100%; }
.rcf-dlg__loading { position: absolute; top: 44px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 17px; color: var(--rcf-muted); pointer-events: none; }
.rcf-spin { width: 22px; height: 22px; border: 2.5px solid #e6dfd1; border-top-color: var(--rcf-bronze); border-radius: 50%; animation: rcf-spin .9s linear infinite; }
@keyframes rcf-spin { to { transform: rotate(360deg); } }
.rcf-dlg__fallback { position: relative; line-height: 1.5; z-index: 1; margin: 16px 24px 0; padding: 14px 16px; background: var(--rcf-paper); border-left: 3px solid var(--rcf-gold); border-radius: var(--rcf-radius); font-size: 16.5px; color: var(--rcf-text); }
.rcf-dlg__fblink { color: var(--rcf-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rcf-dlg__foot { flex: 0 0 auto; display: flex; justify-content: center; padding: 10px 16px; background: var(--rcf-paper); border-top: 1px solid var(--rcf-line); }
.rcf-dlg__out {
  min-height: 48px; margin: 0; padding: 10px 14px; background: none; border: 0; border-radius: var(--rcf-radius); cursor: pointer;
  font-family: var(--rcf-font); font-size: 16.5px; font-weight: 500; line-height: 1.35; color: var(--rcf-navy); text-align: center;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rcf-gold); -webkit-appearance: none; appearance: none;
}
.rcf-dlg__out:focus-visible { outline: 3px solid var(--rcf-bronze); outline-offset: 2px; }
.rcf-dlg--anim .rcf-dlg__backdrop { animation: rcf-fade .25s ease both; }
.rcf-dlg--anim .rcf-dlg__panel { animation: rcf-in .35s var(--rcf-ease) both; }
@keyframes rcf-fade { from { opacity: 0; } to { opacity: 1; } }

/* Hover nur mit Maus: auf Touch bleibt :hover sonst an der Stelle des Fingers kleben */
@media (hover: hover) {
  .rcf-back:hover { color: var(--rcf-navy); }
  .rcf-opt:hover .rcf-opt__box { border-color: var(--rcf-gold); background: #fcfaf6; }
  .rcf-opt:hover .rcf-opt__go { opacity: 1; transform: translateX(3px); }
  .rcf-btn:hover { background: var(--rcf-gold-h); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(198, 179, 145, .4); }
  .rcf-dlg__close:hover { border-color: var(--rcf-gold); background: rgba(255, 255, 255, .06); }
  .rcf-dlg__out:hover { text-decoration-color: var(--rcf-navy); }
}

@media (max-width: 640px) {
  .rcf { font-size: 17px; }
  .rcf-opt__box { min-height: 62px; padding: 14px 14px 14px 16px; gap: 14px; }
  .rcf-dlg { padding: 0; }
  .rcf-dlg__panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .rcf-dlg__body { min-height: 0; }
  .rcf-dlg__head { padding: 16px 16px 16px 18px; }
  .rcf-dlg__close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rcf-dlg__close { padding: 10px 12px; min-width: 48px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rcf-step--in, .rcf-step--out, .rcf-dlg--anim .rcf-dlg__backdrop, .rcf-dlg--anim .rcf-dlg__panel { animation: none; }
  .rcf-bar__fill, .rcf-opt__box, .rcf-opt__mark::after, .rcf-opt__go, .rcf-btn, .rcf-back, .rcf-input { transition: none; }
  .rcf-btn:hover, .rcf-opt:active .rcf-opt__box { transform: none; }
  .rcf-spin { animation-duration: 2.4s; }
}
