/* ============================================================
   Notare Altötting – notare-altoetting.de
   Statischer Nachbau der WordPress/Elementor-Seite (Stand August 2026)
   Maße/Farben aus dem Original vermessen (Viewport 1280):
   Content 1100px, Header 116px, Hero 74vh, flaches Design ohne Schatten
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jost-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jost-700.woff2') format('woff2');
}

/* ---------- Farbpalette (Elementor-Kit des Originals) ---------- */
:root {
  --blue: #084166;          /* Primary: Text, dunkle Flächen, Rahmen */
  --blue-hell: #0c5e93;     /* Navigation, Akzente */
  --cream: #f9f4e9;         /* Seitenhintergrund */
  --white: #fff;
  --header-hoehe: 116px;
}

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

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--blue);
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Footer klebt am Fensterende, auch bei wenig Inhalt (z. B. Fragebögen) */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
h1, h2 { font-size: 30px; }   /* Sektions-Überschriften im Original: 30px */
h3 { font-size: 21px; }

p { margin: 0 0 1em; }

a { color: var(--blue); }
a:hover { color: var(--blue-hell); }

/* Buttons zeigen wie Links die Hand (Browser-Standard wäre Pfeil) */
button { cursor: pointer; }

/* Zeilenumbruch, der nur mobil wirkt */
br.nur-mobil { display: none; }

.container {
  max-width: 1148px;          /* 1100px Inhalt + 2×24px Innenabstand */
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 0; color: var(--white); }

/* Unterstreichungs-Divider unter Überschriften (Original: 1.5px, volle Breite) */
.divider {
  border-top: 1.5px solid var(--blue);
  margin: 18px 0 13px;
}
.divider-weiss { border-top-color: var(--white); }
.divider-breit { margin-bottom: 40px; max-width: 717px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(8, 65, 102, 0.18); }

.header-inner {
  position: relative;         /* Bezugsrahmen für die Leistungen-Unterzeile */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-hoehe);
  gap: 24px;
}

.logo { display: block; flex-shrink: 0; }
.logo img { width: 240px; height: auto; }

/* Navigation (Desktop): 20px Jost in Hellblau, wie das Original */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  display: block;
  padding: 6px 0;
  color: var(--blue-hell);
  text-decoration: none;
  font-size: 20px;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--blue); }

.has-sub { display: flex; align-items: center; }

