/* ===================================================
   HOLTZ IMMOBILIEN – Basis
   Reset, Design-Tokens, Typografie, Buttons, Formulare, Footer
   Farbwelt: Unternehmensgrün #176649 auf warmem Papierton
   =================================================== */

/*
  Metrisch angepasste Fallback-Schriften.
  --------------------------------------------------------------------------
  Bis Poppins/Fraunces geladen sind, zeigt der Browser eine Ersatzschrift
  (font-display: swap). Ohne Anpassung haben Arial/Georgia andere Maße als
  Poppins/Fraunces – beim Umschalten ändern sich Zeilenhöhen und -umbrüche,
  die Seite wächst und "springt" (Layout Shift / CLS) genau beim Laden.
  Diese zwei @font-face rendern Arial bzw. Georgia mit exakt den Maßen von
  Poppins/Fraunces (ascent/descent/line-gap/size-adjust – berechnet mit
  capsize aus den echten Schriftdateien). Dadurch nimmt der Fallback denselben
  Platz ein wie die Web-Schrift, und der Wechsel erfolgt ohne jeden Sprung.
  Die eigentliche Typografie bleibt unverändert – Poppins/Fraunces bleiben die
  primären Schriften.
*/
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 93.6182%;
  descent-override: 31.2061%;
  line-gap-override: 8.916%;
  size-adjust: 112.1577%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  ascent-override: 92.9623%;
  descent-override: 24.2386%;
  size-adjust: 105.2039%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ===================== Tokens ===================== */

