/* Inter, selbst gehostet (SIL Open Font License). Nur im WordPress-Plugin; der Prototyp lädt Inter von Google Fonts. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ——— Neufeld Raumprogramm: Styles ———
   Alles hängt unter #nf-rp#nf-rp.nf-funnel. Beim Bauen wird daraus #nf-rp#nf-rp#nf-rp#nf-rp.nf-funnel,
   damit Regeln des Themes (Enfold: #top input, #top label, h2 …) nicht durchschlagen.
   Look nach den Instagram-Posts: lange helle Linie, Titel darunter, Info-Kästen mit Symbol in der oberen Rahmenlinie.
   Durchsichtig: Der Funnel übernimmt den Hintergrund der Seite.
   Feste Höhe: Einladung, jede Frage und das Ergebnis sind gleich hoch, längere Inhalte scrollen innen. */
#nf-rp#nf-rp.nf-funnel {
  --line: #BDBDBD;
  --line-dim: #3D3D3D;
  --box-line: #6E6E6E;
  --text: #FFFFFF;
  --body: #D2D2D2;
  --muted: #9A9A9A;
  --accent: #D4722A;
  --accent-soft: rgba(212, 114, 42, 0.14);
  --error: #E8924A;
  --paper: #F5F2EE;
  --ink: #1A1A1A;
  --nf-h: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --nf-height: 820px;
  --r: 4px;
  --offset: 0px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: block;
  /* Layout richtet sich nach dem Platz im Theme, nicht nach der Fensterbreite */
  container: nf / inline-size;
  background: var(--nf-bg, transparent);
  color: var(--body);
  font: 400 1rem/1.6 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  caret-color: var(--accent);
}

/* Zurücksetzen, was das Theme vorgibt */
#nf-rp#nf-rp.nf-funnel *, #nf-rp#nf-rp.nf-funnel *::before, #nf-rp#nf-rp.nf-funnel *::after { box-sizing: border-box; }
#nf-rp#nf-rp.nf-funnel :is(div, span, section, article, form, fieldset, legend, label, h1, h2, h3, p, ul, li, dl, dt, dd, details, summary, pre, a, button, input, textarea) {
  float: none; width: auto; max-width: none; height: auto; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-shadow: none;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; text-align: inherit;
}
#nf-rp#nf-rp.nf-funnel :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#nf-rp#nf-rp.nf-funnel ::selection { background: rgba(212, 114, 42, 0.38); color: #fff; }
#nf-rp#nf-rp.nf-funnel svg { flex-shrink: 0; }
#nf-rp#nf-rp.nf-funnel [hidden] { display: none !important; }

/* Rahmen: eine Spalte, feste Höhe, damit darunter nichts springt */
#nf-rp#nf-rp.nf-funnel .nf-shell {
  display: flex; flex-direction: column; max-width: 760px; height: var(--nf-height);
  margin: 0 auto; padding: clamp(2rem, 5vh, 3.25rem) var(--pad);
}
#nf-rp#nf-rp.nf-funnel .nf-intro, #nf-rp#nf-rp.nf-funnel .nf-main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#nf-rp#nf-rp.nf-funnel .nf-main { display: none; }
#nf-rp#nf-rp.nf-funnel.is-started .nf-intro { display: none; }
#nf-rp#nf-rp.nf-funnel.is-started .nf-main { display: flex; animation: nf-rise 0.9s var(--ease-out) both; }
#nf-rp#nf-rp.nf-funnel.is-started .nf-main > .nf-head, #nf-rp#nf-rp.nf-funnel.is-started .nf-main > .nf-progress { animation: nf-fade 0.7s ease 0.25s both; }
#nf-rp#nf-rp.nf-funnel .nf-intro { animation: nf-in 0.8s var(--ease-out) both; }
#nf-rp#nf-rp.nf-funnel.is-leaving .nf-intro { animation: nf-out 0.6s var(--ease-out) both; }
#nf-rp#nf-rp.nf-funnel.is-leaving .nf-teaser { animation: nf-sink 0.6s var(--ease-out) both; }
#nf-rp#nf-rp.nf-funnel.is-leaving-main .nf-main { animation: nf-out-down 0.35s ease both; }

