/* ============================================================
   runge.versichert — Landingpage Mittelstand
   On-brand nach brand assets/BRAND-GUIDE.md
   ============================================================ */

:root {
  --blau:        #163A60;  /* Vertrauensblau, primär */
  --blau-tief:   #0F2A47;  /* dunklere Variante für Tiefe */
  --horizont:    #58B8E8;  /* Horizontblau, Akzent */
  --signal:      #6CBAF2;  /* Signalpunkt, feiner Glanz */
  --weiss:       #FFFFFF;
  --nebel:       #EEF1F5;  /* Nebelgrau, ruhige Flächen */
  --nebel-tief:  #E2E8F0;
  --text:        #1B2A3A;
  --text-soft:   #51637A;
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1180px;
  --shadow:      0 18px 50px rgba(22, 58, 96, 0.10);
  --shadow-sm:   0 8px 24px rgba(22, 58, 96, 0.08);
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --font:        'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* Skip-Link: erst sichtbar bei Tastatur-Fokus (Krug: Accessibility low-hanging fruit) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--blau-tief);
  color: var(--weiss);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; outline: 3px solid var(--horizont); outline-offset: 2px; }
#hauptinhalt:focus { outline: none; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--weiss);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--sm { padding: 10px 20px; font-size: .94rem; }
.btn--primary {
  background: var(--horizont);
  color: var(--blau-tief);
  box-shadow: 0 10px 30px rgba(88, 184, 232, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(88, 184, 232, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--weiss);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--horizont);
  margin-bottom: 16px;
}
.eyebrow::before { content: "● "; color: var(--signal); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 18px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo-img { height: 56px; transition: opacity .3s var(--ease); }
.nav__logo-img--dark { display: none; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 500; color: var(--weiss); font-size: .98rem; transition: color .2s; }
.nav__links a:not(.nav__cta) { position: relative; }
.nav__links a:hover { color: var(--horizont); }
.nav__cta { color: var(--blau-tief) !important; }

/* Aktive Sektion markieren ("You are here", Krug: Orientierung, deutlich nicht subtil) */
.nav__links a.is-active { color: var(--horizont); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--horizont);
}

/* scrolled state */
.nav--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(22, 58, 96, 0.08);
  padding: 12px 0;
}
.nav--solid .nav__logo-img--light { display: none; }
.nav--solid .nav__logo-img--dark { display: block; }
.nav--solid .nav__links a { color: var(--blau); }
.nav--solid .nav__links a:hover { color: var(--horizont); }
.nav--solid .nav__cta { color: var(--blau-tief) !important; }
.nav--solid .nav__burger span { background: var(--blau); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 26px; height: 2.5px; background: var(--weiss); border-radius: 2px; transition: .3s var(--ease); }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--weiss);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video,
.hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* On-brand animierter Platzhalter (Foto + Ken Burns), liegt hinter dem Video.
   Sichtbar, solange video/hero.mp4 fehlt oder JS es ausblendet. */
.hero__fallback {
  background: url('../img/buero-aussen-holstenstrasse-201.jpg') center/cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
  z-index: -1;
}
.hero__video { z-index: 0; background: var(--blau-tief); }
.hero__video.is-hidden { display: none; }
@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.16) translate(-2%, -2%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 42, 71, 0.55) 0%, rgba(15, 42, 71, 0.35) 40%, rgba(15, 42, 71, 0.85) 100%),
    radial-gradient(120% 80% at 20% 30%, rgba(22, 58, 96, 0.35), transparent 60%);
}
.hero__content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; max-width: 880px; }
.hero__eyebrow {
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-size: .85rem; color: var(--horizont); margin-bottom: 22px;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__sub {
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 620px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.92);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.hero__trust { font-size: .92rem; color: rgba(255, 255, 255, 0.75); font-weight: 500; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 100px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--weiss); border-radius: 2px;
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ============ TRUST BAR ============ */
.trust { background: var(--blau); color: var(--weiss); padding: 40px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust__item { display: flex; flex-direction: column; gap: 4px; }
.trust__num { font-size: 1.7rem; font-weight: 700; color: var(--horizont); line-height: 1.1; }
.trust__label { font-size: .9rem; font-weight: 300; color: rgba(255, 255, 255, 0.85); }

/* ============ SECTIONS ============ */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--alt { background: var(--nebel); }
.section__title {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--blau);
  margin-bottom: 20px;
  max-width: 760px;
}
.section__lead {
  font-weight: 300;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-soft);
  max-width: 700px;
  margin-bottom: 48px;
}