.sub-toggle {
  background: none;
  border: 0;
  padding: 4px 2px;
  margin-left: 4px;
  color: var(--blue-hell);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

/* Leistungen-Untermenü: horizontale Zeile unterhalb der Hauptnavigation,
   innerhalb des Headers (wie das Jet-Mega-Menü des Originals).
   Rechtsbündig mit der Hauptnavigation (Außenkante „Kontakt“). */
.site-nav ul.sub-menu {   /* Spezifität > .site-nav ul, sonst gilt dessen gap */
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 24px;               /* = Container-Innenabstand → Kante „Kontakt“ */
  top: calc(50% + 18px);
  display: flex;
  gap: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.sub-menu a {
  font-size: 16px;
  color: var(--blue);
  padding: 4px 0 4px 20px;   /* 20px Abstand zwischen den Einträgen (wie Original) */
}
.sub-menu li:first-child a { padding-left: 0; }
.sub-menu a:hover { color: var(--blue-hell); }

@media (min-width: 1151px) {
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu,
  .has-sub.offen .sub-menu { visibility: visible; opacity: 1; }
}
.has-sub.offen .sub-toggle { transform: rotate(180deg); }

/* Burger — bewusst ohne Flex auf dem <button>: iOS Safari streckt
   Flex-Kinder von Buttons nicht zuverlässig (Balken sonst unsichtbar).
   Glyph 26×26px wie die Mail-/Telefon-Icons. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 13px 9px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto 6px;
  background: var(--blue);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle span:last-child { margin-bottom: 0; }

/* Mobile Schnellkontakte (Mail/Telefon) wie im Original */
.kopf-icons { display: none; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero: Slideshow (74vh, Überblendung) ---------- */
.hero {
  position: relative;
  height: 74vh;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.aktiv { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* ---------- Willkommen ---------- */
.willkommen { padding: 30px 0 45px; }

.willkommen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 333px;
  gap: 50px;
  align-items: start;
}

.willkommen-text { padding-top: 30px; }
.willkommen-text p { margin-bottom: 1.1em; }
.willkommen-text p:last-child { margin-bottom: 0; }

/* Dunkelblaue Box: Kontakt + Öffnungszeiten (Original: 30/30/10 Innenabstand) */
.karte-dunkel {
  background: var(--blue);
  color: var(--white);
  padding: 30px 30px 22px;
}
.karte-dunkel h2 { color: var(--white); }
.karte-dunkel h2 + .divider { margin: 14px 0 16px; }
.karte-dunkel p { margin-bottom: 26px; }
.karte-dunkel a { color: var(--white); text-decoration: none; }
.karte-dunkel a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

.zeiten { border-collapse: collapse; }
.zeiten td { padding: 0 0 2px; vertical-align: top; }
.zeiten td:first-child { padding-right: 20px; }
.zeiten-hinweis { margin: 10px 0 0; }

/* ---------- Leistungen: Karten im Schachbrett (weiß/blau) ---------- */
.leistungen { padding: 20px 0 50px; }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.leistung-karte {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--blue);
  padding: 20px;
  text-decoration: none;
  transition: background 0.3s, border 0.3s;
}
.leistung-karte img {
  aspect-ratio: 800 / 470;
  object-fit: cover;
}
.leistung-karte h3 {
  margin: 10px 0 0;
  text-align: center;
  color: var(--blue);
}
/* jede zweite Karte dunkelblau (Original: 2, 4, 6) */
.leistung-karte:nth-child(even) { background: var(--blue); }
.leistung-karte:nth-child(even) h3 { color: var(--white); }

/* ---------- Pressemitteilungen ----------
   70px Abstand zum Kartenband = gleicher Abstand wie Kachel-Reihe →
   Überschrift „Hier finden Sie uns“ (50px Leistungen-Ende + 20px Anfahrt-Start) */
.presse { padding: 70px 0 60px; }

.presse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.presse-karte {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--blue);
  padding: 24px 24px 28px;
}
.presse-datum {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--blue-hell);
  margin-bottom: 10px;
}
.presse-karte h3 { margin-bottom: 12px; }
.presse-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}
.presse-karte .btn { margin-top: auto; align-self: flex-start; }

.presse-quelle {
  margin: 36px 0 0;
  font-size: 14px;
  opacity: 0.75;
}

.presse-alle { margin: 40px 0 0; }

/* Aktuelles: Archiv und Detailseiten */
.presse-karten-link { color: var(--blue); text-decoration: none; }
.presse-karten-link:hover { color: var(--blue-hell); }

.presse-grid--archiv { row-gap: 44px; }

.mitteilung-titel {
  font-size: 30px;
  font-weight: 500;
  max-width: 800px;
  margin: 6px 0 0;
}
.mitteilung-titel + .divider { max-width: 800px; }

.mitteilung-zurueck { margin: 36px 0 0; }

/* ---------- Buttons (Original: 15px, 15/30 Innenabstand, 1.5px Rahmen) ---------- */
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 15px 30px;
  border: 1.5px solid var(--blue);
  border-radius: 0;
  margin: 0;
  transition: background 0.2s, color 0.2s;
}
a.btn:hover { background: var(--blue); color: var(--white); }

.btn-blau {
  background: var(--blue);
  color: var(--white);
}
a.btn-blau:hover { background: var(--white); color: var(--blue); }

.btn-statisch { cursor: default; }

/* ---------- Anfahrt: vollbreites Kartenband mit Button-Leiste ---------- */
.anfahrt { padding: 20px 0 0; }

