/* =========================================================================
   Falkenhorst Immobilien – Theme-CSS
   Design-System (ui-ux-pro-max): Exaggerated Minimalism, Cinzel / Josefin Sans,
   Primary #0F766E, Secondary #14B8A6, Accent #0369A1, BG #F0FDFA, FG #134E4A.
   ========================================================================= */

:root {
  --fh-primary: #0F766E;
  --fh-secondary: #14B8A6;
  --fh-accent: #0369A1;
  --fh-tint: #F0FDFA;
  --fh-ink: #134E4A;
  --fh-ink-soft: #2F5F5B;
  --fh-muted: #E8F0F3;
  --fh-white: #FFFFFF;
  --fh-line: rgba(19, 78, 74, 0.14);
  --fh-shadow: 0 1px 2px rgba(19, 78, 74, 0.06), 0 6px 8px rgba(19, 78, 74, 0.06);
  --fh-shadow-lift: 0 2px 4px rgba(19, 78, 74, 0.08), 0 8px 8px rgba(19, 78, 74, 0.08);
  --fh-radius: 4px;
  --fh-radius-card: 10px;
  --fh-font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --fh-font-body: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --fh-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fh-dur: 220ms;
  --fh-header-h: 84px;
  --fh-container: 1240px;
  --fh-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --fh-section-y: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--fh-header-h) + 1rem); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--fh-white);
  color: var(--fh-ink);
  font-family: var(--fh-font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.fh-no-scroll { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
svg { max-width: 100%; height: auto; }
.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; max-width: 28px; max-height: 28px; }
a { color: var(--fh-primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--fh-dur) var(--fh-ease-out); }
a:hover { color: var(--fh-accent); }
:focus-visible { outline: 2px solid var(--fh-accent); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--fh-font-display);
  font-weight: 500;
  color: var(--fh-ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  hyphens: manual;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }

.fh-container { width: 100%; max-width: var(--fh-container); margin: 0 auto; padding: 0 var(--fh-gutter); }
.fh-section { padding: var(--fh-section-y) 0; }
.fh-section--tint { background: var(--fh-tint); }
.fh-section--page { padding-top: clamp(3rem, 6vw, 5rem); }
.fh-section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.fh-section__head p { color: var(--fh-ink-soft); font-size: 1.15rem; margin: 0; }

.fh-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--fh-ink); color: #fff; padding: 0.75rem 1rem; }
.fh-skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.fh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 1.6rem 0.75rem;
  border: 1px solid transparent; border-radius: var(--fh-radius);
  font-family: var(--fh-font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--fh-dur) var(--fh-ease-out), color var(--fh-dur) var(--fh-ease-out), border-color var(--fh-dur) var(--fh-ease-out), transform 160ms var(--fh-ease-out), box-shadow var(--fh-dur) var(--fh-ease-out);
}
.fh-btn:active { transform: scale(0.98); }
.fh-btn .icon { width: 18px; height: 18px; transition: transform var(--fh-dur) var(--fh-ease-out); }
.fh-btn:hover .icon { transform: translateX(3px); }
.fh-btn--primary { background: var(--fh-primary); color: #fff; }
.fh-btn--primary:hover { background: var(--fh-ink); color: #fff; box-shadow: var(--fh-shadow); }
.fh-btn--light { background: #fff; color: var(--fh-ink); }
.fh-btn--light:hover { background: var(--fh-tint); color: var(--fh-ink); }
.fh-btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.fh-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.fh-link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; text-decoration: none; color: var(--fh-primary); }
.fh-link-arrow .icon { width: 18px; height: 18px; transition: transform var(--fh-dur) var(--fh-ease-out); }
.fh-link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.fh-header {
  position: sticky; top: 0; z-index: 950;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--fh-line);
  transition: box-shadow var(--fh-dur) var(--fh-ease-out);
}
.admin-bar .fh-header { top: 32px; }
.fh-header.is-scrolled { box-shadow: 0 6px 8px rgba(19, 78, 74, 0.07); }
.fh-header__inner {
  max-width: var(--fh-container); margin: 0 auto; padding: 0 var(--fh-gutter);
  height: var(--fh-header-h); display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem);
  transition: height var(--fh-dur) var(--fh-ease-out);
}
.fh-header.is-scrolled .fh-header__inner { height: 68px; }
.fh-brand { display: inline-flex; align-items: center; color: var(--fh-ink); text-decoration: none; flex-shrink: 0; }
.fh-brand:hover { color: var(--fh-primary); }
.fh-logo { width: 210px; height: 44px; display: block; }
.fh-brand__img { max-height: 48px; width: auto; }

