/* ---------- Tokens ---------- */
:root {
  --blue: #003781;          /* Allianz-Blau */
  --blue-deep: #00234f;
  --blue-soft: #e8eef6;
  --accent: var(--blue);
  --bg: #f6f7f9;            /* kühles Porzellanweiss */
  --surface: #ffffff;
  --text: #0e1a2b;
  --text-muted: #536073;
  --line: #dde3eb;
  --line-strong: #c3cddb;
  --on-blue: #f4f7fb;
  --on-blue-muted: rgb(244 247 251 / .78);
  --on-blue-accent: #b9d1f2;
  --btn-bg: var(--blue);
  --btn-bg-hover: var(--blue-deep);
  /* Blaue Flächen (Kacheln, Kontakt, Call-to-Action) */
  --panel: linear-gradient(155deg, #003781 0%, #002a63 55%, #00204a 100%);
  /* Aurora: weiche Lichtflächen im Hintergrund (Seitenkopf und blaue Flächen) */
  --aurora-1: rgb(0 55 129 / .2);
  --aurora-2: rgb(74 135 214 / .28);
  --aurora-3: rgb(160 196 240 / .35);
  --aurora-panel-1: rgb(110 160 235 / .45);
  --aurora-panel-2: rgb(185 209 242 / .22);
  --aurora-panel-3: rgb(0 18 52 / .55);
  --shadow: 0 30px 70px -40px rgb(0 35 79 / .45);
  --shadow-soft: 0 18px 40px -30px rgb(0 35 79 / .35);
  --grain-opacity: .035;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  /* Formen: Flächen und Karten mit feinem Radius, Knöpfe und Hinweise als Pille, das Portrait als Bogen */
  --radius: 6px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #9cbfee;
    --blue-soft: #12223a;
    --bg: #070d18;
    --surface: #0c1525;
    --text: #e9eef5;
    --text-muted: #9aa8ba;
    --line: #1b2840;
    --line-strong: #2a3b58;
    --btn-bg: #1d5bb5;
    --btn-bg-hover: #2a6cc9;
    --panel: linear-gradient(155deg, #0d2f66 0%, #0a2550 55%, #081c3e 100%);
    --aurora-1: rgb(29 91 181 / .32);
    --aurora-2: rgb(156 191 238 / .1);
    --aurora-3: rgb(0 55 129 / .45);
    --aurora-panel-1: rgb(90 145 230 / .35);
    --aurora-panel-2: rgb(185 209 242 / .14);
    --aurora-panel-3: rgb(0 10 32 / .6);
    --shadow: 0 30px 70px -40px rgb(0 0 0 / .8);
    --shadow-soft: 0 18px 40px -30px rgb(0 0 0 / .7);
    --grain-opacity: .05;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #9cbfee;
  --blue-soft: #12223a;
  --bg: #070d18;
  --surface: #0c1525;
  --text: #e9eef5;
  --text-muted: #9aa8ba;
  --line: #1b2840;
  --line-strong: #2a3b58;
  --btn-bg: #1d5bb5;
  --btn-bg-hover: #2a6cc9;
  --panel: linear-gradient(155deg, #0d2f66 0%, #0a2550 55%, #081c3e 100%);
  --aurora-1: rgb(29 91 181 / .32);
  --aurora-2: rgb(156 191 238 / .1);
  --aurora-3: rgb(0 55 129 / .45);
  --aurora-panel-1: rgb(90 145 230 / .35);
  --aurora-panel-2: rgb(185 209 242 / .14);
  --aurora-panel-3: rgb(0 10 32 / .6);
  --shadow: 0 30px 70px -40px rgb(0 0 0 / .8);
  --shadow-soft: 0 18px 40px -30px rgb(0 0 0 / .7);
  --grain-opacity: .05;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
/* Feines Papierkorn über der ganzen Seite: fixiert und ohne Mausereignisse, damit nichts neu gezeichnet wird */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.muted { color: var(--text-muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.018em;
  text-wrap: balance;
}
/* Kursive Hervorhebung: etwas Luft für Unterlängen (y, g, p) */
.display em { font-style: italic; color: var(--accent); padding-bottom: .06em; padding-right: .04em; }
.display--md { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .6; flex-shrink: 0; }
@media (max-width: 479px) { .eyebrow { letter-spacing: .14em; gap: .7rem; } .eyebrow::before { width: 1.5rem; } }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--text-muted); max-width: 44ch; margin-top: 1.75rem; line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  white-space: nowrap;
  padding: .95rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .925rem; letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn i { font-size: 1.1rem; transition: transform .35s var(--ease); }
.btn:hover i { transform: translate(2px, -2px); }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--primary {
  background: var(--btn-bg); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 10px 24px -14px rgb(0 35 79 / .7);
}
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: var(--on-blue); color: #003781; }
.btn--light:hover { background: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: .75rem; height: var(--nav-h); }
@media (min-width: 600px) { .nav__inner { gap: 1.5rem; } }
@media (min-width: 1180px) { .nav__inner { gap: 2.25rem; } }

.nav__brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: auto; }
/* Monogramm mit doppeltem Ring, wie ein Siegel */
.monogram {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; font-style: italic;
  color: var(--accent); letter-spacing: .02em;
}
.monogram::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--accent); border-radius: 50%; opacity: .35; }
.nav__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; white-space: nowrap; letter-spacing: .01em; }