:root {
  /*
    Zwei Grüntöne mit getrennten Aufgaben:
    --c-forest  trägt Flächen (Hero-Schleier, Bänder, Footer, dunkle Karten)
    --c-primary bleibt die Unternehmensfarbe und markiert ausschließlich
                Handlungen – Buttons, Links, Icons. Dadurch leuchtet auf der
                Seite nur noch das, was auch anklickbar ist.
  */
  --c-forest: #0d352b;
  --c-forest-rgb: 13, 53, 43;

  --c-primary: #176649;
  --c-primary-dark: #12523a;
  --c-primary-light: #1f9865;
  --c-primary-rgb: 23, 102, 73;

  /*
    Drei Papiertöne, fast gleich hell, unterschiedlich temperiert. Der
    Wechsel läuft über die Farbtemperatur, nicht über die Helligkeit –
    das erzeugt Rhythmus, ohne die Seite in Streifen zu zerlegen.
    Reines Weiß kommt bewusst nirgends vor: Es wirkt digital, während ein
    warmer Papierton Tageslicht auf einer Fläche vermuten lässt.
  */
  --c-bg: #faf8f5;
  --c-cream: #f7f5f2;
  --c-sage: #f4f7f4;
  --c-surface: #fdfcfa;
  --c-surface-cool: var(--c-sage);
  --c-surface-muted: #f0efe9;
  --c-surface-deep: var(--c-forest);

  /*
    Lichtebenen. Sie liegen als zusätzliche Hintergrundschichten über der
    Grundfarbe und sollen einzeln nicht erkennbar sein – gemeinsam ergeben
    sie das Gefühl von Tageslicht, das schräg auf Papier fällt.
    --layer-light  : Lichteinfall von oben rechts
    --layer-warmth : wärmerer Anschnitt an der Oberkante
    --layer-settle : minimale Abdunklung zum Fuß der Fläche
  */
  --layer-light: radial-gradient(85% 65% at 82% -5%,
    rgba(255, 253, 247, 0.75) 0%, rgba(255, 253, 247, 0.22) 38%, transparent 68%);
  --layer-warmth: linear-gradient(179deg,
    rgba(255, 252, 246, 0.55) 0%, rgba(255, 252, 246, 0) 42%);
  --layer-settle: linear-gradient(to bottom,
    transparent 62%, rgba(23, 41, 33, 0.022) 100%);
  /*
    Naht zur vorherigen Sektion: ein Streifen im Grundton läuft an der
    Oberkante aus, damit zwischen zwei Flächen kein gezogener Strich steht.
    Bewusst eine Hintergrundschicht und kein Overlay – ein absolut
    positioniertes Pseudoelement läge über dem Text der Sektion.
  */
  --layer-seam: linear-gradient(to bottom,
    rgba(250, 248, 245, 0.6) 0%, rgba(250, 248, 245, 0) clamp(5rem, 4rem + 6vw, 10rem));

  /* Text */
  --c-text: #1b1b1b;
  --c-text-secondary: #55605a;
  --c-text-muted: #707070;
  --c-text-invert: #f4f6f4;

  /*
    Akzentfarbe Gold/Bronze – ausschließlich als Detail, nie als Fläche.
    --c-gold      : Linien, Ränder, Icon-Konturen (dekorativ)
    --c-gold-ink  : abgedunkelt für Text und Zahlen (Kontrast ≥ 4.5:1 auf Weiß)
    --c-gold-soft : sehr helle Fläche für Icon-Hintergründe
  */
  --c-gold: #b89a5a;
  /* Auf Cool Sage bleibt so auch der 11px-Kicker über 4.5:1 */
  --c-gold-ink: #836830;
  --c-gold-soft: #f3ecdd;
  --c-gold-rgb: 184, 154, 90;

  --c-accent: var(--c-gold);

  --c-border: rgba(27, 27, 27, 0.11);
  --c-border-strong: rgba(27, 27, 27, 0.18);

  /* Typografie – nach der Web-Schrift folgt der metrisch angepasste Fallback
     (siehe @font-face oben), damit der Font-Wechsel keinen Layout-Sprung
     erzeugt; danach die generischen System-Schriften als letzte Absicherung. */
  --font-body: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;

  /*
    Gespreizte Skala: Der Abstand zwischen Hero (84px), Sektionstitel (52px)
    und Kartentitel (22px) ist der stärkste Hebel für Premium-Wirkung.
    Größenkontrast erzeugt Rangfolge, bevor ein Wort gelesen wird.
  */
  --text-label: 0.6875rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  --text-h2: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --text-hero: clamp(2.75rem, 1.1rem + 6.2vw, 5.25rem);

  /* Raster und Abstände */
  --wrap: 1200px;
  /* Breites Raster für Navigation und Hero – beide stehen auf der
     äußeren Kante, die Sektionen darunter im schmaleren Satzspiegel. */
  --wrap-wide: 96rem;
  --wrap-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(2.5rem, 2rem + 3vw, 4.5rem);

  /* Weiche Kanten: je größer die Fläche, desto größer der Radius.
     --radius-pill trägt alle Schaltflächen – sie sind dadurch als
     Handlungsfläche schon an der Form erkennbar. */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Schatten in Lagen – nah, mittel, weit. Eine einzelne Lage wirkt flach. */
  --shadow-sm: 0 1px 2px rgba(var(--c-forest-rgb), 0.05),
    0 2px 8px rgba(var(--c-forest-rgb), 0.04);
  --shadow: 0 2px 6px rgba(var(--c-forest-rgb), 0.05),
    0 12px 28px rgba(var(--c-forest-rgb), 0.07);
  --shadow-lg: 0 2px 6px rgba(var(--c-forest-rgb), 0.05),
    0 12px 28px rgba(var(--c-forest-rgb), 0.07),
    0 40px 80px rgba(var(--c-forest-rgb), 0.09);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-bs-theme="dark"] {
  --c-bg: #0f1915;
  --c-cream: #121c18;
  --c-sage: #101a16;
  --c-surface: #16221d;
  --c-surface-cool: var(--c-sage);
  --c-surface-muted: #1b2c25;
  --c-surface-deep: #081310;

  /* Im Dunkeln kommt das Licht gedämpft und kühler */
  --layer-light: radial-gradient(85% 65% at 82% -5%,
    rgba(180, 220, 200, 0.05) 0%, transparent 62%);
  --layer-warmth: linear-gradient(179deg,
    rgba(190, 225, 205, 0.035) 0%, transparent 42%);
  --layer-settle: linear-gradient(to bottom,
    transparent 62%, rgba(0, 0, 0, 0.12) 100%);
  --layer-seam: linear-gradient(to bottom,
    rgba(15, 25, 21, 0.6) 0%, rgba(15, 25, 21, 0) clamp(5rem, 4rem + 6vw, 10rem));

  --c-forest: #081310;
  --c-forest-rgb: 8, 19, 16;

  /* Gold muss auf dunklem Grund heller ausfallen, sonst kippt es ins Braune */
  --c-gold: #d0b479;
  --c-gold-ink: #d6bc7e;
  --c-gold-soft: rgba(208, 180, 121, 0.14);
  --c-gold-rgb: 208, 180, 121;

  --c-text: #ecefec;
  --c-text-secondary: #a8b8b0;
  --c-text-muted: #98a49d;

  --c-primary: #2f9d72;
  --c-primary-dark: #1f7a56;
  --c-primary-light: #4cbb8d;
  --c-primary-rgb: 47, 157, 114;

  --c-border: rgba(236, 239, 236, 0.13);
  --c-border-strong: rgba(236, 239, 236, 0.22);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.4), 0 40px 80px rgba(0, 0, 0, 0.45);
}