#nf-rp#nf-rp.nf-funnel .nf-head { display: flex; flex: none; align-items: flex-end; justify-content: space-between; gap: 1rem; min-height: 2.25rem; padding-bottom: 0.6rem; }
#nf-rp#nf-rp.nf-funnel .nf-label { font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.03em; color: var(--line); }
#nf-rp#nf-rp.nf-funnel .nf-count { margin-left: auto; font-variant-numeric: tabular-nums; }
#nf-rp#nf-rp.nf-funnel .nf-line { position: relative; display: block; flex: none; height: 1px; background: var(--line); }
#nf-rp#nf-rp.nf-funnel .nf-progress { overflow: hidden; background: var(--line-dim); }
#nf-rp#nf-rp.nf-funnel .nf-progress i { position: absolute; inset: 0; display: block; background: var(--text); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.9s var(--ease-out); }
#nf-rp#nf-rp.nf-funnel .nf-h { display: block; margin-top: 1.2rem; font-size: var(--nf-h); font-weight: 300; line-height: 1.12; letter-spacing: -0.022em; color: var(--text); text-wrap: balance; }
#nf-rp#nf-rp.nf-funnel .nf-h:focus { outline: none; }
#nf-rp#nf-rp.nf-funnel .nf-back {
  display: inline-flex; align-items: center; gap: 0.45em; margin: -0.6rem 0; padding: 0.6rem 0;
  font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}
#nf-rp#nf-rp.nf-funnel .nf-back svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Einladung */
#nf-rp#nf-rp.nf-funnel .nf-lede { margin-top: 1.1rem; max-width: 54ch; font-size: 1.0625rem; color: var(--muted); text-wrap: pretty; }
#nf-rp#nf-rp.nf-funnel .nf-cta-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
#nf-rp#nf-rp.nf-funnel .nf-cta { min-height: 3.5rem; padding: 0.95em 2.2em; gap: 0.75em; font-size: 1.0625rem; }
#nf-rp#nf-rp.nf-funnel .nf-cta svg { transition: transform 0.4s var(--ease-out); }
/* Beide Kachelreihen angedeutet: erste Reihe lesbar, der Verlauf beginnt schon in ihr, die zweite läuft aus */
#nf-rp#nf-rp.nf-funnel .nf-teaser {
  --m: linear-gradient(to bottom, #000 0, #000 3.5rem, rgba(0, 0, 0, 0.62) 7.5rem, rgba(0, 0, 0, 0.14) 12.5rem, transparent 15.75rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; flex: none; height: 15.75rem;
  margin-top: 3.25rem; overflow: hidden; align-content: start;
  /* Reihen behalten ihre volle Kachelhöhe, auch wenn nicht alle in den Teaser passen */
  grid-auto-rows: max-content;
  -webkit-mask-image: var(--m); mask-image: var(--m);
}
#nf-rp#nf-rp.nf-funnel .nf-teaser-opt { display: block; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Frage: der Bereich zwischen Kopf und „Weiter“ scrollt, wenn der Inhalt länger ist */
#nf-rp#nf-rp.nf-funnel .nf-stage { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#nf-rp#nf-rp.nf-funnel .nf-step { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: nf-in 0.75s var(--ease-out) both; }
#nf-rp#nf-rp.nf-funnel .nf-step.is-out { animation: nf-out 0.35s ease both; }
#nf-rp#nf-rp.nf-funnel .nf-scroll {
  --ft: 0px; --fb: 0px;
  flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 -0.6rem; padding: 0 0.6rem 0.75rem;
  scrollbar-width: thin; scrollbar-color: #3D3D3D transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - var(--fb)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - var(--fb)), transparent 100%);
}
#nf-rp#nf-rp.nf-funnel .nf-scroll.fade-top { --ft: 28px; }
#nf-rp#nf-rp.nf-funnel .nf-scroll.fade-bottom { --fb: 44px; }
#nf-rp#nf-rp.nf-funnel .nf-fs, #nf-rp#nf-rp.nf-funnel .nf-legend { display: block; width: 100%; }
#nf-rp#nf-rp.nf-funnel .nf-help { margin-top: 0.65rem; max-width: 60ch; white-space: pre-line; font-size: 0.9375rem; color: var(--muted); text-wrap: pretty; }
#nf-rp#nf-rp.nf-funnel .nf-hint { font-size: 0.75rem; font-weight: 400; color: var(--muted); }

