:root {
  --ff-accent: #946b49;
  --ff-accent-dark: #76533d;
  --ff-surface: rgba(255, 252, 248, 0.96);
  --ff-text: #172033;
  --ff-muted: #596273;
  --ff-line: rgba(118, 83, 61, 0.24);
  --ff-danger: #a12c2c;
}

body.page-ferienimmobilien-funnel {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #1e1a17;
  color: var(--ff-text);
}

.ff-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.ff-background,
.ff-background img,
.ff-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ff-background { z-index: -3; }
.ff-background img { object-fit: cover; object-position: center 42%; }
.ff-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(20, 15, 12, 0.62), rgba(20, 15, 12, 0.78)),
    radial-gradient(circle at 50% 35%, rgba(148, 107, 73, 0.12), transparent 60%);
}

.ff-brand {
  position: fixed;
  z-index: 20;
  top: max(16px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  display: grid;
  justify-items: center;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.ff-brand span { font-family: var(--font-display); font-size: 1.35rem; }
.ff-brand small { margin-top: 5px; font-size: 0.57rem; letter-spacing: 0.32em; }

.ff-form { position: relative; z-index: 2; min-height: 100svh; }
.ff-step {
  min-height: 100svh;
  padding: max(82px, calc(env(safe-area-inset-top) + 72px)) 18px max(118px, calc(env(safe-area-inset-bottom) + 108px));
  align-items: center;
  justify-content: center;
}
.ff-step.is-active { display: flex; }
.ff-step[hidden] { display: none !important; }

.ff-card {
  width: min(680px, 100%);
  margin: auto;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  background: var(--ff-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.ff-kicker {
  margin: 0 0 12px;
  color: var(--ff-accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.ff-card h1,
.ff-card h2 {
  margin: 0 auto 24px;
  max-width: 16ch;
  color: var(--ff-text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

.ff-card h1:focus,
.ff-card h2:focus { outline: none; }

.ff-intro {
  max-width: 54ch;
  margin: -8px auto 26px;
  color: var(--ff-muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  text-align: center;
}

.ff-choice-group { margin: 0; padding: 0; border: 0; }
.ff-choice-group legend {
  width: 100%;
  margin: 0 0 14px;
  color: var(--ff-text);
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
}

.ff-choices { display: grid; gap: 12px; }
.ff-choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ff-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.ff-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ff-choice span {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 2px solid var(--ff-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ff-text);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ff-choice:hover span { border-color: var(--ff-accent); }
.ff-choice input:checked + span {
  border-color: var(--ff-accent-dark);
  background: rgba(148, 107, 73, 0.13);
  box-shadow: inset 0 0 0 1px var(--ff-accent-dark);
}
.ff-choice input:focus-visible + span { outline: 3px solid #1d4ed8; outline-offset: 3px; }

.ff-nav { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-top: 28px; }
.ff-nav--single { grid-template-columns: 1fr; }
.ff-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid var(--ff-accent-dark);
  border-radius: 10px;
  background: var(--ff-accent-dark);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.ff-button:hover { background: #654631; transform: translateY(-1px); }
.ff-button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.ff-button:disabled { cursor: wait; opacity: 0.7; transform: none; }
.ff-button--secondary { border-color: var(--ff-line); background: #fff; color: var(--ff-text); }
.ff-button--secondary:hover { border-color: var(--ff-accent); background: #f6f0eb; }

.ff-field { display: grid; gap: 7px; margin: 0 0 14px; }
.ff-field > span:first-child { color: var(--ff-text); font-size: 0.94rem; font-weight: 750; }
.ff-field input {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 2px solid var(--ff-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ff-text);
  font: inherit;
  font-size: 1rem;
}
.ff-field input:focus { border-color: var(--ff-accent-dark); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(148, 107, 73, 0.18); }
.ff-fields-two { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 14px; }
.ff-unit-field { position: relative; display: block; }
.ff-unit-field input { padding-right: 64px; }
.ff-unit-field b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ff-muted); }

.ff-upload {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px dashed var(--ff-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
  cursor: pointer;
}
.ff-upload:focus-within { border-color: var(--ff-accent-dark); box-shadow: 0 0 0 3px rgba(148, 107, 73, 0.18); }
.ff-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ff-upload-icon { font-size: 2.5rem; line-height: 1; color: var(--ff-accent-dark); }
.ff-upload strong { margin-top: 8px; font-size: 1.1rem; }
.ff-upload small,
.ff-upload em { margin-top: 7px; color: var(--ff-muted); font-size: 0.86rem; font-style: normal; line-height: 1.4; }
.ff-upload em.is-error { color: var(--ff-danger); font-weight: 700; }

.ff-privacy { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 0; color: var(--ff-muted); font-size: 0.9rem; line-height: 1.45; }
.ff-privacy input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--ff-accent-dark); }
.ff-privacy a { color: var(--ff-accent-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.ff-message { min-height: 1.4em; margin-top: 12px; color: var(--ff-danger); font-weight: 700; text-align: center; }
.ff-home { width: min(360px, 100%); margin: 26px auto 0; }

.ff-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.ff-progress {
  position: fixed;
  z-index: 18;
  right: 0;
  bottom: 45px;
  left: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 750;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.ff-progress-track { display: block; width: min(360px, 82vw); height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.28); }
.ff-progress-track i { display: block; width: 14.285%; height: 100%; border-radius: inherit; background: #fff; transition: width 0.24s ease; }

.landing-mini-footer {
  position: fixed;
  z-index: 19;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 15, 12, 0.84);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.73rem;
}
.landing-mini-footer nav { display: flex; align-items: center; gap: 14px; }
.landing-mini-footer a,
.landing-mini-footer button { padding: 2px; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.landing-mini-footer a:hover,
.landing-mini-footer button:hover { color: #fff; text-decoration: underline; }
.landing-mini-footer a:focus-visible,
.landing-mini-footer button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 600px) {
  .ff-step { align-items: flex-start; padding-right: 12px; padding-left: 12px; }
  .ff-card { padding: 24px 18px; border-radius: 16px; }
  .ff-card h1,
  .ff-card h2 { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .ff-choices--two,
  .ff-fields-two { grid-template-columns: 1fr; gap: 10px; }
  .ff-choice span { min-height: 58px; }
  .ff-nav { grid-template-columns: 0.85fr 1.25fr; }
  .ff-nav--single { grid-template-columns: 1fr; }
  .ff-step--contact .ff-nav { grid-template-columns: 1fr; }
  .ff-step--contact .ff-back { order: 2; }
  .landing-mini-footer { min-height: 54px; flex-wrap: wrap; gap: 3px 12px; padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .landing-mini-footer > span { display: none; }
  .landing-mini-footer nav { flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
  .ff-progress { bottom: 54px; }
}

@media (max-height: 720px) and (min-width: 601px) {
  .ff-step { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-choice span,
  .ff-button,
  .ff-progress-track i { transition: none; }
}