.anfahrt-karte {
  position: relative;
  margin-top: 24px;
  min-height: 400px;
  background-image: url('../img/karte-altoetting-1600.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

/* Standort-Pin (im Original ein Overlay, nicht Teil des Kartenbilds) */
.karte-pin {
  position: absolute;
  left: 49.5%;
  top: calc(45% + 12px);
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.karte-pin svg { display: block; }

.anfahrt-leiste {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
}
.anfahrt-leiste .btn-statisch { flex: 0 0 333px; }
.anfahrt-buttons { display: flex; gap: 20px; }

/* ---------- Unterseiten ---------- */
.seite { padding: 50px 0 80px; }

.seite-titel {
  font-size: 38px;
  font-weight: 500;
  margin: 0 0 26px;
}
.abschnitt-titel {
  font-size: 24px;
  font-weight: 500;
  margin: 44px 0 12px;
}
/* Unterabschnitt (z. B. „2.1 Nutzungsdaten") – eine Stufe unter .abschnitt-titel */
.unter-titel {
  font-size: 19px;
  font-weight: 500;
  margin: 28px 0 10px;
}

.inhalt ul { margin: 0 0 1em; padding-left: 33px; }
.inhalt li { margin-bottom: 8px; }

/* Broschüren-Galerie (Leistungen-Übersicht): 7 Cover in einer Reihe */
.broschueren-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 20px 0 24px;
}
.broschueren-grid a { display: block; }
.broschueren-grid img { width: 100%; }
.broschueren-grid a:hover img { opacity: 0.88; }

/* DSGVO-Zwei-Klick-Video: lokales Vorschaubild + Overlay,
   YouTube (nocookie) lädt erst nach Klick auf „Video abspielen“ */
.video-fassade {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 4px 0 44px;
  background: var(--blue);
  overflow: hidden;
}
.video-fassade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 26px;
  background: linear-gradient(to top,
    rgba(8, 65, 102, 0.88) 0%,
    rgba(8, 65, 102, 0.45) 55%,
    rgba(8, 65, 102, 0.2) 100%);
  color: var(--white);
}
.video-titel { font-weight: 500; font-size: 18px; margin: 0; }
.video-hinweis { font-size: 14px; line-height: 1.45; margin: 0; max-width: 680px; }
.video-hinweis a { color: var(--white); }
.video-hinweis a:hover { color: var(--cream); }
.video-fassade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* kein Flex auf dem <button> (iOS Safari richtet Flex-Kinder falsch aus):
   Play-Symbol sitzt per vertical-align auf der Textmitte */
.video-start svg {
  display: inline-block;
  vertical-align: -0.125em;
  margin-right: 10px;
}
.video-start { transition: background 0.25s ease, color 0.25s ease; }
.video-start:hover,
.video-start:focus-visible {
  background: var(--blue);
  color: var(--white);
}

/* Fragebögen: 4×2-Grid aus PDF-Karten (Icon über Titel, zentriert) */
.frageboegen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  margin-top: 44px;
}
.fragebogen-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
}
.fragebogen-karte h3 {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}
.fragebogen-karte:hover { color: var(--blue-hell); }

/* Kontaktseite: Formular links, Infos rechts (Maße vom Original) */
.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 333px;
  gap: 50px;
  align-items: start;
}

.formular-titel {
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 30px;
}

#kontakt-formular { display: grid; gap: 14px; }
.formular-zeile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

#kontakt-formular input[type="text"],
#kontakt-formular input[type="email"],
#kontakt-formular input[type="tel"],
#kontakt-formular textarea {
  width: 100%;
  background: var(--white);
  border: 0;
  border-radius: 0;
  padding: 11px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--blue);
}
#kontakt-formular ::placeholder { color: #69727d; opacity: 1; }
#kontakt-formular input:focus-visible,
#kontakt-formular textarea:focus-visible {
  outline: 2px solid var(--blue-hell);
  outline-offset: 0;
}
#kontakt-formular textarea { resize: vertical; min-height: 178px; }