@keyframes nf-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes nf-out { to { opacity: 0; transform: translateY(-18px); } }
@keyframes nf-out-down { to { opacity: 0; transform: translateY(18px); } }
@keyframes nf-rise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes nf-sink { to { opacity: 0; transform: translateY(40px); } }
@keyframes nf-fade { from { opacity: 0; } to { opacity: 1; } }

/* Info-Kasten: dünner Rahmen, Symbol mittig in der oberen Linie (ohne Hintergrundfarbe, damit er auf jedem Grund passt) */
#nf-rp#nf-rp.nf-funnel .nf-box { position: relative; display: block; margin-top: 1.6rem; padding: 1.15rem 1.25rem 1rem; border: 1px solid var(--box-line); border-top: 0; color: var(--body); font-size: 0.9375rem; line-height: 1.5; text-align: center; text-wrap: pretty; }
#nf-rp#nf-rp.nf-funnel .nf-box::before, #nf-rp#nf-rp.nf-funnel .nf-box::after { content: ''; position: absolute; top: 0; width: calc(50% - 1.05rem + 1px); height: 1px; background: var(--box-line); }
#nf-rp#nf-rp.nf-funnel .nf-box::before { left: -1px; }
#nf-rp#nf-rp.nf-funnel .nf-box::after { right: -1px; }
#nf-rp#nf-rp.nf-funnel .nf-box-ico { position: absolute; top: 0; left: 50%; display: grid; place-items: center; transform: translate(-50%, -50%); }
#nf-rp#nf-rp.nf-funnel .nf-box-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Antworten */
#nf-rp#nf-rp.nf-funnel .nf-opts { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
#nf-rp#nf-rp.nf-funnel .nf-opts.icons, #nf-rp#nf-rp.nf-funnel .nf-opts.photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#nf-rp#nf-rp.nf-funnel .nf-opts.list { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
#nf-rp#nf-rp.nf-funnel .nf-opts.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
#nf-rp#nf-rp.nf-funnel .nf-sub { display: block; margin-top: 1.6rem; padding-top: 0.75rem; border-top: 1px solid var(--line-dim); }
#nf-rp#nf-rp.nf-funnel .nf-sub-label { font-size: 0.9375rem; color: var(--body); }
#nf-rp#nf-rp.nf-funnel .nf-opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#nf-rp#nf-rp.nf-funnel .nf-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#nf-rp#nf-rp.nf-funnel .nf-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem;
  min-height: 7.5rem; padding: 1rem; border: 1px solid var(--line-dim); border-radius: var(--r); color: var(--icon, #CFCFCF);
  transition: border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}
#nf-rp#nf-rp.nf-funnel .nf-ico { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#nf-rp#nf-rp.nf-funnel .nf-lbl { font-size: 0.9375rem; line-height: 1.3; color: var(--text); }
#nf-rp#nf-rp.nf-funnel .nf-tile.photo { gap: 0; min-height: 0; padding: 0; overflow: hidden; }
#nf-rp#nf-rp.nf-funnel .nf-img { display: block; width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
#nf-rp#nf-rp.nf-funnel .nf-tile.photo .nf-lbl { padding: 0.7rem 0.85rem 0.8rem; }
#nf-rp#nf-rp.nf-funnel .nf-tile.list { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: 0.75rem 1.1rem; }
#nf-rp#nf-rp.nf-funnel .nf-radio { flex-shrink: 0; width: 18px; height: 18px; border: 1.5px solid var(--radio, #5A5A5A); border-radius: 50%; transition: border-color 0.35s ease, background 0.35s ease; }
#nf-rp#nf-rp.nf-funnel .nf-tick {
  position: absolute; top: 0.6rem; right: 0.6rem; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0.5); transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}
#nf-rp#nf-rp.nf-funnel .nf-tick svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#nf-rp#nf-rp.nf-funnel .nf-chip {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.75rem; padding: 0.5em 0.95em;
  border: 1px solid var(--line-dim); border-radius: var(--r); color: var(--body); font-size: 0.9375rem; line-height: 1.3;
  transition: border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}
