/* ==========================================================================
   Faistnauer Immobilien und Consulting — Stylesheet
   Neuausrichtung Oktober 2026: Farben aus der neuen Logo-Familie, Aufbau nach dem Vorbild castellanum.it.
   ========================================================================== */

/* Schriften selbst gehostet (vorher Google Fonts) – kein Datenaustausch mit Google beim Seitenaufruf.
   EB Garamond und Source Sans 3, SIL Open Font License 1.1, siehe assets/fonts/LIZENZ.txt.
   Variable Schriften: eine Datei deckt alle Stärken ab; unicode-range lädt latin-ext nur bei Bedarf. */
/* EB Garamond italic – latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ebgaramond-italic-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;
}
/* EB Garamond italic – latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ebgaramond-italic-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;
}
/* EB Garamond normal – latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ebgaramond-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;
}
/* EB Garamond normal – latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ebgaramond-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;
}
/* EB Garamond normal – latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/ebgaramond-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;
}
/* EB Garamond normal – latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/ebgaramond-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;
}
/* Source Sans 3 normal – latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}
/* Source Sans 3 normal – latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}
/* Source Sans 3 normal – latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}
/* Source Sans 3 normal – latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}
/* Source Sans 3 normal – latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}
/* Source Sans 3 normal – latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}
/* Source Sans 3 normal – latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}
/* Source Sans 3 normal – latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/sourcesans3-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;
}

/* ==========================================================================
   Gestaltungsregeln
   - Farben aus der Logo-Familie (Oktober 2026, Untermarke Immobilien). Markenblau ist die einzige
     Akzentfarbe; die Hausgrautöne gliedern (Linien, Symbole, helle Flächen). Grün nur als Kategorie
     „Landwirtschaft".
   - Ecken: Flächen (Karten, Suchbox, Bilder, Panels) 8 px, Bedienelemente (Knöpfe, Felder,
     Etiketten) 3 px.
   - Aufbau nach dem Vorbild castellanum.it: Kopfzeile über dunklem Band, Schnellsuche im Hero,
     zentrierte Abschnittsköpfe, Karten mit Kennzahlenleiste, Kachelband, dunkler Fuß.
   ========================================================================== */
:root {
  color-scheme: light;

  /* Logofarben */
  --blau: #203F59;          /* Markenblau C90 M70 Y40 K35 */
  --blaugrau: #516573;      /* mittleres Haus, Schriftzug „IMMOBILIEN" */
  --haus-2: #74808C;        /* rechtes Haus */
  --haus-3: #9AA1AA;        /* linkes Haus */
  --haus-4: #C6C9CE;        /* gekipptes Haus */
  --wortgrau: #58595B;      /* Schriftzug „FAISTNAUER" */
  --gruen: #56704B;         /* Grün der Dachmarke (#6B865C), für Text auf Weiß abgedunkelt */
  --gruen-hell: #E6ECE3;

  /* Abgeleitete Töne */
  --blau-tief: #172F44;
  --tinte: #1C2A37;         /* Überschriften */
  --text: #2E3A46;
  --muted: #5E6873;
  --weiss: #FFFFFF;
  --hell: #F3F5F7;
  --hell-2: #E7EAEE;
  --linie: #DDE1E6;
  --linie-stark: #C3C9D0;
  --auf-blau: #C6C9CE;      /* Nebentext auf Markenblau (Kontrast 6,6 : 1) */

  --ok: #3D6B4A;
  --fehler: #9C3B32;

  --font-serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(64px, 8vw, 112px);
  --header-h: 84px;
  --radius: 8px;
  --radius-sm: 3px;
  --schatten: 0 2px 4px rgba(23, 47, 68, .04), 0 16px 36px -18px rgba(23, 47, 68, .28);
  --schatten-hoch: 0 4px 8px rgba(23, 47, 68, .05), 0 28px 56px -24px rgba(23, 47, 68, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Hausform aus dem neuen Logo: quadratisch, Traufe bei 35,6 % der Höhe */
  --haus: polygon(50% 0, 100% 35.6%, 100% 100%, 0 100%, 0 35.6%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
/* <picture> (WebP mit JPG-Rückfall) nur als Hülle: das Bild verhält sich wie ein direktes Kind */
picture { display: contents; }
a { color: var(--blau); }
a:hover { color: var(--blaugrau); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Kein Doppeltipp-Zoom-Verzug, eigene Rückmeldung statt grauem Tipp-Kasten */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
a, button, summary { -webkit-tap-highlight-color: rgba(32, 63, 89, .12); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--tinte);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1 { font-size: clamp(2.4rem, 1.65rem + 2.9vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.95rem, 1.45rem + 1.9vw, 2.9rem); letter-spacing: -0.005em; }
h3 { font-size: 1.45rem; line-height: 1.2; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--blaugrau); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* iPhone quer: Inhalt nicht unter der Kamera-Aussparung (viewport-fit=cover) */
@supports (padding: max(0px)) {
  .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blau); color: var(--weiss); padding: .6em 1em; text-decoration: none; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--weiss); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hausform als Glyphe ---------- */
.haus {
  display: inline-block; flex: none;
  width: .86em; height: .86em;
  background: currentColor;
  clip-path: var(--haus);
}

/* ---------- Gesperrte Versalien wie im Schriftzug des Logos ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .7em;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.25;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blaugrau);
}
.eyebrow .haus { color: var(--haus-3); font-size: 1.05rem; }
@media (max-width: 520px) { .eyebrow { letter-spacing: .18em; font-size: .78rem; } }

/* Abschnittstitel in gesperrten Versalien (nur kurze Titel – lange Wörter würden am Handy überlaufen) */
.titel-versal { text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); }
@media (max-width: 420px) { .titel-versal { letter-spacing: .05em; } }

.lead { font-size: 1.2rem; line-height: 1.6; max-width: 36em; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.5em;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blau); color: var(--weiss); }
.btn-primary:hover { background: var(--blau-tief); color: var(--weiss); }
/* Zweitrangig, wie bei Castellanum: helle Fläche statt Rahmen */
.btn-ghost { background: var(--hell-2); color: var(--blau); }
.btn-ghost:hover { background: #DCE0E5; color: var(--blau-tief); }
.btn-light { background: var(--weiss); color: var(--blau); }
.btn-light:hover { background: var(--hell-2); color: var(--blau-tief); }
.btn-outline-light { background: transparent; color: var(--weiss); border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--weiss); color: var(--weiss); }
.btn-sm { min-height: 40px; padding: .55em 1.1em; font-size: .94rem; }
.btn-block { width: 100%; white-space: normal; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Dunkles Markenband mit zartem Häusermuster ---------- */
.band-blau {
  background-color: var(--blau);
  background-image: url("../assets/images/muster-haeuser.svg");
  background-size: 390px auto;
  color: var(--auf-blau);
}
.band-blau h1, .band-blau h2, .band-blau h3 { color: var(--weiss); }
.band-blau .eyebrow { color: var(--auf-blau); }
.band-blau .eyebrow .haus { color: var(--haus-3); }

/* ==========================================================================
   Kopfzeile: immer weiß mit dem farbigen Originallogo (Wunsch Felix, 20.10.2026), bleibt beim Scrollen
   oben stehen und bekommt dann einen Schatten (ohne JavaScript steht sie einfach am Seitenanfang)
   ========================================================================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);   /* iPhone als App: nicht unter die Statusleiste */
  background: var(--weiss); color: var(--blau);
  transition: box-shadow .3s ease;
}
html.js .site-header { position: fixed; }
html.js .site-header.is-scrolled { box-shadow: 0 1px 0 var(--linie), 0 12px 30px -24px rgba(23, 47, 68, .55); }
.site-header.is-menu-open { box-shadow: 0 1px 0 var(--linie); }

.header-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  min-height: var(--header-h);
}
html.js .site-header.is-scrolled .header-inner { min-height: 70px; }

