/* ==========================================================================
   Hartho Immobilien – Stylesheet
   CI: Waldgrün trägt, Sandgold setzt den Akzent.
       Helle Töne sind Fläche, nie Schrift auf Weiß.
   ========================================================================== */

/* ---------- Fonts (Ratch, lokal gehostet – keine externen Requests) ---------- */
@font-face { font-family: "Ratch"; src: url("../fonts/ratch-thin.woff2") format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Ratch"; src: url("../fonts/ratch-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ratch"; src: url("../fonts/ratch-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ratch"; src: url("../fonts/ratch-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ratch"; src: url("../fonts/ratch-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Ratch"; src: url("../fonts/ratch-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Ratch"; src: url("../fonts/ratch-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* CI-Farben */
  --wald: #335145;
  --licht: #E7EFC5;
  --sand: #F2DDA4;
  --salbei: #BFD7B5;
  --opal: #A3C4BC;
  --graphit: #5D5E60;

  /* abgeleitet */
  --wald-tief: #263D34;
  --papier: #F6F7EE;
  --flaeche: #EEF2DC;
  --linie: #D6DDC4;
  --text: var(--wald);
  --text-leise: var(--graphit);

  --font: "Ratch", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --pill: 999px;

  --container: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(72px, 10vw, 140px);

  --glas: rgba(246, 247, 238, .72);
  --schatten: 0 18px 50px -20px rgba(38, 61, 52, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
p { margin: 0; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 20px; background: var(--wald); color: var(--licht); border-radius: var(--pill); text-decoration: none; }
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--wald); outline-offset: 3px; border-radius: 6px; }
.auf-dunkel :focus-visible, .hero :focus-visible { outline-color: var(--sand); }

/* ---------- Typo-Bausteine ---------- */
.w-thin { font-weight: 100; letter-spacing: -.02em; }
.w-light { font-weight: 300; }
.w-black { font-weight: 900; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--pill);
  background: var(--licht);
  color: var(--wald);
  font-size: .875rem; font-weight: 500;
}
.badge svg { width: 14px; height: 14px; }

.sektion-titel { font-size: clamp(2.4rem, 5.2vw, 4.5rem); }
.sektion-titel .w-thin { font-weight: 100; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--text-leise); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--sand); --btn-fg: var(--wald); --kreis-bg: var(--wald); --kreis-fg: var(--sand);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 22px;
  min-height: 52px;
  border: 0; border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn .kreis {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--kreis-bg); color: var(--kreis-fg);
  transition: transform .3s var(--ease);
}
.btn .kreis svg { width: 18px; height: 18px; }
.btn:hover .kreis { transform: translateX(3px) rotate(-45deg); }
.btn:active { transform: scale(.98); }
.btn--dunkel { --btn-bg: var(--wald); --btn-fg: var(--licht); --kreis-bg: var(--sand); --kreis-fg: var(--wald); }
.btn--dunkel:hover { --btn-bg: var(--wald-tief); }
.btn--hell { --btn-bg: var(--papier); --btn-fg: var(--wald); }
.btn--klein { min-height: 44px; padding-left: 18px; font-size: .9375rem; }
.btn--klein .kreis { width: 32px; height: 32px; }
.btn--rahmen { --btn-bg: transparent; --kreis-bg: var(--papier); --kreis-fg: var(--wald); box-shadow: inset 0 0 0 1px var(--linie); }
.btn--rahmen:hover { --btn-bg: var(--papier); }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px;
  border: 1px solid var(--linie); border-radius: var(--pill);
  background: transparent; color: var(--wald);
  font-size: .9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--wald); }
.pill[aria-pressed="true"], .pill.ist-aktiv { background: var(--wald); border-color: var(--wald); color: var(--licht); }

.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--wald); color: var(--licht);
  transition: background-color .2s, opacity .2s, transform .2s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--wald-tief); }
.icon-btn:disabled { background: var(--linie); color: var(--papier); cursor: default; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px clamp(16px, 2.5vw, 32px);
}
.site-header--overlay { position: absolute; inset: 0 0 auto; }
.logo { display: block; color: var(--wald); text-decoration: none; }
.logo svg { width: clamp(170px, 16vw, 230px); height: auto; }
.site-header--overlay .logo { color: var(--papier); }

