/* ============================================================
 * Hollermeier Funnel — Frontend v2 (Folien-Mechanik)
 * Waldgrün #1C2B24, Salbei #7EA183, Terrakotta #C07A3C,
 * Messing #CDA35A, Nebelgrün #EEF3EE, Blass-Salbei #DFEAE0.
 * Schrift: Plus Jakarta Sans (300–800).
 * =========================================================== */

:root {
  --hf-forest: #1c2b24;
  --hf-forest-2: #233830;
  --hf-sage: #7ea183;
  --hf-rust: #c07a3c;
  --hf-rust-d: #a86530;
  --hf-brass: #cda35a;
  --hf-mist: #eef3ee;
  --hf-mist-2: #e6ede6;
  --hf-sage-pale: #dfeae0;
  --hf-line: #d3e0d5;
  --hf-line-2: #c4d3c6;
  --hf-white: #ffffff;
  --hf-text: #1c2b24;
  --hf-text-soft: #44564c;
  --hf-text-mute: #7c8a80;

  --hf-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hf-shadow: 0 30px 60px -30px rgba(28, 43, 36, 0.35);
}

.hf-no-scroll { overflow: hidden !important; }

/* ============================================================
 * FULLSCREEN-STAGE
 * Embedded-Variante: bleibt im Theme-Flow, respektiert die Sektion,
 * in der der Shortcode steht. Theme-kompatibel (Divi 5, Astra, …).
 * Für Divi 5 mit 100%-Sektion: einfach Sektion auf „kein Padding,
 * volle Breite" stellen, dann nimmt der Funnel die ganze Breite.
 * =========================================================== */
.hf-fullscreen {
  position: relative;
  width: 100%;
  min-height: min(100vh, 820px);
  background: var(--hf-mist);
  color: var(--hf-text);
  font-family: var(--hf-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  isolation: isolate;
}
/* Optionale Vollbreite via Klasse oder Shortcode-Attribut wide="1". */
.hf-fullscreen.hf-wide {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* Takeover-Modus — wird per JS aktiviert, sobald der User auf der ersten Frage ist.
   Funnel übernimmt den ganzen Viewport, Theme-Header/-Footer der Seite werden überdeckt. */
.hf-fullscreen.hf-takeover {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;     /* dynamische Viewport-Höhe (iOS Safari) */
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  z-index: 2147483600 !important;
  overflow: hidden !important;
}
.hf-fullscreen.hf-takeover .hf-stage {
  height: 100% !important;
  min-height: 0 !important;
}
.hf-fullscreen.hf-takeover .hf-stage-canvas {
  min-height: 0 !important;
  height: 100% !important;
  flex: 1 1 auto !important;
}
.hf-fullscreen.hf-takeover .hf-nav-back {
  top: max(20px, env(safe-area-inset-top, 0px));
  left: max(20px, env(safe-area-inset-left, 0px));
}

/* Body-Scroll-Lock — kombiniert mit position:fixed im JS für iOS Safari.
   touch-action absichtlich NICHT gesetzt: das würde Scrollen innerhalb der
   Funnel-Bühne (lange Folien, Country-Popover-Liste, Textareas) auf Mobile
   blockieren. position:fixed + overflow:hidden + overscroll-behavior reicht. */
html.hf-no-scroll,
body.hf-no-scroll {
  overflow: hidden !important;
  overscroll-behavior: contain;
}
.hf-fullscreen *,
.hf-popup-card * { box-sizing: border-box; }

.hf-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: inherit;
  position: relative;
}

/* Top-Bar / Progress entfernt — keine goldene Linie mehr. */
.hf-bar,
.hf-progress,
.hf-progress-bar,
.hf-popup-progress { display: none !important; }

/* Zurück-Pfeil oben links — dezent, nur wenn navigierbar. */
.hf-nav-back {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--hf-line);
  background: var(--hf-white);
  border-radius: 999px;
  color: var(--hf-text-soft);
  font-family: var(--hf-font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px -10px rgba(28, 43, 36, 0.35);
  transition: color .2s, border-color .2s, transform .15s var(--hf-ease);
}
.hf-nav-back:hover {
  color: var(--hf-forest);
  border-color: var(--hf-sage);
  transform: translateX(-2px);
}
.hf-nav-back svg { width: 16px; height: 16px; }
.hf-nav-back[hidden] { display: none !important; }
.hf-nav-back-popup {
  top: 16px;
  left: 16px;
  padding: 8px 10px;
  font-size: 0;
}
.hf-nav-back-popup span { display: none; }
.hf-nav-back-popup svg { width: 18px; height: 18px; }

.hf-progress {
  height: 2px;
  background: var(--hf-line);
  border-radius: 99px;
  overflow: hidden;
}
.hf-progress-bar {
  height: 100%;
  background: var(--hf-rust);
  width: 0%;
  transition: width .7s var(--hf-ease);
}
/* Step-Indicator entfernt – keine sichtbare Folien-Anzahl mehr. */
.hf-step-indicator { display: none !important; }

/* ---- Canvas (Folien-Bühne) ---- */
.hf-stage-canvas {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: min(100vh, 820px);
  width: 100%;
}

/* ============================================================
 * FOLIE (slide pane) – exklusiv via Transform animiert.
 * Während Transition existieren ZWEI Panes parallel.
 * =========================================================== */
.hf-slide-pane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 8vw;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(48px) scale(0.985);
  transition:
    transform 0.62s var(--hf-ease),
    opacity 0.42s var(--hf-ease);
  will-change: transform, opacity;
}

