/* maklerfinanz.com – Stylesheet
   Grundlage: Claude-Design-Entwurf „Klassisch klar“ (Styleguide 1f)
   Mobile first · Breakpoints 640 / 768 / 1024 / 1200 px */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #162f4b;
  --blue-muted: #c9d3df;
  --green: #7ab33a;
  --green-hover: #8cc44c;
  --green-dark: #4a7a1f;
  --green-darker: #3f6a19;
  --green-light: #eef4e6;
  --green-on-blue: #9fd25f;
  --grey: #f3f5f8;
  --grey-hover: #e9edf2;
  --text: #1f2a37;
  --muted: #56616e;
  --line: #e2e7ee;
  --field: #c5cdd8;
  --error: #b42318;

  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);

  --header-h: 64px;
  --gutter: 20px;
  --section-y: 48px;
  --shadow-hover: 0 12px 32px rgba(22, 47, 75, .09);
  --shadow-pop: 0 16px 40px rgba(22, 47, 75, .14);
}
@media (min-width: 640px) { :root { --gutter: 24px; --section-y: 64px; } }
@media (min-width: 1024px) { :root { --header-h: 84px; --gutter: 32px; --section-y: 80px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--blue); font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
main { display: block; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid rgba(22, 47, 75, .45); outline-offset: 3px; border-radius: 4px; }
.on-blue :focus-visible, .footer-bar :focus-visible { outline-color: var(--green-on-blue); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--text { max-width: 800px; }

.section { padding-block: var(--section-y); }
.section--grey { background: var(--grey); }
.section--flush-top { padding-top: 0; }

/* ---------- Typografie ---------- */
.h1 {
  font-size: clamp(2.125rem, 1.55rem + 2.3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h1--xl { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.h1--legal { font-size: clamp(2.125rem, 1.6rem + 2vw, 3rem); line-height: 1.1; }
.h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); line-height: 1.15; text-wrap: balance; }
.h2--sm { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.2; }
.h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.2; }
.lead { font-size: clamp(1.0625rem, .96rem + .42vw, 1.25rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lead--xl { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); }
.lead--dark { color: var(--text); }
.text-muted { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; }
.prose strong { color: var(--blue); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack--md { gap: 16px; }
.stack--lg { gap: 22px; align-items: flex-start; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 36px; } }
.section-head .lead, .section-head p { font-size: 18px; color: var(--muted); max-width: 820px; text-wrap: pretty; }

/* ---------- Knöpfe & Links ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 8px;
  font-size: 17px; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn .icon { flex: none; }
@media (min-width: 1024px) { .btn { min-height: 54px; padding: 0 26px; font-size: 18px; } }
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green-darker); color: #fff; box-shadow: 0 6px 18px rgba(74, 122, 31, .22); }
.btn-secondary { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-secondary:hover { background: var(--grey); color: var(--blue); }
.btn-accent { background: var(--green); color: var(--blue); font-weight: 700; }
.btn-accent:hover { background: var(--green-hover); color: var(--blue); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 10px; width: 100%; }
@media (min-width: 640px) { .btn-row { flex-direction: row; flex-wrap: wrap; gap: 12px; width: auto; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-dark); font-weight: 600; font-size: 18px; text-decoration: none;
}
.link-arrow .icon { transition: transform .3s var(--ease-out); }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
  view-transition-name: site-header;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(22, 47, 75, .08); border-bottom-color: transparent; }
.header-inner {
  max-width: 1200px; margin-inline: auto;
  height: var(--header-h);
  padding: 0 8px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex: none; border-radius: 6px; }
.brand img { height: 38px; width: auto; }
@media (min-width: 1024px) {
  .header-inner { padding-inline: 24px; gap: 20px; }
  .brand img { height: 50px; }
}
@media (min-width: 1200px) { .header-inner { padding-inline: 32px; gap: 32px; } }

.main-nav { display: none; }
@media (min-width: 1024px) { .main-nav { display: block; } }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; border-radius: 8px; background: transparent;
  color: var(--blue); font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--grey); color: var(--blue); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.nav-link[aria-current="page"]::after, .nav-item.is-current > .nav-link::after { transform: scaleX(1); }
.nav-item.has-sub > .nav-link::after { right: 36px; }
.nav-chevron { transition: transform .3s var(--ease-out); }
.nav-item.is-open .nav-chevron { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 10;
  min-width: 290px; padding: 8px;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98); transform-origin: 24px 0;
  transition: opacity .18s var(--ease), transform .28s var(--ease-out), visibility 0s linear .28s;
}
.nav-sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-sub__link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 8px; text-decoration: none;
  transition: background-color .2s var(--ease);
}
.nav-sub__link:hover, .nav-sub__link[aria-current="page"] { background: var(--grey); }
.nav-sub__title { font-weight: 600; font-size: 17px; color: var(--blue); }
.nav-sub__desc { font-size: 14px; color: var(--muted); }
.nav-sub__all { padding: 12px 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 16px; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 10px;
  color: var(--blue); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: background-color .2s var(--ease);
}
.header-phone:hover { background: var(--grey); color: var(--blue); }
.header-phone__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn-header { display: none; }
@media (min-width: 1024px) {
  .header-actions { gap: 8px; }
  .btn-header { display: inline-flex; min-height: 48px; font-size: 17px; padding: 0 22px; }
}
@media (min-width: 1200px) {
  .header-phone { padding: 10px 14px; }
  .header-phone__text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

.burger {
  width: 46px; height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--blue);
  display: grid; place-items: center; transition: background-color .2s var(--ease);
}
.burger:hover { background: var(--grey); }
.burger__lines { position: relative; width: 22px; height: 16px; display: block; }
.burger__lines span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease-out), opacity .2s var(--ease), top .4s var(--ease-out);
}
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 7px; }
.burger__lines span:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }

/* Mobiles Menü: Vollbild-Ebene unter der Kopfzeile */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--ease-out), visibility 0s linear .5s;
  visibility: hidden;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.mobile-menu__nav { padding: 8px 8px calc(24px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; }
.mobile-menu__nav > ul { list-style: none; }
.mm-link, .mm-sublink {
  display: flex; align-items: center; min-height: 52px; padding: 12px;
  color: var(--blue); text-decoration: none; border-radius: 8px;
}
.mm-link { font-size: 19px; font-weight: 600; }
.mm-sub { list-style: none; margin: 0 0 6px 12px; border-left: 2px solid var(--green); }
.mm-sublink { padding-left: 18px; font-size: 17px; color: var(--text); }
.mm-link:hover, .mm-sublink:hover { background: var(--grey); color: var(--blue); }
.mm-link[aria-current="page"], .mm-sublink[aria-current="page"] { color: var(--green-dark); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 0; }
.mobile-menu__nav > ul > li, .mobile-menu__actions {
  opacity: 0; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__nav > ul > li, .mobile-menu.is-open .mobile-menu__actions { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav > ul > li:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu__nav > ul > li:nth-child(2) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__nav > ul > li:nth-child(3) { transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__nav > ul > li:nth-child(4) { transition-delay: .2s; }
.mobile-menu.is-open .mobile-menu__nav > ul > li:nth-child(5) { transition-delay: .24s; }
.mobile-menu.is-open .mobile-menu__actions { transition-delay: .3s; }
html.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Brotkrumen ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--blue); font-weight: 600; }
.nowrap { white-space: nowrap; }
@media (max-width: 639px) {
  .crumbs ol { font-size: 14px; }
  .crumbs li:first-child { display: none; }
  .crumbs li:nth-child(2)::before { content: none; }
  .crumbs:has(li:nth-child(2):last-child) { display: none; }
}

/* ---------- Einstieg (Hero) ---------- */
.hero { padding-block: 32px 40px; }
@media (min-width: 1024px) { .hero { padding-block: 72px 80px; } }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero-copy { gap: 24px; }
  .hero-copy .btn-row { margin-top: 8px; }
}
.hero-copy .lead { max-width: 520px; }
.hero-media { position: relative; height: 230px; border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .hero-media { height: 320px; } }
@media (min-width: 1024px) { .hero-media { height: 420px; border-radius: 16px; } }
.hero-media .ph { border-radius: inherit; }

.page-hero { background: var(--grey); padding-block: 24px 40px; }
.page-hero--white { background: #fff; }
@media (min-width: 1024px) { .page-hero { padding-block: 40px 64px; } }
.page-hero__grid { display: grid; gap: 24px; align-items: center; }
.page-hero__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.page-hero__copy .lead { max-width: 560px; }
.page-hero__media { height: 200px; border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .page-hero__media { height: 300px; } }
@media (min-width: 1024px) {
  .page-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .page-hero__copy { gap: 22px; }
  .page-hero__media { height: 380px; border-radius: 16px; }
}
.page-hero__copy--wide .lead { max-width: 760px; }
.page-hero__copy--wide .h1 { max-width: 900px; }

/* ---------- Foto-Platzhalter ---------- */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 120px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  background-color: #e6ebf1;
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(22, 47, 75, .07) 16px 17px);
  border: 1px dashed #9aa8b8; border-radius: 16px;
}
.ph__inner { display: flex; flex-direction: column; gap: 6px; align-items: center; color: #3b4a5c; max-width: 260px; }
.ph__kicker { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ph__label { font-size: 16px; font-weight: 600; color: var(--blue); line-height: 1.3; }
.ph__hint { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- Karten & Kacheln ---------- */
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid { gap: 20px; } .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  color: var(--text);
}
@media (min-width: 1024px) { .card { padding: 28px; } }
.card--lg { gap: 16px; }
@media (min-width: 1024px) { .card--lg { padding: 32px; } }
.card--blue { background: var(--blue); border-color: var(--blue); color: #fff; justify-content: center; gap: 12px; }
.card--blue .card__title { color: #fff; }
.card--blue .card__text { color: var(--blue-muted); line-height: 1.55; }
.card__title { font-size: clamp(1.25rem, 1.15rem + .35vw, 1.375rem); font-weight: 700; line-height: 1.2; color: var(--blue); text-wrap: pretty; }
.card__title--lg { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.card__text { font-size: 16px; line-height: 1.5; color: var(--muted); }
.card--lg .card__text { font-size: 17px; }

a.card { text-decoration: none; transition: border-color .25s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease-out); }
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); color: var(--text); }
a.card:hover .link-arrow .icon, a.card:hover .card__chevron { transform: translateX(4px); }
a.card .card__more { margin-top: auto; font-size: 16px; }

.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--green-light); color: var(--green-dark);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.icon-tile--lg { width: 52px; height: 52px; }
.icon-tile--grey { background: var(--grey); color: var(--blue); }
a.card:hover .icon-tile { background: var(--green-dark); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--grey); color: var(--blue); font-size: 15px; font-weight: 600; line-height: 1.3; }
@media (max-width: 639px) { .chips { gap: 6px; } .chips li { font-size: 14px; padding: 6px 10px; } }

/* Leistungs-Kacheln Startseite: auf dem Handy kompakt (Icon links, Pfeil rechts) */
.service-card .card__short, .service-card .card__chevron { display: none; }
@media (max-width: 639px) {
  .service-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px; min-height: 72px; border-radius: 12px; }
  .service-card .icon-tile { width: 44px; height: 44px; border-radius: 10px; }
  .service-card .icon-tile .icon { width: 22px; height: 22px; }
  .service-card .card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .service-card .card__title { font-size: 17px; line-height: 1.25; }
  .service-card .card__text, .service-card .card__more { display: none; }
  .service-card .card__short { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); }
  .service-card .card__chevron { display: block; flex: none; color: var(--green-dark); transition: transform .3s var(--ease-out); }
}
@media (min-width: 640px) { .service-card .card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; } .service-card .card__text { flex: 1; } }