.hauptnav ul { display: flex; gap: 4px; margin: 0; padding: 5px; list-style: none; border-radius: var(--pill); background: var(--glas); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header--solid .hauptnav ul { background: var(--flaeche); }
.hauptnav a {
  display: block; padding: 10px 18px; border-radius: var(--pill);
  text-decoration: none; font-weight: 500; font-size: .975rem; color: var(--wald);
  transition: background-color .2s, color .2s;
}
.hauptnav a:hover { background: rgba(51, 81, 69, .08); }
.hauptnav a[aria-current="page"] { background: var(--wald); color: var(--licht); }

.header-aktionen { display: flex; align-items: center; gap: 10px; }
.header-tel {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--glas); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--wald);
}
.kopf-solid .header-tel { background: var(--flaeche); }
.header-tel svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .hauptnav, .header-aktionen .btn { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: var(--wald); color: var(--licht);
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .hauptnav.ist-offen {
    display: block; position: absolute; top: calc(100% - 4px); left: 16px; right: 16px;
    padding: 12px; border-radius: var(--r-lg); background: var(--papier); box-shadow: var(--schatten);
  }
  .hauptnav.ist-offen ul { flex-direction: column; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .hauptnav.ist-offen a { padding: 14px 18px; font-size: 1.125rem; }
  .hauptnav .nav-cta { display: block; margin-top: 8px; }
}
.hauptnav .nav-cta { display: none; }
@media (max-width: 1080px) { .hauptnav.ist-offen .nav-cta { display: block; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-rahmen { padding: 12px; }
.hero {
  position: relative; isolation: isolate;
  min-height: max(720px, calc(100svh - 24px));
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--wald) url("../img/hero-poster.jpg") center / cover no-repeat;
  color: var(--papier);
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(38, 61, 52, .35) 0%, rgba(38, 61, 52, 0) 22%),
    linear-gradient(0deg, rgba(38, 61, 52, .75) 0%, rgba(38, 61, 52, .15) 50%, rgba(38, 61, 52, 0) 70%);
}

.hero-inhalt { padding: 0 clamp(20px, 3vw, 40px); }
.hero-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 7.25rem); line-height: .92; letter-spacing: -.045em; font-weight: 900; text-wrap: balance; }
.hero h1 .w-thin { letter-spacing: -.035em; }
.hero-kategorien { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.hero-kategorien .pill { background: var(--papier); border-color: var(--papier); font-weight: 500; }
.hero-kategorien .pill:hover { background: var(--licht); border-color: var(--licht); }

/* Suchmaske */
.suche {
  margin: 0 clamp(10px, 1.5vw, 20px) clamp(10px, 1.5vw, 20px);
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--r-lg);
  background: var(--glas); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  color: var(--wald);
}
.suche__tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.suche__tabs .pill { border-color: rgba(51, 81, 69, .3); }
.suche__felder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px 28px; align-items: end; }
.feld label { display: block; margin-bottom: 4px; font-size: .875rem; color: var(--graphit); }
.feld select {
  width: 100%; padding: 6px 30px 6px 0;
  border: 0; border-bottom: 1px solid rgba(51, 81, 69, .25); border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23335145' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 20px no-repeat;
  font-size: 1.15rem; font-weight: 500;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.feld select:focus-visible { outline-offset: 6px; }
.suche .btn { justify-self: end; }
@media (max-width: 1080px) {
  .suche__felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .suche .btn { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
}
@media (max-width: 520px) {
  .suche__felder { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 120px; }
}

/* ==========================================================================
   Kennzahlen
   ========================================================================== */
.zahlen { padding: clamp(48px, 6vw, 80px) 0 0; }
.zahlen ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.zahlen li { display: flex; align-items: center; justify-content: center; gap: 12px; }
.zahlen strong { font-size: clamp(2.5rem, 4.2vw, 3.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.zahlen span { font-size: .9375rem; line-height: 1.25; color: var(--text-leise); }
@media (max-width: 860px) { .zahlen ul { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } .zahlen li { justify-content: flex-start; } }

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */
.sektion { padding-top: var(--section); }
.sektion-kopf { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.sektion-kopf .badge { margin-bottom: 22px; }
.sektion-kopf__rechts { display: grid; gap: 28px; justify-items: start; padding-bottom: 8px; }
.sektion-kopf--einfach { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 860px) { .sektion-kopf { grid-template-columns: 1fr; } }

/* ==========================================================================
   Objekte
   ========================================================================== */
.filter { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.filter::-webkit-scrollbar { display: none; }
.filter__trenner { width: 1px; height: 26px; background: var(--linie); flex: none; margin: 0 6px; }
.filter-hinweis { display: none; margin: -12px 0 24px; font-size: .9375rem; color: var(--text-leise); }
.filter-hinweis.ist-sichtbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-hinweis button { border: 0; background: none; padding: 0; text-decoration: underline; color: var(--wald); }

.karussell {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 18px) / 3);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.karussell::-webkit-scrollbar { display: none; }
@media (max-width: 1080px) { .karussell { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 640px) { .karussell { grid-auto-columns: 86%; } }

.objekt { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--flaeche); overflow: hidden; }
.objekt[hidden] { display: none; }
.objekt__bild { position: relative; aspect-ratio: 4 / 2.9; overflow: hidden; border-radius: var(--r-lg); }
.objekt__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.objekt:hover .objekt__bild img { transform: scale(1.04); }
.objekt__status { position: absolute; top: 16px; left: 16px; padding: 6px 14px; border-radius: var(--pill); background: var(--sand); color: var(--wald); font-size: .875rem; font-weight: 500; }
.objekt__status--miete { background: var(--opal); }
.objekt__energie { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: var(--pill); background: var(--glas); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .875rem; font-weight: 700; }
.objekt__inhalt { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; flex: 1; }
.objekt h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.objekt h3 a { text-decoration: none; }
.objekt h3 a::after { content: ""; position: absolute; inset: 0; }
.objekt { position: relative; }
.objekt__ort, .objekt__fakten { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--text-leise); }
.objekt__ort svg, .objekt__fakten svg { width: 16px; height: 16px; flex: none; color: var(--wald); }
.objekt__fakten span { display: inline-flex; align-items: center; gap: 6px; }
.objekt__preis { margin-top: 6px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.objekt__preis small { font-size: .875rem; font-weight: 400; letter-spacing: 0; color: var(--text-leise); }
.objekt__fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--linie); }
.ansprechpartner { display: flex; align-items: center; gap: 10px; font-size: .8125rem; line-height: 1.25; color: var(--text-leise); }
.ansprechpartner b { display: block; font-size: .9375rem; font-weight: 500; color: var(--wald); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wald); color: var(--licht); font-size: .8125rem; font-weight: 700; flex: none; }
.objekt__energietext { font-size: .75rem; color: var(--text-leise); text-align: right; line-height: 1.3; }

.karussell-steuerung { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.fortschritt { flex: 1; height: 4px; margin-left: 28px; border-radius: 4px; background: var(--linie); overflow: hidden; }
.fortschritt i { display: block; height: 100%; width: 33%; border-radius: 4px; background: var(--wald); transition: transform .2s linear, width .2s; transform-origin: left; }

.leer-zustand { display: none; padding: 48px 28px; border-radius: var(--r-lg); background: var(--flaeche); text-align: center; }
.leer-zustand.ist-sichtbar { display: grid; gap: 16px; justify-items: center; }
.leer-zustand h3 { font-size: 1.5rem; }

/* ==========================================================================
   Verkaufen (Waldgrün-Band)
   ========================================================================== */
.verkaufen { border-radius: var(--r-xl); background: var(--wald); color: var(--licht); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px 72px; }
.verkaufen .badge { background: rgba(231, 239, 197, .12); color: var(--licht); margin-bottom: 22px; }
.verkaufen h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); color: var(--licht); }
.verkaufen h2 em { font-style: normal; color: var(--sand); }
.verkaufen .lead { color: var(--licht); opacity: .85; margin: 22px 0 32px; }
.schritte { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; padding: 24px; border-radius: var(--r-md); background: rgba(231, 239, 197, .07); border: 1px solid rgba(231, 239, 197, .12); }
.schritte li::before { content: "0" counter(schritt); grid-row: span 2; font-size: 2.25rem; font-weight: 100; line-height: 1; color: var(--sand); }
.schritte h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; color: var(--licht); }
.schritte p { color: var(--licht); opacity: .78; font-size: .975rem; }
@media (max-width: 960px) { .verkaufen { grid-template-columns: 1fr; } }

