/* ==========================================================================
   Immoborn Immobilienvermittlung — Stylesheet
   Layout-Prinzipien angelehnt an florin-immobilien.de / Architekturseiten:
   ruhiges editoriales Layout, viel Weißraum, klare Typografie. Farbpalette
   aus dem Immoborn-Logo abgeleitet (Navy/Cyan/Grau) und WCAG-AA-geprüft —
   siehe Kontrastwerte bei jeder Variable unten.
   ========================================================================== */

:root {
  /* Aus dem Logo extrahierte Markenfarben (exakte Pixelwerte) */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F6FA;              /* kühles Hellgrau-Blau statt neutralem Grau */
  --color-ink: #16213E;                 /* dunkles Logo-Navy, auf Weiß: 15,9:1 */
  --color-ink-soft: #545E72;            /* abgeleiteter Grauton für Fließtext, auf Weiß: 6,5:1 */
  --color-accent: #244082;              /* Logo-Navy, auf Weiß: 9,9:1 — Buttons, Links, Fokus */
  --color-accent-soft: #E8ECF5;         /* helle Navy-Tönung für Flächen/Badges */
  --color-cyan: #00B1EB;                /* Logo-Cyan — NUR auf dunklem Grund (Kontrast auf Weiß zu gering) */
  --color-cyan-dark: #006A8D;           /* WCAG-sichere Cyan-Variante, auf Weiß: 6,1:1 */
  --color-line: #DDE3EE;
  --color-white: #FFFFFF;
  --color-error: #8A3A2A;               /* Formular-Fehler (Text/Rahmen), auf Weiß: 5,95:1 */
  --color-error-soft: #F4DDD8;

  /* Erweiterte Markenpalette: Primary/Secondary aus dem Logo (identisch zu
     --color-accent/--color-cyan oben), Tertiary neu für CTA-Buttons. */
  --color-primary: var(--color-accent);
  --color-secondary: var(--color-cyan);
  --color-tertiary: #DD6E42;            /* CTA-Akzent, auf Ink: 4,8:1 — als Fläche/Rahmen einsetzen */
  --color-tertiary-text: #B5562E;       /* abgedunkelte Variante für Text/kleine Flächen, auf Weiß: 4,8:1 */

  /* Geometrische Grotesk, angelehnt an die Logo-Type (runde "o"/"b", dünne
     Strichstärke) — nur Systemschriften, keine externen Font-Requests
     (siehe Datenschutzerklärung: keine Drittanbieter-Schriften). Futura ist
     auf macOS/iOS vorinstalliert und der Logo-Anmutung am nächsten. */
  --font-body: "Futura", "Century Gothic", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  /* Verhindert horizontales Scrollen/"ausbrechende" Elemente, u.a. durch
     den Full-Bleed-Hero (100vw-Technik) auf schmalen Screens. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Sichtbarer Fokusring für Tastaturnutzung (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 300;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: break-word;
}

p { overflow-wrap: break-word; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

/* ---------- Icon-Sprite (inline SVG <use>, keine externen Requests) ---------- */

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.85);
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.9rem);
  padding: 0.5rem var(--pad);
  font-size: 0.8rem;
}

.topbar-inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.topbar-inner a:hover,
.topbar-inner a:focus-visible {
  color: var(--color-secondary);
}

.topbar-inner .icon { width: 14px; height: 14px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.logo-img {
  height: 39px; /* 34px + 15% */
  width: auto;
  display: block;
}

.main-nav { display: flex; justify-content: center; min-width: 0; }

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--color-accent);
  transition: right 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { right: 0; }

/* ---------- "Leistungen"-Dropdown ---------- */
/* Desktop: Hover zeigt das Menü sofort (nur bei echten Maus-Zeigern, siehe
   @media (hover: hover) unten — auf Touch-Geräten wäre ein Hover-Trigger
   unzuverlässig/ein "sticky hover"-Bug). Click/Tap wird zusätzlich per JS
   behandelt (js/nav.js) — nötig für Tastatur- und Touch-Bedienung. */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0 0 2px;
  margin: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--color-accent);
  transition: right 0.25s ease;
}
.nav-dropdown-toggle:focus-visible::after,
.nav-dropdown-toggle[aria-expanded="true"]::after { right: 0; }