/* Warum maklerfinanz */
.why { display: grid; gap: 28px; }
.why__intro { display: flex; flex-direction: column; gap: 14px; }
.why__intro p { font-size: 18px; color: var(--muted); text-wrap: pretty; }
.why__list { display: grid; gap: 20px; list-style: none; }
.why__item { display: flex; gap: 14px; align-items: flex-start; }
.why__item .icon-tile { width: 44px; height: 44px; border-radius: 10px; }
.why__title { display: block; font-size: 19px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.why__text { font-size: 17px; line-height: 1.5; color: var(--muted); }
@media (min-width: 768px) { .why__list { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
@media (min-width: 1024px) { .why { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; } .why__title { font-size: 20px; } }

/* So läuft die Beratung ab – mit Verbindungslinie */
.steps { position: relative; }
.steps__list { display: grid; gap: 14px; list-style: none; }
@media (min-width: 768px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { flex-direction: row; gap: 14px; }
@media (min-width: 768px) { .step { flex-direction: column; gap: 12px; } }
.step__num {
  position: relative; z-index: 2;
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
}
@media (min-width: 768px) { .step__num { width: 40px; height: 40px; font-size: 18px; } }
.step__body { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 768px) { .step__body { gap: 12px; } }
.step__title { font-size: 18px; font-weight: 700; color: var(--blue); line-height: 1.25; }
@media (min-width: 768px) { .step__title { font-size: 22px; } }
.step__text { font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (min-width: 768px) { .step__text { font-size: 17px; } }
.steps__line { display: none; }
.steps.has-line .steps__line {
  display: block; position: absolute; z-index: 1; pointer-events: none;
  background: var(--green); border-radius: 2px;
  left: var(--lx, 0); top: var(--ly, 0); width: var(--lw, 2px); height: var(--lh, 2px);
}

/* Große Kacheln (Versicherung Übersicht) */
.feature-card { display: grid; padding: 0; overflow: hidden; border-radius: 16px; gap: 0; }
.feature-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.feature-card__title { font-size: clamp(1.625rem, 1.4rem + .9vw, 1.875rem); font-weight: 700; color: var(--blue); line-height: 1.15; }
.feature-card__text { font-size: 17px; line-height: 1.5; color: var(--muted); flex: 1; }
.feature-card__media { order: -1; height: 150px; }
.feature-card__media .ph { border-radius: 0; border-width: 0 0 1px; }
@media (min-width: 640px) {
  .feature-card { grid-template-columns: 1fr 200px; }
  .feature-card__media { order: 0; height: auto; }
  .feature-card__media .ph { border-width: 0 0 0 1px; }
}
@media (min-width: 1024px) {
  .feature-card { grid-template-columns: 1fr 220px; }
  .feature-card__body { padding: 32px; gap: 14px; }
}

/* Dunkelblaues Hinweis-Band (Versicherungs-Check) */
.cta-band {
  display: grid; gap: 18px; align-items: center;
  background: var(--blue); color: #fff; border-radius: 14px; padding: 24px;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122, 179, 58, .16), rgba(122, 179, 58, 0));
  transform: translate3d(0, 0, 0);
}
.cta-band__title { display: block; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); font-weight: 700; line-height: 1.2; color: #fff; }
.cta-band__text { display: block; margin-top: 10px; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.5; color: var(--blue-muted); max-width: 640px; text-wrap: pretty; }
.cta-band .btn { justify-self: stretch; }
@media (min-width: 768px) {
  .cta-band { grid-template-columns: 1fr auto; gap: 40px; padding: 40px 44px; border-radius: 18px; }
  .cta-band .btn { justify-self: auto; }
}
@media (min-width: 1024px) { .cta-band { padding: 44px 48px; } }

/* Zweispaltig: Überschrift links, Text rechts */
.split { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.4fr; gap: 72px; } }
.split--center { align-items: center; }
@media (min-width: 1024px) { .split--half { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Hinweis-Box */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--green-light); border-radius: 14px; padding: 18px 20px;
  font-size: 17px; line-height: 1.55;
}
.notice .icon { color: var(--green-dark); width: 26px; height: 26px; }
.notice strong { color: var(--blue); }
@media (min-width: 1024px) { .notice { gap: 20px; padding: 24px 28px; } .notice .icon { width: 28px; height: 28px; } }

/* Liste mit Icons (Immobilien) */
.icon-list { list-style: none; }
.icon-list__item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.icon-list__item .icon-tile { width: 44px; height: 44px; }
.icon-list__title { display: block; font-size: 19px; font-weight: 700; color: var(--blue); margin-bottom: 4px; line-height: 1.25; }
.icon-list__text { font-size: 17px; line-height: 1.5; color: var(--muted); }
@media (min-width: 1024px) {
  .icon-list__item { grid-template-columns: 48px 1fr; gap: 20px; padding: 22px 0; }
  .icon-list__item .icon-tile { width: 48px; height: 48px; }
  .icon-list__title { font-size: 21px; }
}

/* Häkchen-Liste */
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.55; }
.tick-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.tick-list .icon { color: var(--green-dark); margin-top: 2px; }

/* ---------- Häufige Fragen ---------- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
@media (min-width: 768px) { .faq { border-radius: 14px; padding: 0 28px; } }
.faq--on-white { border-color: var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { margin: 0; font-size: inherit; }
.faq__btn {
  width: 100%; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; border: 0; background: transparent; text-align: left;
  color: var(--blue); font-size: 17px; font-weight: 600; line-height: 1.3;
  transition: color .2s var(--ease);
}
.faq__btn:hover { color: var(--green-dark); }
.faq__btn .icon { flex: none; color: var(--green-dark); transition: transform .4s var(--ease-out); }
.faq__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
@media (min-width: 768px) { .faq__btn { font-size: 20px; padding: 22px 0; gap: 20px; } }
.faq__a p { padding: 0 0 18px; font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (min-width: 768px) { .faq__a p { padding: 0 40px 24px 0; font-size: 17px; } }
.js .faq__a {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .45s var(--ease-out), visibility 0s linear .45s;
}
.js .faq__a > div { overflow: hidden; min-height: 0; }
.js .faq__a p { opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .45s var(--ease-out); }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.js .faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .08s; }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
@media (min-width: 768px) { .form { gap: 18px; } }
.form--card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
@media (min-width: 768px) { .form--card { border-radius: 16px; padding: 28px; } }
.form--lg { gap: 20px; }
@media (min-width: 768px) { .form--lg.form--card { padding: 36px; box-shadow: 0 8px 32px rgba(22, 47, 75, .06); } }
.form-row { display: grid; gap: 16px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; gap: 20px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label, .fieldset legend { font-size: 15px; font-weight: 600; color: var(--blue); }
.req { color: var(--green-dark); }
.opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; height: 52px; padding: 0 14px;
  border: 1.5px solid var(--field); border-radius: 8px; background: #fff;
  font-size: 17px; color: var(--text); font-weight: 400;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #7b8794; }
.input:hover { border-color: #a9b4c2; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 47, 75, .18); }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
@media (min-width: 768px) { textarea.input { min-height: 110px; } }
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a7a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.field__error { font-size: 14px; color: var(--error); animation: fade-down .3s var(--ease-out); }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 8px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--field); border-radius: 999px; color: var(--blue); font-size: 15px; font-weight: 600;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
@media (min-width: 768px) { .choice span { min-height: 46px; padding: 0 16px; font-size: 16px; } }
.choice:hover span { border-color: var(--blue); }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid rgba(22, 47, 75, .45); outline-offset: 2px; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-status { font-size: 15px; color: var(--error); }
.form-status:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { min-height: 54px; }
.form--lg .btn-submit { min-height: 56px; font-size: 18px; }
.btn-submit .spinner {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  opacity: 0; transition: opacity .2s var(--ease);
}
.btn-submit.is-loading { pointer-events: none; }
.btn-submit.is-loading .btn-submit__label { opacity: 0; }
.btn-submit.is-loading .spinner { opacity: 1; animation: spin .8s linear infinite; }
.btn-submit__label { transition: opacity .2s var(--ease); }

.form-shell { position: relative; }
.form-success {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__title { font-size: 24px; font-weight: 700; color: var(--blue); line-height: 1.2; }
.form-success__text { font-size: 17px; color: var(--muted); }
.success-mark__circle { stroke: var(--green); stroke-dasharray: 183; stroke-dashoffset: 183; }
.success-mark__tick { stroke: var(--green-dark); stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-success.is-shown { animation: success-in .6s var(--ease-out) both; }
.form-success.is-shown .success-mark__circle { animation: draw .8s var(--ease-out) .1s forwards; }
.form-success.is-shown .success-mark__tick { animation: draw .5s var(--ease-out) .55s forwards; }

/* ---------- Kontaktbereich (auf allen Leistungsseiten) ---------- */
.contact-band { background: var(--grey); padding-block: var(--section-y); }
.contact-band__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 768px) { .contact-band__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; } }
.contact-band__info { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .contact-band__info { gap: 20px; } }
.contact-band__lead { font-size: 18px; max-width: 460px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.contact-list__item { display: flex; align-items: center; gap: 14px; color: var(--blue); text-decoration: none; font-size: 17px; font-weight: 600; }
.contact-list__item--phone { font-size: 22px; font-weight: 700; }
.contact-list__item--plain { color: var(--text); font-weight: 400; }
a.contact-list__item:hover { color: var(--green-dark); }
.icon-box {
  width: 44px; height: 44px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--green-dark);
  transition: border-color .25s var(--ease), transform .35s var(--ease-out);
}
a.contact-list__item:hover .icon-box { border-color: var(--green-dark); }

/* Kontakt-Kacheln (Kontaktseite, Downloads) */
.info-tile {
  display: flex; align-items: center; gap: 14px;
  background: var(--grey); border-radius: 12px; padding: 16px;
  color: var(--blue); text-decoration: none;
  transition: background-color .25s var(--ease);
}
@media (min-width: 768px) { .info-tile { gap: 16px; border-radius: 14px; padding: 22px; } }
a.info-tile:hover { background: var(--grey-hover); color: var(--blue); }
.info-tile .icon-tile { background: #fff; color: var(--green-dark); width: 44px; height: 44px; border-radius: 10px; }
@media (min-width: 768px) { .info-tile .icon-tile { width: 48px; height: 48px; border-radius: 12px; } }
a.info-tile:hover .icon-tile { background: var(--green-dark); color: #fff; }
.info-tile__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-tile__label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 768px) { .info-tile__label { font-size: 14px; } }
.info-tile__value { font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.info-tile__value--sm { font-size: 17px; font-weight: 600; }
@media (min-width: 768px) { .info-tile__value { font-size: 22px; } .info-tile__value--sm { font-size: 19px; } }
.info-tile__value--addr { font-size: 17px; font-weight: 400; line-height: 1.4; }
@media (min-width: 768px) { .info-tile__value--addr { font-size: 18px; } }
.info-tile__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.info-tile__meta { font-size: 14px; color: var(--muted); }

.map-card { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; transition: border-color .25s var(--ease), box-shadow .35s var(--ease); }
.map-card:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); }
.map-card .ph { border-radius: 0; border-width: 0 0 1px; }
.map-card__media { height: 210px; }
.map-card__media--lg { height: 240px; }
@media (min-width: 768px) { .map-card__media--lg { height: 360px; } }
.map-card__media--lg .ph { border-width: 0; }
.map-card__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; font-size: 16px; color: var(--green-dark); }
@media (min-width: 768px) { .map-card__foot { padding: 14px 18px; } }
.map-card:hover .map-card__foot .icon { transform: translateX(4px); }
.map-card__foot .icon { transition: transform .3s var(--ease-out); }