/* ==========================================================================
   Kundenstimmen
   ========================================================================== */
.avatare { display: flex; align-items: center; gap: 14px; font-size: .9375rem; line-height: 1.25; color: var(--text-leise); }
.avatare b { color: var(--wald); font-weight: 700; }
.avatare__stapel { display: flex; }
.avatare__stapel span { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; border: 3px solid var(--papier); background: var(--salbei); color: var(--wald); font-size: .8125rem; font-weight: 700; }
.avatare__stapel span:first-child { margin-left: 0; }
.avatare__stapel span:nth-child(2) { background: var(--opal); }
.avatare__stapel span:nth-child(3) { background: var(--sand); }
.avatare__stapel span:last-child { background: var(--wald); color: var(--licht); }

.stimmen {
  position: relative; display: grid; place-items: center;
  min-height: clamp(560px, 62vw, 760px); padding: 40px 16px 110px;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--opal) url("../img/stimmen-hintergrund.svg") center / cover no-repeat;
}
.stimmen__spur { display: grid; width: min(100%, 560px); }
.stimme {
  grid-area: 1 / 1;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: rgba(51, 81, 69, .86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--licht);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.stimme.ist-aktiv { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.stimme__kopf { display: flex; justify-content: space-between; align-items: center; }
.stimme__kopf > svg { width: 40px; height: 40px; color: var(--sand); }
.sterne { display: flex; gap: 3px; color: var(--sand); }
.sterne svg { width: 22px; height: 22px; }
.stimme blockquote { margin: 22px 0 26px; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; }
.stimme figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stimme .ansprechpartner { color: var(--licht); opacity: .9; }
.stimme .ansprechpartner b { color: var(--licht); }
.stimme .avatar { background: var(--sand); color: var(--wald); width: 46px; height: 46px; }
.stimme__quelle { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; opacity: .85; }
.stimme__quelle svg { width: 18px; height: 18px; color: var(--sand); }

.stimmen__steuerung { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; }
.stimmen__steuerung .icon-btn { background: rgba(38, 61, 52, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stimmen__steuerung .icon-btn:hover { background: var(--wald); }
.punkte { display: flex; gap: 6px; }
.punkte button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: rgba(246, 247, 238, .6); transition: width .3s var(--ease), background-color .3s; }
.punkte button[aria-current="true"] { width: 30px; background: var(--papier); }

/* ==========================================================================
   Blog-Karten
   ========================================================================== */
.blog-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .blog-raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-raster { grid-template-columns: 1fr; } }
.beitrag-karte { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--flaeche); overflow: hidden; }
.beitrag-karte__bild { aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; background: var(--salbei); }
.beitrag-karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.beitrag-karte:hover .beitrag-karte__bild img { transform: scale(1.04); }
.beitrag-karte__inhalt { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; flex: 1; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .8125rem; color: var(--text-leise); text-transform: uppercase; letter-spacing: .04em; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta span + span::before { content: ""; width: 1px; height: 14px; margin-right: 6px; background: var(--linie); }
.meta svg { width: 15px; height: 15px; }
.beitrag-karte h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.beitrag-karte h3 a { text-decoration: none; }
.beitrag-karte h3 a::after { content: ""; position: absolute; inset: 0; }
.beitrag-karte p { color: var(--text-leise); font-size: .975rem; }
.beitrag-karte .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; pointer-events: none; }

/* ==========================================================================
   Kontakt + Footer
   ========================================================================== */
.kontakt { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 64px; align-items: center; padding: clamp(36px, 6vw, 72px); border-radius: var(--r-xl); background: var(--sand); }
.kontakt h2 { font-size: clamp(2.4rem, 4.8vw, 4.25rem); }
.kontakt .lead { margin-top: 18px; color: var(--wald); }
.kontakt-liste { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kontakt-liste a, .kontakt-liste div { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(246, 247, 238, .6); text-decoration: none; font-weight: 500; transition: background-color .2s; }
.kontakt-liste a:hover { background: var(--papier); }
.kontakt-liste svg { width: 22px; height: 22px; flex: none; }
.kontakt-liste small { display: block; font-weight: 400; font-size: .8125rem; color: var(--graphit); }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; } }