.nav-dropdown-caret { width: 11px; height: 11px; transition: transform 0.2s ease; flex-shrink: 0; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 230px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: 0 18px 32px -16px rgba(23,23,22,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown:hover .nav-dropdown-toggle::after { right: 0; }
  .nav-dropdown:hover .nav-dropdown-caret { transform: rotate(180deg); }
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  background: var(--color-white);
  border: 1.5px solid var(--color-secondary);
  color: var(--color-secondary);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
}

/* Anruf-Icon: ersetzt auf Mobile die Topbar als Weg, direkt anzurufen —
   sitzt links neben dem Burger-Menü, nur unterhalb der 880px-Breite sichtbar. */
.nav-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-call .icon { width: 20px; height: 20px; }
.nav-call:hover,
.nav-call:focus-visible {
  color: var(--color-secondary);
  background: var(--color-bg-alt);
}

/* ---------- Hero (Full-Bleed-Foto) ---------- */

/* Höhe = exakt Viewport minus Topbar+Header (~112px), damit der Banner
   direkt unter Topbar/Header bündig mit dem unteren Bildschirmrand
   abschließt — kein weißer Streifen mehr, aber auch kein Abschneiden von
   Inhalten auf kurzen Viewports (untere/obere Grenze via clamp). */
.hero-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(420px, calc(100vh - 112px), 1000px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
}

.hero-full-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-full-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-full-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-full-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  /* Erst um 15%, jetzt um weitere 1/3 reduziert gegenüber der Ursprungs-
     version, damit Titel/CTA noch näher an den unteren Bildrand rutschen. */
  padding-bottom: clamp(1.4rem, 2.87vw, 2.27rem);
}

.hero-full .eyebrow { color: var(--color-cyan); }

.hero-full h1 {
  color: var(--color-white);
  font-weight: 800;
  /* Spannt bewusst über die gesamte Bannerbreite (kein max-width-Cap),
     der Außenabstand kommt allein vom .container-Padding. Um 20%
     verkleinert gegenüber der Vorversion (clamp-Werte × 0.8). */
  font-size: clamp(1.76rem, 4.8vw, 4.16rem);
  max-width: 100%;
  /* Schatten als Lesbarkeits-Sicherheitsnetz — es liegt kein Overlay mehr
     über dem Foto (auf Wunsch entfernt, damit das Bild heller wirkt). */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  /* Visuell in Großbuchstaben — per CSS statt im Markup, damit
     Screenreader weiterhin den normalen Satz vorlesen. */
  text-transform: uppercase;
}

.hero-full h1 em { font-style: italic; color: var(--color-cyan); }

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* ---------- Klassischer Zweispalten-Hero (Stadt-Landingpages) ---------- */

.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  /* stretch statt end: die rechte Spalte ist jetzt ein Bild, das die volle
     Zeilenhöhe ausfüllen soll, statt unten anzuliegen. */
  align-items: stretch;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  max-width: 34ch;
  margin-top: 1.4rem;
}

.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 320px;
}
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Buttons & Links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Weiß auf Hellblau liegt bei nur 2,5:1 Kontrast — unter dem WCAG-AA-
   Minimum (3:1 selbst für großen Text). Bewusst trotzdem so umgesetzt,
   auf ausdrücklichen Wunsch. Gilt für alle CTA-Buttons gleichermaßen
   (Hero, Break-Blöcke, Kontaktformular usw. nutzen alle .btn-primary).
   Größe einheitlich an der Referenz aus dem Hero-Banner ausgerichtet. */
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 1.5px solid var(--color-secondary);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.68rem 1.36rem;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-white);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-ink);
  background: transparent;
  color: var(--color-ink);
}
.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