.header-links { display: flex; align-items: center; gap: 6px; }
.header-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  color: inherit; text-decoration: none;
}
.header-icon svg { width: 22px; height: 22px; }
.header-icon:hover { color: inherit; background: rgba(127, 140, 155, .14); }

.brand { display: block; justify-self: center; line-height: 0; }
.brand img { height: 50px; width: auto; }
html.js .site-header.is-scrolled .brand img { height: 42px; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

/* Sprachumschalter DE · IT · EN */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 40px;
  padding: 0 .35em; color: inherit; opacity: .72; text-decoration: none; border-radius: var(--radius-sm);
}
.lang-switch a:hover { opacity: 1; color: inherit; }
.lang-switch a[aria-current="true"] { opacity: 1; box-shadow: inset 0 -2px 0 currentColor; }

/* Menü-Knopf: „MENÜ" mit drei Strichen, wie bei Castellanum */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 10px;
  border: 0; background: none; color: inherit; cursor: pointer;
  font-weight: 600; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
}
.nav-toggle-icon { position: relative; width: 24px; height: 16px; }
.nav-toggle-icon span, .nav-toggle-icon::before, .nav-toggle-icon::after {
  position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; content: "";
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 7px; }
.nav-toggle-icon::after { top: 14px; }
.nav-open .nav-toggle-icon span { opacity: 0; }
.nav-open .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Ausklappmenü über die ganze Breite */
.main-nav {
  position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding-block: clamp(28px, 5vw, 64px) 48px;
}
.main-nav:not(.is-open) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .main-nav.is-open { animation: menue-auf .3s var(--ease); }
}
@keyframes menue-auf { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.main-nav-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); }
.nav-haupt { list-style: none; display: grid; gap: 4px; }
.nav-haupt > li > a {
  display: inline-block; padding-block: 6px;
  font-family: var(--font-serif); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1.15;
  color: var(--weiss); text-decoration: none;
}
.nav-haupt > li > a:hover, .nav-haupt a[aria-current] { color: var(--auf-blau); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.nav-unter { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 2px 0 12px; }
.nav-unter a { display: inline-block; padding-block: 8px; color: var(--auf-blau); text-decoration: none; font-size: 1.05rem; }
.nav-unter a:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: 4px; }
.nav-kontakt { align-self: start; padding: 28px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); }
.nav-kontakt .eyebrow { color: var(--auf-blau); margin-bottom: 14px; }
.nav-kontakt ul { list-style: none; display: grid; gap: 4px; }
.nav-kontakt a { display: inline-block; padding-block: 6px; color: var(--weiss); text-decoration: none; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.nav-kontakt a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--weiss); }
.nav-kontakt p { margin-top: 14px; color: var(--auf-blau); font-size: .98rem; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr); }
  .header-links { display: none; }
  .brand { justify-self: start; }
  .brand img, html.js .site-header.is-scrolled .brand img { height: 40px; }
  html.js .site-header.is-scrolled .header-inner { min-height: 64px; }
  .main-nav-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: 0 10px; min-width: 44px; justify-content: center; }
  .header-actions { gap: 4px; }
  .lang-switch { gap: 0; font-size: .78rem; }
  .lang-switch a { min-width: 30px; min-height: 44px; padding: 0 .25em; }
  .nav-kontakt { padding: 22px; }
}
/* Das liegende Logo ist gut 5 : 1 breit – am Handy kleiner, sonst schiebt es den Menüknopf über den Rand */
@media (max-width: 420px) {
  .brand img, html.js .site-header.is-scrolled .brand img { height: 32px; }
}
@media (max-width: 345px) {
  .brand img, html.js .site-header.is-scrolled .brand img { height: 26px; }
}
/* Offenes Menü: Kopfzeile in voller Höhe, damit das Menü lückenlos darunter anschließt */
html.js .site-header.is-menu-open .header-inner { min-height: var(--header-h); }