.fh-nav { margin-left: auto; }
.fh-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.fh-nav__list > li { position: relative; }
.fh-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--fh-ink); text-decoration: none; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - 8px) / 0 1px;
  transition: color var(--fh-dur) var(--fh-ease-out), background-size var(--fh-dur) var(--fh-ease-out);
}
.fh-nav__list a:hover, .fh-nav__list .current-menu-item > a, .fh-nav__list .current-menu-ancestor > a { color: var(--fh-primary); background-size: 100% 1px; }
.fh-nav__list .menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; margin-left: 0.5rem; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.fh-nav__list .sub-menu {
  list-style: none; margin: 0; padding: 0.6rem 0; position: absolute; top: 100%; left: -1rem; min-width: 260px;
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius-card); box-shadow: var(--fh-shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--fh-dur) var(--fh-ease-out), transform var(--fh-dur) var(--fh-ease-out), visibility var(--fh-dur);
}
.fh-nav__list li:hover > .sub-menu, .fh-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fh-nav__list .sub-menu a { display: flex; padding: 0.35rem 1.25rem; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; background: none; }
.fh-nav__list .sub-menu a:hover { background: var(--fh-tint); }
.fh-header__cta { flex-shrink: 0; }

.fh-burger { display: none; width: 48px; height: 48px; margin-left: auto; border: 0; background: transparent; color: var(--fh-ink); padding: 0; align-items: center; justify-content: center; }
.fh-burger__box { display: inline-block; position: relative; width: 26px; height: 18px; }
.fh-burger__box span { position: absolute; left: 0; width: 100%; height: 1.75px; background: currentColor; border-radius: 2px; transition: transform var(--fh-dur) var(--fh-ease-out), opacity var(--fh-dur) var(--fh-ease-out), top var(--fh-dur) var(--fh-ease-out); }
.fh-burger__box span:nth-child(1) { top: 0; }
.fh-burger__box span:nth-child(2) { top: 8px; }
.fh-burger__box span:nth-child(3) { top: 16px; }
.fh-burger[aria-expanded="true"] .fh-burger__box span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.fh-burger[aria-expanded="true"] .fh-burger__box span:nth-child(2) { opacity: 0; }
.fh-burger[aria-expanded="true"] .fh-burger__box span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Drawer: Geschwister des Headers; Header (950) liegt über Drawer (900) und Overlay (850). */
.fh-drawer-overlay { position: fixed; inset: 0; z-index: 850; background: rgba(19, 78, 74, 0.45); }
.fh-drawer-overlay[hidden] { display: none; }
.fh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 900;
  width: min(380px, 88vw); overflow-y: auto;
  padding: calc(var(--fh-header-h) + 1.5rem) 1.75rem 2rem;
  background: #fff; box-shadow: -8px 0 8px rgba(19, 78, 74, 0.08);
  transform: translateX(100%); visibility: hidden;
  transition: transform 280ms var(--fh-ease-out), visibility 280ms;
}
.fh-drawer.is-open { transform: translateX(0); visibility: visible; }
.fh-drawer__list, .fh-drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.fh-drawer__list > li { border-bottom: 1px solid var(--fh-line); }
.fh-drawer__list a { display: flex; align-items: center; min-height: 52px; color: var(--fh-ink); text-decoration: none; font-family: var(--fh-font-display); font-size: 1.2rem; }
.fh-drawer__list .sub-menu { padding: 0 0 0.75rem 1rem; }
.fh-drawer__list .sub-menu a { min-height: 44px; font-family: var(--fh-font-body); font-size: 1.05rem; color: var(--fh-ink-soft); }
.fh-drawer__list .current-menu-item > a { color: var(--fh-primary); }
.fh-drawer__cta { width: 100%; margin: 1.75rem 0 1.5rem; }