/* Initiale Eintritts-Richtungen */
.hf-slide-pane.hf-enter-down {
  transform: translateY(48px) scale(0.985);
  opacity: 0;
}
.hf-slide-pane.hf-enter-up {
  transform: translateY(-48px) scale(0.985);
  opacity: 0;
}
/* Aktiv = in Position */
.hf-slide-pane.hf-active {
  transform: translateY(0) scale(1);
  opacity: 1;
}
/* Verlassen */
.hf-slide-pane.hf-exit-up {
  transform: translateY(-48px) scale(0.985);
  opacity: 0;
  pointer-events: none;
}
.hf-slide-pane.hf-exit-down {
  transform: translateY(48px) scale(0.985);
  opacity: 0;
  pointer-events: none;
}

/* Folie-Layout */
.hf-slide-grid {
  width: 100%;
  max-width: 760px;
}
.hf-slide-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ============================================================
 * STAGGER (Children der aktiven Folie kommen einzeln rein)
 * =========================================================== */
.hf-stagger {
  opacity: 0;
  transform: translateY(14px);
}
.hf-slide-pane.hf-active .hf-stagger {
  animation: hfStagger 0.6s var(--hf-ease) forwards;
  animation-delay: calc(180ms + var(--hf-stagger-i, 0) * 70ms);
}
@keyframes hfStagger {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * TYPOGRAFIE
 * =========================================================== */
.hf-eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hf-rust);
}
.hf-display-xl {
  font-family: var(--hf-font);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  letter-spacing: -0.028em;
  line-height: 1.04;
  color: var(--hf-forest);
  margin: 0;
}
.hf-display-l {
  font-family: var(--hf-font);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  letter-spacing: -0.022em;
  line-height: 1.14;
  color: var(--hf-forest);
  margin: 0;
}
.hf-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--hf-text-soft);
  max-width: 56ch;
  margin: 0;
}
.hf-help {
  font-size: 0.96rem;
  color: var(--hf-text-soft);
  max-width: 56ch;
  margin: 0;
}
.hf-required { color: var(--hf-rust); font-weight: 700; }

/* Folien-Nummerierung entfernt — keine sichtbaren Marker mehr. */
.hf-q-marker { display: none !important; }

/* ============================================================
 * INPUTS – durchgängig gerundete Cards
 * =========================================================== */