/* ==========================================================================
   Hero: dunkles Band mit Peters Foto rechts, darunter die Schnellsuche
   ========================================================================== */
.hero { position: relative; }
.hero-band { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch; min-height: min(640px, calc(100svh - 120px));
}
.hero-copy { position: relative; z-index: 1; align-self: center; padding-block: clamp(36px, 5vw, 72px) clamp(96px, 9vw, 128px); }
.hero-copy h1 { margin-bottom: 22px; font-size: clamp(2.45rem, 1.55rem + 2.6vw, 3.75rem); }
.hero-copy h1 em { color: var(--auf-blau); }
.hero-copy .lead { color: #E3E6EA; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Peters Foto läuft rechts bis zum Rand und links weich ins Blau aus */
.hero-photo { position: relative; margin: 0 calc(-1 * var(--gutter)) 0 0; min-height: 100%; }
@media (min-width: 1321px) { .hero-photo { margin-right: calc((1240px - 100vw) / 2 - var(--gutter)); } }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 56% 30%;   /* Titelfoto 10/2026: Peter steht leicht rechts der Bildmitte */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
  mask-image: linear-gradient(to right, transparent 0, #000 30%);
}
.hero-photo figcaption {
  position: absolute; right: var(--gutter); bottom: clamp(96px, 9vw, 128px);
  padding: 10px 16px; border-left: 3px solid var(--haus-4);
  background: rgba(23, 47, 68, .82); color: var(--auf-blau);
  font-size: .92rem; line-height: 1.35;
}
.hero-photo figcaption strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: var(--weiss); }

/* Schnellsuche: weiße Box, die über die Unterkante des Bandes ragt */
.schnellsuche {
  position: relative; z-index: 2; margin-top: -72px;
  padding: 18px 24px 22px; background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten-hoch);
}
.schnellsuche-tabs { display: flex; gap: 4px 26px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; border: 0; border-bottom: 1px solid var(--linie); }
.schnellsuche-tabs label { position: relative; }
.schnellsuche-tabs input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.schnellsuche-tabs span {
  display: block; padding: 8px 2px 10px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s ease, border-color .2s ease;
}
.schnellsuche-tabs label:hover span { color: var(--blau); }
.schnellsuche-tabs input:checked + span { color: var(--blau); border-bottom-color: var(--blau); }
.schnellsuche-tabs input:focus-visible + span { outline: 2px solid var(--blaugrau); outline-offset: 2px; }
.schnellsuche-felder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px 14px; align-items: end; }
.schnellsuche .feld label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.schnellsuche-los { min-width: 15rem; }
@media (max-width: 760px) {
  .schnellsuche { margin-top: -48px; padding: 14px 16px 18px; }
  .schnellsuche-felder { grid-template-columns: minmax(0, 1fr); }
  .schnellsuche-los { min-width: 0; width: 100%; }
  .schnellsuche-tabs { gap: 4px 20px; }
}

/* Auswahlfelder (Schnellsuche, Filter, Sortierung, Formulare) */
.auswahl, .finder select, .sort select, .form-field select {
  width: 100%; min-height: 48px; padding: .6em 2.4em .6em .9em;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-sm);
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23203F59' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .95em center;
  appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--tinte);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auswahl:focus, .finder select:focus, .sort select:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(32, 63, 89, .16); }
.finder select:disabled { cursor: not-allowed; color: var(--muted); background-color: var(--hell); }

/* Qualifikationen direkt unter der Suche */
.credentials {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: clamp(30px, 4vw, 44px) 0;
}
.credentials li { display: flex; gap: 14px; padding-right: 22px; }
.credentials li + li { padding-left: 22px; border-left: 1px solid var(--linie); }
.credentials .haus { font-size: 1.2rem; margin-top: .2em; }
/* Hausfarben in der Reihenfolge des Logos, links nach rechts */
.credentials li:nth-child(4n+1) .haus { color: var(--haus-3); }
.credentials li:nth-child(4n+2) .haus { color: var(--haus-4); }
.credentials li:nth-child(4n+3) .haus { color: var(--blaugrau); }
.credentials li:nth-child(4n+4) .haus { color: var(--haus-2); }
.cred-title { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.16rem; line-height: 1.25; color: var(--tinte); }
.cred-sub { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 1120px) {
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .credentials li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding-block: 28px 30px; }
  /* Feste Breite statt Dehnen: Safari (iPhone/iPad) dehnt Rasterelemente mit Seitenverhältnis nicht,
     der Fotobereich fiel dort sonst auf null zusammen */
  .hero-photo { justify-self: stretch; width: calc(100% + 2 * var(--gutter)); margin: 0 0 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; min-height: 0; max-height: 520px; }
  .hero-photo img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); object-position: 56% 30%; }
  .hero-photo figcaption { right: var(--gutter); bottom: 64px; }
}
@media (max-width: 520px) {
  .hero-photo { aspect-ratio: 1 / 1; }
  .credentials { grid-template-columns: minmax(0, 1fr); }
  .credentials li, .credentials li + li { padding: 0; border-left: 0; }
}

/* ==========================================================================
   Abschnitte
   ========================================================================== */