/* ---------- Why cards ---------- */
.why__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why__card {
  background: var(--nebel);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--nebel-tief);
}
.why__card h3 { color: var(--blau); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.why__card p { color: var(--text-soft); font-weight: 300; }

/* ---------- Leistungen cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22, 58, 96, 0.06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; background: var(--nebel); margin-bottom: 18px;
}
.card h3 { color: var(--blau); font-size: 1.22rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-weight: 300; }

/* ---------- bAV feature ---------- */
.bav__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.bav__list { list-style: none; margin: 26px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.bav__list li { position: relative; padding-left: 34px; font-weight: 400; color: var(--text); }
.bav__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--horizont); color: var(--blau-tief);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.bav__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step__num {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blau); color: var(--weiss);
  font-weight: 700; font-size: 1.3rem; margin-bottom: 20px;
}
.step h3 { color: var(--blau); font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--text-soft); font-weight: 300; }

/* ---------- Über ---------- */
.ueber__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.ueber__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.ueber__sign { margin-top: 22px; font-weight: 600; color: var(--blau); font-size: 1.12rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--weiss);
  border: 1px solid var(--nebel-tief);
  border-radius: var(--radius-sm);
  padding: 4px 24px;
  transition: box-shadow .25s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-weight: 600; color: var(--blau); font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--horizont);
  transition: transform .3s var(--ease); line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-soft); font-weight: 300; padding: 0 0 20px; }