/* ---------- Hero / Slider ---------- */
.fh-hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--fh-ink); }
.fh-slider, .fh-slider__track { position: absolute; inset: 0; }
.fh-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1100ms ease-in-out; }
.fh-slide.is-active { opacity: 1; }
.fh-slide__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7000ms linear; }
.fh-slide.is-active .fh-slide__img { transform: scale(1); }
.fh-slider::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 78, 74, 0.25) 0%, rgba(19, 78, 74, 0.15) 35%, rgba(10, 45, 43, 0.82) 100%),
              linear-gradient(90deg, rgba(10, 45, 43, 0.55) 0%, rgba(10, 45, 43, 0) 65%);
}
.fh-slide__caption {
  position: absolute; z-index: 2; right: var(--fh-gutter); bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 300px; text-align: right; font-size: 0.95rem; line-height: 1.45; color: rgba(255, 255, 255, 0.92);
}
.fh-slide__title { display: block; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.fh-slide__text { display: block; }
.fh-hero__content { position: relative; z-index: 2; padding-bottom: clamp(5.5rem, 10vw, 7.5rem); padding-top: 6rem; }
.fh-hero__title { color: #fff; font-size: clamp(2.3rem, 5.8vw, 5.2rem); line-height: 1.06; max-width: 19ch; margin-bottom: 0.4em; text-wrap: balance; }
.fh-hero__sub { max-width: 36rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, 0.92); margin-bottom: 2rem; }
.fh-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.fh-slider__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 2.5rem); display: flex; gap: 0.25rem; pointer-events: none; }
.fh-slider__dot { pointer-events: auto; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; }
.fh-slider__dot span { display: block; width: 32px; height: 2px; background: rgba(255, 255, 255, 0.45); transition: background-color var(--fh-dur) var(--fh-ease-out), width var(--fh-dur) var(--fh-ease-out); }
.fh-slider__dot.is-active span { background: #fff; width: 40px; }

/* Sanfte Hero-Einblendung (nur Transform, Inhalt bleibt sichtbar) */
.js-motion .fh-hero__content > * { animation: fh-rise 700ms var(--fh-ease-out) both; }
.js-motion .fh-hero__content > *:nth-child(2) { animation-delay: 90ms; }
.js-motion .fh-hero__content > *:nth-child(3) { animation-delay: 180ms; }
@keyframes fh-rise { from { transform: translateY(18px); } to { transform: translateY(0); } }

/* ---------- Intro + Kennzahlen ---------- */
.fh-intro__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.fh-intro__title { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.12; margin: 0; }
.fh-intro__body p { font-size: 1.2rem; color: var(--fh-ink-soft); }
.fh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.75rem 0 0; padding-top: 2rem; border-top: 1px solid var(--fh-line); }
.fh-stat { margin: 0; }
.fh-stat__value { font-family: var(--fh-font-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--fh-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-stat__label { margin: 0.6rem 0 0; font-size: 0.95rem; line-height: 1.4; color: var(--fh-ink-soft); }

/* ---------- Exposé-Karten (Plugin-Klassen, doppelte Spezifität schlägt Plugin-Inline-CSS) ---------- */
.wpscp-imm-grid.wpscp-imm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin: 0 0 2.5rem; }
.wpscp-imm-card.wpscp-imm-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: #fff; border-radius: var(--fh-radius-card); box-shadow: var(--fh-shadow);
  color: var(--fh-ink); text-decoration: none;
  transition: transform var(--fh-dur) var(--fh-ease-out), box-shadow var(--fh-dur) var(--fh-ease-out);
}
.wpscp-imm-card.wpscp-imm-card:hover { transform: translateY(-4px); box-shadow: var(--fh-shadow-lift); }
.wpscp-imm-card.wpscp-imm-card:active { transform: scale(0.99); }
.wpscp-imm-card[hidden] { display: none !important; }
.wpscp-imm-card .wpscp-imm-card__img { aspect-ratio: 4 / 3; background: var(--fh-muted); overflow: hidden; }
.wpscp-imm-card .wpscp-imm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--fh-ease-out); }
.wpscp-imm-card:hover .wpscp-imm-card__img img { transform: scale(1.04); }
.wpscp-imm-card .wpscp-imm-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.wpscp-imm-card .wpscp-imm-card__body h3 { font-size: 1.3rem; line-height: 1.25; margin: 0.75rem 0 0.5rem; }
.wpscp-imm-card .wpscp-imm-card__price { font-family: var(--fh-font-display); font-size: 1.2rem; font-weight: 600; color: var(--fh-primary); margin: auto 0 0.25rem; padding-top: 0.5rem; }
.wpscp-imm-card .wpscp-imm-card__facts { margin: 0; font-size: 0.98rem; color: var(--fh-ink-soft); opacity: 1; }
.wpscp-imm-badge.wpscp-imm-badge { position: absolute; top: 1rem; right: 1rem; background: var(--fh-ink); color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.8rem 0.25rem; border-radius: 999px; }