.site-footer { margin-top: var(--section); padding: clamp(48px, 6vw, 80px) 0 28px; background: var(--wald); color: var(--licht); }
.footer-raster { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.site-footer .logo { color: var(--licht); }
.site-footer .logo svg { width: 220px; }
.footer-claim { margin-top: 18px; max-width: 32ch; opacity: .8; }
.site-footer h4 { font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer address { font-style: normal; opacity: .85; }
.footer-unten { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(231, 239, 197, .15); font-size: .875rem; opacity: .75; }
@media (max-width: 860px) { .footer-raster { grid-template-columns: 1fr 1fr; } .footer-raster > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Unterseiten (Blog, Rechtliches)
   ========================================================================== */
.seiten-kopf { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.seiten-kopf h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 18ch; }
.seiten-kopf .lead { margin-top: 20px; }
.zurueck { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-weight: 500; text-decoration: none; }
.zurueck svg { width: 18px; height: 18px; }

.artikel { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.artikel-titelbild { width: min(100% - var(--gutter) * 2, 1120px); margin: 0 auto clamp(32px, 5vw, 64px); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8; background: var(--salbei); }
.artikel-titelbild img { width: 100%; height: 100%; object-fit: cover; }
.fliesstext { font-size: 1.125rem; line-height: 1.7; color: #3F4A45; }
.fliesstext > * + * { margin-top: 1.1em; }
.fliesstext h2 { margin-top: 1.8em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--wald); }
.fliesstext h3 { margin-top: 1.6em; font-size: 1.35rem; color: var(--wald); letter-spacing: -.02em; }
.fliesstext a { color: var(--wald); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fliesstext strong { color: var(--wald); font-weight: 700; }
.fliesstext ul, .fliesstext ol { padding-left: 1.3em; }
.fliesstext li + li { margin-top: .4em; }
.fliesstext blockquote { margin-inline: 0; padding: 20px 24px; border-left: 4px solid var(--sand); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--flaeche); color: var(--wald); font-size: 1.2rem; }
.fliesstext img { border-radius: var(--r-md); }
.fliesstext hr { border: 0; height: 1px; background: var(--linie); }

.hinweis-box { padding: 18px 22px; border-radius: var(--r-md); background: var(--sand); color: var(--wald); font-size: .975rem; }

/* ---------- Scroll-Einblendung ---------- */
.einblenden { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.einblenden.ist-sichtbar { opacity: 1; transform: none; }
.no-js .einblenden { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .einblenden { opacity: 1; transform: none; }
}

/* ==========================================================================
   Objektliste & Exposé
   ========================================================================== */
.suche--seite { margin: 0 0 40px; background: var(--flaeche); -webkit-backdrop-filter: none; backdrop-filter: none; }
.suche--seite .suche__felder { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
@media (max-width: 1180px) { .suche--seite .suche__felder { grid-template-columns: repeat(3, minmax(0, 1fr)); } .suche--seite .btn { grid-column: auto / -1; } }
@media (max-width: 640px) { .suche--seite .suche__felder { grid-template-columns: 1fr; } }

.objekt-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .objekt-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .objekt-raster { grid-template-columns: 1fr; } }

.objekt-kopf { padding-bottom: 32px; }
.objekt-kopf__zeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.objekt-kopf h1 { max-width: 20ch; }
.objekt-kopf__preis { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; text-align: right; }
@media (max-width: 640px) { .objekt-kopf__preis { text-align: left; } }

.galerie__spur { grid-auto-columns: 78%; }
@media (max-width: 640px) { .galerie__spur { grid-auto-columns: 92%; } }
.galerie__spur:has(> :only-child) { grid-auto-columns: 100%; }
.galerie__bild { position: relative; margin: 0; scroll-snap-align: start; height: clamp(260px, 62vh, 680px); border-radius: var(--r-lg); overflow: hidden; background: var(--salbei); }
.galerie__bild img { width: 100%; height: 100%; object-fit: cover; }
.galerie__bild figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: var(--pill); background: var(--glas); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .875rem; }

.objekt-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px 64px; align-items: start; margin-top: clamp(48px, 6vw, 80px); }
.objekt-detail__haupt { display: grid; gap: 56px; }
.objekt-detail__seite { position: sticky; top: 24px; }
@media (max-width: 960px) { .objekt-detail { grid-template-columns: 1fr; } .objekt-detail__seite { position: static; order: -1; } }
.detail-titel { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 20px; }
.fliesstext .detail-titel { margin-top: 0; }
.datenliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.datenliste div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.datenliste dt { color: var(--text-leise); }
.datenliste dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 640px) { .datenliste { grid-template-columns: 1fr; } }

.anfrage-karte { display: grid; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--wald); color: var(--licht); }
.anfrage-karte .ansprechpartner { color: var(--licht); opacity: .9; }
.anfrage-karte .ansprechpartner b { color: var(--licht); font-size: 1.1rem; }
.anfrage-karte .avatar { width: 52px; height: 52px; background: var(--sand); color: var(--wald); font-size: 1rem; }
.anfrage-karte p { opacity: .85; }
.anfrage-karte .btn { justify-content: space-between; }

/* Rechtstexte */
.rechtstext h2 { font-size: 1.6rem; margin-top: 2em; }
.rechtstext h3 { font-size: 1.2rem; margin-top: 1.5em; }
.rechtstext__stand { margin-top: 3em; font-size: .9rem; color: var(--graphit); }

/* ---------- Feinschliff Mobil ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 10.6vw; }
  .hero-kategorien { display: none; }
  .zahlen li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .zahlen span br { display: none; }
  .hero-rahmen { padding: 8px; }
  .site-header { padding: 16px; }
}
.hauptnav.ist-offen .nav-cta { display: flex; justify-content: space-between; }
.objekt__fuss { flex-wrap: wrap; }
@media (max-width: 640px) { .objekt__energietext { text-align: left; } }
.objekt__bild { background: var(--salbei); }
.objekt__platzhalter { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--wald); font-size: .9375rem; font-weight: 500; }
.objekt__platzhalter svg { width: 44px; height: 44px; stroke-width: 1.5; }

/* Objektstatus */
.objekt__status--kauf { background: var(--sand); }
.objekt__status--reserviert { background: var(--licht); }
.objekt__status--verkauft { background: var(--graphit); color: var(--licht); }
.objekt--verkauft .objekt__bild img { filter: saturate(.55); }
.objekt__preis--verkauft { font-size: 1.25rem; font-weight: 700; color: var(--graphit); }
.referenz-titel { margin: clamp(48px, 6vw, 72px) 0 24px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.leer-zustand { margin-bottom: 8px; }
.leer-zustand h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 22ch; }
.leer-zustand .lead { margin-inline: auto; }
.leer-zustand__aktionen { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ==========================================================================
   Hero-Kicker (Ortsbezug in der H1)
   ========================================================================== */
.hero-kicker { display: block; margin-bottom: 18px; font-size: clamp(.95rem, 1.3vw, 1.15rem); font-weight: 500; letter-spacing: 0; line-height: 1.3; opacity: .92; }
.footer-unten a { opacity: 1; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.team-raster--seite { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.team-karte { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--flaeche); overflow: hidden; }
.team-karte--entwurf { outline: 2px dashed var(--sand); outline-offset: -2px; }
.team-karte__bild { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--salbei), var(--opal)); }
.team-karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.team-karte__initialen { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 100; letter-spacing: -.04em; color: var(--wald); }
.team-karte__inhalt { display: grid; gap: 8px; padding: 20px 20px 24px; }
.team-karte h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.team-karte__rolle { font-size: .9375rem; font-weight: 500; color: var(--wald); opacity: .75; }
.team-karte p:not(.team-karte__rolle) { color: var(--text-leise); font-size: .975rem; }
.team-karte__kontakt { display: grid; gap: 6px; margin: 8px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--linie); }
.team-karte__kontakt a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.team-karte__kontakt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.team-karte__kontakt svg { width: 18px; height: 18px; }

