/* =========================================================
   VDN Immobilien – Katharina Sarah Schumacher
   Stylesheet
   ---------------------------------------------------------
   1. Design Tokens
   2. Reset & Basis
   3. Typografie-Bausteine
   4. Buttons & Links
   5. Header / Navigation
   6. Hero
   7. Merkmalsleiste (navy)
   8. Angebote
   9. Über mich
  10. CTA-Band
  11. Footer
  12. Unterseiten (Page-Header, Text, Formular, Cards)
  13. Responsive
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  --navy:        #0F3152;
  --navy-deep:   #0A2338;
  --navy-soft:   #1B4470;
  --cream:       #FBF9F5;
  --sand:        #F4F1EA;
  --beige:       #EFEAE1;
  --white:       #FFFFFF;
  --ink:         #1C2733;
  --muted:       #5C6874;
  --line:        #DCD5C9;
  --line-soft:   #E8E3D9;
  --navy-line:   rgba(255,255,255,.18);
  --brand-blue:  #1B609B;   /* Logoblau aus logo_vdn.psd */

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body:    "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-script:  "Italianno", "Snell Roundhand", "Apple Chancery", cursive;

  --container: 1240px;
  --gutter: 28px;

  --radius: 2px;
  --shadow-card: 0 18px 50px rgba(15, 49, 82, .10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--navy-soft); outline-offset: 3px; }

/* ---------- 3. Typografie-Bausteine ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 22px;
}
.eyebrow--navy { color: var(--navy); }
.eyebrow--light { color: rgba(255,255,255,.72); }

.display {
  font-size: clamp(2.6rem, 5.2vw, 4.05rem);
  line-height: 1.06;
  color: var(--navy);
}
.display em { font-style: italic; display: block; }

.h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  color: var(--navy);
}
.h3 { font-size: 1.45rem; line-height: 1.3; color: var(--navy); }

.rule {
  width: 56px; height: 1px; border: 0;
  background: var(--line);
  margin: 28px 0;
}
.rule--light { background: rgba(255,255,255,.35); }

.lead { font-size: 1.0625rem; color: var(--muted); max-width: 46ch; }

.signature {
  font-family: var(--font-script);
  font-size: 2.45rem;
  line-height: 1.15;
  color: #7E8894;
  letter-spacing: .01em;
  margin: 0;
}
.signature--navy { color: var(--navy); opacity: .8; }

/* ---------- 4. Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-soft); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(15,49,82,.04); }

.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.link-arrow:hover { border-color: var(--navy); }
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck {
  box-shadow: 0 1px 24px rgba(15,49,82,.07);
  border-color: var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 112px;
  padding-block: 14px;
}

/* Logo */
.logo { display: block; text-decoration: none; flex-shrink: 0; line-height: 0; }
.logo__img { height: 64px; width: auto; display: block; }

.nav { margin-left: auto; }
.nav__list > li:last-child { display: none; } /* CTA nur im Mobilmenü */
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: .9375rem;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 700; }

.header__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: background .25s var(--ease);
}
.header__cta:hover { background: var(--navy-soft); }
.header__cta svg { flex-shrink: 0; }
.header__cta b { display: block; font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.header__cta small { display: block; font-size: .75rem; opacity: .75; line-height: 1.3; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--line);          /* Symbol im gleichen Ton wie der Rahmen */
  cursor: pointer;
  padding: 0;
  place-items: center;
}
/* Symbolwechsel ohne Bewegung: geschlossen ein Haus, geoeffnet ein Herz.
   Die Auswahlketten muessen gleich lang sein, sonst gewinnt .nav-toggle svg
   und beide Symbole stehen untereinander. */
.nav-toggle svg { display: block; grid-area: 1 / 1; }
.nav-toggle .nav-toggle__herz { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__haus { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__herz { display: block; }

/* ---------- 6. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--cream);
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 88px
           max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero__media { position: relative; min-height: 520px; overflow: hidden; }
/* absolut positioniert: das Bild fuellt die Spalte, bestimmt aber nicht ihre
   Hoehe. Sonst zieht das hochformatige Foto den ganzen Hero in die Laenge. */
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero .display { font-size: clamp(2.2rem, 4vw, 3.55rem); margin-bottom: 0; }
.hero .lead { margin-bottom: 30px; }
.hero .signature { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 7. Merkmalsleiste ---------- */
.features { background: var(--navy); color: #fff; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 46px;
}
.feature {
  display: flex;
  gap: 18px;
  padding: 6px 34px;
  border-right: 1px solid var(--navy-line);
}
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; padding-right: 0; }
.feature__icon { flex-shrink: 0; color: rgba(255,255,255,.85); }
.feature h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.feature p { font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.72); }

/* ---------- 8. Angebote ---------- */
.offers__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  gap: 64px;
  align-items: center;
}
.offers__intro .lead { margin-bottom: 28px; }