/* Zurückhaltender Text-Link mit Pfeil, im Stil von florin-immobilien.de */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.btn-link:hover,
.btn-link:focus-visible {
  gap: 0.75rem;
  border-color: currentColor;
}

.hero-full .btn-link { color: var(--color-white); }

/* ---------- Section scaffolding ---------- */

section { padding-top: clamp(3.5rem, 7vw, 6.5rem); padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  flex-wrap: wrap;
}
/* Flex-Items schrumpfen ohne min-width:0 nicht unter ihre min-content-
   Breite — bei einem langen, leerzeichenlosen Wort in der Überschrift
   (z.B. "Immobilienfinanzierung?") sprengte das auf schmalen Screens den
   gesamten Container, statt dass overflow-wrap:break-word greifen konnte. */
.section-head > div { min-width: 0; }

/* h1 zusätzlich zu h2: Auf leistungen.html/faq.html ist die jeweilige
   Section-Überschrift als Seiten-H1 ausgezeichnet (Barrierefreiheit),
   auf anderen Seiten erscheint derselbe Baustein als h2. */
.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.section-head p {
  max-width: 38ch;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}

/* Modifier: Untertitel steht unter dem Titel statt daneben, in gleicher
   Breite — aktuell nur bei Leistungen eingesetzt. */
.section-head--stacked {
  flex-direction: column;
  align-items: flex-start;
}
.section-head--stacked p {
  max-width: none;
  width: 100%;
}

.alt-bg { background: var(--color-bg-alt); }

/* ---------- Leistungen ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  /* Breiter als vorher (900px), damit die Titel ("Immobilienfinanzierung"
     etc.) sicher einzeilig bleiben, statt umzubrechen. */
  max-width: 1080px;
  margin: 0 auto;
}

/* Eigene, fertig eingefärbte Icon-Grafiken (Kreis-Badge in Logo-Navy/-Cyan
   bereits im SVG enthalten) — inline statt <img>, damit der interne
   Hover-Farbwechsel (Kreis füllt sich, Linien invertieren) beim Hover der
   gesamten Kachel mitläuft. Linksbündig durch feste Breite + flex-start. */