.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.werte li { padding: 28px; border-radius: var(--r-lg); background: var(--wald); color: var(--licht); }
.werte h3 { font-size: 1.4rem; font-weight: 700; color: var(--sand); margin-bottom: 10px; letter-spacing: -.02em; }
.werte p { opacity: .85; }
@media (max-width: 860px) { .werte { grid-template-columns: 1fr; } }

/* ==========================================================================
   Regionen
   ========================================================================== */
.regionen-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .regionen-raster { grid-template-columns: 1fr; } }
.region-karte { display: grid; gap: 10px; align-content: start; padding: 28px; min-height: 260px; border-radius: var(--r-lg); background: var(--flaeche); text-decoration: none; transition: background-color .25s, transform .3s var(--ease); }
.region-karte:nth-child(1) { background: var(--wald); color: var(--licht); }
.region-karte:nth-child(2) { background: var(--salbei); }
.region-karte:nth-child(3) { background: var(--opal); }
.region-karte:hover { transform: translateY(-4px); }
.region-karte__kicker { font-size: .875rem; font-weight: 500; opacity: .8; }
.region-karte__name { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.region-karte__orte { font-size: .9375rem; opacity: .8; }
.region-karte__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; font-weight: 500; }
.region-karte__link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.region-karte:hover .region-karte__link svg { transform: translateX(4px); }
.region-karte:nth-child(1) .region-karte__link { color: var(--sand); }

.region-kopf .lead { max-width: 62ch; }
.region-kopf__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.region-inhalt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.region-inhalt > div { padding: 28px; border-radius: var(--r-lg); background: var(--flaeche); }
.region-inhalt h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.region-inhalt p { color: var(--text-leise); }
.region-ortsteile { background: var(--wald) !important; color: var(--licht); }
.region-ortsteile h2 { color: var(--sand); }
.region-ortsteile ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.region-ortsteile li { padding: 6px 14px; border-radius: var(--pill); background: rgba(231, 239, 197, .12); font-size: .9375rem; }
@media (max-width: 960px) { .region-inhalt { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border-radius: var(--r-md); background: var(--flaeche); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 1.15rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wald); color: var(--licht); font-weight: 400; font-size: 1.3rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-leise); max-width: 70ch; }