.section { padding-block: var(--section-pad); }
.section--hell, .section--nebel { background: var(--hell); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head h2 + p { margin-top: 16px; }
.section-head--mitte { margin-inline: auto; text-align: center; }
.section-head--mitte h2 { color: var(--blau); }
.band-blau .section-head--mitte h2 { color: var(--weiss); }
.section-head a { font-weight: 600; text-underline-offset: 3px; }

/* ---------- Leistungen als Kacheln auf dem Markenband ---------- */
.kacheln { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kachel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 100%; min-height: 230px; padding: 34px 28px 30px; text-align: center;
  background: var(--weiss); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s ease, background-color .3s ease;
}
.kachel:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .55); color: var(--text); }
.kachel-icon { width: 64px; height: 64px; margin-bottom: 8px; color: var(--blau); stroke-width: 1.1; }
.kachel-titel { font-family: var(--font-serif); font-weight: 600; font-size: 1.42rem; line-height: 1.2; color: var(--tinte); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.kachel-text { font-size: .98rem; line-height: 1.45; color: var(--muted); max-width: 22em; }
@media (max-width: 960px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .kacheln { gap: 12px; }
  .kachel { min-height: 0; padding: 22px 14px 20px; }
  .kachel-icon { width: 48px; height: 48px; margin-bottom: 2px; }
  .kachel-titel { font-size: 1.16rem; }
  .kachel-text { font-size: .9rem; }
}
/* Sehr schmale Handys (iPhone SE): lange Titel wie „Wohnimmobilien“ passen sonst nicht in die halbe Breite */
@media (max-width: 400px) {
  .kachel { padding: 20px 10px 18px; }
  .kachel-titel { font-size: 1.06rem; }
}

/* ==========================================================================
   Objekte
   ========================================================================== */
/* ---------- Erweiterte Suche ---------- */
.finder { margin-bottom: 32px; padding: 20px 22px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); }
.finder-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }

/* Kaufen / Mieten / Alle als Umschalter */
.seg { display: inline-flex; margin: 0; padding: 3px; border: 0; border-radius: var(--radius-sm); background: var(--hell-2); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: .62em 1.35em; border-radius: 2px; font-weight: 600; font-size: .98rem; color: var(--text); transition: background-color .2s ease, color .2s ease; }
.seg label:hover span { color: var(--blau); }
.seg input:checked + span { background: var(--blau); color: var(--weiss); }
.seg input:focus-visible + span { outline: 2px solid var(--blaugrau); outline-offset: 2px; }

.sort { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); }
.sort select { width: auto; min-height: 44px; }

.filter-panel {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 14px 16px; align-items: end;
  padding-top: 16px; border-top: 1px solid var(--linie);
}
.filter-panel.ohne-zimmer { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.filter-field[hidden] { display: none; }
.filter-field label {
  display: block; margin-bottom: 6px;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.filter-reset {
  min-height: 48px; padding: 0 .4em; border: 0; background: none; cursor: pointer; white-space: nowrap;
  color: var(--blau); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px;
}
.filter-reset:hover { color: var(--blaugrau); }
.filter-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 1.1em; border: 1px solid var(--linie-stark); border-radius: var(--radius-sm);
  background: var(--weiss); color: var(--blau); font-weight: 600; cursor: pointer;
}
.filter-count {
  min-width: 1.5em; padding: 0 .4em; border-radius: 1em;
  background: var(--blau); color: var(--weiss); font-size: .8rem; line-height: 1.5em; text-align: center;
}
.finder-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .95rem; color: var(--text); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blau); }
.results-meta { margin: 0; font-size: .95rem; color: var(--muted); }
.results-meta strong { color: var(--tinte); font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .filter-panel, .filter-panel.ohne-zimmer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-reset { justify-self: start; }
}
@media (max-width: 760px) {
  .finder { padding: 16px; }
  .filter-toggle { display: inline-flex; }
  .filter-panel, .filter-panel.ohne-zimmer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel:not(.is-open) { display: none; }
  .sort { width: 100%; }
  .sort select { flex: 1; }
}
@media (max-width: 440px) {
  .seg { width: 100%; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding-inline: .5em; }
  .filter-panel, .filter-panel.ohne-zimmer { grid-template-columns: minmax(0, 1fr); }
}

/* Kein freies Objekt: Suchauftrag anbieten */
.search-request {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 20px 24px; flex-wrap: wrap;
  padding: 24px 28px; background: var(--hell); border-radius: var(--radius); border-left: 3px solid var(--blau);
}
.search-request > .fact-icon { width: 34px; height: 34px; }
.search-request-text { flex: 1 1 320px; }
.search-request h3 { font-size: 1.4rem; margin-bottom: 4px; }
.search-request p { max-width: 44em; }
@media (max-width: 520px) { .search-request { padding: 22px 20px; } .search-request > .fact-icon { display: none; } }

/* ---------- Objektkarten: zentriert, Kennzahlenleiste, Preis unten ---------- */
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1020px) { .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .property-grid { grid-template-columns: minmax(0, 1fr); } }