/* Kontaktseite */
.contact-page { display: grid; gap: 16px; grid-template-areas: "phone" "form" "mail" "addr" "map"; }
.contact-page__phone { grid-area: phone; }
.contact-page__form { grid-area: form; margin-bottom: 8px; }
.contact-page__mail { grid-area: mail; }
.contact-page__addr { grid-area: addr; }
.contact-page__map { grid-area: map; }
@media (min-width: 1024px) {
  .contact-page {
    grid-template-columns: 1.2fr .8fr; column-gap: 40px; row-gap: 16px;
    grid-template-areas: "form phone" "form mail" "form addr" "form map";
    grid-template-rows: auto auto auto 1fr; align-items: start;
  }
  .contact-page__form { margin-bottom: 0; }
}

/* Über uns */
.about-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .about-hero { grid-template-columns: 1fr 420px; gap: 72px; } }
.portrait { height: 360px; border-radius: 14px; overflow: hidden; }
@media (min-width: 1024px) { .portrait { height: 500px; border-radius: 16px; } }
.person { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.person__name { font-size: 22px; font-weight: 700; color: var(--blue); }
.person__role { font-size: 16px; color: var(--muted); }
.person__phone { margin-top: 8px; color: var(--green-dark); font-weight: 600; font-size: 17px; text-decoration: none; }

.about-teaser { display: grid; gap: 20px; align-items: center; }
.about-teaser__media { height: 240px; border-radius: 14px; overflow: hidden; }
.about-teaser__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.about-teaser__copy .lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 600px; }
@media (min-width: 768px) { .about-teaser { grid-template-columns: 300px 1fr; gap: 48px; } .about-teaser__media { height: 380px; } }
@media (min-width: 1024px) { .about-teaser { grid-template-columns: 380px 1fr; gap: 64px; } .about-teaser__media { height: 440px; border-radius: 16px; } .about-teaser__copy { gap: 20px; } }