.service-card-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-bottom: 1rem;
}
.service-card-icon .ib { fill: var(--color-white); stroke: transparent; stroke-width: 3; transition: fill 0.2s ease, stroke 0.2s ease; }
.service-card-icon .il { stroke: #23417C; transition: stroke 0.2s ease; }
.service-card-icon .ii { stroke: var(--color-white); transition: stroke 0.2s ease; }
.service-card:hover .service-card-icon .ib,
.service-card:focus-visible .service-card-icon .ib { fill: #23417C; stroke: #00AEEF; }
.service-card:hover .service-card-icon .il,
.service-card:focus-visible .service-card-icon .il { stroke: var(--color-white); }
.service-card:hover .service-card-icon .ii,
.service-card:focus-visible .service-card-icon .ii { stroke: #23417C; }

.service-card {
  background: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  padding: 1.8rem 1.9rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px -20px rgba(23,23,22,0.35);
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.9rem;
  color: inherit;
  /* Titel soll nie in eine zweite Zeile umbrechen — siehe Breakpoints
     unten, die dafür sorgen, dass die Kachel dafür immer breit genug ist. */
  white-space: nowrap;
}

.service-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  transition: color 0.2s ease;
}
.service-card:hover p,
.service-card:focus-visible p {
  color: var(--color-ink-soft);
}

/* ---------- Warum Immoborn (USP) ---------- */
/* Drei Kern-USPs mit eigens gestalteten Icon-Illustrationen (bereits
   fertig eingefärbt in Logo-Navy/-Cyan, daher kein zusätzlicher
   Kreis-Hintergrund/Icon-Sprite mehr nötig). Linksbündig statt zentriert,
   da Fließtext in dieser Länge zentriert schlecht lesbar wäre. */

/* grid-auto-flow:column + drei explizite Zeilen sorgt dafür, dass Icon-,
   Titel- und Beschreibungszeile jeweils über alle drei Spalten hinweg
   dieselbe Höhe bekommen (Titelzeile richtet sich nach dem längsten Titel)
   — dadurch beginnen alle Beschreibungstexte auf gleicher Höhe, ganz ohne
   CSS-Subgrid. */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-auto-flow: column;
  column-gap: 2.5rem;
  row-gap: 0;
  justify-items: center;
  text-align: center;
}

.usp-item { display: contents; }

.usp-icon-img {
  /* Um 10% vergrößert (88px -> 96.8px). */
  width: 96.8px;
  height: 96.8px;
  flex-shrink: 0;
  /* Abstand Icon→Titel um 20% vergrößert (1.1rem -> 1.32rem). */
  margin-bottom: 1.32rem;
}

.usp-title {
  /* Gleiche Schriftgröße/-schnitt wie die Kachel-Titel bei Leistungen (.service-card h3),
     damit Titel/Subtitel zwischen beiden Sektionen konsistent wirken. */
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.usp-item p {
  /* Gleiche Schriftgröße wie die Kachel-Beschreibung bei Leistungen (.service-card p). */
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  margin: 0;
}

/* ---------- Vorteile (Leistungsseiten) ---------- */
/* Gleiches Stilbild wie „Warum Immoborn" (USP) auf der Startseite: großes,
   zentriertes Icon, Titel und Beschreibung darunter. Da für diese
   Themen keine eigens gestalteten Icon-Illustrationen existieren wie bei
   den USPs, sitzen die vorhandenen Sprite-Icons hier in einem
   Kreis-Badge, um optisch auf dieselbe Größe/Wirkung zu kommen. */
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.vorteile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vorteile-icon {
  width: 96.8px;
  height: 96.8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  flex-shrink: 0;
  margin-bottom: 1.32rem;
}
.vorteile-icon .icon { width: 38px; height: 38px; }

.vorteile-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.vorteile-item p {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  margin: 0;
}

/* ---------- Info-Box (dezenter Hinweiskasten in Fließtext-Abschnitten) ---------- */

.info-box {
  background: var(--color-accent-soft);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink);
}
.info-box strong { color: var(--color-primary); }

/* ---------- Stat-Highlight (Kennzahlen-Leiste mit CTA als Conversion-Break
   auf längeren Leistungsseiten) ---------- */

.stat-highlight {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}
.stat-highlight-inner { max-width: 720px; margin: 0 auto; }
/* Breitere Variante für die Faktoren-Ausführung (siehe .stat-highlight-factors
   unten) — die Spalten sollen auf großen Screens spürbar mehr Raum bekommen,
   statt gedrängt in einer schmalen Spalte zu wirken. Eigene Modifier-Klasse
   statt .stat-highlight-inner direkt zu verbreitern, damit die Zahlen-Variante
   (z.B. Finanzierungsseite) unverändert bleibt. */
.stat-highlight-inner--wide { max-width: 1100px; }
.stat-highlight h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 0.9rem;
}
.stat-highlight-inner > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 auto 2.6rem;
}
.stat-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.6rem;
}
.stat-highlight-num {
  display: block;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.stat-highlight-label {
  display: block;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Alternative zum Zahlen-Grid oben: drei Text-Spalten statt Kennzahlen —
   gleiche äußere Hülle (.stat-highlight), nutzbar wenn es um erklärende
   Faktoren statt um Statistiken geht. */
.stat-highlight-factors {
  display: grid;
  /* Fest auf drei Spalten statt auto-fit — sollen immer nebeneinander
     stehen, nicht je nach Textlänge/Breite mal 2+1 umbrechen. */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.6rem;
  text-align: left;
}
/* Weiß gefüllte Karte als Kontrast zum dunkelblauen Sektionshintergrund
   statt Icon + Top-Border: grenzt die drei Aspekte klar voneinander ab. */
.stat-highlight-factor {
  background: var(--color-white);
  border-radius: 10px;
  padding: 1.75rem 1.6rem;
}
.stat-highlight-factor h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.stat-highlight-factor p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

/* ---------- Anlass-Kacheln (2x2-Raster aus .service-card, für kurze
   "wann ist X sinnvoll"-Gründe statt einer Aufzählung) ---------- */

.reason-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}
.reason-card .icon { width: 40px; height: 40px; margin-bottom: 1rem; }
/* .service-card h3 setzt white-space:nowrap für die kurzen Leistungen-Titel
   (services-grid) — die längeren Anlass-Titel hier ("Erbfall und
   Erbengemeinschaft" etc.) würden dadurch auf schmalen Karten/Mobile über
   den Kartenrand hinauslaufen statt umzubrechen. */
.reason-card h3 { white-space: normal; }

/* ---------- Checkliste (vertikale Liste in einer Karte, für kurze
   Dokumenten-/Punktlisten) ---------- */

.checklist {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink);
}
.checklist li:last-child { border-bottom: none; }
.checklist li .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.2em; color: var(--color-secondary); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  /* stretch statt center: Bild übernimmt exakt die Höhe des Textblocks
     daneben, statt einer fixen Aspect-Ratio zu folgen. */
  align-items: stretch;
}