/* ============ BEWERTUNGEN ============ */
.reviews { background: var(--blau); color: var(--weiss); padding: clamp(70px, 9vw, 120px) 0; }
.reviews .section__title { color: var(--weiss); }
.trust__item a { display: flex; flex-direction: column; gap: 4px; transition: transform .25s var(--ease); }
.trust__item a:hover { transform: translateY(-2px); }
/* Klickbares Trust-Element als klickbar erkennbar machen (Krug: obvious what's clickable) */
.trust__item a .trust__label { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
.trust__item a:hover .trust__label { text-decoration-color: var(--horizont); color: var(--weiss); }
.reviews__summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.reviews__score { font-size: 2.6rem; font-weight: 700; color: var(--horizont); line-height: 1; }
.reviews__stars { color: #FFC83D; font-size: 1.4rem; letter-spacing: 2px; }
.reviews__count { color: rgba(255, 255, 255, 0.85); font-weight: 300; }

.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.review__stars { color: #FFC83D; font-size: 1.05rem; letter-spacing: 2px; }
.review__text { color: var(--text); font-weight: 300; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blau); color: var(--weiss);
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.review__name { display: block; font-weight: 600; color: var(--blau); font-size: .98rem; line-height: 1.25; }
.review__meta { display: block; font-size: .82rem; color: var(--text-soft); }
.reviews__cta { margin-top: 40px; }
.reviews__cta a { color: var(--horizont); font-weight: 600; }
.reviews__cta a:hover { color: var(--signal); }

/* ============ FINAL CTA ============ */
.cta { position: relative; padding: clamp(80px, 10vw, 130px) 0; color: var(--weiss); overflow: hidden; background: var(--blau-tief); }
.cta__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(135deg, rgba(15, 42, 71, 0.92), rgba(22, 58, 96, 0.82)),
    url('../img/buero-aussen-holstenstrasse-201.jpg') center/cover no-repeat;
  background-attachment: fixed;
}
.cta__content { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.cta__title { font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
.cta__sub { font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, 0.9); margin-bottom: 34px; }
.cta__alt { margin-top: 26px; font-size: .98rem; color: rgba(255, 255, 255, 0.85); }
.cta__alt a { color: var(--horizont); font-weight: 600; }
.cta__assurance { margin-top: 16px; font-size: .92rem; color: rgba(255, 255, 255, 0.75); font-weight: 400; }
.cta__proof { max-width: 540px; margin: 0 auto 30px; font-size: 1.02rem; font-style: italic; color: rgba(255, 255, 255, 0.92); line-height: 1.5; }
.cta__proof-stars { color: #FFC83D; font-style: normal; letter-spacing: 2px; }
.cta__proof-author { display: block; margin-top: 6px; font-style: normal; font-size: .88rem; color: rgba(255, 255, 255, 0.7); }
.cta__person { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 540px; margin: 28px auto 0; text-align: left; }
.cta__person-img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid rgba(255, 255, 255, 0.5); }
.cta__person-note { margin: 0; font-size: .95rem; font-style: italic; color: rgba(255, 255, 255, 0.9); line-height: 1.5; }
.cta__person-note span { display: block; margin-top: 4px; font-style: normal; font-size: .85rem; font-weight: 600; color: var(--horizont); }

/* ============ FOOTER ============ */
.footer { background: var(--blau-tief); color: rgba(255, 255, 255, 0.8); padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__logo { height: 68px; margin-bottom: 18px; }
.footer__brand p { font-weight: 300; max-width: 340px; font-size: .96rem; }
.footer__col h4 { color: var(--weiss); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.footer__col p { font-weight: 300; font-size: .96rem; margin-bottom: 14px; line-height: 1.8; }
.footer__col a:hover { color: var(--horizont); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; font-size: .88rem; color: rgba(255, 255, 255, 0.6); }

/* ============ LEGAL (Impressum / Datenschutz) ============ */
/* Nav auf Rechtsseiten dauerhaft solide (kein Hero dahinter). */
.nav--static { position: absolute; background: var(--weiss); box-shadow: 0 4px 24px rgba(22, 58, 96, 0.08); }
.legal { padding: 130px 0 90px; background: var(--weiss); }
.legal__head { margin-bottom: 40px; }
.legal__head h1 { color: var(--blau); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal__head p { color: var(--text-soft); font-weight: 300; }
.legal__note {
  background: var(--nebel); border: 1px solid var(--nebel-tief); border-left: 4px solid var(--horizont);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 36px; font-size: .95rem; color: var(--text-soft);
}
.legal h2 { color: var(--blau); font-weight: 600; font-size: 1.35rem; margin: 38px 0 12px; }
.legal h3 { color: var(--blau); font-weight: 600; font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); font-weight: 300; margin-bottom: 12px; }
.legal a { color: var(--blau); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--horizont); }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal address { font-style: normal; line-height: 1.8; }
.legal__back { display: inline-block; margin-top: 40px; font-weight: 600; color: var(--horizont); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .why__cards, .cards, .steps, .reviews__grid { grid-template-columns: 1fr 1fr; }
  .bav__inner, .ueber__inner { grid-template-columns: 1fr; gap: 36px; }
  .ueber__media { order: -1; max-width: 420px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; top: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: var(--blau); padding: 40px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  }
  .nav--open .nav__links { transform: translateX(0); }
  .nav__links a { color: var(--weiss) !important; font-size: 1.15rem; }
  .nav__cta { margin-top: 10px; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .why__cards, .cards, .steps, .reviews__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .cta__bg { background-attachment: scroll; }
  .hero__content { padding-top: 120px; }
  .hero__title br { display: none; }
  .btn { white-space: normal; max-width: 100%; text-align: center; }
  .btn--lg { padding: 15px 24px; font-size: 1rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
