/* Team Bergmann Versicherungslösungen GmbH
   Farbwelt nach Styleguide: Blaugrün #00A3AD, Goldgelb #C1BD39, Dunkelgrau #343433
   Schrift: Barlow (nächster freier Verwandter der Hausschrift Expressway) + Inter */

:root {
  --teal: #00a3ad;
  --teal-dark: #007e86;
  --teal-deep: #0b3b43;
  --lime: #c1bd39;
  --lime-dark: #a5a12c;
  --ink: #1c2b33;
  --ink-soft: #46585f;
  --muted: #6d8088;
  --line: #e2e9eb;
  --tint: #f3f8f9;
  --tint-2: #eef5f6;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 43, 51, .04), 0 12px 32px -18px rgba(28, 43, 51, .25);
  --maxw: 1180px;
  --sp: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: Barlow, Inter, sans-serif;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
a { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: var(--sp) 0; }

.eyebrow {
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 14px;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-dark); }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-text {
  font-family: Barlow, sans-serif;
  font-weight: 800;
  font-size: 1.04rem;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand-text span { display: block; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav-links a:hover { color: var(--teal-dark); border-color: var(--lime); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-family: Barlow, sans-serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--teal-dark); }
.nav .btn { padding: 12px 22px; font-size: .97rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

@media (max-width: 980px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 26px;
  }
  .nav-links.open a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(44px, 5vw, 72px) 0 clamp(52px, 6vw, 86px);
  background:
    radial-gradient(900px 480px at 88% -5%, rgba(0, 163, 173, .13), transparent 62%),
    radial-gradient(620px 420px at 2% 102%, rgba(193, 189, 57, .14), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 70px); align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px 7px 10px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.pill b { font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; }

h1 .hl { color: var(--teal); }
.hero p.lead { max-width: 33em; }

.hero-note { font-size: .93rem; color: var(--muted); margin-top: 18px; }

.hero-media { position: relative; z-index: 0; }
.hero-media img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 1 / 1.08;
  box-shadow: 0 30px 60px -32px rgba(11, 59, 67, .5);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 58%;
  height: 46%;
  background: var(--lime);
  border-radius: 24px;
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -34px;
  bottom: 26px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 18px 44px -20px rgba(11, 59, 67, .45);
  border: 1px solid var(--line);
  max-width: 230px;
}
.hero-badge strong {
  display: block;
  font-family: Barlow, sans-serif;
  font-size: 1.5rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-badge span { font-size: .86rem; color: var(--ink-soft); line-height: 1.4; display: block; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .hero-media img { aspect-ratio: 4 / 3.4; }
  .hero-media::before { inset: auto -12px -12px auto; width: 48%; height: 40%; }
  .hero-badge { position: static; max-width: 340px; margin: -18px 0 0; }
}

@media (max-width: 760px) {
  .nav-cta .btn-primary { display: none; }
  .nav-inner { height: 68px; }
  .nav-links.open { top: 68px; }
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tint); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; margin-top: 2px; }
.trust-item b { display: block; font-family: Barlow, sans-serif; color: var(--ink); font-size: 1rem; }
.trust-item span { font-size: .87rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Generic grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0e3; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 14px; }
.card ul { margin: 0; padding-left: 0; list-style: none; }
.card ul li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--teal);
  opacity: .85;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--tint-2);
  display: grid; place-items: center;
  margin-bottom: 18px;
}

/* ---------- Position / Beratung statt Portal ---------- */
.band-tint { background: var(--tint); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.quote-card {
  background: var(--teal-deep);
  color: #d7e8ea;
  border-radius: var(--radius);
  padding: 38px 36px;
}
.quote-card p { font-family: Barlow, sans-serif; font-size: 1.32rem; line-height: 1.4; color: #fff; }
.quote-card footer { font-size: .92rem; color: #9dc3c8; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 18px;
  font-size: 1rem;
}
.checklist li strong { display: block; font-family: Barlow, sans-serif; color: var(--ink); font-size: 1.06rem; margin-bottom: 2px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- E-Mobility Kacheln ---------- */
.tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.tile .tile-body { padding: 22px 22px 26px; }
.tile h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tile p { font-size: .94rem; margin: 0; }

.tile-wide img { aspect-ratio: 16 / 10; }

/* ---------- Ablauf ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: Barlow, sans-serif;
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--lime);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- Ergebnis / Case ---------- */
.case {
  background: var(--teal-deep);
  color: #cfe3e6;
  border-radius: 26px;
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}
.case h2 { color: #fff; }
.case p { color: #b9d6da; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
}
.stat b {
  display: block;
  font-family: Barlow, sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  color: var(--lime);
  line-height: 1;
  margin-bottom: 6px;
}
.stat span { font-size: .88rem; color: #b9d6da; line-height: 1.45; display: block; }
.case-claim {
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: #fff;
  margin: 26px 0 0;
}
.case-claim em { color: var(--lime); font-style: normal; }

/* ---------- Über uns ---------- */
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3.3; object-fit: cover; object-position: center 38%; width: 100%; }
.vita { list-style: none; margin: 22px 0 0; padding: 0; border-left: 2px solid var(--line); }
.vita li { position: relative; padding: 0 0 16px 22px; font-size: .96rem; }
.vita li::before {
  content: "";
  position: absolute;
  left: -6px; top: .55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}
.vita li b { font-family: Barlow, sans-serif; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { color: var(--teal-dark); }
.faq .faq-body { padding: 0 24px 22px; font-size: .99rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 55%, var(--teal-deep) 100%);
  color: #fff;
  border-radius: 26px;
  padding: clamp(38px, 5vw, 64px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 46em; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }
.cta-fineprint { font-size: .87rem; color: rgba(255, 255, 255, .75); margin: 20px 0 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 3px; }
.contact-list b { display: block; font-family: Barlow, sans-serif; color: var(--ink); }
.contact-list a { color: var(--ink-soft); text-decoration: none; }
.contact-list a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9fb3ba; padding: 64px 0 34px; font-size: .94rem; }
.footer a { color: #d6e4e7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 9px; }
.footer .brand-text { color: #fff; }
.footer .brand-text span { color: var(--lime); }
.footer-brand p { margin-top: 16px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: .87rem;
}

/* ---------- Rechtsseiten ---------- */
.legal { padding: clamp(48px, 6vw, 84px) 0 var(--sp); }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h2 {
  font-size: 1.35rem;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.05rem; margin-top: 28px; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: .92rem; margin-bottom: 34px; }
.legal dl { margin: 0 0 24px; }
.legal dt { font-family: Barlow, sans-serif; font-weight: 700; color: var(--ink); margin-top: 14px; }
.legal dd { margin: 2px 0 0; }
.todo {
  display: inline-block;
  background: #fff4d6;
  border: 1px dashed #d8a600;
  color: #7a5c00;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: .93rem;
  font-weight: 600;
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