.nav__links a, .nav__dropdown-toggle {
  white-space: nowrap;
  position: relative;
  text-decoration: none; font: inherit; font-size: .9rem; color: var(--text-muted);
  background: none; border: 0; padding: 0; cursor: pointer; transition: color .25s; -webkit-tap-highlight-color: transparent;
}
.nav__links a:hover, .nav__dropdown-toggle:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__dropdown-toggle { display: inline-flex; align-items: center; gap: .3rem; }
.nav__dropdown-toggle i { font-size: .85rem; transition: transform .3s var(--ease); }
.nav__dropdown-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.nav__sub { display: none; }
.nav__dropdown-toggle[aria-expanded="true"] + .nav__sub { display: block; }
@media (max-width: 599px) { .nav__name { display: none; } }

/* Sprachumschalter DE / EN und Hell/Dunkel-Knopf */
.lang-switch { display: flex; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .08em; }
.lang-switch > * { display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 0 .35rem; text-decoration: none; color: var(--text-muted); border-radius: var(--radius-pill); }
.lang-switch [aria-current] { color: var(--accent); background: var(--blue-soft); }
.lang-switch a { transition: color .2s, background-color .2s; }
.lang-switch a:hover { color: var(--text); background: var(--blue-soft); }
.theme-toggle {
  display: none; place-items: center;
  width: 38px; height: 38px; padding: 0; margin-left: -.5rem;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
  transition: color .25s, background-color .25s;
}
.js .theme-toggle { display: grid; }
.theme-toggle:hover { color: var(--text); background: var(--blue-soft); }
@media (max-width: 380px) { .theme-toggle { margin-left: -.35rem; } }

/* Menüknopf und aufklappbares Menü auf kleineren Bildschirmen (nur mit JS) */
.nav__toggle {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--text); font-size: 1.3rem; cursor: pointer;
}
@media (max-width: 1179px) {
  .nav__menu { display: none; }
  .js .nav__toggle { display: grid; }
  .nav__menu.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav__links { padding: .5rem 16px 1.5rem; }
  .nav__links > li { border-bottom: 1px solid var(--line); }
  .nav__links > li > a, .nav__dropdown-toggle { display: flex; align-items: center; width: 100%; min-height: 56px; font-family: var(--font-display); font-size: 1.45rem; color: var(--text); }
  .nav__dropdown-toggle { justify-content: space-between; }
  .nav__sub { padding: 0 0 .75rem 1rem; }
  .nav__sub a { display: flex; align-items: center; min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 1179px) { .nav__links { padding-inline: 40px; } }
@media (max-width: 459px) { .nav__cta { display: none; } }

/* Desktop: Links in einer Zeile, «Angebot» als Dropdown */
@media (min-width: 1180px) {
  .nav__links { display: flex; align-items: center; gap: 2rem; }
  /* Feine Linie unter dem Link, wächst von links */
  .nav__links > li > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
  }
  .nav__links > li > a:hover::after, .nav__links > li > a[aria-current="page"]::after { transform: scaleX(1); }
  .nav__dropdown { position: relative; }
  .nav__sub {
    position: absolute; top: calc(100% + 1rem); left: -1rem; z-index: 1;
    min-width: 230px; padding: .5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  /* Brücke über den Abstand, damit das Menü beim Hinüberfahren mit der Maus offen bleibt */
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 1rem; }
  .nav__sub a { display: block; padding: .65rem .9rem; border-radius: 4px; }
  .nav__sub a:hover { background: var(--blue-soft); }
  html:not(.js) .nav__dropdown:focus-within .nav__sub { display: block; }
}
@media (min-width: 1180px) and (hover: hover) {
  .nav__dropdown:hover .nav__sub { display: block; }
}

