/* =========================================================
   ES · Eduard Strekert — Startseite
   Dunkles Navy · Weinrot-Akzent · Arial · Du-Ansprache
   ========================================================= */

:root {
  /* Navy */
  --navy-900: #0a1521;
  --navy-850: #0b1825;
  --navy-800: #0e1d2e;
  --navy-750: #122539;
  --navy-700: #16304a;
  --navy-600: #1d3c5a;

  /* Wine / Bordeaux accent — aligned to ES design system (#8C2332) */
  --wine:        #8c2332;
  --wine-bright: #a82c3b;
  --wine-deep:   #71202c;
  --wine-soft:   rgba(168, 44, 59, 0.14);

  /* Light surfaces */
  --cream:   #f6f2eb;
  --cream-2: #efe8dd;
  --paper:   #ffffff;

  /* Ink (text on light) */
  --ink:       #13202e;
  --ink-soft:  #44525f;
  --ink-faint: #7a8794;

  /* Text on navy */
  --on-navy:        #f3f0ea;
  --on-navy-soft:   rgba(243, 240, 234, 0.70);
  --on-navy-faint:  rgba(243, 240, 234, 0.46);

  --line-dark:  rgba(243, 240, 234, 0.12);
  --line-light: rgba(19, 32, 46, 0.12);

  --shadow-card: 0 1px 2px rgba(8, 16, 26, 0.06), 0 12px 32px rgba(8, 16, 26, 0.08);
  --shadow-pop:  0 24px 70px rgba(6, 14, 24, 0.45);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--wine); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--navy  { background: var(--navy-850); color: var(--on-navy); }
.section--navy2 { background: var(--navy-900); color: var(--on-navy); }
.section--cream {
  /* Durchgehend dunkel wie die Unterseite: Variablen auf Navy umbiegen */
  background: var(--navy-900); color: var(--on-navy);
  --ink: #f3f0ea;
  --ink-soft: rgba(243, 240, 234, 0.72);
  --ink-faint: rgba(243, 240, 234, 0.46);
  --line-light: rgba(243, 240, 234, 0.12);
  --paper: rgba(255, 255, 255, 0.035);
  --cream: var(--navy-900);
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--wine-bright);
  margin: 0 0 20px;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--wine-bright);
  display: inline-block;
}
.section--cream .kicker { color: var(--wine-bright); }

.h-sec {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.02em;
  margin: 0; text-wrap: balance;
}
.lead { font-size: clamp(16px, 1.5vw, 18.5px); max-width: 62ch; }
.section--navy .lead, .section--navy2 .lead { color: var(--on-navy-soft); }
.section--cream .lead { color: var(--ink-soft); }