.fh-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fh-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0.2rem 0.65rem 0.1rem; border-radius: 999px; background: var(--fh-muted); color: var(--fh-ink); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; }
.fh-chip--kauf { background: var(--fh-primary); color: #fff; }
.fh-chip--miete { background: var(--fh-accent); color: #fff; }
.fh-chip--energy { background: var(--fh-tint); box-shadow: inset 0 0 0 1px var(--fh-line); }

/* Filter über der Plugin-Liste */
.fh-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 2rem; }
.fh-filter__btn { min-height: 44px; padding: 0.55rem 1.15rem 0.45rem; border: 1px solid var(--fh-line); border-radius: 999px; background: #fff; color: var(--fh-ink); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; transition: background-color var(--fh-dur) var(--fh-ease-out), color var(--fh-dur) var(--fh-ease-out), border-color var(--fh-dur) var(--fh-ease-out), transform 160ms var(--fh-ease-out); }
.fh-filter__btn:hover { border-color: var(--fh-primary); color: var(--fh-primary); }
.fh-filter__btn:active { transform: scale(0.97); }
.fh-filter__btn.is-active { background: var(--fh-ink); border-color: var(--fh-ink); color: #fff; }
.fh-filter__count { margin: 0 0 0 auto; color: var(--fh-ink-soft); font-size: 0.95rem; }

/* ---------- Leistungen (Liste statt Kachelraster) ---------- */
.fh-service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fh-line); }
.fh-service { border-bottom: 1px solid var(--fh-line); }
.fh-service__link { display: grid; grid-template-columns: 200px 1fr 56px; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; padding: 1.75rem 0; color: var(--fh-ink); text-decoration: none; }
.fh-service__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--fh-radius-card); background: var(--fh-muted); }
.fh-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--fh-ease-out); }
.fh-service__link:hover .fh-service__media img { transform: scale(1.05); }
.fh-service__title { display: block; font-family: var(--fh-font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.2; margin-bottom: 0.4rem; transition: color var(--fh-dur) var(--fh-ease-out); }
.fh-service__excerpt { display: block; color: var(--fh-ink-soft); max-width: 44rem; }
.fh-service__go { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--fh-line); color: var(--fh-primary); transition: background-color var(--fh-dur) var(--fh-ease-out), color var(--fh-dur) var(--fh-ease-out), transform var(--fh-dur) var(--fh-ease-out); }
.fh-service__link:hover .fh-service__title { color: var(--fh-primary); }
.fh-service__link:hover .fh-service__go { background: var(--fh-primary); color: #fff; transform: translateX(4px); }

/* ---------- Ablauf (Startseiten-Inhalt) ---------- */
.fh-process .wp-block-columns { gap: clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.fh-process .wp-block-column { padding-top: 1.5rem; border-top: 2px solid var(--fh-primary); }
.fh-process .wp-block-column h3 { margin-bottom: 0.5rem; }
.fh-process .wp-block-column p { color: var(--fh-ink-soft); font-size: 1.05rem; }

/* ---------- Region ---------- */
.fh-region { background: var(--fh-ink); color: #fff; }
.fh-region h2 { color: #fff; }
.fh-region__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.fh-region__text p { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; }
.fh-region__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
.fh-region__list li { font-family: var(--fh-font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }

/* ---------- Kontakt + Formular ---------- */
.fh-contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.fh-contact__intro p { color: var(--fh-ink-soft); font-size: 1.15rem; }
.fh-contact-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.fh-contact-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; line-height: 1.4; }
.fh-contact-list .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--fh-primary); }

.wpscp-form.wpscp-form { background: #fff; border-radius: var(--fh-radius-card); box-shadow: var(--fh-shadow); border: 0; padding: clamp(1.5rem, 3vw, 2.5rem); max-width: none; margin: 0; }
.wpscp-form.wpscp-form .wpscp-form__title { font-family: var(--fh-font-display); font-weight: 500; font-size: 1.5rem; color: var(--fh-ink); margin: 0 0 1.25rem; }
.wpscp-form.wpscp-form label { display: block; font-size: 0.95rem; font-weight: 600; color: var(--fh-ink); margin-bottom: 1rem; }
.wpscp-form.wpscp-form .wpscp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wpscp-form.wpscp-form input[type="text"], .wpscp-form.wpscp-form input[type="email"], .wpscp-form.wpscp-form textarea {
  display: block; width: 100%; margin-top: 0.4rem; min-height: 48px; padding: 0.75rem 0.9rem 0.6rem;
  border: 1px solid rgba(19, 78, 74, 0.28); border-radius: var(--fh-radius); background: #fff;
  font-family: var(--fh-font-body); font-size: 1.05rem; font-weight: 400; color: var(--fh-ink);
  transition: border-color var(--fh-dur) var(--fh-ease-out), box-shadow var(--fh-dur) var(--fh-ease-out);
}
.wpscp-form.wpscp-form input:focus, .wpscp-form.wpscp-form textarea:focus { outline: none; border-color: var(--fh-primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18); }
.wpscp-form.wpscp-form .wpscp-form__btn, .wpscp-form__btn.wpscp-form__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.85rem 1.75rem 0.75rem;
  background: var(--fh-primary); color: #fff; border: 0; border-radius: var(--fh-radius);
  font-family: var(--fh-font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: none; transition: background-color var(--fh-dur) var(--fh-ease-out), transform 160ms var(--fh-ease-out);
}
.wpscp-form.wpscp-form .wpscp-form__btn:hover { background: var(--fh-ink); }
.wpscp-form.wpscp-form .wpscp-form__btn:active { transform: scale(0.98); }
.wpscp-form-success.wpscp-form-success, .wpscp-form-error.wpscp-form-error { border-radius: var(--fh-radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.wpscp-form-success.wpscp-form-success { background: var(--fh-tint); color: var(--fh-ink); box-shadow: inset 0 0 0 1px var(--fh-primary); }

/* ---------- Unterseiten ---------- */
.fh-page-head { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--fh-tint); }
.fh-page-head--image { color: #fff; background: var(--fh-ink); min-height: clamp(380px, 52vh, 540px); display: flex; align-items: flex-end; overflow: hidden; }
.fh-page-head__media { position: absolute; inset: 0; }
.fh-page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.fh-page-head--image .fh-page-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 45, 43, 0.2) 0%, rgba(10, 45, 43, 0.8) 100%); }
.fh-page-head__inner { position: relative; z-index: 1; }
.fh-page-head__title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0; max-width: 20ch; text-wrap: balance; }
.fh-page-head--image .fh-page-head__title { color: #fff; }
.fh-page-head__lead { max-width: 40rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 1rem 0 0; color: var(--fh-ink-soft); }
.fh-page-head--image .fh-page-head__lead { color: rgba(255, 255, 255, 0.9); }
.fh-page-head__crumb { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--fh-primary); }
.fh-page-head--image .fh-page-head__crumb { color: #fff; }
.js-motion .fh-page-head__inner > * { animation: fh-rise 650ms var(--fh-ease-out) both; }
.js-motion .fh-page-head__inner > *:nth-child(2) { animation-delay: 80ms; }
.js-motion .fh-page-head__inner > *:nth-child(3) { animation-delay: 160ms; }

/* Gutenberg-Inhalte */
.fh-content { max-width: 50rem; }
.fh-content--wide, .fh-content .alignwide, .fh-content > .wp-block-columns, .fh-content > .wp-block-group.has-background, .fh-content > .fh-offers, .fh-content > .wp-block-shortcode { max-width: none; }
.fh-section--page .fh-content { max-width: none; }
.fh-section--page .fh-content > p, .fh-section--page .fh-content > h2, .fh-section--page .fh-content > h3, .fh-section--page .fh-content > ul, .fh-section--page .fh-content > ol { max-width: 48rem; }
.fh-content h2 { margin-top: 2.2em; }
.fh-content > h2:first-child { margin-top: 0; }
.fh-content h3 { margin-top: 1.6em; }
.fh-content ul, .fh-content ol { padding-left: 1.25rem; margin: 0 0 1.4em; }
.fh-content li { margin-bottom: 0.45em; padding-left: 0.25rem; }
.fh-content li::marker { color: var(--fh-primary); }
.fh-content .wp-block-columns { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); margin: 2.5rem 0; align-items: flex-start; }
.fh-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.fh-content .wp-block-column > h3:first-child, .fh-content .wp-block-column > h2:first-child { margin-top: 0; }
.fh-content .wp-block-image { margin: 0 0 1.5rem; }
.fh-content .wp-block-image img { border-radius: var(--fh-radius-card); width: 100%; height: auto; object-fit: cover; }
.fh-content .wp-block-group.has-background { padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--fh-radius-card); margin: 3rem 0; }
.fh-content .has-fh-tint-background-color, .fh-content .wp-block-group.is-style-fh-callout { background: var(--fh-tint); }
.fh-content .wp-block-group.has-background > :last-child { margin-bottom: 0; }
.fh-content .wp-block-separator { border: 0; border-top: 1px solid var(--fh-line); margin: 3.5rem 0; max-width: none; }
.fh-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.5rem 0; }
.fh-content .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0.85rem 1.6rem 0.75rem; background: var(--fh-primary); color: #fff; border-radius: var(--fh-radius); text-decoration: none; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: background-color var(--fh-dur) var(--fh-ease-out), transform 160ms var(--fh-ease-out); }
.fh-content .wp-block-button__link:hover { background: var(--fh-ink); color: #fff; }
.fh-content .wp-block-button__link:active { transform: scale(0.98); }
.fh-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--fh-primary); box-shadow: inset 0 0 0 1px var(--fh-primary); }
.fh-content .is-style-outline .wp-block-button__link:hover { background: var(--fh-primary); color: #fff; }
.fh-content blockquote { margin: 2.5rem 0; padding: 0; font-family: var(--fh-font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; }
.fh-content blockquote cite { display: block; margin-top: 1rem; font-family: var(--fh-font-body); font-size: 1rem; font-style: normal; color: var(--fh-ink-soft); }
.fh-content .wp-block-spacer { max-width: none; }

/* ---------- Exposé-Detail ---------- */
.fh-expose { padding: clamp(1.5rem, 4vw, 2.5rem) 0 var(--fh-section-y); }
.fh-expose__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin: 0.5rem 0 2rem; }
.fh-expose__title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0.9rem 0 0.4rem; max-width: 22ch; }
.fh-expose__place { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--fh-ink-soft); }
.fh-expose__place .icon { width: 18px; height: 18px; color: var(--fh-primary); }
.fh-expose__price { font-family: var(--fh-font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--fh-primary); margin: 0; text-align: right; white-space: nowrap; }
.fh-expose__status.wpscp-imm-badge { position: static; display: inline-block; margin-left: 0.75rem; vertical-align: middle; font-family: var(--fh-font-body); }
.fh-gallery__main { border-radius: var(--fh-radius-card); overflow: hidden; background: var(--fh-muted); aspect-ratio: 16 / 9; }
.fh-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.fh-gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.fh-gallery__thumb { flex: 0 0 auto; width: 104px; height: 78px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; opacity: 0.7; box-shadow: 0 0 0 2px transparent; transition: opacity var(--fh-dur) var(--fh-ease-out), box-shadow var(--fh-dur) var(--fh-ease-out); }
.fh-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fh-gallery__thumb:hover, .fh-gallery__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--fh-primary); }
.fh-keyfacts { list-style: none; margin: 2rem 0 0; padding: 1.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; border-top: 1px solid var(--fh-line); border-bottom: 1px solid var(--fh-line); }
.fh-keyfacts li { display: flex; align-items: center; gap: 0.75rem; }
.fh-keyfacts .icon { width: 22px; height: 22px; color: var(--fh-primary); }
.fh-keyfacts span { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--fh-ink-soft); line-height: 1.3; }
.fh-keyfacts strong { font-family: var(--fh-font-display); font-weight: 600; font-size: 1.3rem; color: var(--fh-ink); }
.fh-expose__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.fh-expose__block { margin-bottom: 3rem; }
.fh-expose__block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.fh-table { width: 100%; border-collapse: collapse; }
.fh-table th, .fh-table td { text-align: left; padding: 0.8rem 0 0.7rem; border-bottom: 1px solid var(--fh-line); vertical-align: top; }
.fh-table th { width: 45%; font-weight: 400; color: var(--fh-ink-soft); padding-right: 1rem; }
.fh-table td { font-weight: 600; }
.fh-energy { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 0 0 1.5rem; padding: 0; }
.fh-energy__step { text-align: center; padding: 0.45rem 0 0.35rem; font-size: 0.85rem; font-weight: 700; color: #fff; border-radius: 3px; opacity: 0.35; }
.fh-energy__step:nth-child(1) { background: #0B7A3E; } .fh-energy__step:nth-child(2) { background: #2E8B3A; } .fh-energy__step:nth-child(3) { background: #5C9A2E; }
.fh-energy__step:nth-child(4) { background: #8A9A1E; } .fh-energy__step:nth-child(5) { background: #A88A10; } .fh-energy__step:nth-child(6) { background: #B8730F; }
.fh-energy__step:nth-child(7) { background: #B85A12; } .fh-energy__step:nth-child(8) { background: #B24317; } .fh-energy__step:nth-child(9) { background: #A62B1C; }
.fh-energy__step.is-current { opacity: 1; transform: scaleY(1.18); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); }
.fh-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; }
.fh-checklist li { display: flex; align-items: flex-start; gap: 0.6rem; }
.fh-checklist .icon { width: 18px; height: 18px; margin-top: 0.2em; color: var(--fh-primary); }
.fh-expose__aside { position: sticky; top: calc(var(--fh-header-h) + 1.5rem); }
.fh-expose__card { background: var(--fh-tint); border-radius: var(--fh-radius-card); padding: 1.75rem; }
.fh-expose__card-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fh-ink-soft); margin: 0 0 0.25rem; }
.fh-expose__card .fh-expose__card-price { font-family: var(--fh-font-display); font-size: 1.6rem; color: var(--fh-primary); margin-bottom: 1rem; }
.fh-expose__card p { font-size: 1rem; }
.fh-expose__card .fh-btn { width: 100%; }
.fh-expose__request { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2rem; padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--fh-line); }
.fh-expose__request-intro p { color: var(--fh-ink-soft); }