.about-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

.about > div { min-width: 0; }

/* Um 10% vergrößert, Hellblau, fett — hebt den Namen bewusst hervor.
   h1 zusätzlich zu h2, da "Heike Hübler" auf ueber-mich.html als Seiten-H1
   ausgezeichnet ist (Barrierefreiheit), auf allen anderen Seiten aber als
   h2 im gleichen Baustein erscheint — Styling muss auf beiden identisch sein. */
.about h1,
.about h2 {
  font-size: clamp(2.2rem, 4.62vw, 3.3rem);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.8rem;
}

.about p.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 1.4rem;
}

.about p { color: var(--color-ink-soft); margin: 0 0 1.1rem; max-width: 56ch; }

.about blockquote {
  margin: 1.8rem 0 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-style: italic;
}

/* ---------- Ablauf: Nummern-Timeline + Bild ---------- */

.ablauf-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  /* center statt stretch: Die Phasen-Kette ist kürzer als das Bild und soll
     vertikal zu dessen Mitte ausgerichtet sein, statt oben oder gestreckt. */
  align-items: center;
}

.ablauf-chain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ablauf-chain-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.6rem;
}
.ablauf-chain-item:last-child { padding-bottom: 0; }

.ablauf-chain-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--color-line);
}

.ablauf-chain-marker {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ablauf-chain-body { min-width: 0; padding-top: 0.4rem; }

.ablauf-chain-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ablauf-chain-body p {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  margin: 0;
}

.ablauf-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 320px;
  /* Feste Bildproportion statt sich auf img{height:100%} zu verlassen —
     ohne definierte Höhe am Elternelement (align-items:center im Grid)
     löst height:100% nicht zuverlässig auf, wodurch die Boxgröße vom
     zufälligen Seitenverhältnis der jeweils geladenen Bilddatei abhing. */
  aspect-ratio: 4 / 5;
}
.ablauf-media picture,
.ablauf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Einsatzgebiet ---------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.area-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}
.area-card:hover,
.area-card:focus-visible {
  border-color: var(--color-cyan-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -18px rgba(23,23,22,0.35);
}

.area-name { font-size: 1.1rem; font-weight: 600; }
.area-hint { font-size: 0.82rem; color: var(--color-ink-soft); }

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line);
  max-width: 74ch;
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 1.3rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.15s ease;
}
.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--color-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-ink-soft);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2013"; }

.faq-item p {
  margin: 0.9rem 0 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  max-width: 64ch;
}