.accent { color: var(--wine-bright); }
.section--cream .accent { color: var(--wine-bright); }
/* Kontakt-Karte + Zulassungs-Karten als dezente Karten auf Navy */
.section--cream .contact__grid { border: 1px solid var(--line-dark); box-shadow: none; }
.section--cream .contact__ico { color: var(--wine-bright); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 21, 33, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgba(9, 19, 30, 0.92);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; color: var(--on-navy); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--wine-bright), var(--wine-deep));
  color: #fff; font-weight: 800; letter-spacing: 0.02em; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px rgba(124,31,44,.4);
}
.brand__logo { height: 40px; width: auto; flex: none; display: block; }
.brand__name { display: block; font-weight: 800; font-size: 16px; letter-spacing: .01em; line-height: 1.15; white-space: nowrap; }
.brand__sub  { display: block; font-size: 11.5px; color: var(--on-navy-faint); letter-spacing: .04em; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  color: var(--on-navy-soft); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  padding: 9px 14px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--on-navy); background: rgba(255,255,255,.06); }
.nav__links a.active { color: var(--on-navy); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.btn {
  --bg: var(--wine-bright); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .005em;
  background: var(--bg); color: var(--fg);
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  box-shadow: 0 8px 20px rgba(124,31,44,.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(124,31,44,.42); background: #c23b48; }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 17px; font-size: 14px; border-radius: 9px; }
.btn--ghost {
  background: transparent; color: var(--on-navy); border-color: var(--line-dark);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.btn--outline-ink {
  background: transparent; color: var(--ink); border-color: rgba(19,32,46,.22); box-shadow: none;
}
.btn--outline-ink:hover { background: rgba(19,32,46,.04); border-color: rgba(19,32,46,.4); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-dark);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__burger span { width: 19px; height: 2px; background: var(--on-navy); border-radius: 2px; transition: .25s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 76px 0 auto 0; z-index: 55;
  background: var(--navy-850); border-bottom: 1px solid var(--line-dark);
  padding: 14px var(--gutter) 26px; display: none;
  box-shadow: 0 30px 50px rgba(0,0,0,.4);
}
.drawer.is-open { display: block; animation: drop .28s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.drawer a {
  display: block; color: var(--on-navy-soft); font-weight: 600; font-size: 16px;
  padding: 14px 6px; border-bottom: 1px solid var(--line-dark);
}
.drawer a:last-of-type { border-bottom: none; }
.drawer .btn { width: 100%; margin-top: 16px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { background: var(--navy-900); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(154,41,58,.30), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  -webkit-mask-image: radial-gradient(circle at 30% 0%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 30% 0%, #000, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(54px, 7vw, 92px) clamp(40px, 5vw, 70px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 70px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.025em; margin: 18px 0 24px; text-wrap: balance;
}
.hero__sub { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--on-navy-soft); max-width: 56ch; margin: 0 0 30px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: clamp(40px, 5vw, 64px); position: relative; z-index: 1;
}
.stat {
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 20px 20px;
}
.stat__k { font-weight: 800; font-size: 16px; letter-spacing: -.01em; margin-bottom: 4px; }
.stat__v { font-size: 13.5px; color: var(--on-navy-soft); }
.stat .dot { color: var(--wine-bright); }

/* Portrait */
.portrait { position: relative; }
.portrait__frame {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-pop);
  aspect-ratio: 4 / 5;
}
.ph {
  width: 100%; height: 100%;
  background-color: var(--navy-750);
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 13px);
  display: grid; place-items: center; text-align: center;
}
.portrait__img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.ph__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--on-navy-faint); padding: 8px 12px; border: 1px dashed var(--line-dark);
  border-radius: 8px; background: rgba(10,21,33,.5);
}
.badge {
  position: absolute; left: -14px; bottom: 22px; z-index: 2;
  background: var(--paper); color: var(--ink);
  border-radius: 13px; padding: 13px 16px; max-width: 250px;
  box-shadow: var(--shadow-card); display: flex; gap: 12px; align-items: center;
}
.badge__seal {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--wine-bright), var(--wine-deep));
  display: grid; place-items: center; color: #fff;
}
.badge__txt { font-size: 12.5px; line-height: 1.35; font-weight: 600; }
.badge__txt b { display: block; font-size: 13px; }

/* =========================================================
   Über mich — credentials
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.about__head { position: sticky; top: 100px; }
.about__body p { font-size: 17px; color: var(--ink-soft); margin: 0 0 26px; max-width: 60ch; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cred {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 20px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cred:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(154,41,58,.4); }
.cred__tag {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .03em;
  color: var(--wine); margin-bottom: 8px;
}
.cred__txt { font-size: 14.5px; font-weight: 600; color: var(--ink); }

/* =========================================================
   Leistungen — 8 cards
   ========================================================= */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .h-sec { margin-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: rgba(255,255,255,.035); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 26px 22px 28px;
  transition: transform .22s ease, background .22s, border-color .22s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--wine-bright); transition: width .3s ease;
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,.06); border-color: rgba(178,51,65,.45); }
.card:hover::after { width: 100%; }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--wine-bright); font-weight: 700; }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; margin: 14px 0 16px;
  display: grid; place-items: center; color: var(--on-navy);
  background: var(--wine-soft); border: 1px solid rgba(178,51,65,.4);
}
.card h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--on-navy-soft); margin: 0; }