.hp-feld { position: absolute; left: -9999px; top: -9999px; }

.formular-einwilligung {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 15px;
}
.formular-einwilligung input { margin-top: 4px; flex-shrink: 0; }

.formular-senden {
  justify-self: start;
  min-width: 240px;
  background: var(--blue);
  color: var(--white);
  border: 1.5px solid var(--blue);
  border-radius: 0;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  padding: 14px 30px;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s;
}
.formular-senden:hover { background: var(--white); color: var(--blue); }

.formular-hinweis { margin: 4px 0 0; font-weight: 500; }
.formular-hinweis.fehler { color: #840739; }

.kontakt-info section { margin-bottom: 34px; }
.kontakt-info h2 { font-size: 21px; margin-bottom: 10px; }
.kontakt-info p { margin: 0; }

.anfahrt-leiste--zentriert { justify-content: center; }

/* aktive Seite in der Navigation */
.site-nav a[aria-current="page"] { color: var(--blue); }
.sub-menu a[aria-current="page"] { font-weight: 500; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Tabs (Notare-Seite, wie das JetTabs-Widget des Originals) */
.tabs-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 20px;
}
.tab-knopf {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--blue);
  padding: 14px 45px 14px 0;
  text-align: left;
}
.tab-knopf[aria-selected="true"] { font-weight: 500; }
.tab-knopf:hover { color: var(--blue-hell); }

.tab-panel[hidden] { display: none; }

.notar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.notar-grid img { width: 100%; }

.portrait-link { display: block; }
.portrait-link:hover img { opacity: 0.92; }

.notar-titel { font-size: 21px; margin-bottom: 14px; }