/* ===================== Grundlayout ===================== */

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* "clip" statt "hidden": verhindert seitliches Scrollen, ohne
     position: sticky im Dokument zu deaktivieren. */
  overflow-x: hidden;
  overflow-x: clip;
}

/* Browser-Scrollbar in der Markenfarbe – bewusst ein fester Farbwert,
   nicht --c-forest, damit sie in Hell- und Dunkelmodus identisch bleibt. */
html {
  scrollbar-color: #0d352b var(--c-surface-muted);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--c-surface-muted);
}

::-webkit-scrollbar-thumb {
  background-color: #0d352b;
  border: 3px solid var(--c-surface-muted);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #12523a;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--c-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:where(a, button, input, textarea, select, summary, details):focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.hh-container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hh-container-narrow {
  max-width: var(--wrap-narrow);
}

.hh-main {
  /* Platz für die fixierte Navigationsleiste */
  padding-top: 0;
}

/*
  Seitenkopf für Unterseiten ohne eigenes Hero-Bild (z. B. Blog-Übersicht,
  Beitragsseiten): reserviert oben Platz für die fixierte Navigationsleiste,
  die hier – anders als auf der Startseite – von Anfang an deckend steht.

  Selektor bewusst als .hh-section.hh-page-head (zwei Klassen, Spezifität
  0-2-0): .hh-page-head steht im Markup immer zusammen mit .hh-section, und
  dessen spätere Regel „padding-block: var(--space-section)“ (unten) sticht
  bei gleicher Spezifität sonst per Quellreihenfolge dieses padding-top aus
  – padding-block ist die logische Kurzform für padding-top/-bottom und
  gewinnt gegen die longhand-Deklaration hier, wenn beide Regeln nur eine
  Klasse tragen. Ergebnis war ein Navigationsüberlapp auf allen
  .hh-page-head-Seiten (Blog-Beitrag, u. a.).
*/
.hh-section.hh-page-head {
  padding-top: clamp(148px, 132px + 4vw, 176px);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.hh-page-head .hh-section-lead {
  max-width: 44rem;
}

.hh-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hh-skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.hh-skip-link:focus {
  top: 0;
}

/* ===================== Bausteine ===================== */

/*
  Jede Sektion ist eine Fläche aus mehreren Schichten: Grundton, Lichteinfall
  von oben rechts, warmer Anschnitt oben, minimale Abdunklung unten. Einzeln
  ist keine Schicht zu erkennen – zusammen nehmen sie der Fläche das Digitale.
*/
.hh-section {
  position: relative;
  padding-block: var(--space-section);
  background:
    var(--layer-seam),
    var(--layer-light),
    var(--layer-warmth),
    var(--layer-settle),
    var(--c-bg);
}

/*
  Flächenwechsel im Dreiklang: Warmweiß (ohne Modifier) → Creme → Salbei.
  Alle drei tragen dieselben Lichtschichten, nur der Grundton wechselt.
*/
/*
  Weder die Kennzahlenleiste noch die erste Sektion danach tragen hier
  einen eigenen Grundton: Beide zeigen die Seitenfläche durch, dadurch
  entsteht keine Kante zwischen Hero und Inhalt. Die höhere Spezifität
  (zwei Klassen) sticht die Grundtonregel von .hh-section-sage/-cool/-cream
  gezielt nur für diese eine Sektion aus – der Dreiklang-Wechsel bleibt für
  alle übrigen Sektionen der Seite unangetastet.
*/
.hh-facts + .hh-section {
  background: none;
}

/* Direkt unter der schwebenden Kennzahlenkarte ist bereits genug Abstand
   vorhanden – ein zusätzliches Top-Padding wäre hier doppelt. */
#leistungen {
  padding-top: 0;
}