.weitere-regionen h2 { font-size: 1.4rem; margin-bottom: 18px; }
.weitere-regionen ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* Nur eine Person im Team: großes Querformat statt einzelner kleiner Karte */
.team-raster:has(> :only-child) { grid-template-columns: 1fr; }
.team-raster > .team-karte:only-child { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; align-items: center; }
.team-raster > .team-karte:only-child .team-karte__inhalt { padding: clamp(24px, 4vw, 56px); gap: 12px; }
.team-raster > .team-karte:only-child h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.team-raster > .team-karte:only-child p:not(.team-karte__rolle) { font-size: 1.1rem; max-width: 60ch; }
@media (max-width: 640px) { .team-raster > .team-karte:only-child { grid-template-columns: 1fr; } }
.team-raster, .team-raster--seite { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .team-raster, .team-raster--seite { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-raster, .team-raster--seite { grid-template-columns: 1fr; } }
.team-raster:has(> :only-child) { grid-template-columns: 1fr; }
.zahl-sterne { display: flex; gap: 2px; margin-bottom: 4px; color: var(--wald); }
.zahl-sterne svg { width: 14px; height: 14px; }
.social { display: flex; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.site-footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(231, 239, 197, .1); color: var(--licht); opacity: 1; transition: background-color .2s, color .2s; }
.site-footer .social a:hover { background: var(--sand); color: var(--wald); text-decoration: none; }
.social svg { width: 20px; height: 20px; }

/* ==========================================================================
   Navigation: Aufklapp-Menü „Immobilien“
   ========================================================================== */
.hauptnav .hat-untermenue { position: relative; }
.nav-gruppe {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px 10px 18px; border: 0; border-radius: var(--pill);
  background: none; color: var(--wald); font-weight: 500; font-size: .975rem;
  transition: background-color .2s, color .2s;
}
.nav-gruppe svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-gruppe:hover { background: rgba(51, 81, 69, .08); }
.nav-gruppe.ist-aktiv { background: var(--wald); color: var(--licht); }
.nav-gruppe[aria-expanded="true"] svg { transform: rotate(180deg); }
.hauptnav .untermenue {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 30;
  display: grid; gap: 2px; min-width: 210px; padding: 8px;
  border-radius: var(--r-md); background: var(--papier); box-shadow: var(--schatten);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
/* Brücke, damit das Menü beim Überfahren der Lücke offen bleibt */
.hauptnav .untermenue::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.hauptnav .untermenue a { padding: 11px 14px; border-radius: 10px; }
.nav-gruppe[aria-expanded="true"] + .untermenue { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 1081px) {
  .hat-untermenue:hover .untermenue { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (max-width: 1080px) {
  .hauptnav.ist-offen .nav-gruppe { width: 100%; padding: 14px 18px 6px; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--graphit); background: none; pointer-events: none; }
  .hauptnav.ist-offen .nav-gruppe svg { display: none; }
  .hauptnav.ist-offen .untermenue { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; padding: 0 0 6px 12px; }
  .hauptnav.ist-offen .untermenue::before { display: none; }
}
.site-footer .social { display: flex; }

/* ==========================================================================
   Telefon + „Immobilie bewerten“ (+ Menü-Button) bleiben oben rechts fixiert
   ========================================================================== */
body { --fix-top: 20px; --fix-right: clamp(16px, 2.5vw, 32px); }
body.kopf-overlay { --fix-top: 32px; --fix-right: calc(12px + clamp(16px, 2.5vw, 32px)); }
.hero-rahmen { position: relative; z-index: 30; } /* mobiles Menü (im Hero-Header) liegt über dem restlichen Inhalt */
.header-aktionen { position: fixed; top: var(--fix-top); right: var(--fix-right); z-index: 1000; transform: translateZ(0); }
.site-header { z-index: 900; } /* Header + mobiles Menü über dem Inhalt, Buttons darüber */
.header-aktionen > * { transition: box-shadow .3s; }
.ist-gescrollt .header-aktionen > * { box-shadow: 0 10px 28px -10px rgba(38, 61, 52, .5); }
.ist-gescrollt .header-aktionen .header-tel { background: var(--papier); }
.btn-kurz { display: none; }
.hauptnav .nav-cta { display: none !important; }
@media (min-width: 1081px) {
  /* Navigation mittig, da die Buttons nicht mehr im Fluss liegen */
  .hauptnav { position: absolute; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 1080px) {
  .header-aktionen .btn { display: inline-flex; }
  .hauptnav.ist-offen {
    position: fixed; top: calc(var(--fix-top) + 60px); left: 16px; right: 16px; z-index: 55;
    max-height: calc(100svh - var(--fix-top) - 76px); overflow-y: auto;
  }
}
@media (max-width: 640px) {
  body { --fix-top: 16px; --fix-right: 16px; }
  body.kopf-overlay { --fix-top: 24px; --fix-right: 24px; }
  .btn-lang { display: none; }
  .btn-kurz { display: inline; }
  .header-aktionen { gap: 8px; }
  .header-aktionen .header-tel, .header-aktionen .menu-toggle { width: 44px; height: 44px; }
  .header-aktionen .btn { min-height: 44px; padding-left: 16px; gap: 10px; }
  .header-aktionen .btn .kreis { width: 32px; height: 32px; }
  .hauptnav.ist-offen { top: calc(var(--fix-top) + 54px); }
}
@media (max-width: 480px) {
  /* Nur die Bildmarke (CI-Icon), damit Logo und Buttons nebeneinander passen */
  .site-header .logo__voll { display: none; }
  .site-header .logo__icon { display: block; }
}
.logo__icon { display: none; }
.logo__icon svg { width: 38px; height: auto; }
html { scroll-padding-top: 96px; } /* Sprungziele nicht unter den fixierten Buttons */

/* ==========================================================================
   Team-Bühne (Startseite): Gruppenfoto + Geschäftsführer
   ========================================================================== */
.team-buehne { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.team-buehne__foto { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: var(--r-xl); overflow: hidden; background: var(--flaeche); }
.team-buehne__foto img { width: 100%; height: 100%; object-fit: cover; }
.team-buehne__label {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--glas); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--wald); font-size: .9375rem; font-weight: 500;
}
.team-buehne__label svg { width: 16px; height: 16px; }

.team-chef { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--wald); color: var(--licht); min-height: 420px; }
.team-chef picture, .team-chef__foto { position: absolute; inset: 0; width: 100%; height: 100%; }
.team-chef__foto { object-fit: cover; object-position: center 12%; transition: transform .8s var(--ease); }
.team-chef:hover .team-chef__foto { transform: scale(1.03); }
.team-chef::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 61, 52, 0) 35%, rgba(38, 61, 52, .55) 58%, rgba(38, 61, 52, .95) 100%); }
.team-chef__inhalt { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 8px; padding: clamp(20px, 2.4vw, 32px); }
.team-chef__rolle { justify-self: start; padding: 6px 14px; border-radius: var(--pill); background: var(--sand); color: var(--wald); font-size: .8125rem; font-weight: 500; }
.team-chef h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--licht); }
.team-chef p { font-size: 1rem; line-height: 1.45; opacity: .9; max-width: 34ch; }
.team-chef__kontakt { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.team-chef__kontakt a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(231, 239, 197, .14); color: var(--licht); transition: background-color .2s, color .2s; }
.team-chef__kontakt a:hover { background: var(--sand); color: var(--wald); }
.team-chef__kontakt svg { width: 18px; height: 18px; }
.team-chef__kontakt .team-chef__mehr { display: inline-flex; width: auto; gap: 8px; margin-left: auto; padding: 0 18px; border-radius: var(--pill); background: var(--sand); color: var(--wald); font-weight: 500; font-size: .9375rem; text-decoration: none; }
.team-chef__kontakt .team-chef__mehr:hover { background: var(--licht); }

@media (max-width: 960px) {
  .team-buehne { grid-template-columns: 1fr; }
  .team-chef { min-height: 0; aspect-ratio: 4 / 5; max-height: 640px; }
}
@media (max-width: 420px) {
  .team-buehne__label { left: 12px; bottom: 12px; font-size: .8125rem; padding: 8px 12px; }
  .team-chef__kontakt .team-chef__mehr { padding: 0 14px; }
}
.team-seite-foto { margin-top: 0; margin-bottom: clamp(40px, 5vw, 64px); aspect-ratio: 16 / 8; border-radius: var(--r-xl); overflow: hidden; background: var(--flaeche); }
.team-seite-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 640px) { .team-seite-foto { aspect-ratio: 3 / 2; } }
.team-karte__bild picture, .team-karte__bild img { width: 100%; height: 100%; }
.team-karte__bild img { object-fit: cover; object-position: center 15%; }

/* Hero: echtes Standbild aus dem Video, solange das Video lädt */
.hero { background-image: url("../img/hero-poster.jpg"); background-image: image-set(url("../img/hero-poster.webp") type("image/webp"), url("../img/hero-poster.jpg") type("image/jpeg")); }
/* Lesbarkeit der Headline auch auf hellen Videobildern (Sonne, Himmel) */
.hero h1 { text-shadow: 0 2px 28px rgba(38, 61, 52, .35); }
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(38, 61, 52, .6) 0%, rgba(38, 61, 52, .45) 45%, rgba(38, 61, 52, .55) 100%); }
}

/* ==========================================================================
   Hero: deutlicher grüner Verlauf, vor allem oben links
   ========================================================================== */