/* =========================================================
   Ablauf — 4 steps
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step__rule { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-light); }
.step__rule::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }
.step__n {
  font-size: clamp(40px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em;
  color: var(--ink); line-height: 1; margin-bottom: 14px;
}
.step__n span { color: var(--wine); }
.step h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* =========================================================
   Partner
   ========================================================= */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.partner {
  background: rgba(255,255,255,.035); border: 1px solid var(--line-dark);
  border-radius: 12px; min-height: 96px; display: grid; place-items: center;
  text-align: center; padding: 18px; transition: background .2s, border-color .2s, transform .2s;
}
.partner:hover { background: rgba(255,255,255,.07); border-color: var(--line-dark); transform: translateY(-3px); }
.partner__name { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--on-navy); }
.partner__name .light { font-weight: 400; color: var(--on-navy-soft); }
.partner__name.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.partner__sub { font-size: 11px; color: var(--on-navy-faint); margin-top: 3px; letter-spacing: .05em; text-transform: uppercase; }

.partner-note { margin-top: 26px; font-size: 13px; color: var(--on-navy-faint); max-width: 70ch; }

/* =========================================================
   Rentenlücken-Rechner Teaser (Startseite)
   ========================================================= */
.ctaband {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-dark);
  border-radius: 22px; padding: clamp(28px, 4vw, 52px);
}
.ctaband__copy .h-sec { margin-top: 14px; }
.ctaband__copy .lead { margin: 18px 0 0; color: var(--on-navy-soft); }
.ctaband .btn { white-space: nowrap; }
@media (max-width: 920px) {
  .ctaband { grid-template-columns: 1fr; }
  .ctaband .btn { justify-self: start; }
}

/* =========================================================
   Kontakt
   ========================================================= */
.contact__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--paper); border-radius: 22px; padding: clamp(30px, 4vw, 56px);
  box-shadow: var(--shadow-card);
}
.contact__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.contact__list li:last-child { border-bottom: none; }
.contact__ico {
  width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--wine-soft); color: var(--wine);
}
.contact__list li > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.contact__k { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact__v { font-size: 16px; font-weight: 700; color: var(--ink); }
.contact__cta { text-align: center; }
.contact__cta .panel {
  background: var(--navy-850); color: var(--on-navy); border-radius: 18px; padding: 36px 28px;
}
.contact__cta h3 { font-size: 22px; margin: 0 0 10px; font-weight: 800; }
.contact__cta p { color: var(--on-navy-soft); font-size: 14.5px; margin: 0 0 22px; }
.contact__cta .btn { width: 100%; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--navy-900); color: var(--on-navy); padding-block: 64px 34px; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__about { max-width: 42ch; }
.footer__logo { height: 88px; width: auto; display: block; margin: -10px 0 0 -4px; }
.footer__about p { color: var(--on-navy-soft); font-size: 14px; margin: 16px 0 0; }
.footer__col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--on-navy-faint); margin: 0 0 16px; }
.footer__col a, .footer__col span { display: block; color: var(--on-navy-soft); font-size: 14px; padding: 5px 0; }
.footer__col a:hover { color: var(--on-navy); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; font-size: 12.5px; color: var(--on-navy-faint); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--on-navy); }

/* =========================================================
   Modal (Termin buchen)
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__scrim { position: absolute; inset: 0; background: rgba(6,12,20,.66); backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal__card {
  position: relative; width: 100%; max-width: 460px; background: var(--paper); color: var(--ink);
  border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow-pop); animation: pop .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-light); background: #fff; color: var(--ink-soft); font-size: 18px; line-height: 1; }
.modal__close:hover { background: var(--cream); }
.modal h3 { margin: 0 0 6px; font-size: 23px; font-weight: 800; }
.modal__sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line-light);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft);
}
.modal .btn { width: 100%; margin-top: 6px; }
.modal__ok { text-align: center; padding: 12px 0; }
.modal__ok .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--wine-soft); color: var(--wine); }
.modal__ok h3 { margin-bottom: 8px; }
.modal__ok p { color: var(--ink-soft); font-size: 15px; margin: 0 0 22px; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .cards, .partners { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; margin: 8px auto 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__head { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__stats { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .cards, .partners { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