.hf-field-wrap { padding-top: 6px; }

/* Globale Default-Größe: dezent, aber großzügig genug. Spezifität gegen Divi via !important. */
.hf-fullscreen input.hf-input,
.hf-fullscreen input.hf-input-line,
.hf-popup input.hf-input,
.hf-popup input.hf-input-line,
.hf-fullscreen .hf-input,
.hf-fullscreen .hf-input-line,
.hf-popup .hf-input,
.hf-popup .hf-input-line {
  appearance: none !important;
  width: 100% !important;
  border: 2px solid var(--hf-line) !important;
  background: var(--hf-white) !important;
  border-radius: 14px !important;
  padding: 18px 22px !important;
  font-family: var(--hf-font) !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.005em !important;
  color: var(--hf-forest) !important;
  outline: none !important;
  caret-color: var(--hf-rust) !important;
  box-shadow: 0 6px 18px -16px rgba(28, 43, 36, 0.4);
  transition: border-color .25s ease, box-shadow .25s ease, transform .15s var(--hf-ease);
  text-indent: 0 !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
}
/* Großzügige Inputs nur dort, wo eine Folie ein einzelnes großes Feld zeigt
   (Slide-Q ohne Kontakt-Layout). */
.hf-fullscreen .hf-slide-q:not(.hf-slide-contact) input.hf-input,
.hf-fullscreen .hf-slide-q:not(.hf-slide-contact) input.hf-input-line,
.hf-popup .hf-slide-q:not(.hf-slide-contact) input.hf-input,
.hf-popup .hf-slide-q:not(.hf-slide-contact) input.hf-input-line {
  padding: 24px 28px !important;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem) !important;
}
.hf-fullscreen .hf-input::placeholder,
.hf-fullscreen .hf-input-line::placeholder,
.hf-popup .hf-input::placeholder,
.hf-popup .hf-input-line::placeholder { color: var(--hf-text-mute); opacity: .55; font-weight: 400; }
.hf-fullscreen .hf-input:focus,
.hf-fullscreen .hf-input-line:focus,
.hf-popup .hf-input:focus,
.hf-popup .hf-input-line:focus {
  border-color: var(--hf-rust) !important;
  box-shadow: 0 14px 32px -16px rgba(192, 122, 60, 0.45) !important;
}

.hf-fullscreen textarea.hf-textarea,
.hf-popup textarea.hf-textarea,
.hf-fullscreen .hf-textarea,
.hf-popup .hf-textarea {
  width: 100% !important;
  border: 2px solid var(--hf-line) !important;
  background: var(--hf-white) !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  font-family: var(--hf-font) !important;
  font-size: 1.05rem !important;
  color: var(--hf-forest) !important;
  outline: none !important;
  resize: vertical !important;
  min-height: 120px !important;
  box-shadow: 0 6px 18px -16px rgba(28, 43, 36, 0.4);
  transition: border-color .2s ease, box-shadow .2s ease;
  caret-color: var(--hf-rust) !important;
  line-height: 1.5 !important;
}
.hf-textarea:focus {
  border-color: var(--hf-rust) !important;
  box-shadow: 0 14px 32px -16px rgba(192, 122, 60, 0.45) !important;
}

/* ============================================================
 * KOMBINIERTE KONTAKT-FOLIE — dichte Version, soll ohne Scrollen
 * komplett in den Viewport passen.
 * =========================================================== */

/* Die ganze Folie verdichten – weniger äußeres Padding, kein Scroll. */
.hf-slide-pane.hf-pane-dense {
  padding: 32px 6vw;
  overflow: hidden;
  align-items: flex-start;
}
.hf-pane-dense .hf-slide-grid {
  max-width: 720px;
  width: 100%;
  margin: auto;
}

.hf-slide-contact .hf-slide-inner { gap: 14px; }
.hf-slide-contact .hf-q-marker { margin-bottom: 0; font-size: 0.78rem; }
.hf-slide-contact .hf-display-l {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.12;
}
.hf-slide-contact .hf-help { font-size: 0.92rem; }