.notar-liste {
  margin: 0 0 36px;
  padding-left: 20px;
}
.notar-liste li { margin-bottom: 8px; }
.notar-liste:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 15px;
  padding-bottom: 15px;
  min-height: 84px;
}
.footer-inner p { margin: 0; font-weight: 500; }
.footer-inner nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer a { color: var(--white); text-decoration: none; padding: 8px 0; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Breakpoints (wie gewohnt: 991 / 767 / 479)
   ============================================================ */

/* Unter ~1150px passt die Leistungen-Unterzeile nicht mehr neben das Logo →
   früher Wechsel ins Burger-Menü (das Original macht es genauso) */
@media (max-width: 1150px) {
  :root { --header-hoehe: 84px; }
  .logo img { width: 200px; }

  /* Button-Innenabstand rechts kompensieren, damit die Burger-Glyphe
     bündig mit der Inhaltskante abschließt (wie das Logo links) */
  .nav-toggle { display: block; margin-right: -9px; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: 0 8px 16px rgba(8, 65, 102, 0.15);
    display: none;
    max-height: calc(100vh - var(--header-hoehe));
    overflow-y: auto;
  }
  .site-nav.offen { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }
  .site-nav a { padding: 12px 24px; font-size: 18px; }
  /* Leistungen-Zeile: Label links, Chevron bündig an der rechten Kante */
  .has-sub { display: flex; align-items: center; flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { display: flex; padding: 12px 24px; }

  .site-nav ul.sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    flex-direction: column;
    display: none;
  }
  .has-sub.offen .sub-menu { display: flex; }
  .sub-menu a,
  .sub-menu li:first-child a { padding: 9px 24px 9px 44px; font-size: 16px; }

  .hero { height: 58vh; }

  .willkommen-grid { grid-template-columns: 1fr; gap: 40px; }
  .willkommen-text { padding-top: 10px; }
  .karte-dunkel { max-width: 420px; }

  .leistungen-grid,
  .presse-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .presse-teaser { -webkit-line-clamp: 4; }

  .anfahrt-leiste { flex-wrap: wrap; justify-content: center; }
  .anfahrt-leiste .btn-statisch { flex: 0 1 auto; }
}

@media (max-width: 767px) {
  h1, h2 { font-size: 23px; }
  br.nur-mobil { display: inline; }

  /* gleiche optische Abstände Mail↔Telefon↔Burger, alle 44px hoch */
  .kopf-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }
  .kopf-icons a { display: block; padding: 9px 8px; color: var(--blue); }
  .kopf-icons svg { display: block; }
  .header-inner { gap: 4px; }

  .hero { height: 45vh; }   /* Original: 45vh auf Mobil */

  .willkommen { padding-top: 20px; }
  .karte-dunkel { max-width: none; }

  /* Leistungen mobil wie im Original: 2 Spalten, kompakte Karten,
     verkürzte Titel (das „und“ entfällt) */
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .leistung-karte { padding: 10px; }
  .leistung-karte h3 { font-size: 16px; margin-top: 8px; }
  .leistung-karte .und { display: none; }

  /* Karte 3+4 tauschen die Farben, damit das Schachbrett auch
     im 2-Spalten-Raster erhalten bleibt (W B / B W / W B) */
  .leistung-karte:nth-child(3) { background: var(--blue); }
  .leistung-karte:nth-child(3) h3 { color: var(--white); }
  .leistung-karte:nth-child(4) { background: var(--white); }
  .leistung-karte:nth-child(4) h3 { color: var(--blue); }

  .presse-grid { grid-template-columns: 1fr; }

  .seite { padding: 32px 0 56px; }
  .seite-titel { font-size: 26px; }
  .mitteilung-titel { font-size: 26px; }

  /* Video-Fassade: kompaktes Overlay, damit es in 16:9 passt */
  .video-fassade { aspect-ratio: auto; }
  .video-fassade img { aspect-ratio: 16 / 9; }
  .video-overlay { position: static; padding: 16px 18px 18px; background: var(--blue); }
  .video-titel { font-size: 16px; }
  .video-hinweis { font-size: 13px; }
  .video-fassade iframe { position: static; aspect-ratio: 16 / 9; height: auto; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 44px; }
  .abschnitt-titel { font-size: 20px; margin-top: 36px; }
  .unter-titel { font-size: 17px; margin-top: 24px; }
  .broschueren-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .frageboegen-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .tab-knopf { font-size: 22px; padding: 8px 32px 8px 0; }
  .notar-grid { grid-template-columns: 1fr; }
  .notar-grid img { max-width: 440px; }

  /* Anfahrt mobil wie im Original: weiße Kacheln am oberen Bildrand,
     die beiden Karten-Buttons nebeneinander (halbe Breite) am unteren */
  .anfahrt-karte { align-items: stretch; }
  .anfahrt-leiste {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 24px;
  }
  .anfahrt-leiste .btn-statisch { flex: none; width: 100%; }
  /* Reihenfolge mobil: Adresse oben — Karte — Buttons — Parkplatz-Hinweis */
  .anfahrt-buttons { order: 2; margin-top: auto; width: 100%; gap: 12px; }
  .anfahrt-buttons .btn { flex: 1; padding: 15px 12px; }
  .anfahrt-leiste p.btn-statisch:last-of-type { order: 3; }

  /* Footer mobil wie im Original: Links oben (zentriert), © darunter */
  .footer-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
    padding: 28px 0 32px;
  }
  .footer-inner nav { justify-content: center; gap: 14px 28px; }
}

@media (max-width: 400px) {
  /* damit auch „Vorsorge Betreuung“ auf schmalen Displays einzeilig bleibt */
  .leistungen-grid { gap: 12px; }
  .leistung-karte h3 { font-size: 15px; }
}

@media (max-width: 479px) {
  .logo img { width: 180px; }
  .formular-zeile { grid-template-columns: 1fr; gap: 14px; }
  .formular-senden { width: 100%; }
  .karte-dunkel { padding: 24px 22px 18px; }
}