.hh-section-cream {
  background:
    var(--layer-seam),
    var(--layer-light),
    var(--layer-warmth),
    var(--layer-settle),
    var(--c-cream);
}

.hh-section-sage,
.hh-section-cool {
  background:
    var(--layer-seam),
    var(--layer-light),
    var(--layer-warmth),
    var(--layer-settle),
    var(--c-sage);
}

/* Der dunkle Anker der Seite ist das Newsletter-Band (siehe holtz-home.css) */

.hh-section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.hh-section-head-center {
  margin-inline: auto;
  text-align: center;
}

.hh-section-head-split {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hh-section-head-split > div {
  max-width: 44rem;
}

.hh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.125rem;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
}

/* Der Anstrich vor dem Kicker ist einer der Gold-Akzente */
.hh-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--c-gold), rgba(var(--c-gold-rgb), 0.25));
}

.hh-section-head-center .hh-kicker::before {
  display: none;
}

/* Auf dunklem Grund trägt der Kicker die Akzentfarbe selbst */
.hh-kicker-invert {
  color: #d0b479;
}

.hh-section-title {
  font-size: var(--text-h2);
  color: var(--c-text);
}

.hh-section-lead {
  margin-top: 1.125rem;
  font-size: var(--text-lead);
  color: var(--c-text-secondary);
}

/*
  Hervorhebung einzelner Wörter in Überschriften: goldene Unterstreichung,
  die unter der Schriftlinie durchläuft statt sie zu durchschneiden.
*/
.hh-mark {
  position: relative;
  white-space: nowrap;
}

.hh-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.09em;
  min-height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--c-gold), rgba(var(--c-gold-rgb), 0.35));
}

/* ===================== Icon-Kacheln =====================
   Eine Formsprache für die ganze Seite: leicht gerundete Quadrate.
   Dunkle Kachel mit bronzefarbenem Symbol, wo das Icon führen soll –
   helle Kachel mit bronzefarbenem Symbol, wo es begleitet. */

.hh-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--c-forest);
  color: var(--c-gold);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    scale 0.3s var(--ease);
}

/* Zurückhaltende Variante */
.hh-icon-tile-soft {
  background: rgba(var(--c-gold-rgb), 0.14);
  color: var(--c-gold-ink);
}

/* ===================== Mikroanimationen =====================
   Elemente mit [data-reveal] blenden beim Scrollen weich ein.
   Ohne JavaScript bleiben sie unverändert sichtbar – deshalb greift
   der Startzustand erst über die Klasse .hh-js am <html>-Element.
   Bewegt wird nur translate/scale/opacity, nie das Layout. */