/* ---------- Kontakt ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4rem);
}

.contact-info { min-width: 0; }
/* h1 zusätzlich zu h2: Auf kontakt.html ist "Lassen Sie uns sprechen." als
   Seiten-H1 ausgezeichnet (Barrierefreiheit), auf anderen Seiten als h2. */
.contact-info h1,
.contact-info h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1.2rem; }
.contact-info p { color: var(--color-ink-soft); max-width: 40ch; }

.contact-detail {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-detail a {
  text-decoration: none;
  font-weight: 600;
}
.contact-detail a:hover,
.contact-detail a:focus-visible {
  text-decoration: underline;
}

form.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }

.field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
}

.field input, .field textarea {
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-ink);
  width: 100%;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.field textarea { resize: vertical; min-height: 120px; }

/* Pflichtfeld-Validierung: rot markierter Rahmen + kleiner Hinweistext
   direkt unter dem Feld, sobald es nach einem Absende-Versuch noch leer
   ist — Farbe allein reicht laut WCAG nicht als einziger Hinweis. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  background: var(--color-error-soft);
}
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  border-color: var(--color-error);
}
.field-error {
  font-size: 0.8rem;
  color: var(--color-error);
  margin: 0;
}

.consent-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}
.consent-field input { margin-top: 0.2rem; flex-shrink: 0; }
.consent-field span { min-width: 0; }
.consent-field a { text-decoration: underline; color: var(--color-accent); }

.consent-field.is-invalid { color: var(--color-error); }
.consent-field input[aria-invalid="true"] {
  outline: 2px solid var(--color-error);
  outline-offset: 3px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}

.form-status {
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  display: none;
}
.form-status.success { display: block; background: var(--color-accent-soft); color: var(--color-accent); }
.form-status.error { display: block; background: var(--color-error-soft); color: var(--color-error); }

/* Honeypot-Feld: für Menschen unsichtbar, aber weiterhin für Screenreader
   ausgeblendet (aria-hidden auf dem Elternelement) und nicht per Tab erreichbar. */
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Kundenstimmen ---------- */

.testimonial-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.testimonial-head .eyebrow { display: flex; justify-content: center; }
.testimonial-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.testimonial-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem;
  margin: -0.25rem;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  min-width: 0;
  transition: border-color 0.25s ease;
}
.testimonial-card:hover { border-color: var(--color-secondary); }

.testimonial-stars { display: flex; gap: 3px; }
.testimonial-star { width: 1.15rem; height: 1.15rem; fill: var(--color-secondary); }

.testimonial-quote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-line);
}

.testimonial-avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-name { margin: 0; font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.testimonial-role { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--color-ink-soft); }

.testimonial-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.testimonial-arrow svg { width: 22px; height: 22px; }
.testimonial-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.testimonial-arrow[disabled] { opacity: 0.35; cursor: default; }
.testimonial-arrow[disabled]:hover { background: var(--color-white); border-color: var(--color-line); color: var(--color-primary); }
/* Explizit nötig: die eigene display:flex-Regel oben hat dieselbe
   Spezifität wie das Browser-Standard-[hidden]{display:none} und würde es
   sonst überschreiben (Autor-CSS schlägt User-Agent-CSS immer). */
.testimonial-arrow[hidden] { display: none; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.testimonial-dots[hidden] { display: none; }
.testimonial-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-line);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.testimonial-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background: var(--color-secondary);
}

/* ---------- SEO-Textblock (Seitenende) ---------- */

.seo-text .container {
  max-width: 760px;
  text-align: center;
}

.seo-text .eyebrow { display: flex; justify-content: center; }

.seo-text h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.seo-text p {
  color: var(--color-ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
}

/* ---------- SEO-Info (ausführlicher Textblock, z.B. Startseite) ---------- */

.seo-info-intro { max-width: 760px; }
.seo-info-intro h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 1.4rem;
}
.seo-info-intro h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 2.4rem 0 1rem;
}
.seo-info-intro h3:first-child { margin-top: 0; }
.seo-info-intro p { color: var(--color-ink-soft); line-height: 1.75; margin: 0 0 1.1rem; }