#nf-rp#nf-rp.nf-funnel .nf-cmark { display: none; width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#nf-rp#nf-rp.nf-funnel .nf-opt input:checked + .nf-tile, #nf-rp#nf-rp.nf-funnel .nf-opt input:checked + .nf-chip { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
#nf-rp#nf-rp.nf-funnel .nf-opt input:checked + .nf-tile .nf-tick { opacity: 1; transform: none; }
#nf-rp#nf-rp.nf-funnel .nf-opt input:checked + .nf-tile .nf-radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px); }
#nf-rp#nf-rp.nf-funnel .nf-opt input:checked + .nf-chip .nf-cmark { display: block; animation: nf-fade 0.35s ease both; }
#nf-rp#nf-rp.nf-funnel .nf-opt input:focus-visible + .nf-tile, #nf-rp#nf-rp.nf-funnel .nf-opt input:focus-visible + .nf-chip { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Felder */
#nf-rp#nf-rp.nf-funnel .nf-field { display: grid; gap: 0.4rem; margin-top: 1rem; }
#nf-rp#nf-rp.nf-funnel .nf-field-label { display: block; font-size: 0.8125rem; color: var(--muted); }
#nf-rp#nf-rp.nf-funnel .nf-input {
  display: block; width: 100%; min-height: 3rem; padding: 0.75rem 1rem; border: 1px solid var(--line-dim); border-radius: var(--r);
  background: transparent; color: var(--text); font-size: 1rem; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#nf-rp#nf-rp.nf-funnel .nf-input::placeholder { color: var(--placeholder, #8C8C8C); opacity: 1; }
#nf-rp#nf-rp.nf-funnel .nf-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 114, 42, 0.22); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
#nf-rp#nf-rp.nf-funnel .nf-input[aria-invalid="true"] { border-color: var(--error); }
#nf-rp#nf-rp.nf-funnel textarea.nf-input { min-height: 6rem; resize: vertical; }
#nf-rp#nf-rp.nf-funnel .nf-other { max-width: 28rem; }
#nf-rp#nf-rp.nf-funnel .nf-plz { max-width: 12rem; font-size: 1.25rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
#nf-rp#nf-rp.nf-funnel .nf-error { display: block; font-size: 0.8125rem; color: var(--error); }
#nf-rp#nf-rp.nf-funnel .nf-send-error { margin-top: 1rem; font-size: 0.875rem; }
#nf-rp#nf-rp.nf-funnel .nf-consent { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.4rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
#nf-rp#nf-rp.nf-funnel .nf-consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--accent); }
#nf-rp#nf-rp.nf-funnel .nf-consent a { color: var(--body); text-decoration: underline; text-underline-offset: 0.18em; }
#nf-rp#nf-rp.nf-funnel .nf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#nf-rp#nf-rp.nf-funnel .nf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Aktionen: direkt unter den Antworten; darunter bleibt der Rahmen leer */
#nf-rp#nf-rp.nf-funnel .nf-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; }
#nf-rp#nf-rp.nf-funnel .nf-act-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
#nf-rp#nf-rp.nf-funnel .nf-sel { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#nf-rp#nf-rp.nf-funnel .nf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3rem; padding: 0.8em 1.4em;
  border: 1px solid transparent; border-radius: var(--r); font-size: 1rem; font-weight: 500; line-height: 1.1; text-align: center;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.45s ease, transform 0.2s ease;
}
#nf-rp#nf-rp.nf-funnel .nf-btn svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#nf-rp#nf-rp.nf-funnel .nf-btn-primary { background: var(--btn-bg, var(--paper)); color: var(--btn-fg, var(--ink)); }
#nf-rp#nf-rp.nf-funnel .nf-btn-primary:active { transform: translateY(1px); }
#nf-rp#nf-rp.nf-funnel .nf-btn:disabled { opacity: 0.32; cursor: not-allowed; transform: none; }
#nf-rp#nf-rp.nf-funnel .nf-btn-line { border-color: var(--line-dim); background: transparent; color: var(--text); }
#nf-rp#nf-rp.nf-funnel .nf-btn-ghost { min-height: 2.75rem; padding-left: 0; padding-right: 0; background: transparent; color: var(--muted); }
@media (hover: hover) {
  #nf-rp#nf-rp.nf-funnel .nf-opt:hover .nf-tile, #nf-rp#nf-rp.nf-funnel .nf-opt:hover .nf-chip, #nf-rp#nf-rp.nf-funnel .nf-teaser-opt:hover .nf-tile { border-color: var(--box-line); }
  #nf-rp#nf-rp.nf-funnel .nf-btn-primary:not(:disabled):hover { background: var(--btn-hover, #FFFFFF); }
  #nf-rp#nf-rp.nf-funnel .nf-cta:hover svg { transform: translateX(5px); }
  #nf-rp#nf-rp.nf-funnel .nf-btn-line:hover { border-color: var(--accent); }
  #nf-rp#nf-rp.nf-funnel .nf-btn-ghost:hover, #nf-rp#nf-rp.nf-funnel .nf-back:hover { color: var(--text); }
}