.hf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.hf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hf-field-half { grid-column: span 1; }
.hf-field:not(.hf-field-half) { grid-column: 1 / -1; }
.hf-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
  padding-left: 4px;
}

/* Kompakte Inputs in der Kontakt-Folie — überschreiben die Default-Größen. */
.hf-fullscreen .hf-slide-contact input.hf-input,
.hf-fullscreen .hf-slide-contact input.hf-input-tel,
.hf-popup .hf-slide-contact input.hf-input,
.hf-popup .hf-slide-contact input.hf-input-tel {
  font-size: 0.98rem !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
}
.hf-fullscreen .hf-slide-contact input.hf-input-tel,
.hf-popup .hf-slide-contact input.hf-input-tel {
  border-radius: 0 10px 10px 0 !important;
}
.hf-slide-contact .hf-phone {
  border-radius: 12px;
}
.hf-slide-contact .hf-phone-trigger {
  padding: 0 14px;
  border-radius: 10px 0 0 10px;
  font-size: 0.92rem;
}
.hf-slide-contact .hf-consent {
  margin-top: 2px;
  padding: 12px 16px;
  font-size: 0.88rem;
  border-radius: 12px;
}
.hf-slide-contact .hf-consent input[type="checkbox"] {
  width: 20px; height: 20px; flex: 0 0 20px;
}
.hf-slide-contact .hf-actions {
  margin-top: 4px;
  justify-content: flex-end;
  flex-direction: row-reverse;  /* Primary nach rechts, Meta-Inhalte nach links */
}
.hf-slide-contact .hf-btn { padding: 14px 26px; font-size: 0.95rem; }

@media (max-width: 640px) {
  .hf-form-grid { grid-template-columns: 1fr; }
  .hf-field-half { grid-column: 1 / -1; }
  /* Auf sehr kleinen Geräten doch scrollen erlauben, damit nichts abgeschnitten wird. */
  .hf-slide-pane.hf-pane-dense { overflow-y: auto; padding: 24px 5vw; }
}
/* Sicherheitsnetz: bei sehr niedriger Höhe Scrollen erlauben. */
@media (max-height: 720px) {
  .hf-slide-pane.hf-pane-dense { overflow-y: auto; padding-top: 20px; padding-bottom: 24px; }
}

/* ============================================================
 * CHOICES
 * =========================================================== */