.hero::after {
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(51, 81, 69, .85) 0%, rgba(51, 81, 69, .5) 38%, rgba(51, 81, 69, 0) 72%),
    linear-gradient(180deg, rgba(38, 61, 52, .35) 0%, rgba(38, 61, 52, 0) 25%),
    linear-gradient(0deg, rgba(38, 61, 52, .75) 0%, rgba(38, 61, 52, .15) 50%, rgba(38, 61, 52, 0) 70%);
}
@media (max-width: 640px) {
  .hero::after {
    background:
      radial-gradient(ellipse 120% 60% at 0% 0%, rgba(51, 81, 69, .85) 0%, rgba(51, 81, 69, .45) 50%, rgba(51, 81, 69, 0) 85%),
      linear-gradient(180deg, rgba(38, 61, 52, .45) 0%, rgba(38, 61, 52, .35) 45%, rgba(38, 61, 52, .55) 100%);
  }
}

/* ==========================================================================
   Vermarktung: Film von Found Studios
   ========================================================================== */
.film { position: relative; margin: 0 0 18px; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--wald) url("../img/hero-poster.jpg") center / cover no-repeat; }
.film__video { width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(38, 61, 52, .45) 0%, rgba(38, 61, 52, 0) 30%); }
.film__credit {
  position: absolute; right: 20px; bottom: 20px; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--glas); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--wald); font-size: .9375rem;
}
.film__credit span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.film__credit strong, .film__credit a { font-weight: 700; text-decoration: none; }
.film__credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .film { aspect-ratio: 4 / 3; } .film__credit { right: 12px; bottom: 12px; padding: 8px 14px; } }

.film-punkte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.film-punkte li { display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--flaeche); }
.film-punkte__nr { font-size: 2.25rem; font-weight: 100; line-height: 1; color: var(--wald); }
.film-punkte h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; }
.film-punkte p { color: var(--text-leise); font-size: .975rem; }
@media (max-width: 1080px) { .film-punkte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .film-punkte { grid-template-columns: 1fr; } }
.schritte a { color: var(--sand); font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }

/* ==========================================================================
   Professionelle Vermarktung
   ========================================================================== */
.film-punkte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.film-punkte li { display: grid; align-content: start; gap: 10px; min-height: 260px; padding: 28px; border-radius: var(--r-lg); background: var(--flaeche); }
.film-punkte li:first-child { background: var(--wald); color: var(--licht); }
.film-punkte li:first-child h3 { color: var(--sand); }
.film-punkte li:first-child p { color: var(--licht); opacity: .85; }
.film-punkte__nr { font-size: 2.6rem; font-weight: 100; line-height: 1; letter-spacing: -.03em; margin-bottom: 18px; }
.film-punkte h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.film-punkte p { color: var(--text-leise); }
@media (max-width: 1080px) { .film-punkte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .film-punkte { grid-template-columns: 1fr; } .film-punkte li { min-height: 0; } }
.film-punkte li:first-child .film-punkte__nr { color: var(--sand); }

/* Logo, Menü-Pille und fixierte Buttons auf einer Linie:
   Header so hoch wie die Button-Zeile (52 px) + Innenabstand, Pille exakt 52 px hoch */
.site-header { min-height: calc(52px + 40px); }
.hauptnav > ul { padding: 4px; }
@media (max-width: 640px) {
  .site-header { min-height: calc(44px + 32px); }
}

/* ==========================================================================
   Kopfzeile auf ALLEN Seiten an derselben Position wie auf der Startseite
   (Abstand oben und rechts), damit beim Seitenwechsel nichts springt
   ========================================================================== */
body, body.kopf-overlay { --fix-top: 32px; --fix-right: calc(12px + clamp(16px, 2.5vw, 32px)); }
.site-header--solid { padding: var(--fix-top) var(--fix-right) 8px; min-height: calc(var(--fix-top) + 52px + 8px); }
@media (max-width: 640px) {
  body, body.kopf-overlay { --fix-top: 24px; --fix-right: 24px; }
  .site-header--solid { min-height: calc(var(--fix-top) + 44px + 8px); }
}

/* ==========================================================================
   Menü-Pille auf der Startseite: Glas über dem Video
   ========================================================================== */
@media (min-width: 1081px) {
  .site-header--overlay .hauptnav > ul {
    background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px -12px rgba(38, 61, 52, .45);
  }
  .site-header--overlay .hauptnav > ul > li > a,
  .site-header--overlay .nav-gruppe { color: var(--papier); }
  .site-header--overlay .hauptnav > ul > li > a:hover,
  .site-header--overlay .nav-gruppe:hover { background: rgba(255, 255, 255, .16); }
  .site-header--overlay .hauptnav > ul > li > a[aria-current="page"] { background: var(--papier); color: var(--wald); }
  .site-header--overlay .nav-gruppe.ist-aktiv { background: var(--papier); color: var(--wald); }
}

/* ==========================================================================
   Bild-Hero für Unterseiten (Team, Ratgeber) – gleiche Höhe wie die Startseite
   ========================================================================== */