.property-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.property-card__media { min-height: 300px; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; }
.property-card__body { padding: 40px 40px 36px; }
.property-card__body .eyebrow { margin-bottom: 16px; }
.property-card__body h3 { margin-bottom: 24px; }

.facts { display: grid; gap: 11px; margin-bottom: 28px; }
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  color: var(--muted);
}
.facts li svg { flex-shrink: 0; margin-top: 5px; color: var(--navy); }

/* Rasterliste für mehrere Objekte (Unterseite) */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 34px;
}
.property-tile {
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.property-tile__media { aspect-ratio: 4 / 3; }
.property-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.property-tile__body { padding: 32px 32px 30px; display: flex; flex-direction: column; flex: 1; }
.property-tile__body h3 { font-size: 1.28rem; margin-bottom: 20px; }
.property-tile .facts { margin-top: auto; }
.property-tile .link-arrow { margin-top: 24px; align-self: flex-start; }

/* ---------- 9. Über mich ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about__portrait { align-self: stretch; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.about__text .h2 { margin-bottom: 26px; }
.about__text p { font-size: .9375rem; color: var(--muted); }
.about__text .link-arrow { margin-top: 12px; }

.quote-box { background: var(--beige); padding: 44px 42px; }
.quote-box__mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: .8;
  color: var(--navy);
  opacity: .55;
  margin-bottom: 18px;
}
.quote-box blockquote {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--navy);
}
.quote-box .signature { font-size: 2.15rem; margin-bottom: 30px; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(15,49,82,.12);
  padding-top: 26px;
}
.trust-row li {
  display: flex;
  gap: 10px;
  min-width: 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.trust-row li span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.trust-row svg { flex-shrink: 0; margin-top: 2px; color: var(--navy); }

/* ---------- 10. CTA-Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.cta-band__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .38;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 8%, rgba(15,49,82,.72) 55%, rgba(15,49,82,.55) 100%);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 58px 0;
}
.cta-band h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; font-size: .9375rem; }

.cta-wrap { padding-block: 96px; background: var(--cream); }
/* Hat der Abschnitt davor denselben Untergrund, wuerden sich sein unterer
   Innenabstand und der des CTA-Bandes addieren - dann steht die Box nicht
   mittig im Freiraum. Bei andersfarbigen Abschnitten bleibt der Abstand
   stehen, weil er dort noch zur farbigen Flaeche gehoert. */
.section--cream:has(+ .cta-wrap) { padding-bottom: 0; }
.cta-wrap .cta-band { max-width: var(--container); margin-inline: auto; }
.cta-wrap .cta-band__inner { padding-inline: 56px; }

/* ---------- 11. Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); font-size: .875rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-block: 72px 56px;
}
.footer__tagline { margin-top: 22px; max-width: 34ch; line-height: 1.7; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer__list li { margin-bottom: 11px; }
.footer__list a { text-decoration: none; transition: color .2s var(--ease); }
.footer__list a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.9; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: .8125rem;
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- 12. Unterseiten ---------- */
.page-head { background: var(--sand); padding: 76px 0 68px; border-bottom: 1px solid var(--line-soft); }
.page-head .display { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.page-head .lead { margin-top: 8px; }

.prose { max-width: 68ch; }

/* .prose direkt auf dem Container: Die Lesebreite darf die Containerbreite
   nicht ueberschreiben, sonst zentriert margin-inline:auto den Textblock und
   er steht nicht mehr buendig unter der Ueberschrift. */
.container.prose { max-width: var(--container); }
.container.prose > * { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-size: 1.75rem; color: var(--navy); margin: 46px 0 18px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: none; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 9px; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 8px; height: 1px; background: var(--navy);
}
.prose a { color: var(--navy); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
}
.split__media img { width: 100%; object-fit: cover; }
/* Feste Querformat-Variante: haelt alle Bilder einer Reihe auf gleicher Hoehe
   und verhindert, dass ein hochformatiges Bild den Abschnitt aufzieht. */
.split__media--quer img { aspect-ratio: 3 / 2; height: auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: 36px 32px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.card p { font-size: .9375rem; color: var(--muted); }
.card .link-arrow { margin-top: 18px; }

/* Formular */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,49,82,.08);
}
.field textarea { resize: vertical; min-height: 150px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .8125rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--navy); }