.hf-choices {
  display: grid;
  gap: 12px;
}
.hf-choice {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--hf-white);
  border: 2px solid var(--hf-line);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  font-size: 1.05rem;
  color: var(--hf-forest);
  transition: border-color .2s ease, background .2s ease, transform .15s var(--hf-ease);
}
.hf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hf-choice:hover {
  border-color: var(--hf-sage);
  transform: translateY(-1px);
}
.hf-choice.is-active {
  border-color: var(--hf-rust);
  background: rgba(192, 122, 60, 0.07);
}
.hf-choice-key {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.86rem;
  background: var(--hf-sage-pale);
  color: var(--hf-forest);
  border-radius: 8px;
  letter-spacing: 0.04em;
  transition: background .2s, color .2s;
}
.hf-choice.is-active .hf-choice-key { background: var(--hf-rust); color: #fff; }
.hf-choice-text { line-height: 1.4; }
.hf-choice-tick {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--hf-line);
  font-size: 0.7rem;
  color: var(--hf-line);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.hf-choice.is-active .hf-choice-tick {
  background: var(--hf-rust);
  border-color: var(--hf-rust);
  color: #fff;
  transform: scale(1.05);
}

/* ============================================================
 * SCALE
 * =========================================================== */
.hf-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.hf-scale-btn {
  appearance: none;
  border: 2px solid var(--hf-line);
  background: var(--hf-white);
  color: var(--hf-forest);
  border-radius: 12px;
  padding: 18px 0;
  font-family: var(--hf-font);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .15s, background .2s, color .2s, transform .15s var(--hf-ease);
}
.hf-scale-btn:hover { border-color: var(--hf-sage); transform: translateY(-1px); }
.hf-scale-btn.is-active {
  background: var(--hf-rust);
  border-color: var(--hf-rust);
  color: #fff;
}
.hf-scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--hf-text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ============================================================
 * PHONE
 * =========================================================== */
.hf-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
  border: 2px solid var(--hf-line);
  background: var(--hf-white);
  border-radius: 14px;
  box-shadow: 0 6px 18px -16px rgba(28, 43, 36, 0.4);
  transition: border-color .25s ease, box-shadow .25s ease;
  /* WICHTIG: kein overflow:hidden — sonst wird das Popover abgeschnitten. */
}
.hf-phone:focus-within {
  border-color: var(--hf-rust);
  box-shadow: 0 14px 32px -16px rgba(192, 122, 60, 0.45);
}
.hf-phone-trigger {
  appearance: none;
  border: none;
  background: var(--hf-sage-pale);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hf-font);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--hf-forest);
  cursor: pointer;
  padding: 0 18px;
  border-radius: 12px 0 0 12px;
  border-right: 1px solid var(--hf-line);
}
.hf-phone-trigger:hover { background: var(--hf-mist-2); }
.hf-flag { font-size: 1.35rem; line-height: 1; }
.hf-dial { font-weight: 700; }
.hf-caret { color: var(--hf-text-mute); font-size: .8em; }
.hf-fullscreen input.hf-input-tel,
.hf-popup input.hf-input-tel,
.hf-fullscreen .hf-input-tel,
.hf-popup .hf-input-tel {
  appearance: none !important;
  border: none !important;
  background: transparent !important;
  padding: 18px 22px !important;
  font-family: var(--hf-font) !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  color: var(--hf-forest) !important;
  outline: none !important;
  width: 100% !important;
  caret-color: var(--hf-rust) !important;
  border-radius: 0 12px 12px 0 !important;
  text-indent: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}
.hf-fullscreen .hf-slide-q:not(.hf-slide-contact) input.hf-input-tel,
.hf-popup .hf-slide-q:not(.hf-slide-contact) input.hf-input-tel {
  padding: 24px 28px !important;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem) !important;
}

.hf-phone-popover {
  /* fixed = aus jedem Stacking-Context raus, JS positioniert oben/unten je nach Platz. */
  position: fixed;
  top: 0;
  left: 0;
  width: min(380px, 92vw);
  background: var(--hf-white);
  border: 1px solid var(--hf-line);
  border-radius: 14px;
  box-shadow: var(--hf-shadow);
  padding: 12px;
  z-index: 2147483600;
  max-height: min(360px, 60vh);
  flex-direction: column;
}
/* Nur sichtbar wenn nicht hidden — display:flex würde sonst das HTML-[hidden] schlucken. */
.hf-phone-popover:not([hidden]) {
  display: flex !important;
}
.hf-phone-popover[hidden] {
  display: none !important;
}
.hf-phone-popover .hf-country-list {
  flex: 1;
  overflow-y: auto;
  max-height: none;
}
.hf-phone-search {
  width: 100%;
  border: 1px solid var(--hf-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--hf-font);
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 8px;
}
.hf-phone-search:focus { border-color: var(--hf-sage); }
.hf-country-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
}
.hf-country {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.95rem;
}
.hf-country:hover { background: var(--hf-mist); }
.hf-cdial { color: var(--hf-text-mute); font-size: 0.85rem; }

/* ============================================================
 * CONSENT
 * =========================================================== */