/* Ergebnis */
#nf-rp#nf-rp.nf-funnel .nf-next { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
#nf-rp#nf-rp.nf-funnel .nf-msg { min-height: 1.4em; margin-top: 0.8rem; font-size: 0.875rem; color: var(--muted); }
#nf-rp#nf-rp.nf-funnel .nf-callback { display: grid; gap: 0.5rem; max-width: 24rem; margin-top: 1rem; }
#nf-rp#nf-rp.nf-funnel .nf-callback .nf-btn { justify-self: start; }
#nf-rp#nf-rp.nf-funnel .nf-program { display: block; margin-top: 2.2rem; padding: clamp(1.25rem, 3vw, 2.2rem); background: var(--paper); color: var(--ink); animation: nf-in 0.8s var(--ease-out) 0.15s both; }
#nf-rp#nf-rp.nf-funnel .nf-ptitle { font-size: var(--nf-h); font-weight: 300; line-height: 1.12; letter-spacing: -0.022em; color: var(--ink); }
#nf-rp#nf-rp.nf-funnel .nf-pline { display: block; height: 1px; margin-top: 0.8rem; background: var(--ink); }
#nf-rp#nf-rp.nf-funnel .nf-pby { margin-top: 0.55rem; font-size: 0.8125rem; color: #5E5850; }
#nf-rp#nf-rp.nf-funnel .nf-pdl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); margin-top: 1.4rem; }
#nf-rp#nf-rp.nf-funnel .nf-pdl dt, #nf-rp#nf-rp.nf-funnel .nf-pdl dd { padding: 0.7rem 0; border-top: 1px solid #D8D1C6; }
#nf-rp#nf-rp.nf-funnel .nf-pdl dt { padding-right: 1.2rem; font-size: 0.6875rem; font-weight: 500; line-height: 1.9; letter-spacing: 0.1em; text-transform: uppercase; color: #6B645B; }
#nf-rp#nf-rp.nf-funnel .nf-pdl dd { font-size: 0.9375rem; overflow-wrap: anywhere; white-space: pre-line; }
#nf-rp#nf-rp.nf-funnel .nf-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; white-space: normal; }
#nf-rp#nf-rp.nf-funnel .nf-tags span { padding: 0.1em 0.65em; border: 1px solid #CFC7BA; border-radius: var(--r); font-size: 0.8125rem; }
#nf-rp#nf-rp.nf-funnel .nf-none { color: #6B645B; }
#nf-rp#nf-rp.nf-funnel .nf-pfoot { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--ink); font-size: 0.75rem; color: #6B645B; }
#nf-rp#nf-rp.nf-funnel .nf-result-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.2rem; }