.property-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten);
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.property-card:hover { box-shadow: var(--schatten-hoch); transform: translateY(-4px); }
.property-card:focus-within { box-shadow: var(--schatten-hoch); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hell-2); border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.property-card:hover .card-media img { transform: scale(1.04); }
.card-media .placeholder, .pm-slide .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--haus-4); background: var(--hell); }
.card-media .placeholder .haus { font-size: 3.2rem; }
/* Objekt ohne Foto: ruhige Markenfläche mit der Häusergruppe des Logos statt eines leeren grauen Kastens */
.placeholder.placeholder--marke { position: relative; background: linear-gradient(135deg, var(--hell-2) 0%, var(--hell) 100%); }
.placeholder--marke::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 38%; height: 38%;
  background: url("../assets/logo/logo-zeichen.svg") no-repeat center / contain; opacity: .38;
}
/* Secret Sale: Schloss und Hinweis statt Foto (Karte und Detailfenster) */
.placeholder.placeholder--diskret {
  align-content: center; gap: 12px; padding: 16px; text-align: center;
  background-color: var(--blau); background-image: url("../assets/images/muster-haeuser.svg"); background-size: 300px auto;
  color: var(--weiss); font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .02em;
}
.placeholder--diskret .fact-icon { width: 46px; height: 46px; color: var(--haus-4); stroke-width: 1.2; }
.badge {
  position: absolute; top: 14px; left: 14px;
  padding: .32em .75em; border-radius: var(--radius-sm);
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--blau); color: var(--weiss);
}
.badge--agrar { background: var(--gruen); }
.badge--kauf { background: var(--blaugrau); }

.card-body { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; padding: 22px 22px 20px; text-align: center; }
.card-loc { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-status { font-size: .88rem; font-weight: 600; color: var(--blaugrau); }
.card-title { font-size: 1.42rem; line-height: 1.22; color: var(--blau); }
.card-link { color: inherit; text-decoration: none; }
/* Die ganze Karte ist anklickbar; der Link im Titel bleibt das eine Ziel für Tastatur und Screenreader */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--blaugrau); outline-offset: 3px; }
.property-card:hover .card-link { color: var(--blau-tief); }

/* Kennzahlenleiste: Icon, Bezeichnung, Wert; feine Linien dazwischen */
.card-facts {
  list-style: none; align-self: stretch; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  margin-top: 10px; color: var(--text); font-variant-numeric: tabular-nums; text-align: center;
}
.card-facts li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-inline: 6px; min-width: 0; }
.card-facts li + li { border-left: 1px solid var(--linie); }
.card-facts .fact-icon { width: 30px; height: 30px; margin-bottom: 4px; stroke-width: 1.25; }
.card-facts .fact-label { font-size: .8rem; line-height: 1.25; color: var(--muted); }
.card-facts .fact-value { font-size: 1.04rem; line-height: 1.3; overflow-wrap: anywhere; }
.card-facts b { font-weight: 700; color: var(--tinte); }
.fact-icon { width: 26px; height: 26px; flex: none; color: var(--blau); stroke-width: 1.4; }
.card-price {
  align-self: stretch; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--linie);
  font-weight: 700; font-size: 1.12rem; color: var(--tinte); font-variant-numeric: tabular-nums;
}
.card-facts + .card-price, .card-title + .card-price { margin-top: 12px; }
.card-body > .card-price:last-child { margin-top: auto; }

/* ---------- Wasserzeichen „Faistnauer Immobilien" unten rechts auf jedem Objektfoto ----------
   Weißes Logo (Negativ-Fassung des Designers) mit weichem Schatten, damit es auch auf hellen Fotos lesbar ist.
   Gleiche Maße wie beim Einbrennen mit tools/wasserzeichen.py --einbrennen: 30 % der Bildbreite. */
.wasserzeichen {
  position: absolute; right: 3.5%; bottom: 4.5%; z-index: 1;
  width: 30%; min-width: 92px; max-width: 240px; aspect-ratio: 283 / 53;
  background: url("../assets/logo/logo-faistnauer-immobilien-quer-weiss.svg") no-repeat center / contain;
  opacity: .92; pointer-events: none;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .6)) drop-shadow(0 0 8px rgba(0, 0, 0, .38));
}
.property-card.is-vermittelt .wasserzeichen { opacity: .8; }