/* ---------- Footer ---------- */
.fh-footer { background: #0E3D3A; color: rgba(255, 255, 255, 0.86); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: 1rem; }
.fh-footer a { color: #fff; }
.fh-footer a:hover { color: #99F6E4; }
.fh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.fh-brand--footer { color: #fff; margin-bottom: 1.25rem; }
.fh-footer__brand p { max-width: 26rem; }
.fh-footer__title { font-family: var(--fh-font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin: 0 0 1rem; }
.fh-footer__menu { list-style: none; margin: 0; padding: 0; }
.fh-footer__menu a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.fh-footer .fh-contact-list { margin-top: 0; }
.fh-footer .fh-contact-list .icon { color: #99F6E4; }
.fh-footer .fh-link-arrow { color: #fff; }
.fh-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-top: 1.75rem; font-size: 0.92rem; }
.fh-footer__bottom p { margin: 0; }
.fh-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; }
.fh-footer__legal a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.fh-footer__study { margin-left: auto !important; color: rgba(255, 255, 255, 0.7); }
#wpx-footer-branding { background: #0E3D3A; color: rgba(255, 255, 255, 0.72); opacity: 1 !important; }

/* ---------- Scroll-Reveal (nur Transform – Inhalte bleiben immer sichtbar) ---------- */
.js-motion .reveal { transform: translateY(22px); transition: transform 620ms var(--fh-ease-out); }
.js-motion .reveal.is-visible { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .fh-header__cta { display: none; }
}
@media (max-width: 960px) {
  .fh-nav { display: none; }
  .fh-burger { display: inline-flex; }
  .fh-header { background: #fff; }
}
@media (min-width: 961px) {
  .fh-drawer, .fh-drawer-overlay { display: none; }
}
@media (max-width: 900px) {
  :root { --fh-header-h: 72px; }
  .fh-intro__grid, .fh-region__grid, .fh-contact__grid, .fh-expose__grid, .fh-expose__request { grid-template-columns: 1fr; }
  .wpscp-imm-grid.wpscp-imm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-service__link { grid-template-columns: 140px 1fr; }
  .fh-service__go { display: none; }
  .fh-keyfacts { grid-template-columns: repeat(2, 1fr); }
  .fh-expose__aside { position: static; }
  .fh-footer__grid { grid-template-columns: 1fr 1fr; }
  .fh-footer__brand { grid-column: 1 / -1; }
  .fh-content .wp-block-columns { flex-direction: column; }
  .fh-content .wp-block-column { flex-basis: auto !important; width: 100%; }
  .fh-slide__caption { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .fh-header.is-scrolled .fh-header__inner { height: 64px; }
  .fh-logo { width: 176px; height: 37px; }
  .fh-hero { min-height: 600px; }
  .fh-hero__content { padding-bottom: 5rem; }
  .fh-hero__actions .fh-btn { width: 100%; }
  .fh-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .fh-stat { display: flex; align-items: baseline; gap: 1rem; }
  .fh-stat__label { margin: 0; }
  .wpscp-imm-grid.wpscp-imm-grid { grid-template-columns: 1fr; }
  .fh-service__link { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .fh-service__media { aspect-ratio: 16 / 9; }
  .fh-region__list { grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
  .wpscp-form.wpscp-form .wpscp-form__row { grid-template-columns: 1fr; }
  .fh-expose__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .fh-expose__price { text-align: left; white-space: normal; }
  .fh-checklist { grid-template-columns: 1fr; }
  .fh-energy__step { font-size: 0.7rem; }
  .fh-footer__grid { grid-template-columns: 1fr; }
  .fh-footer__study { margin-left: 0 !important; }
  .fh-filter__count { width: 100%; margin: 0.25rem 0 0; }
}
@media (max-width: 782px) {
  .admin-bar .fh-header { top: 46px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fh-slide__img { transform: none !important; }
  .reveal { transform: none !important; }
}