/* Formular: Rueckmeldung und Spamfalle */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-hinweis {
  display: none;
  padding: 18px 22px;
  margin-bottom: 26px;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
  background: var(--beige);
  border-left: 3px solid var(--navy);
}
.form-hinweis a { color: var(--navy); }
.form-hinweis--fehler { border-left-color: #A4442F; }
/* Ohne JavaScript: kontakt.php leitet auf #fehler zurueck */
.form-hinweis:target,
.form-hinweis.is-sichtbar { display: block; }

.form-status {
  margin-top: 16px;
  font-size: .9375rem;
  line-height: 1.6;
  padding-left: 26px;
  position: relative;
}
.form-status::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 12px;
  border-radius: 50%;
}
.form-status--erfolg { color: var(--navy); font-weight: 700; }
.form-status--erfolg::before { background: #2F7D53; }
.form-status--fehler { color: #8E3A28; }
.form-status--fehler::before { background: #A4442F; }
.form-status--warte { color: var(--muted); }
.form-status--warte::before { background: var(--line); }

.contact-aside { background: var(--beige); padding: 40px 38px; }
.contact-aside h3 { margin-bottom: 22px; }
.contact-aside dl { margin: 0; }
.contact-aside dt {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--navy); margin-top: 22px;
}
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 5px 0 0; font-size: .9375rem; color: var(--muted); }
.contact-aside dd a { color: var(--navy); text-decoration: none; }
.contact-aside dd a:hover { text-decoration: underline; }

/* Ratgeber */
.article-list { display: grid; gap: 0; }
.article-item {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
}
.article-item:last-child { border-bottom: 1px solid var(--line-soft); }
.article-item__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.article-item h3 { font-size: 1.4rem; transition: opacity .2s var(--ease); }
.article-item:hover h3 { opacity: .7; }
.article-item .arrow { color: var(--navy); }

/* Reveal-Animation */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1180px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about__grid .quote-box { grid-column: 1 / -1; }
  .nav__list { gap: 24px; }
  .header__cta small { display: none; }
}