/* ---------- Siegel „Erfolgreich verkauft/vermietet" und „Objekt reserviert" ---------- */
.seal { display: block; overflow: visible; filter: drop-shadow(0 8px 14px rgba(23, 47, 68, .38)); }
.seal-text { font-family: var(--font-serif); font-weight: 600; font-size: 12.5px; letter-spacing: 1.2px; fill: #FFFFFF; }
.seal--card { position: absolute; top: 12px; right: 12px; width: 100px; height: 100px; transform: rotate(-10deg); }
.property-card.is-vermittelt .card-price { color: var(--blaugrau); }
/* Vermittelt: Foto leicht zurückgenommen, damit das Siegel vorne steht */
.property-card.is-vermittelt .card-media img { filter: saturate(.7); opacity: .8; }
.property-card.is-vermittelt:hover .card-media img { opacity: .92; }
.pm-seal { position: absolute; top: 16px; right: 16px; z-index: 2; pointer-events: none; }
.pm-seal:empty { display: none; }
.seal--modal { width: 124px; height: 124px; transform: rotate(-10deg); }
@media (max-width: 640px) {
  .seal--card { width: 90px; height: 90px; }
  .seal--modal { width: 72px; height: 72px; }
  .pm-seal { top: 10px; right: 10px; }
}

/* Karte „Sie möchten verkaufen oder vermieten?" */
.property-card--cta { overflow: hidden; color: var(--auf-blau); container-type: inline-size; }
/* Steht sie allein bzw. zu zweit in der letzten Zeile, wird sie so breit wie die freie Fläche
   (data-rest2/-rest3 = Zahl der Objektkarten modulo 2 bzw. 3, gesetzt in properties.js) */
@media (min-width: 1021px) {
  .property-grid[data-rest3="0"] .property-card--cta { grid-column: 1 / -1; }
  .property-grid[data-rest3="1"] .property-card--cta { grid-column: span 2; }
}
@media (min-width: 641px) and (max-width: 1020px) {
  .property-grid[data-rest2="0"] .property-card--cta { grid-column: 1 / -1; }
}
.property-card--cta:hover { transform: none; box-shadow: var(--schatten); }
.cta-inner { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 34px 30px; border-radius: var(--radius); }
.cta-inner .haus { font-size: 2.2rem; color: var(--haus-4); }
.cta-inner h3 { font-size: 1.75rem; }
.cta-inner .btn { align-self: flex-start; margin-top: auto; }
.cta-inner .cta-phone { font-size: .98rem; }
.cta-inner .cta-phone a { color: var(--weiss); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.cta-inner .cta-phone a:hover { text-decoration: underline; }
/* Breite Fassung (über zwei oder drei Spalten): Symbol links, Text in der Mitte, Knopf rechts.
   Steht nach den Grundregeln, damit sie hier nicht überschrieben wird. */
@container (min-width: 640px) {
  .property-card--cta .cta-inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 32px; row-gap: 8px;
    align-items: center; padding: 36px 40px;
  }
  .property-card--cta .cta-inner .haus { grid-column: 1; grid-row: 1 / span 3; font-size: 3rem; }
  .property-card--cta .cta-inner > :not(.haus):not(.btn) { grid-column: 2; }
  .property-card--cta .cta-inner .btn { grid-column: 3; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
}

/* ==========================================================================
   Über Peter: weiße Karte, die über ein helles Band ragt
   ========================================================================== */
.ueber { background: linear-gradient(to bottom, var(--hell) 0, var(--hell) 42%, var(--weiss) 42%); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch;
  background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten-hoch); overflow: hidden;
}
.about-portrait { position: relative; margin: 0; min-height: 100%; background: var(--hell-2); }
.about-portrait img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 50% 20%; }
.about-portrait figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: max-content;
  padding: 10px 16px; background: rgba(23, 47, 68, .86); border-left: 3px solid var(--haus-4);
  font-size: .92rem; line-height: 1.35; color: var(--auf-blau);
}
.about-portrait figcaption strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: var(--weiss); }
.about-copy { padding: clamp(28px, 4.4vw, 60px); }
.about-copy > p { max-width: 38em; }
.about-copy h2 { margin-bottom: 20px; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }

.timeline { list-style: none; position: relative; margin-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 26px; width: 1px; background: var(--linie-stark); }
.timeline li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 18px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
/* Häuser genau wie im Logo: Form, Farbe und Reihenfolge von links nach rechts, das zweite gekippt.
   Einzeln erzeugt aus der Logo-PDF (python tools/logo_aus_pdf.py --haeuser …). Weißer Grund unterbricht die Linie. */
.timeline .haus {
  position: relative; z-index: 1; width: 30px; height: 30px; margin-top: -3px;
  clip-path: none; background: var(--weiss) no-repeat center / contain;
}
.timeline li:nth-child(4n+1) .haus { background-image: url("../assets/logo/haus-1.svg"); }
.timeline li:nth-child(4n+2) .haus { background-image: url("../assets/logo/haus-2.svg"); }
.timeline li:nth-child(4n+3) .haus { background-image: url("../assets/logo/haus-3.svg"); }
.timeline li:nth-child(4n+4) .haus { background-image: url("../assets/logo/haus-4.svg"); }
.timeline h3, .timeline h4 { font-size: 1.24rem; margin-bottom: 2px; }
/* „Zur Person“: Zwischentitel für Werdegang und Kompetenzen */
.ueber-zwischentitel { margin: 32px 0 14px; font-size: 1.3rem; color: var(--blau); }
.about-copy .ueber-zwischentitel + .timeline { margin-top: 0; }
.ueber-kompetenzen { margin-top: 0; }
.timeline p { color: var(--muted); font-size: 1rem; }

.memberships { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--linie); }
.memberships-label { font-family: var(--font-serif); font-weight: 600; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--blaugrau); }
.memberships a { display: block; line-height: 0; }
.memberships img { height: 52px; width: auto; }
.memberships a:hover img { opacity: .8; }

@media (max-width: 880px) {
  .ueber { background: linear-gradient(to bottom, var(--hell) 0, var(--hell) 220px, var(--weiss) 220px); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  /* Safari dehnt Grid-Elemente mit aspect-ratio nicht: Breite ausdrücklich setzen, sonst fällt das Porträt auf 0 zusammen */
  .about-portrait { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }
  .about-portrait img { min-height: 0; position: absolute; inset: 0; }
}
@media (max-width: 520px) { .about-portrait { aspect-ratio: 1 / 1; } }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { background: var(--hell); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-intro h2 { color: var(--blau); }
.contact-intro > p { max-width: 30em; margin-top: 18px; }
.contact-list { list-style: none; display: grid; gap: 22px; margin-top: 34px; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-list svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--weiss); color: var(--blau); box-shadow: 0 1px 0 var(--linie); }
.contact-list h3 { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list p, .contact-list a { color: var(--tinte); font-size: 1.05rem; }
.contact-list a { text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-list a:hover { text-decoration: underline; color: var(--blau); }
.contact-list p + p { margin-top: 2px; }
.contact-list .maps-link { display: inline-block; margin-top: 6px; padding-block: 4px; font-size: .95rem; font-weight: 600; color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }

.form-panel { background: var(--weiss); padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); box-shadow: var(--schatten); }
.form-panel h3 { color: var(--blau); font-size: 1.6rem; margin-bottom: 6px; }
.form-panel > p { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formulare ---------- */
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--tinte); }
.form-field input, .form-field textarea {
  width: 100%; min-height: 48px; padding: .7em .9em;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-sm);
  background: var(--weiss); color: var(--tinte);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(32, 63, 89, .16);
}
.form-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 4px 0 20px; font-size: .92rem; line-height: 1.5; }
.form-consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--blau); }   /* Tippfläche 24 px (WCAG 2.2) */
.form-note { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-bottom: 18px; padding: 14px 16px; font-size: .96rem; line-height: 1.5; border-left: 3px solid; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form-status.is-success { display: block; background: #EAF2EC; border-color: var(--ok); color: #234430; }
.form-status.is-error { display: block; background: #F7ECEA; border-color: var(--fehler); color: #5E2620; }
.form-status a { color: inherit; font-weight: 600; }

/* ==========================================================================
   Fußzeile: dunkles Markenband, Logo in der Mitte
   ========================================================================== */
.site-footer { padding-block: clamp(52px, 7vw, 80px) 26px; font-size: .98rem; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: 200px; height: auto; }
.footer-claim { max-width: 34em; color: var(--auf-blau); }
.footer-grid {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); justify-content: center; gap: 32px clamp(48px, 10vw, 160px);
  margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px);
}
/* Trennlinien nur so breit wie der Inhalt (nicht über den Seitenrand des Containers) */
.footer-grid::before, .footer-bottom::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .16);
}
.footer-col h2 {
  font-family: var(--font-serif); font-weight: 600; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--haus-4); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--weiss); text-decoration: none; }