.seo-info-leistungen { max-width: 1080px; margin-top: 3rem; }
.seo-info-leistungen h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 1.6rem;
}

.seo-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* Flex-Spalte je Kachel + margin-top:auto auf dem Link, damit "Mehr
   erfahren" bei allen drei Kacheln auf gleicher Höhe sitzt, unabhängig
   von der Textlänge darüber. */
.seo-links-grid > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.seo-links-grid h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.6rem;
}
.seo-links-grid p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin: 0 0 0.8rem;
}
.seo-links-grid .btn-link { margin-top: auto; }

.seo-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.4rem;
  margin: 1.4rem 0 2.4rem;
}
.seo-points-grid p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
}
/* Fetter Leitsatz als eigene Zeile, damit die Beschreibung bei allen vier
   Bausteinen auf gleicher Höhe beginnt statt unterschiedlich weit hinter
   unterschiedlich langen Leitsätzen umzubrechen. */
.seo-points-grid p strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

/* ---------- Zitat-Brecher (zentrierte Markenaussage, z.B. Startseite) ---------- */

.quote-break {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}
.quote-break-inner { max-width: 760px; margin: 0 auto; }
.quote-break-lead {
  margin: 0 0 1.2rem;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.45;
  font-weight: 600;
}
.quote-break-lead strong { color: var(--color-secondary); font-weight: 600; }
.quote-break-divider {
  width: 56px;
  height: 2px;
  background: var(--color-secondary);
  margin: 0 auto 1.2rem;
}
.quote-break-text {
  margin: 0 auto 2rem;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.footer-links a { text-decoration: none; color: var(--color-ink-soft); }
.footer-links a:hover { color: var(--color-ink); }

.footer-note { font-size: 0.8rem; color: var(--color-ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  /* Topbar entfällt auf Mobile — Anruf läuft stattdessen über das
     Telefon-Icon im Header, direkt neben dem Burger-Menü. */
  .topbar { display: none; }

  .nav-cta { display: none; }
  .nav-call { display: flex; }
  .nav-toggle { display: block; }
  /* Nur noch zwei Spalten (Logo, Aktionen) statt drei — main-nav ist als
     Dropdown ohnehin absolut positioniert und braucht keine eigene Spur
     mehr. space-between schiebt die Aktionen (Anruf + Burger) verlässlich
     ganz an den rechten Rand, statt sich auf eine leere 1fr-Spur zu verlassen. */
  .nav { grid-template-columns: auto auto; justify-content: space-between; }

  .main-nav {
    /* Desktop-Regel (.main-nav { display:flex; justify-content:center })
       zentriert sonst die geschrumpfte .nav-links-Box im Dropdown-Panel,
       statt sie linksbündig über die volle Breite anzuzeigen. */
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 24rem; overflow-y: auto; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1.2rem;
  }
  .nav-links a { display: block; padding: 0.8rem 0; }

  /* "Leistungen"-Dropdown auf Mobile: kein schwebendes Panel (würde im
     schmalen Menü seltsam wirken/abgeschnitten werden), stattdessen ein
     Akkordeon direkt im Menüfluss — auf/zu per Tap. Die Unterpunkte
     beginnen bündig mit "Leistungen" und laufen von dort aus nach
     rechts eingerückt weiter, damit die Hierarchie (Unterpunkte von
     Leistungen) klar erkennbar ist. */
  .nav-dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem 0;
  }
  .nav-dropdown-toggle::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 1.1rem;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  /* transform hier erneut zurücksetzen: die Basisregel .nav-dropdown-menu.is-open
     (translateX(-50%), fürs schwebende Desktop-Panel) hat durch die zusätzliche
     Klasse höhere Spezifität als die obige Zurücksetzung und würde die Liste
     sonst im geöffneten Zustand nach links aus dem Viewport schieben. */
  .nav-dropdown-menu.is-open { max-height: 14rem; transform: none; }
  /* .nav-dropdown:hover .nav-dropdown-menu ist noch spezifischer (3 statt 2
     Klassen/Pseudoklassen) als die Regel direkt darüber und greift auch
     unterhalb von 880px, sobald ein Zeigegerät mit Maus erkannt wird (z.B.
     verkleinertes Desktop-Browserfenster) — ohne diesen Reset schöbe sie
     die geöffnete Liste wieder aus dem Viewport. */
  .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
  .nav-dropdown-menu a { padding: 0.7rem 0; color: var(--color-ink-soft); }

  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 280px; }

  .about, .contact-wrap { grid-template-columns: 1fr; }
  .about-photo { height: auto; max-width: 420px; aspect-ratio: 3/4; margin: 0 auto; }

  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }

  /* Schon ab Tablet einspaltig — die USP-Texte sind inzwischen vollständige
     Absätze, in 2–3 schmalen Spalten schlecht lesbar. */
  /* Zurück auf normalen Zeilenfluss (statt spaltenweiser Auto-Platzierung),
     sonst würden Icon/Titel/Text der drei USPs bei nur einer Spalte
     durcheinandergeraten. */
  .usp-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    row-gap: 2.2rem;
  }
  .usp-item { display: flex; flex-direction: column; align-items: center; }

  .vorteile-grid { grid-template-columns: 1fr; row-gap: 2.2rem; }

  .stat-highlight-grid { grid-template-columns: 1fr; row-gap: 1.8rem; }
  .stat-highlight-factors { grid-template-columns: 1fr; row-gap: 1.25rem; }

  .reason-cards { grid-template-columns: 1fr; }

  .seo-links-grid { grid-template-columns: 1fr; row-gap: 2rem; }
  .seo-points-grid { grid-template-columns: 1fr; }

  /* Schon ab Tablet einspaltig statt 3 Spalten — bei 3 schmalen Spalten
     würden die langen Titel ("Immobilienfinanzierung" etc.) umbrechen. */
  .services-grid { grid-template-columns: 1fr; max-width: 420px; }

  /* Timeline und Bild stapeln sich (Bild folgt unterhalb, da im DOM nach
     der Liste) statt nebeneinander zu stehen. */
  .ablauf-layout { grid-template-columns: 1fr; }
  .ablauf-media { min-height: 280px; }

  .testimonial-card { flex: 0 0 calc((100% - 1.5rem) / 2); }

  .footer-grid { align-items: flex-start; }
}