/* Karriere */
.job { display: grid; gap: 40px; align-items: start; }
.job__content { display: flex; flex-direction: column; gap: 36px; }
.job__block { display: flex; flex-direction: column; gap: 12px; }
.job__block p { font-size: 18px; line-height: 1.6; }
.job__aside { display: flex; flex-direction: column; gap: 20px; }
.job__media { height: 220px; border-radius: 14px; overflow: hidden; }
.apply { background: var(--blue); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.apply__title { font-size: 24px; font-weight: 700; color: #fff; }
.apply__muted { font-size: 17px; line-height: 1.55; color: var(--blue-muted); }
.apply__addr { font-size: 17px; line-height: 1.55; }
.apply .btn { margin-top: 6px; }
.apply__mail { font-size: 15px; color: var(--blue-muted); }
@media (min-width: 1024px) {
  .job { grid-template-columns: 1fr 1fr; gap: 64px; }
  .job__content { gap: 40px; }
  .job__aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .job__media { height: 300px; border-radius: 16px; }
  .apply { padding: 32px; }
}

/* Erstinformation */
.info-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .info-layout { grid-template-columns: 1.3fr .7fr; gap: 64px; } .info-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.def-list { margin: 20px 0 0; }
.def-list__row { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.def-list__row:last-child { border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 700; color: var(--blue); }
.def-list dd { margin: 0; overflow-wrap: anywhere; }
.def-list a { text-decoration: none; }
.def-list a:hover { text-decoration: underline; }
@media (min-width: 768px) { .def-list__row { grid-template-columns: 220px 1fr; gap: 12px 24px; padding: 18px 0; } }
.downloads { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .downloads { gap: 16px; } }

/* Rechtstexte */
.legal { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.6; }
@media (min-width: 768px) { .legal { gap: 28px; } }
.legal h2 { font-size: clamp(1.375rem, 1.25rem + .5vw, 1.625rem); line-height: 1.25; margin-top: 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal a { overflow-wrap: anywhere; }
.legal ul { display: flex; flex-direction: column; gap: 6px; padding-left: 1.25em; margin-top: -8px; }
.legal li::marker { color: var(--green-dark); }
.facts { display: grid; gap: 22px; background: var(--grey); border-radius: 14px; padding: 22px; }
@media (min-width: 768px) { .facts { grid-template-columns: 1fr 1fr; gap: 28px 40px; border-radius: 16px; padding: 32px; } }
.facts__item { display: flex; flex-direction: column; gap: 4px; }
.facts__label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc { display: flex; flex-direction: column; gap: 4px; background: var(--grey); border-radius: 14px; padding: 20px 22px; }
@media (min-width: 768px) { .toc { border-radius: 16px; padding: 24px 28px; } }
.toc__label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc ol { list-style: none; display: flex; flex-direction: column; }
.toc a { display: inline-block; padding: 5px 0; color: var(--green-dark); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.todo { color: var(--error); font-weight: 600; }
.legal-hint { font-size: 15px; color: var(--muted); }

/* Danke- & Fehlerseite */
.message-page { padding-block: 64px 96px; }
.message-page__inner { max-width: 640px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.message-page .success-mark__circle, .message-page .success-mark__tick { animation: draw .9s var(--ease-out) .2s forwards; }
.message-page .success-mark__tick { animation-delay: .7s; animation-duration: .5s; }

/* ---------- Fußbereich ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; padding-block: 40px 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1024px) { .footer-grid { gap: 36px; padding-block: 48px 8px; } }
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-brand img { height: 44px; width: auto; }
.footer-address { font-size: 16px; line-height: 1.55; color: var(--muted); }
.footer-label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-phone { color: var(--blue); font-weight: 600; font-size: 18px; text-decoration: none; }
.footer-link { color: var(--blue); font-size: 17px; text-decoration: none; background: linear-gradient(var(--green-dark), var(--green-dark)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out), color .2s var(--ease); padding-bottom: 1px; }
.footer-link:hover, .footer-phone:hover { color: var(--green-dark); background-size: 100% 1px; }
.footer-note { padding-block: 28px; color: var(--muted); font-size: 16px; }
.footer-bar { background: var(--blue); color: var(--blue-muted); font-size: 14px; line-height: 1.5; }
.footer-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding-block: 16px; }

/* ---------- Feste Leiste unten (Handy) ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(22, 47, 75, .08);
  transform: translateY(0);
  transition: transform .45s var(--ease-out);
  view-transition-name: mobile-bar;
}
.mobile-bar.is-hidden { transform: translateY(115%); }
.btn-bar { min-height: 50px; padding: 0 12px; font-size: 16px; gap: 8px; }
/* Platz für die feste Leiste: die dunkle Fußleiste läuft darunter weiter */
.footer-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  .footer-bar { padding-bottom: 0; }
}
html.menu-open .mobile-bar { transform: translateY(115%); }

/* ---------- Animationen ---------- */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes rise-soft { from { opacity: 0; transform: translate3d(0, .35em, 0); filter: blur(6px); } }
@keyframes unveil {
  from { clip-path: inset(10% 8% 10% 8% round 24px); opacity: 0; }
  35% { opacity: 1; }
  to { clip-path: inset(0 0 0 0 round 0); opacity: 1; }
}
@keyframes settle { from { transform: scale(1.08); } }
@keyframes bar-in { from { transform: translateY(115%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }
@keyframes success-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes pop {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(122, 179, 58, .45); }
  35% { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(122, 179, 58, .18); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(122, 179, 58, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Einstieg: eine ruhige, abgestimmte Sequenz beim Laden */
  .anim-title { animation: rise-soft 1.1s var(--ease-out) .05s both; }
  .anim-1 { animation: rise .9s var(--ease-out) .08s both; }
  .anim-2 { animation: rise .9s var(--ease-out) .2s both; }
  .anim-3 { animation: rise .9s var(--ease-out) .32s both; }
  .anim-4 { animation: rise .9s var(--ease-out) .44s both; }
  .anim-media { animation: unveil 1.4s var(--ease-out) .18s both; }
  .anim-media > .ph, .anim-media .media-img { animation: settle 1.8s var(--ease-out) .18s both; }
  .mobile-bar { animation: bar-in .7s var(--ease-out) .9s both; }

  /* Beim Scrollen: kurze, weiche Einblendung, einmalig */
  .reveal {
    opacity: 0; transform: translate3d(0, 28px, 0);
    transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Verbindungslinie der Beratungsschritte */
  .steps.has-line .steps__line { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease-in-out) .25s; }
  .steps.has-line.is-vertical .steps__line { transform: scaleY(0); transform-origin: center top; }
  .steps.has-line.line-go .steps__line { transform: none; }
  .steps.line-go .step:nth-of-type(1) .step__num { animation: pop .9s var(--ease-out) .25s both; }
  .steps.line-go .step:nth-of-type(2) .step__num { animation: pop .9s var(--ease-out) .8s both; }
  .steps.line-go .step:nth-of-type(3) .step__num { animation: pop .9s var(--ease-out) 1.35s both; }

  /* Seitenwechsel: sanfte Überblendung (Chrome, Edge, Safari) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .success-mark__circle, .success-mark__tick { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .mobile-bar, .mobile-menu, .contact-band form, .skip-link { display: none !important; }
  body { padding: 0; }
}

/* ---------- Seitenspezifisch ---------- */
.immo-split { margin-top: 40px; }
@media (min-width: 1024px) { .immo-split { margin-top: 64px; } }
@media (min-width: 1024px) { .page-hero--white.page-hero { padding-block: 56px 80px; } }
.contact-hero { padding-top: 28px; }
@media (min-width: 1024px) { .contact-hero { padding-top: 56px; } }
.contact-intro { max-width: 720px; margin-bottom: 24px; }
@media (min-width: 1024px) { .contact-intro { margin-bottom: 40px; } }
.downloads-title { margin-bottom: 16px; }

/* ---------- Fotos ---------- */
picture { display: contents; }
.media-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  background: #e6ebf1;
}
.pos-30 { object-position: 50% 30%; }
.pos-35 { object-position: 50% 35%; }
.pos-60 { object-position: 50% 60%; }
.pos-work { object-position: 58% 28%; }
.hero-media, .page-hero__media, .about-teaser__media, .job__media, .feature-card__media { background: #e6ebf1; }
.feature-card__media { overflow: hidden; }
.feature-card__media .media-img { transition: transform 1.2s var(--ease-out); }
a.feature-card:hover .feature-card__media .media-img { transform: scale(1.045); }
@media (min-width: 640px) { .feature-card__media { border-left: 1px solid var(--line); } }
/* Nachgeladene Fotos blenden weich ein, sobald sie da sind */
@media (prefers-reduced-motion: no-preference) {
  .js .media-img[loading="lazy"] { opacity: 0; transition: opacity .8s var(--ease), transform 1.2s var(--ease-out); }
  .js .media-img[loading="lazy"].is-loaded { opacity: 1; }
}

/* ---------- Standort-Kachel (statt Kartenausschnitt) ---------- */
.loc {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 50%, #1d3b5c 0%, var(--blue) 70%);
  color: rgba(255, 255, 255, .11);
}
.loc__lines { position: absolute; inset: -10%; width: 120%; height: 120%; z-index: -1; transition: transform 1.6s var(--ease-out); }
.map-card:hover .loc__lines { transform: scale(1.06); }
.loc__pin {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--blue);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transform: translateY(-14px);
}
.loc__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; }
.loc__label {
  position: absolute; left: 50%; top: calc(50% + 30px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0; white-space: nowrap;
  color: #fff; text-align: center;
}
.loc__city { font-size: 20px; font-weight: 700; line-height: 1.2; }
.loc__street { font-size: 15px; color: var(--blue-muted); }
.loc--lg .loc__pin { width: 64px; height: 64px; }
.loc--lg .loc__city { font-size: 24px; }
.loc--lg .loc__label { top: calc(50% + 36px); }
.map-card .loc { border-bottom: 1px solid var(--line); }
.map-card__media--lg .loc { border-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .loc__pulse { animation: loc-pulse 2.8s var(--ease-out) 1s 4; }
}
@keyframes loc-pulse {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.3); }
}