@media (max-width: 1024px) {
  .section { padding: 76px 0; }
  .cta-wrap { padding-block: 76px; }
  .hero { grid-template-columns: 1fr; }
  .hero__content { padding: 56px var(--gutter) 64px; max-width: var(--container); margin-inline: auto; }
  .hero__media { min-height: 380px; order: -1; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .feature { padding: 0 30px; }
  .feature:nth-child(2n) { border-right: 0; padding-right: 0; }
  .feature:nth-child(2n+1) { padding-left: 0; }
  .offers__grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .header__inner { min-height: 84px; gap: 16px; }
  .logo__img { height: 48px; }
  .header__cta { display: none; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 20px 40px rgba(15,49,82,.08);
    display: none;
    margin: 0;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; }
  .nav__link { padding: 14px 0; font-size: 1.0625rem; }
  .nav__link::after { display: none; }
  .nav__list > li:last-child { display: block; }
  .nav__list .btn { margin-top: 16px; justify-content: center; }

  .property-card { grid-template-columns: 1fr; }
  .property-card__media { min-height: 240px; }
  .property-card__body { padding: 32px 28px; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__portrait img { min-height: 300px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; padding: 44px 0; }
  .cta-wrap .cta-band__inner { padding-inline: 32px; }
  .article-item { grid-template-columns: 1fr auto; gap: 12px 20px; }
  .article-item__meta { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .section { padding: 60px 0; }
  .cta-wrap { padding-block: 60px; }
  .features__grid { grid-template-columns: 1fr; gap: 30px; }
  .feature { border-right: 0; padding: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; padding-block: 56px 44px; }
  .quote-box { padding: 34px 28px; }
  .trust-row { grid-template-columns: 1fr; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   14. Zusätzliche Bausteine
   ---------------------------------------------------------
   Videos (DSGVO-freundliche Vorschaltlösung), Referenzgalerie,
   Zahlenband, Gründer-Abschnitt, Listen, Kategorien
   ========================================================= */

/* ---------- Videos: erst auf Klick wird YouTube geladen ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.video {
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  width: 100%;
  display: block;
  overflow: hidden;
}
.video__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .78;
  transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.video__frame:hover img { opacity: .95; transform: scale(1.03); }
.video__play {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-appearance: none;
  appearance: none;
}
.video__play::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(15,49,82,.86);
  border: 1px solid rgba(255,255,255,.5);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.video__play svg { position: relative; }
.video__frame:hover .video__play::before,
.video__play:focus-visible::before { background: var(--navy); transform: translate(-50%,-50%) scale(1.06); }
.video__play svg { margin-left: 4px; color: #fff; }
.video__frame.is-playing { cursor: default; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__body { padding: 22px 26px 24px; }
.video__body h3 {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}
.video__hint {
  margin-top: 8px;
  font-size: .75rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Videoplayer im Leuchtkasten (ab 861 px) ---------- */
.video-dialog {
  /* Ueber die Hoehe bemessen: so wird die Buehne so gross wie moeglich,
     davon profitieren vor allem die hochformatigen Clips. Der dritte Wert
     haelt 16:9 auf flachen Bildschirmen im Bild. */
  width: min(1320px, 92vw, calc(82vh * 16 / 9));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: #fff;
}
.video-dialog::backdrop {
  background: rgba(8, 26, 42, .92);
}
.video-dialog__buehne {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.video-dialog__buehne iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-dialog__zu {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.video-dialog__zu:hover,
.video-dialog__zu:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .7);
}
@media (prefers-reduced-motion: no-preference) {
  .video-dialog[open] { animation: dialog-auf .22s var(--ease); }
  .video-dialog[open]::backdrop { animation: backdrop-auf .22s var(--ease); }
}
@keyframes dialog-auf {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes backdrop-auf { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Referenzgalerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.gallery figure { margin: 0; background: var(--white); box-shadow: var(--shadow-card); overflow: hidden; }
.gallery .gallery__img { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption { padding: 20px 24px 22px; }
.gallery figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 4px;
}
.gallery figcaption span {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Zahlenband ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stats > div { padding: 34px 30px; border-right: 1px solid var(--line-soft); }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; padding-right: 0; }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 10px;
}
.stats span { font-size: .875rem; color: var(--muted); line-height: 1.55; display: block; }
.stats--light { border-color: var(--navy-line); }
.stats--light > div { border-color: var(--navy-line); }
.stats--light b { color: #fff; }
.stats--light span { color: rgba(255,255,255,.72); }

/* ---------- Gründer ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.founder__media { position: relative; }
.founder__media img { width: 100%; object-fit: cover; }
.founder__years {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.founder blockquote {
  margin: 26px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy);
}

/* ---------- Nummerierte Listen (Gründe / Fehler) ---------- */
.numbered { counter-reset: nr; display: grid; gap: 0; list-style: none; }
.numbered li {
  counter-increment: nr;
  position: relative;
  padding: 20px 0 20px 58px;
  border-top: 1px solid var(--line-soft);
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
}
.numbered li:last-child { border-bottom: 1px solid var(--line-soft); }
.numbered li::before {
  content: counter(nr, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.22;
  color: var(--navy);
  opacity: .5;
}
.numbered li strong { color: var(--navy); font-weight: 700; }

.two-col { columns: 2; column-gap: 56px; }
@media (max-width: 860px) { .two-col { columns: 1; } }

/* ---------- Kategorien ---------- */
.kategorien {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}
.kategorie {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  min-height: 340px;
  background: var(--navy);
}
.kategorie img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.kategorie:hover img { transform: scale(1.06); opacity: .42; }
.kategorie__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 30px;
  background: linear-gradient(180deg, rgba(10,35,56,0) 30%, rgba(10,35,56,.85) 100%);
  color: #fff;
}
.kategorie h3 { font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.kategorie p { font-size: .875rem; color: rgba(255,255,255,.8); line-height: 1.6; }
.kategorie .link-arrow { color: #fff; margin-top: 16px; align-self: flex-start; }
.kategorie:hover .link-arrow { border-color: rgba(255,255,255,.6); }

/* ---------- Hinweisbox ---------- */
.notice {
  background: var(--beige);
  border-left: 3px solid var(--navy);
  padding: 22px 26px;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Responsive Ergänzungen ---------- */
@media (max-width: 1024px) {
  .founder { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stats > div:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; padding: 26px 0; }
  .numbered li { padding-left: 42px; }
}