[data-reveal] {
  transition: opacity 1.1s var(--ease), translate 1.1s var(--ease),
    scale 1.1s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.hh-js [data-reveal] {
  opacity: 0;
  translate: 0 34px;
}

.hh-js [data-reveal="icon"] {
  translate: 0 14px;
  scale: 0.82;
}

.hh-js [data-reveal="fade"] {
  translate: none;
}

[data-reveal].is-revealed {
  opacity: 1;
  translate: none;
  scale: none;
}

@media (prefers-reduced-motion: reduce) {
  .hh-js [data-reveal] {
    opacity: 1;
    translate: none;
    scale: none;
  }
}

/* Buttons */

.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.hh-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.hh-btn:hover svg {
  transform: translateX(3px);
}

/* Die Hauptaktion trägt Bronze – sie ist der einzige gefüllte Goldton
   auf der Seite und dadurch unverwechselbar. */
.hh-btn-primary {
  background: var(--c-gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--c-gold-rgb), 0.28);
}

.hh-btn-primary:hover {
  background: #a5873f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--c-gold-rgb), 0.36);
}

/* Zweiter Weg auf dunklem Grund: heller Rahmen, keine Fläche */
.hh-btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hh-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Textlink mit Pfeil, wo eine dritte Fläche zu viel wäre */
.hh-btn-quiet {
  padding-inline: 4px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-strong);
  border-radius: 0;
}

.hh-btn-quiet:hover {
  color: var(--c-gold-ink);
  border-bottom-color: var(--c-gold);
}

/* Sekundärer Button: Gold übernimmt den Hover-Zustand */
.hh-btn-outline {
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.hh-btn-outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-ink);
  background: rgba(var(--c-gold-rgb), 0.09);
  transform: translateY(-2px);
}

.hh-btn-block {
  width: 100%;
}

/* Formulare */

.hh-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hh-field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hh-field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.hh-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.hh-optional {
  font-weight: 400;
  color: var(--c-text-muted);
}

/*
  Große, kantige Felder. 16px Schriftgröße ist Pflicht – alles darunter
  löst auf iPhones den automatischen Zoom beim Fokus aus.
*/
.hh-input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.24s var(--ease);
}

.hh-input::placeholder {
  color: var(--c-text-muted);
}

/* Bronze zeigt hier funktional an, wo man gerade steht */
.hh-input:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(var(--c-gold-rgb), 0.16);
}

/* Fehler erscheinen unter dem Feld und erst beim Verlassen */
.hh-input[aria-invalid="true"] {
  border-color: #b4472f;
}

.hh-error {
  font-size: 0.8125rem;
  color: #b4472f;
}

.hh-error[hidden] {
  display: none;
}

.hh-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

select.hh-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b968f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  padding-right: 48px;
}

.hh-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--c-text-secondary);
  cursor: pointer;
}

.hh-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--c-primary);
  cursor: pointer;
}

.hh-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hh-form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.hh-form-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hh-form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ===================== Footer ===================== */

.hh-footer {
  position: relative;
  padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  padding-bottom: 2rem;
  background: var(--c-forest);
  color: var(--c-text-invert);
  isolation: isolate;
}

/* Sehr feines Punktraster gibt der dunklen Fläche Textur statt Leere */
.hh-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}

/*
  Abbinderzeile: Claim links, Kontakt rechts, darunter eine Bronzelinie.
  Sie macht aus dem Footer einen Abschluss statt eines Restbereichs.
*/
.hh-footer-signoff {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  flex-wrap: wrap;
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-bottom: 1px solid rgba(var(--c-gold-rgb), 0.3);
}

.hh-footer-signoff-claim {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.hh-footer-signoff-contact {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.hh-footer-signoff-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(244, 246, 244, 0.86);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.hh-footer-signoff-contact a:hover {
  color: var(--c-gold);
}

.hh-footer-signoff-contact svg {
  width: 17px;
  height: 17px;
  color: var(--c-gold);
}

.hh-footer-top {
  display: grid;
  gap: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  padding-bottom: 3rem;
}

@media (min-width: 700px) {
  .hh-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  /* Der Markenblock bekommt sichtbar mehr Raum als die Navigationsspalten */
  .hh-footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

.hh-footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1.75rem;
}

.hh-footer-claim {
  position: relative;
  padding-bottom: 0.875rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

/* Goldener Anstrich unter dem Claim */
.hh-footer-claim::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--c-gold), rgba(var(--c-gold-rgb), 0.2));
}