/* Büro-Ansicht (nur Prototyp) */
#nf-rp#nf-rp.nf-funnel .nf-office { display: block; margin-top: 1.8rem; padding: 0.9rem 1.1rem; border: 1px dashed #4A4A4A; }
#nf-rp#nf-rp.nf-funnel .nf-office summary { display: list-item; cursor: pointer; font-size: 0.875rem; color: var(--muted); }
#nf-rp#nf-rp.nf-funnel .nf-office-dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.875rem; }
#nf-rp#nf-rp.nf-funnel .nf-office-dl dt { color: var(--muted); }
#nf-rp#nf-rp.nf-funnel .nf-office-dl dd { color: var(--text); overflow-wrap: anywhere; }
#nf-rp#nf-rp.nf-funnel .nf-calc { margin-top: 0.4rem; padding-left: 1.1rem; list-style: disc; color: var(--body); }
#nf-rp#nf-rp.nf-funnel .nf-office pre { margin-top: 1rem; padding: 0.9rem; background: rgba(255, 255, 255, 0.04); color: var(--body); font: 0.8125rem/1.55 ui-monospace, 'SF Mono', Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Handy und schmale Spalten: Höhe = sichtbarer Bildschirm (svh ändert sich nicht, wenn die Browserleiste ein- und ausfährt) */
@container nf (max-width: 699px) {
  #nf-rp#nf-rp.nf-funnel .nf-shell {
    height: clamp(600px, calc(100vh - var(--offset)), 900px);
    height: clamp(600px, calc(100svh - var(--offset)), 900px);
    padding: 1.25rem 1.25rem 1rem;
  }
  #nf-rp#nf-rp.nf-funnel .nf-lede { font-size: 1rem; }
  #nf-rp#nf-rp.nf-funnel .nf-cta-wrap { margin-top: 2rem; }
  #nf-rp#nf-rp.nf-funnel .nf-cta { width: 100%; max-width: 20rem; }
  #nf-rp#nf-rp.nf-funnel .nf-opts.icons, #nf-rp#nf-rp.nf-funnel .nf-opts.photos, #nf-rp#nf-rp.nf-funnel .nf-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  #nf-rp#nf-rp.nf-funnel .nf-teaser { --m: linear-gradient(to bottom, #000 0, #000 3rem, rgba(0, 0, 0, 0.62) 6.75rem, rgba(0, 0, 0, 0.14) 11rem, transparent 14.1rem); height: 14.1rem; margin-top: 2.5rem; }
  #nf-rp#nf-rp.nf-funnel .nf-tile { min-height: 6.75rem; gap: 0.7rem; padding: 0.9rem; }
  #nf-rp#nf-rp.nf-funnel .nf-ico { width: 34px; height: 34px; }
  #nf-rp#nf-rp.nf-funnel .nf-chip, #nf-rp#nf-rp.nf-funnel .nf-tile.list { min-height: 3rem; }
  #nf-rp#nf-rp.nf-funnel .nf-sel { display: none; }
  #nf-rp#nf-rp.nf-funnel .nf-actions { padding-top: 1.5rem; }
  #nf-rp#nf-rp.nf-funnel .nf-act-right { flex: 1; justify-content: flex-end; }
  #nf-rp#nf-rp.nf-funnel .nf-act-right .nf-btn-primary { flex: 1; max-width: 17rem; }
  #nf-rp#nf-rp.nf-funnel .nf-next { flex-direction: column; }
  #nf-rp#nf-rp.nf-funnel .nf-next .nf-btn, #nf-rp#nf-rp.nf-funnel .nf-callback .nf-btn { width: 100%; }
  #nf-rp#nf-rp.nf-funnel .nf-print { display: none; }
  #nf-rp#nf-rp.nf-funnel .nf-program { padding: 1.5rem 1.25rem; }
  #nf-rp#nf-rp.nf-funnel .nf-pdl { grid-template-columns: minmax(0, 1fr); }
  #nf-rp#nf-rp.nf-funnel .nf-pdl dt { padding-bottom: 0; }
  #nf-rp#nf-rp.nf-funnel .nf-pdl dd { padding-top: 0.15rem; border-top: 0; }
  #nf-rp#nf-rp.nf-funnel .nf-office-dl { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  #nf-rp#nf-rp.nf-funnel .nf-office-dl dd { margin-bottom: 0.7rem; }
}
@container nf (max-width: 380px) {
  #nf-rp#nf-rp.nf-funnel .nf-lbl, #nf-rp#nf-rp.nf-funnel .nf-chip { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  #nf-rp#nf-rp.nf-funnel, #nf-rp#nf-rp.nf-funnel * { animation-duration: 0.15s !important; animation-delay: 0s !important; transition-duration: 0.15s !important; }
}
/* „Drucken“ im Ergebnis: nur das Raumprogramm */
@media print {
  html.nf-printing body * { visibility: hidden; }
  html.nf-printing #nf-rp#nf-rp.nf-funnel .nf-shell { height: auto; }
  html.nf-printing #nf-rp#nf-rp.nf-funnel .nf-scroll { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  html.nf-printing #nf-rp#nf-rp.nf-funnel .nf-program, html.nf-printing #nf-rp#nf-rp.nf-funnel .nf-program * { visibility: visible; }
  html.nf-printing #nf-rp#nf-rp.nf-funnel .nf-program { position: absolute; left: 0; top: 0; width: 100%; margin: 0; animation: none; }
}