@media (max-width: 640px) {
  .area-grid { grid-template-columns: 1fr; }

  /* Etwas schmalere Innenabstände auf sehr kleinen Displays, damit auch dort
     genug Platz für den einzeiligen Titel bleibt. */
  .services-grid { max-width: 100%; }
  .service-card { padding: 1.6rem 1.4rem; }

  .hero-full h1 { max-width: 100%; }

  .ablauf-chain-item { grid-template-columns: 2.4rem 1fr; gap: 1rem; }
  .ablauf-chain-marker { width: 2.4rem; height: 2.4rem; font-size: 0.85rem; }
  .ablauf-chain-item:not(:last-child)::before { left: 1.2rem; top: 2.4rem; }
  .ablauf-media { min-height: 220px; }
  .hero-media { min-height: 220px; }

  /* Auf Mobile volle Breite pro Karte, Pfeile weg (zu wenig Platz) —
     Navigation läuft dort über Wischen/Swipe (native Scroll-Snap) und
     die Punkte darunter. */
  .testimonial-card { flex: 0 0 100%; padding: 1.6rem 1.4rem; }
  .testimonial-arrow { display: none; }

  /* Footer auf Mobile: sauber gestapelt und zentriert statt linksbündig
     umgebrochen — je Gruppe mehr Abstand, damit Copyright und die drei
     Link-Listen klar als eigene Blöcke erkennbar bleiben. */
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
  }
  .footer-links { justify-content: center; }
}