.hero--seite { background: var(--wald); }
.hero--seite > picture { position: absolute; inset: 0; z-index: -2; }
.hero--seite > picture img { width: 100%; height: 100%; object-fit: cover; }
.hero--team > picture img { object-position: center 28%; }
.seiten-hero__inhalt { display: grid; justify-items: start; gap: 20px; padding-bottom: clamp(32px, 4.5vw, 64px); }
.seiten-hero__inhalt h1 { font-size: clamp(2.8rem, 6.6vw, 6.5rem); line-height: .95; letter-spacing: -.045em; font-weight: 900; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 28px rgba(38, 61, 52, .35); }
.seiten-hero__inhalt h1 .w-thin { font-weight: 100; }
.seiten-hero__lead { max-width: 56ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; opacity: .92; }
.badge--glas { background: rgba(246, 247, 238, .16); color: var(--papier); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
@media (max-width: 520px) {
  .hero--seite { min-height: max(560px, calc(100svh - 16px)); padding-top: 0; }
}
/* Lesbarkeit über Fotos mit Personen: kompaktere Überschrift, unten stärker abgedunkelt */
.hero--seite::after {
  background:
    linear-gradient(180deg, rgba(38, 61, 52, .35) 0%, rgba(38, 61, 52, 0) 22%),
    linear-gradient(0deg, rgba(38, 61, 52, .92) 0%, rgba(38, 61, 52, .6) 30%, rgba(38, 61, 52, 0) 58%);
}
.seiten-hero__inhalt h1 { font-size: clamp(2.6rem, 5.2vw, 5.25rem); }
@media (max-width: 640px) {
  .hero--seite::after { background: linear-gradient(180deg, rgba(38, 61, 52, .45) 0%, rgba(38, 61, 52, 0) 25%, rgba(38, 61, 52, .35) 45%, rgba(38, 61, 52, .92) 100%); }
}

/* Button zur Film- & Fotoagentur Found Studios – Found-Orange #db4a2b (aus deren Website, ohne Verlauf) */
.btn--orange { --btn-bg: #db4a2b; --btn-fg: #f4ece2; --kreis-bg: #f4ece2; --kreis-fg: #db4a2b; }
.btn--orange:hover { --btn-bg: #c43f22; }
.btn--orange .kreis svg { transform: rotate(-45deg); } /* externer Link */
.btn-reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.sektion-kopf__rechts a:not(.btn) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.btn--orange:hover .kreis { transform: translate(2px, -2px); }
/* Teamseite: vier Personen nebeneinander, darunter 2 bzw. 1 Spalte */
@media (min-width: 1201px) { .team-raster--seite { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   Blogbeitrag: Titel links, Titelbild rechts (fester Aufbau)
   ========================================================================== */
.artikel-kopf {
  width: min(100% - var(--gutter) * 2, var(--container)); margin: 0 auto clamp(40px, 6vw, 80px);
  padding-top: clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.artikel-kopf__text h1 { margin-top: 18px; font-size: clamp(2.3rem, 4.2vw, 4rem); text-wrap: balance; }
.artikel-kopf__text .lead { margin-top: 20px; }
.artikel-kopf__bild { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--salbei); }
.artikel-kopf__bild img { width: 100%; height: 100%; object-fit: cover; }
.artikel-kopf__platzhalter { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--wald); font-weight: 500; }
.artikel-kopf__platzhalter svg { width: 44px; height: 44px; stroke-width: 1.5; }
@media (max-width: 900px) {
  .artikel-kopf { grid-template-columns: 1fr; }
}

/* Unterseiten: ganz dünner grüner Rahmen um die Menü-Pille (Innenlinie → Höhe bleibt 52 px) */
.site-header--solid .hauptnav > ul { box-shadow: inset 0 0 0 1px rgba(51, 81, 69, .35); }

/* ==========================================================================
   Hero: Titel und Suche sicher über dem Video
   (Safari/iOS malt laufende Videos sonst teils über nicht positionierten Text)
   ========================================================================== */
.hero-inhalt, .hero .suche { position: relative; z-index: 1; }
.hero-video { transform: translateZ(0); }

/* ==========================================================================
   Hero Handy: Vollbild wie Vorlage – Titel unten über dem Bild,
   kompakte Suche mit zwei Spalten
   ========================================================================== */
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 16px); padding-top: 96px; }
  .hero-inhalt { padding: 0 18px; }
  .hero-zeile { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(2.3rem, 11.2vw, 3.6rem); line-height: .95; }
  .hero-kicker { margin-bottom: 12px; font-size: .875rem; }

  .suche { margin: 0 8px 8px; padding: 16px; border-radius: 22px; }
  .suche__tabs { gap: 6px; margin-bottom: 12px !important; }
  .suche__tabs .pill { min-height: 36px; padding: 0 16px; font-size: .875rem; }
  .suche__felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .feld label { margin-bottom: 2px; font-size: .8125rem; }
  .feld select { padding: 4px 20px 4px 0; background-size: 16px; background-position: right 0 center; font-size: 1rem; text-overflow: ellipsis; }
  .suche .btn { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; min-height: 46px; margin-top: 4px; padding-left: 18px; font-size: .9375rem; }
  .suche .btn .kreis { width: 34px; height: 34px; }
}
@media (max-width: 640px) {
  /* Bild oben klarer, nach unten dunkler – trägt den Titel */
  .hero::after {
    background:
      radial-gradient(ellipse 110% 40% at 0% 0%, rgba(51, 81, 69, .7) 0%, rgba(51, 81, 69, 0) 80%),
      linear-gradient(180deg, rgba(38, 61, 52, .25) 0%, rgba(38, 61, 52, 0) 28%, rgba(38, 61, 52, .15) 45%, rgba(38, 61, 52, .7) 75%, rgba(38, 61, 52, .8) 100%);
  }
}
/* Sehr schmale Handys (320 px): lange Button-Texte dürfen umbrechen statt die Seite zu verbreitern */
@media (max-width: 380px) {
  .btn { white-space: normal; text-align: left; }
}

/* Titel bleibt lesbar, egal welcher Videoausschnitt (Sonne, Himmel) dahinter liegt:
   weicher dunkler Schimmer direkt hinter dem Text, wandert mit dem Titel mit */
.hero-inhalt::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -40% -20% -20% -10%;
  background: radial-gradient(ellipse 55% 60% at 30% 58%, rgba(38, 61, 52, .5) 0%, rgba(38, 61, 52, .25) 50%, rgba(38, 61, 52, 0) 75%);
}
.hero h1 { text-shadow: 0 2px 24px rgba(38, 61, 52, .55), 0 1px 3px rgba(38, 61, 52, .35); }
@media (max-width: 640px) {
  .hero-inhalt::before { inset: -45% -10% -15% -10%; background: radial-gradient(ellipse 80% 60% at 40% 58%, rgba(38, 61, 52, .6) 0%, rgba(38, 61, 52, .3) 55%, rgba(38, 61, 52, 0) 80%); }
}
/* Sehr schmale Handys: Buttons oben rechts etwas enger, damit das Logo frei bleibt */
@media (max-width: 360px) {
  .header-aktionen { gap: 6px; }
  .header-aktionen .btn { gap: 8px; padding-left: 14px; }
}