.hf-consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: flex-start;
  background: var(--hf-white);
  border: 2px solid var(--hf-line);
  border-radius: 14px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--hf-text-soft);
  line-height: 1.55;
  transition: border-color .2s ease;
}
.hf-consent:hover { border-color: var(--hf-sage); }
.hf-consent input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--hf-sage);
  border-radius: 6px;
  background: var(--hf-white);
  cursor: pointer;
  position: relative;
  flex: 0 0 22px;
  margin-top: 2px;
  transition: background .15s, border-color .15s;
}
.hf-consent input[type="checkbox"]:checked {
  background: var(--hf-rust);
  border-color: var(--hf-rust);
}
.hf-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px 4px 5px 3px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  width: 6px; height: 12px;
  margin: auto;
}
.hf-consent a { color: var(--hf-forest); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
 * ACTIONS / BUTTONS
 * =========================================================== */
.hf-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 10px;
}
/* Buttons — Hollermeier-Gradient (Terrakotta → Messing).
   Müssen auch außerhalb von .hf-fullscreen/.hf-popup greifen, weil der
   Popup-Trigger-Button (`[hollermeier_popup ...]`) als Sibling im normalen
   Page-Content rendert, nicht innerhalb des Popup-Containers. */
button.hf-btn,
a.hf-btn,
.hf-btn {
  appearance: none !important;
  font-family: var(--hf-font) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 28px !important;
  border-radius: 32px !important;
  border: 0 solid #333 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em;
  transition: opacity 0.3s ease !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
}
button.hf-btn-primary,
a.hf-btn-primary,
.hf-btn-primary {
  background-image: linear-gradient(16deg, #c07a3c 0%, #cda35a 100%) !important;
  background-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px -14px rgba(192, 122, 60, 0.55);
}
button.hf-btn-primary:hover,
a.hf-btn-primary:hover,
.hf-btn-primary:hover { opacity: 0.92 !important; }
button.hf-btn-dark,
a.hf-btn-dark,
.hf-btn-dark {
  background-image: linear-gradient(16deg, #1c2b24 0%, #44564c 100%) !important;
  background-color: transparent !important;
}
button.hf-btn-ghost,
a.hf-btn-ghost,
.hf-btn-ghost {
  background-image: none !important;
  background-color: transparent !important;
  color: var(--hf-forest) !important;
  border: 2px solid var(--hf-sage) !important;
  padding: 10px 26px !important;
}
.hf-btn[disabled] { opacity: 0.65 !important; cursor: progress !important; }
/* Popup-Link-Variante (text-only trigger) */
.hf-popup-link {
  background: transparent !important;
  border: none !important;
  color: var(--hf-rust) !important;
  font-family: var(--hf-font) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.hf-arrow {
  display: inline-block;
  transition: transform .25s var(--hf-ease);
}
.hf-btn:hover .hf-arrow { transform: translateX(4px); }

.hf-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--hf-text-mute);
}
.hf-meta-dot { opacity: .6; }
.hf-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hf-line);
  border-bottom-width: 2px;
  background: var(--hf-white);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--hf-font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hf-forest);
  min-width: 22px;
  text-align: center;
}
.hf-back {
  appearance: none;
  background: none;
  border: none;
  color: var(--hf-text-soft);
  font-family: var(--hf-font);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hf-back:hover { color: var(--hf-rust); }

.hf-error {
  color: var(--hf-rust);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: -4px;
}

/* Footer entfernt — Funnel braucht keinen Branding-Fuß. */

/* ============================================================
 * OUTRO
 * =========================================================== */
.hf-slide-outro { text-align: center; }
.hf-slide-outro .hf-slide-inner { align-items: center; }
.hf-check {
  width: 92px; height: 92px;
  color: var(--hf-sage);
  margin: 0 auto 6px;
}
.hf-check svg { width: 100%; height: 100%; }
.hf-slide-outro .hf-display-xl { text-align: center; max-width: 22ch; }
.hf-slide-outro .hf-lead { text-align: center; }

/* ============================================================
 * INTRO – etwas größerer Atem
 * =========================================================== */
.hf-slide-intro .hf-slide-inner { gap: 28px; }
.hf-slide-intro .hf-display-xl { max-width: 16ch; }
.hf-slide-intro .hf-lead { max-width: 54ch; }

/* ============================================================
 * HONEYPOT / SHAKE
 * =========================================================== */
.hf-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.hf-shake { animation: hfShake .32s ease-out; }
@keyframes hfShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
 * POPUP
 * =========================================================== */
.hf-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483600; /* maximaler vernünftiger Wert — schlägt fast jedes Theme/Plugin */
  font-family: var(--hf-font);
}
.hf-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 36, 0.72);
  backdrop-filter: blur(4px);
}
.hf-popup-card {
  position: absolute;
  inset: 50% 0 auto 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  background: var(--hf-mist);
  border-radius: 24px;
  box-shadow: var(--hf-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hfPopupIn 0.4s var(--hf-ease);
}
@keyframes hfPopupIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.hf-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  background: transparent;
  border: none;
  color: var(--hf-text-mute);
  font-size: 1.6rem;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.hf-popup-close:hover { background: var(--hf-sage-pale); color: var(--hf-forest); }
.hf-popup-progress {
  height: 2px;
  background: var(--hf-line);
}
.hf-popup-canvas {
  position: relative;
  height: clamp(560px, 78vh, 760px);
  overflow: hidden;
}
.hf-popup-canvas .hf-slide-pane { padding: 40px 36px; }
.hf-popup-canvas .hf-slide-pane.hf-pane-dense { padding: 28px 28px; overflow-y: auto; }
.hf-popup-canvas .hf-display-xl { font-size: clamp(1.6rem, 4vw, 2.2rem); max-width: 100%; }
.hf-popup-canvas .hf-display-l { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.hf-popup-canvas .hf-input-line,
.hf-popup-canvas .hf-input-tel { font-size: 1.18rem; }
.hf-popup-canvas .hf-slide-inner { gap: 20px; }
.hf-popup .hf-step-indicator {
  display: block;
  text-align: center;
  padding: 12px 0 16px;
  border-top: 1px solid var(--hf-line);
}

/* ============================================================
 * Responsive
 * =========================================================== */
@media (max-width: 720px) {
  .hf-bar { padding: 14px 20px; grid-template-columns: 1fr 140px; gap: 16px; }
  .hf-foot { padding: 14px 20px; }
  .hf-slide-pane { padding: 36px 22px; }
  .hf-actions { gap: 16px; }
  .hf-scale { grid-template-columns: repeat(5, 1fr); }
  .hf-foot-keys { display: none; }

  /* Popup auf Mobile = echtes Vollbild. */
  .hf-popup-card {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;       /* dynamische Viewport-Höhe für mobile Browser-UIs */
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    animation: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Etwas mehr Platz oben, damit Close- & Back-Button nicht mit dem Inhalt kollidieren. */
  .hf-popup-card .hf-popup-close { top: 12px; right: 12px; z-index: 5; }
  .hf-nav-back-popup { top: 12px; left: 12px; z-index: 5; }
  .hf-popup-canvas {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-top: 56px !important;   /* Platz unter den Top-Buttons */
  }
  .hf-popup-canvas .hf-slide-pane {
    padding: 8px 22px 24px !important;
    overflow-y: auto !important;
  }
}
@media (max-width: 720px) {
  .hf-fullscreen.hf-takeover .hf-slide-pane {
    padding: 36px 22px;
    padding-top: max(60px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 720px) and (display-mode: standalone) {
  /* iOS Safari Notch-Safe-Area */
  .hf-popup-card { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}

@media (prefers-reduced-motion: reduce) {
  .hf-slide-pane,
  .hf-stagger,
  .hf-progress-bar,
  .hf-q-arrow,
  .hf-shake,
  .hf-popup-card {
    transition: none !important;
    animation: none !important;
  }
  .hf-stagger { opacity: 1; transform: none; }
  .hf-slide-pane.hf-enter-up,
  .hf-slide-pane.hf-enter-down { opacity: 1; transform: none; }
}