.footer-col a:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: 3px; }
.footer-col li { color: var(--auf-blau); }
.footer-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 20px;
  font-size: .9rem; color: var(--auf-blau); font-variant-numeric: tabular-nums;
}
.footer-bottom a { display: inline-block; padding-block: 6px; color: var(--weiss); text-decoration: none; }   /* Tippfläche ≥ 24 px (Tablet) */
.footer-bottom a:hover { color: var(--weiss); text-decoration: underline; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .footer-col ul { gap: 0; }
  .footer-col a, .footer-bottom a { display: inline-block; padding-block: 11px; }   /* Tippfläche ≈ 44 px */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; row-gap: 0; }
}

/* Touch-Geräte jeder Größe (auch Tablets): Footer-Links mit Tippfläche ≈ 44 px */
@media (pointer: coarse) {
  .footer-col ul { gap: 0; }
  .footer-col a, .footer-bottom a { display: inline-block; padding-block: 11px; }
}

/* 404-Seite: Wege zurück */
.fehler-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Objekt-Detailansicht
   ========================================================================== */
.pm-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(23, 47, 68, .76);
}
.pm-overlay[hidden] { display: none !important; }
.pm-dialog {
  position: relative; width: 100%; max-width: 1100px; max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start;
  background: var(--weiss); border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
@media (prefers-reduced-motion: no-preference) {
  .pm-overlay:not([hidden]) .pm-dialog { animation: pm-in .35s var(--ease); }
}
@keyframes pm-in { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.pm-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--weiss); color: var(--blau); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(23, 47, 68, .5);
}
.pm-close:hover { background: var(--hell); }
/* Objektfotos sind 3:2 – der Bildbereich übernimmt dieses Format und bleibt beim Scrollen oben stehen */
.pm-gallery { position: sticky; top: 0; }
.pm-media { position: relative; aspect-ratio: 3 / 2; max-width: 100%; background: var(--tinte); }
.pm-slide { position: absolute; inset: 0; }
.pm-slide img { width: 100%; height: 100%; object-fit: cover; }
.pm-slide .placeholder .haus { font-size: 4rem; }
.pm-slide .placeholder--diskret { font-size: 1.3rem; }
.pm-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--blau); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.pm-nav:hover { background: var(--weiss); }
.pm-prev { left: 14px; }
.pm-next { right: 14px; }
.pm-counter {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: .25em .7em; border-radius: var(--radius-sm); background: rgba(23, 47, 68, .78); color: var(--weiss);
  font-size: .85rem; font-variant-numeric: tabular-nums;
}
.pm-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 8px 0 8px 8px; }
.pm-thumbs button {
  aspect-ratio: 3 / 2; max-width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--hell-2); cursor: pointer;
  opacity: .62; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s ease;
}
.pm-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs button:hover { opacity: 1; }
.pm-thumbs button.is-active { opacity: 1; outline-color: var(--blau); }
.pm-body { padding: clamp(26px, 3.4vw, 42px); }
.pm-loc { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pm-title { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); margin: 8px 0 12px; padding-right: 36px; color: var(--blau); }
.pm-price { font-weight: 700; font-size: 1.2rem; color: var(--tinte); }
.pm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 22px 0; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--radius-sm); overflow: hidden; }
.pm-facts div { background: var(--weiss); padding: 12px 14px; }
.pm-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* ungerade Anzahl: keine leere graue Zelle */
.pm-facts dt { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pm-facts dt .fact-icon { width: 22px; height: 22px; }
.pm-facts dd { margin: 4px 0 0; font-size: 1.08rem; font-weight: 600; color: var(--tinte); font-variant-numeric: tabular-nums; }
.pm-description { white-space: pre-line; }   /* Absätze aus onOffice erhalten */
.pm-share-row { margin-top: 14px; text-align: center; font-size: .95rem; }
.pm-share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  border: 0; background: none; color: var(--blau); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.pm-share:hover { color: var(--blaugrau); }
.pm-share-status { display: block; color: var(--muted); font-size: .9rem; min-height: 1.4em; }
.pm-highlights { list-style: none; display: grid; gap: 8px; margin: 18px 0 26px; }
.pm-highlights li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.pm-highlights .haus { font-size: .95rem; color: var(--haus-3); }
.pm-back { min-height: 44px; margin-bottom: 8px; padding: 0; border: 0; background: none; color: var(--blau); font-weight: 600; cursor: pointer; }
.pm-back::before { content: "\2190  "; }
.pm-inquiry h2 { font-size: 1.8rem; margin-bottom: 6px; color: var(--blau); }
.pm-inquiry-subtitle { color: var(--muted); margin-bottom: 20px; }

@media (max-width: 860px) {
  .pm-overlay { align-items: flex-start; }
  .pm-dialog { grid-template-columns: minmax(0, 1fr); }
  .pm-gallery { position: relative; }
  .pm-thumbs { padding: 8px var(--gutter) 0; }
  /* Siegel nach links, damit es nicht unter dem Schließen-Knopf (oben rechts) liegt */
  .pm-seal { right: auto; left: 12px; top: 12px; }
}

/* ==========================================================================
   Unterseiten: Seitenkopf als dunkles Band
   ========================================================================== */
.page-hero { padding-block: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 5vw, 64px)) clamp(40px, 5.5vw, 72px); }
.page-hero h1 { font-size: clamp(2.2rem, 1.7rem + 2vw, 3.4rem); max-width: 22em; }
.page-hero .lead { color: #E3E6EA; }
.page-lead { margin-top: 18px; }
.page-hero .hero-actions { margin-top: 28px; }

.breadcrumb { margin-bottom: 20px; font-size: .92rem; color: var(--auf-blau); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb li + li::before { content: "/"; margin: 0 .6em; color: var(--haus-2); }
.breadcrumb a { display: inline-block; padding-block: 4px; color: var(--weiss); text-decoration: none; }
.breadcrumb a:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: 3px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr); } }