.hh-footer-text {
  margin-top: 0.625rem;
  max-width: 30ch;
  font-size: 0.875rem;
  color: rgba(244, 246, 244, 0.66);
}

/* Gütesiegel im Markenblock: signalisiert geprüfte Fachkunde */
.hh-footer-seal {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.hh-footer-seal img {
  height: 96px;
  width: auto;
  flex: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

.hh-footer-seal figcaption {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(244, 246, 244, 0.78);
}

.hh-footer-heading {
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.hh-footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/*
  Auf schmalen Bildschirmen lassen sich die Navigationsspalten zuklappen –
  wer den Footer auf dem Telefon erreicht, sucht meist die Telefonnummer.
  Das Zuklappen setzt holtz-home.js; ohne JavaScript bleibt alles offen.
*/
.hh-footer-fold > summary {
  list-style: none;
  cursor: default;
}

.hh-footer-fold > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 43.75rem) {
  .hh-footer-fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-bottom: 0.75rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(244, 246, 244, 0.12);
  }

  .hh-footer-fold > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--c-gold);
    border-bottom: 1px solid var(--c-gold);
    rotate: 45deg;
    translate: 0 -2px;
    transition: rotate 0.24s var(--ease);
  }

  .hh-footer-fold[open] > summary::after {
    rotate: -135deg;
    translate: 0 2px;
  }

  .hh-footer-fold[open] > ul {
    padding-top: 1.125rem;
  }
}

/*
  Der Unterstrich wächst von links, statt dass die Farbe springt.
  Ruhiger und deutlich wertiger als ein reiner Farbwechsel.
*/
.hh-footer-nav a {
  display: inline;
  font-size: 0.875rem;
  color: rgba(244, 246, 244, 0.72);
  text-decoration: none;
  background-image: linear-gradient(var(--c-gold), var(--c-gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.24s var(--ease), color 0.24s var(--ease);
}

.hh-footer-nav a:hover,
.hh-footer-nav a:focus-visible {
  color: var(--c-gold);
  background-size: 100% 1px;
}

.hh-footer-address {
  margin-bottom: 1.125rem;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.7;
  color: rgba(244, 246, 244, 0.78);
}

.hh-footer-contact a,
.hh-footer-contact-static {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hh-footer-contact-static {
  font-size: 0.875rem;
  color: rgba(244, 246, 244, 0.72);
}

.hh-footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--c-primary-light);
}

/* Social-Profile – nur sichtbar, wenn im Adminbereich gepflegt */
.hh-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.hh-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(244, 246, 244, 0.08);
  color: rgba(244, 246, 244, 0.78);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hh-footer-social a:hover,
.hh-footer-social a:focus-visible {
  background: var(--c-gold);
  color: #14261f;
  transform: translateY(-2px);
}

.hh-footer-social svg {
  width: 18px;
  height: 18px;
}

.hh-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(244, 246, 244, 0.12);
}

.hh-footer-copy {
  font-size: 0.75rem;
  color: rgba(244, 246, 244, 0.5);
}

.hh-footer-legal {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rechtliche Links sind kein Kleingedrucktes – bei einer Maklermarke
   ist ihre Auffindbarkeit ein Vertrauenssignal. */
.hh-footer-legal a {
  font-size: 0.8125rem;
  color: rgba(244, 246, 244, 0.72);
  text-decoration: none;
}

.hh-footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Zurück-nach-oben */

.hh-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1030;
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s;
}

.hh-to-top[hidden] {
  display: none;
}

.hh-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hh-to-top:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.hh-to-top svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}