/* ---------- Aurora: langsam driftende, weiche Lichtflächen (Markup: .aurora mit drei <span>) ---------- */
[data-aurora] { position: relative; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Weiche Kreise aus Verläufen statt filter: blur, damit es auch auf dem Handy leicht bleibt */
.aurora span { position: absolute; aspect-ratio: 1; border-radius: 50%; }
.aurora span:nth-child(1) { width: min(75vw, 860px); top: -35%; right: -18%; background: radial-gradient(closest-side, var(--aurora-1), transparent); }
.aurora span:nth-child(2) { width: min(65vw, 700px); bottom: -45%; right: 18%; background: radial-gradient(closest-side, var(--aurora-2), transparent); }
.aurora span:nth-child(3) { width: min(55vw, 600px); top: -10%; left: -22%; background: radial-gradient(closest-side, var(--aurora-3), transparent); }
[data-aurora="panel"] .aurora span:nth-child(1) { background: radial-gradient(closest-side, var(--aurora-panel-1), transparent); }
[data-aurora="panel"] .aurora span:nth-child(2) { background: radial-gradient(closest-side, var(--aurora-panel-2), transparent); }
[data-aurora="panel"] .aurora span:nth-child(3) { background: radial-gradient(closest-side, var(--aurora-panel-3), transparent); }
/* In den Seitenköpfen nach unten weich auslaufen lassen statt an der Abschnittskante abzuschneiden */
.hero > .aurora, .page-hero > .aurora {
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
/* Auf dem Handy liegen die Flächen hinter dem Portrait bzw. unten im Block */
@media (max-width: 899px) {
  .aurora span:nth-child(1) { width: 130vw; top: auto; bottom: -20%; right: -50%; }
  .aurora span:nth-child(2) { width: 110vw; bottom: auto; top: 20%; right: auto; left: -45%; }
  .aurora span:nth-child(3) { width: 90vw; top: -20%; left: auto; right: -40%; }
}

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 4.5rem; overflow: hidden; }
.hero__grid { display: grid; gap: 3.5rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
@media (min-width: 900px) {
  .hero { padding: 3rem 0 5rem; min-height: min(calc(100dvh - var(--nav-h)), 880px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.2fr .8fr; gap: 5rem; }
}

/* Portrait im Bogenrahmen mit feiner, versetzter Konturlinie */
.portrait { margin: 0; position: relative; width: 100%; max-width: 420px; justify-self: center; }
.portrait::before {
  content: ""; position: absolute; inset: -14px;
  border: 1px solid var(--accent); opacity: .4;
  border-radius: 999px 999px var(--radius) var(--radius);
}
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: clamp(5rem, 12vw, 9rem);
  color: rgb(255 255 255 / .85); letter-spacing: .04em;
}
@media (max-width: 899px) { .portrait { width: calc(100% - 28px); max-width: 340px; } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
@media (min-width: 900px) { .section { padding: 9rem 0; } }
.section__title { margin-bottom: 3.5rem; max-width: 20ch; }

/* Über mich: Aussage mit Unterschrift links, Text als redaktioneller Einstieg rechts, Eckdaten als Leiste darunter */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about__grid { display: grid; gap: 3rem; }
.about__head { display: grid; gap: 2.25rem; align-content: start; }
.about__head .display { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.about__sign {
  display: grid; gap: .3rem;
  font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1.1;
  color: var(--accent); padding-bottom: .1em;
}
.about__sign::before { content: ""; width: 3rem; height: 1px; background: var(--accent); margin-bottom: 1rem; opacity: .7; }
.about__sign span { font-family: var(--font-body); font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.about__body { display: grid; gap: 1.5rem; color: var(--text-muted); max-width: 58ch; }
.about__body p:first-child {
  font-family: var(--font-display); font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1.4;
  color: var(--text);
}
/* Eckdaten: eine ruhige Leiste mit drei Feldern, getrennt durch feine Linien */
.facts {
  display: grid;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
}
.fact { display: grid; gap: .35rem; align-content: start; padding: 1.75rem 1.5rem; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact i {
  display: grid; place-items: center; margin-bottom: 1rem;
  width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: 1.5rem; color: var(--accent); line-height: 1;
}
.fact dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.fact dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { padding: 2.25rem 2rem; }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 6fr; column-gap: 6rem; row-gap: 5rem; align-items: start; }
  .about__body { padding-left: 3rem; border-left: 1px solid var(--line); }
  .facts { grid-column: 1 / -1; }
}

/* Kacheln (Leistungen und Angebotsseiten) */
.bento { display: grid; gap: 1rem; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: .8rem;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
/* Symbol als Medaillon */
.tile i {
  display: grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; margin-bottom: auto;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: 1.6rem; color: var(--accent);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.tile:hover i { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.tile h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; line-height: 1.15; margin-top: 2.5rem; }
.tile p { color: var(--text-muted); max-width: 46ch; }

/* Blaue Flächen (Kacheln, Zertifikat, Kontakt, Call-to-Action) */
.tile--feature, .cert--lead, .contact, .cta { background: var(--panel); border-color: transparent; color: var(--on-blue); }
.tile--feature p { color: var(--on-blue-muted); }
.tile--feature i { border-color: rgb(255 255 255 / .28); color: var(--on-blue-accent); }
.tile--feature:hover i { background: var(--on-blue); border-color: var(--on-blue); color: #003781; }
.tile--feature h3 { font-size: 2.2rem; }
.tile--tint { background: var(--blue-soft); border-color: transparent; }
.tile--tint i { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Hinweis in einer Kachel, z. B. «Kostenlose Vorsorgeanalyse» */
.tile .badge {
  align-self: flex-start; max-width: none;
  margin-top: .5rem; padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--blue-soft); color: var(--accent);
  font-size: .78rem; font-weight: 600; letter-spacing: .03em;
}
.tile--tint .badge { background: var(--surface); }
.tile--feature .badge { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); color: #fff; }

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(260px, auto); }
  .tile--feature { grid-column: span 4; grid-row: span 2; padding: 3rem; }
  .bento > .tile--feature h3 { font-size: clamp(2.4rem, 3.4vw, 3.2rem); }
  .bento > .tile--feature p { font-size: 1.1rem; }
  .tile--tall { grid-column: span 2; grid-row: span 2; }
  .bento > .tile:nth-child(n+3) { grid-column: span 2; }
}

/* Ansatz: drei Schritte an einer Linie, die sich beim Einblenden zeichnet */
.approach__list { position: relative; display: grid; gap: 3rem; }
.approach__list li { position: relative; padding-left: 2.25rem; }
.approach__list li::before {
  content: ""; position: absolute; left: 0; top: .9rem;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--bg);
}
.approach__list li::after {
  content: ""; position: absolute; left: 5px; top: 2.3rem; bottom: -2.5rem; width: 1px;
  background: var(--line-strong);
}
.approach__list li:last-child::after { display: none; }
.approach__verb { display: block; font-family: var(--font-display); font-size: 2.3rem; font-style: italic; color: var(--accent); margin-bottom: .6rem; line-height: 1.15; padding-bottom: .1em; }
.approach__list p { color: var(--text-muted); max-width: 36ch; }
@media (min-width: 900px) {
  .approach__list { grid-template-columns: repeat(3, 1fr); gap: 4rem; }
  .approach__list li { padding-left: 0; padding-top: 3rem; }
  .approach__list li::before { top: 0; left: 0; }
  .approach__list li::after { left: 11px; right: -4rem; top: 5px; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .approach__list li:last-child::after { display: block; right: 0; }
}

/* Werdegang */
.timeline-wrap { display: grid; gap: 3rem; }
.timeline { position: relative; display: grid; gap: 2.25rem; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 1px; background: var(--line-strong); }
.timeline__item { position: relative; display: grid; gap: .3rem; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-1.75rem - 4px); top: .55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
}
.timeline__item:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline__time { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline__item h4 { margin: 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; line-height: 1.2; }
.timeline-groups { display: grid; gap: 4rem; }
.timeline__group {
  display: flex; align-items: center; gap: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 2rem;
}
.timeline__group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (min-width: 900px) {
  .timeline-wrap { grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start; }
  .timeline-wrap > h2 { position: sticky; top: calc(var(--nav-h) + 3rem); }
}
@media (min-width: 1100px) {
  .timeline-wrap { grid-template-columns: 1fr 3fr; gap: 4rem; }
  .timeline-groups { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Engagement: Zitat als ruhiger, grosser Satz */
.engagement { padding-top: 0; }
.engagement__grid { display: grid; gap: 2rem; }
.volunteer {
  position: relative; margin: 0;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--blue-soft);
  display: flex; flex-direction: column; gap: .75rem;
}
.volunteer i { font-size: 1.6rem; color: var(--accent); }
.volunteer blockquote { margin: .25rem 0 .5rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.2; padding-bottom: .1em; text-wrap: balance; }
.volunteer figcaption { color: var(--text-muted); font-size: .9rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
@media (min-width: 900px) {
  .engagement__grid { grid-template-columns: 1fr 2fr; gap: 6rem; align-items: center; }
  .volunteer { padding: 4rem; }
}
@media (min-width: 1100px) { .engagement__grid { grid-template-columns: 1fr 3fr; gap: 4rem; } }

/* Qualifikationen */
.quals { border-top: 1px solid var(--line); }
.quals__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.cert, .langs {
  margin: 0; padding: 2rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: .5rem;
}
.cert h3, .langs h3 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
.cert:not(.cert--lead), .langs { background: var(--surface); }
.cert:not(.cert--lead) { justify-content: flex-end; }
.cert:not(.cert--lead)::before { content: ""; width: 2rem; height: 1px; background: var(--accent); margin-bottom: auto; padding-bottom: 0; }
.cert:not(.cert--lead) h3 { margin-top: 2.5rem; }
.cert--lead i { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgb(255 255 255 / .28); border-radius: 50%; font-size: 2rem; color: var(--on-blue-accent); margin-bottom: 1.5rem; }
.cert--lead h3 { font-size: clamp(2rem, 3vw, 2.6rem); }
.cert--lead p { color: var(--on-blue-muted); max-width: 48ch; }
.langs__list { display: grid; gap: .9rem; margin-top: 1rem; }
.langs__list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.langs__list li + li { padding-top: .9rem; border-top: 1px solid var(--line); }
.langs__list li > :first-child { font-weight: 500; }
@media (min-width: 768px) {
  .quals__grid { grid-template-columns: repeat(6, 1fr); }
  .cert--lead { grid-column: span 4; grid-row: span 2; padding: 3rem; justify-content: flex-end; }
  .cert:not(.cert--lead) { grid-column: span 2; }
  .langs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 2rem; padding: 2.5rem 3rem; }
  .langs__list { grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 0; }
  .langs__list li { flex-direction: column; gap: 0; }
  .langs__list li + li { padding-top: 0; border-top: 0; padding-left: 2rem; border-left: 1px solid var(--line); }
}

/* Kontakt */
.contact {
  display: grid; gap: 3rem;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact .display em, .cta .display em { color: var(--on-blue-accent); }
.contact__copy { display: grid; gap: 1.5rem; justify-items: start; }
.contact__copy p { color: var(--on-blue-muted); max-width: 44ch; }
.contact__list { display: grid; gap: 1.25rem; align-content: end; margin-top: 1rem; width: 100%; }
.contact__list li { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgb(255 255 255 / .14); }
.contact__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__list i { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid rgb(255 255 255 / .24); border-radius: 50%; font-size: 1.2rem; color: var(--on-blue-accent); }
.contact__list a { text-decoration: none; font-size: 1.05rem; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1.3fr 1fr; gap: 4rem; padding: 4rem; align-items: center; }
}
@media (min-width: 1100px) {
  .contact { gap: 5rem; padding: 5rem; }
}

/* Rückruf über das Allianz-Beratungsformular: Karte mit QR-Code */
.booking {
  display: grid; gap: 1.25rem; justify-items: center; text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface); color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5);
}
.booking__title { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.2; }
.booking p { color: var(--text-muted); max-width: 32ch; }
.booking__scan { margin: .25rem 0; display: grid; gap: .6rem; justify-items: center; }
.booking__qr { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.booking__scan figcaption { font-size: .8rem; color: var(--text-muted); }
.btn--block { width: 100%; min-height: 52px; font-size: .95rem; }
/* Auf dem Handy bringt Scannen nichts: nur der Knopf bleibt */
@media (max-width: 767px) {
  .booking__scan { display: none; }
}

.contact__promises { display: grid; gap: .65rem; font-size: .95rem; }
.contact__promises li { display: flex; align-items: center; gap: .65rem; }
.contact__promises i { font-size: 1.1rem; color: var(--on-blue-accent); }

/* Kundenfeedbacks: endloses Laufband (Karten werden von script.js aus feedbacks.js erzeugt) */
.testimonials { padding-top: 0; }
html:not(.js) .testimonials { display: none; }
.marquee { position: relative; overflow: hidden; padding: .5rem 0 1.5rem; }
.marquee:focus-visible { outline-offset: -2px; }
/* Weiche Ränder links und rechts */
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1;
  width: 2rem; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
@media (min-width: 768px) { .marquee::before, .marquee::after { width: 8rem; } }
.marquee__track { display: flex; width: max-content; }
/* Abstand als Innenabstand statt gap zwischen den Listen, damit beide Hälften exakt gleich breit sind */
.marquee__list { display: flex; gap: 1rem; padding-right: 1rem; }
.marquee__list > li { display: flex; }
.feedback {
  position: relative;
  margin: 0; width: clamp(270px, 80vw, 380px);
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2.25rem 2rem 2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.feedback__stars { display: flex; gap: .2rem; color: var(--accent); }
.feedback__stars svg { width: 1rem; height: 1rem; }
.feedback__quote { flex: 1; margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.32; padding-bottom: .1em; }
.feedback__quote p::before { content: "“"; }
.feedback__quote p::after { content: "”"; }
.feedback__quote:lang(de) p::before { content: "„"; }
.feedback__quote:lang(de) p::after { content: "“"; }
.feedback__author { display: flex; align-items: center; gap: .75rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--text-muted); }
.feedback__author::before { content: ""; width: 1.5rem; height: 1px; background: var(--accent); }

/* Angebotsseiten (Privat- und Firmenkunden) und Rechtliches */
.page-hero { padding: 3.5rem 0 4rem; overflow: hidden; }
.page-hero .lead { max-width: 52ch; }
.page-hero .display { max-width: 16ch; }
@media (min-width: 900px) { .page-hero { padding: 6rem 0 6.5rem; } }
.offer { padding-top: 0; }
/* Call-to-Action direkt nach den Kacheln: kein doppelter Abschnittsabstand */
.offer + .section { padding-top: 0; }
.offer__grid { display: grid; gap: 1rem; }
/* Rasterregeln der Startseiten-Kacheln (.bento) hier zurücksetzen */
.offer__grid .tile { grid-column: auto; grid-row: auto; padding: 2rem; }
/* Alle Kacheln gleich gross und gleich gewichtet; die Farben (Blau, Hellblau, Weiss) wechseln sich ab */
.offer__grid .tile h3 { font-size: 1.65rem; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; margin-top: 1.5rem; }
/* Titel immer auf gleicher Höhe, Hinweis-Badge unten bündig */
.offer__grid .tile i { margin-bottom: 0; }
.offer__grid .tile .badge { margin-top: auto; }
@media (min-width: 600px) {
  .offer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .offer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .offer__grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Call-to-Action am Seitenende */
.cta {
  display: grid; gap: 1.5rem; justify-items: start;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta__copy { display: grid; gap: 1.5rem; justify-items: start; }
.cta__qr { display: none; width: 180px; height: 180px; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .55); }
@media (min-width: 768px) {
  .cta { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
  .cta__qr { display: block; }
}
.cta p { color: var(--on-blue-muted); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .5rem; }
.cta__mail { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; text-underline-offset: 4px; word-break: break-word; }
.cta__mail:hover { color: var(--on-blue-accent); }
.cta__mail i { font-size: 1.25rem; color: var(--on-blue-accent); }
@media (min-width: 900px) { .cta { padding: 4rem; } }
@media (min-width: 1100px) { .cta { padding: 5rem; } }

/* Rechtliches (Impressum, Datenschutz) */
.legal-section { padding-top: 0; }
.legal { max-width: 68ch; display: grid; gap: 1rem; }
.legal h2 { margin-top: 2rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-muted); }
.legal a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__lead { font-size: 1.1rem; }
.legal__stand { margin-top: 1.75rem; font-size: .875rem; }

/* Footer */
.footer { padding: 2.75rem 0 3rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--text-muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer__mail { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; word-break: break-word; transition: color .25s; }
.footer__mail i { font-size: 1.1rem; color: var(--accent); }
.footer__mail:hover { color: var(--text); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { text-decoration: none; transition: color .25s; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: var(--text); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  /* Portrait: sanftes Aufziehen statt Hochgleiten */
  .js .portrait.reveal { transform: scale(.97); transition-duration: 1.4s; }
  .js .portrait.reveal.is-visible { transform: none; }
  /* Verbindungslinie der Schritte zeichnet sich von links */
  .js .approach__list li.reveal::after { transform: scaleX(0); transition: transform 1.4s var(--ease) calc(var(--delay, 0ms) + 300ms); }
  .js .approach__list li.reveal.is-visible::after { transform: none; }
  /* Aurora: jede Fläche driftet in eigenem, langsamem Takt hin und zurück */
  .aurora span { will-change: transform; }
  .aurora span:nth-child(1) { animation: aurora-a 26s ease-in-out infinite alternate; }
  .aurora span:nth-child(2) { animation: aurora-b 34s ease-in-out infinite alternate; }
  .aurora span:nth-child(3) { animation: aurora-c 41s ease-in-out infinite alternate; }
  /* Laufband: Liste und Kopie wandern zusammen um eine halbe Breite nach links, dann beginnt es nahtlos von vorn */
  .marquee__track { animation: laufband var(--laufband-dauer, 80s) linear infinite; }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
}
/* Auf schmalen Bildschirmen laufen die Schritte senkrecht: Linie nicht horizontal skalieren */
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .js .approach__list li.reveal::after { transform: scaleY(0); transform-origin: top; }
}
@keyframes laufband { to { transform: translateX(-50%); } }
@keyframes aurora-a { to { transform: translate(-12%, 14%) scale(1.18); } }
@keyframes aurora-b { to { transform: translate(16%, -12%) scale(.88); } }
@keyframes aurora-c { to { transform: translate(18%, 10%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .tile, .tile i, .btn, .btn i { transition: none; }
  .tile:hover { transform: none; }
  /* Laufband ohne Animation: Karten von Hand seitwärts scrollen */
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
  .marquee::before, .marquee::after { display: none; }
  .marquee__track { padding-inline: 16px; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list > li { scroll-snap-align: start; }
}