/* Fließtext der Unterseiten */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin-top: 48px; color: var(--blau); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 30px; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; }
.prose ul:not([class]) li + li, .prose ol:not([class]) li + li { margin-top: 6px; }
.prose a { color: var(--blau); text-underline-offset: 3px; }
.prose-note { padding: 14px 18px; background: var(--hell); border-left: 3px solid var(--haus-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.check-list li::before { content: ""; width: 14px; height: 15px; background: var(--haus-3); clip-path: var(--haus); transform: translateY(1px); }

/* Echte Abfolge -> nummeriert */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border-left: 1px solid var(--linie-stark); margin-left: 17px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 36px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -18px; top: -2px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--blau); border-radius: 50%;
  font-weight: 700; font-size: .92rem; color: var(--weiss); font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 4px 0 4px; font-size: 1.2rem; }

.service-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-blocks > div { background: var(--hell); padding: 22px 22px 24px; border-radius: var(--radius); }
.service-blocks h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--blau); }
@media (max-width: 600px) { .service-blocks { grid-template-columns: minmax(0, 1fr); } }

/* Häufige Fragen */
.faq { border-top: 1px solid var(--linie); }
.faq-item { border-bottom: 1px solid var(--linie); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.22rem; color: var(--tinte);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--hell-2); font-family: var(--font-sans); font-size: 1.3rem; font-weight: 400; color: var(--blau);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blau); }
.faq-answer { padding: 0 0 20px; }

/* Ansprechpartner-Karte neben dem Text */
.contact-card { position: sticky; top: calc(var(--header-h) + 16px); background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.contact-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; }
.contact-card-body { padding: 22px 22px 24px; }
.contact-card .eyebrow { margin-bottom: 10px; }
.contact-card h2 { font-size: 1.5rem; color: var(--blau); }
.contact-card-role { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.contact-card ul { list-style: none; display: grid; gap: 2px; margin: 14px 0 18px; font-size: .98rem; }
.contact-card ul a { display: inline-block; padding-block: 5px; color: var(--blau); text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-card ul a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .contact-card { position: static; display: grid; grid-template-columns: 180px minmax(0, 1fr); }
  .contact-card img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 480px) { .contact-card { grid-template-columns: minmax(0, 1fr); } .contact-card img { aspect-ratio: 16 / 10; } }

/* Abschlussband mit Aufruf: hell, damit es sich vom dunklen Fuß absetzt */
.cta-band { background: var(--hell); padding-block: clamp(48px, 6vw, 72px); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); color: var(--blau); }
.cta-band p { margin-top: 8px; max-width: 36em; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Rechtliche Seiten */
.legal { padding-block: clamp(40px, 6vw, 72px) var(--section-pad); }
.legal-content { max-width: 46rem; }
.legal-content h2 { font-size: 1.6rem; margin: 40px 0 12px; color: var(--blau); }
.legal-content h2:first-child { margin-top: 0; }
/* Rechtstexte: Unterabschnitte (3.1 …) und Absatzabstände */
.legal-content h3 { font-size: 1.24rem; margin: 26px 0 8px; color: var(--tinte); }
.legal-content > p + p, .legal-content > p + ul, .legal-content > ul + p, .legal-content h3 + p + p,
.legal-content > p + .legal-note, .legal-note p + p { margin-top: 12px; }
.legal-content p, .legal-content li { overflow-wrap: break-word; }
.legal-note p { margin: 0; }
.legal-content ul { padding-left: 1.2em; margin-top: 10px; }
.legal-content li + li { margin-top: 4px; }
.legal-stand { margin-top: 36px; color: var(--muted); font-size: .92rem; }
.legal-note { padding: 16px 18px; background: var(--hell); border-left: 3px solid var(--blau); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ==========================================================================
   Sanftes Einblenden beim Scrollen (nur mit JavaScript und ohne Wunsch nach weniger Bewegung).
   Der Ruhezustand bleibt lesbar (nie ganz unsichtbar) – auch für Vorschaubilder und Suchmaschinen.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .reveal:not(.is-visible) { opacity: .35; transform: translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
