/* Autoglas Ettlingen, Biesinger Karosseriebau GmbH. Farben aus dem Biesinger-Branding. */
:root {
  --navy: #323275;
  --navy-dark: #252558;
  --blue: #007dc5;
  --blue-dark: #0067a3;
  --blue-soft: #e6f3fb;
  --sky: #93cef0;
  --text: #333333;
  --muted: #6b7280;
  --line: #e4e8ee;
  --bg: #ffffff;
  --soft: #f4f6fa;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(50, 50, 117, .08);
  --shadow-lg: 0 24px 60px rgba(50, 50, 117, .18);
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: #4b5563; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.center { text-align: center; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-s { width: 16px; height: 16px; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #d6dbee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--sky); }
.section--navy .section-head p, .section--navy .muted { color: #b9c2e3; }
.eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s; text-decoration: none !important; font-family: inherit; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 125, 197, .3); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); }
.btn--light { background: #fff; color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; margin-bottom: 10px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }

/* Topbar und Header */
.topbar { background: var(--navy); color: #d6dbee; font-size: .88rem; }
.topbar .container { display: flex; gap: 28px; align-items: center; min-height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { color: #fff; margin-left: auto; font-weight: 600; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; flex-direction: column; gap: 3px; text-decoration: none !important; flex: none; }
.logo img { width: 160px; height: auto; }
.logo-sub { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 700; padding-left: 2px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); font-weight: 600; padding: 8px 12px; border-radius: 6px; text-decoration: none !important; }
.nav a:hover, .nav a.active { background: var(--blue-soft); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero, .page-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.page-hero { min-height: 480px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 24, 60, .55) 0%, rgba(20, 24, 60, .15) 55%, rgba(20, 24, 60, 0) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero-card { background: #fff; border-radius: var(--radius); padding: 44px; max-width: 640px; box-shadow: var(--shadow-lg); }
.hero-card--sm { padding: 36px; max-width: 640px; }
.hero-card h1 .accent { color: var(--blue); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero-usps { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.hero-usps li { display: inline-flex; align-items: center; gap: 6px; }
.hero-usps svg { color: var(--blue); }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; margin-bottom: 10px; }

/* Vertrauensleiste */
.trust { background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.trust-grid div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.trust-grid svg { grid-row: 1 / 3; color: var(--blue); width: 30px; height: 30px; }
.trust-grid b { color: var(--navy); }
.trust-grid span { font-size: .88rem; color: var(--muted); }

/* Karten */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none !important; color: var(--text); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-top: -44px; position: relative; border: 3px solid #fff; }
.card h3 { font-size: 1.1rem; margin: 4px 0 0; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; flex: 1; }
.card .link { margin-top: 6px; }

/* Vergleich */
.compare { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; margin-bottom: 32px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--navy); color: #fff; font-size: 1rem; }
.compare th svg { display: inline; vertical-align: -2px; margin-right: 6px; }
.compare td:first-child { font-weight: 700; color: var(--navy); width: 150px; background: var(--soft); }
.compare tr:last-child td { border-bottom: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split-text { order: 1; }
.split--rev .split-img { order: 2; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.checklist li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { color: var(--blue); margin-top: 5px; width: 20px; height: 20px; }
.checklist b { display: block; color: var(--navy); }
.checklist span { font-size: .95rem; color: var(--muted); }
.checklist--compact li { padding: 8px 0; border: 0; }
.chips span { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .9rem; margin: 0 6px 8px 0; color: var(--navy); font-weight: 600; }

/* Kacheln Versicherung */
.tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; }
.tile-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--sky); letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.tile p { margin: 0; color: #c5cde8; font-size: .97rem; }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 20px 18px; margin: 0; color: #4b5563; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 24px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci svg { color: var(--blue); margin-top: 3px; }
.ci small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.ci a { font-weight: 600; color: var(--navy); }
.form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #cfd6e0; border-radius: var(--radius-sm); font: inherit; font-size: 1rem; color: var(--text); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: #4b5563; }
.form .check input { width: auto; margin: 4px 0 0; flex: none; }
.form .check span { flex: 1; }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 12px 0 0; }
.form.sent .form-note, .form.sent button, .form.sent .row, .form.sent label, .form.sent .schaden-box, .form.sent .form-or { display: none; }
.form-err { background: #fdecec; color: #9b1c1c; padding: 14px 16px; border-radius: var(--radius-sm); margin: 12px 0 0; font-weight: 600; }
.form-ok { background: #e7f6ee; color: #146c3d; padding: 14px 16px; border-radius: var(--radius-sm); margin: 12px 0 0; font-weight: 600; }

/* Leistungsseiten */
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.article h2 { font-size: 1.5rem; margin-top: 2em; }
.article .text-block:first-of-type h2 { margin-top: .5em; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.aside-card h3 { font-size: 1rem; margin-bottom: 14px; }
.minis { display: grid; gap: 8px; }
.mini { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius-sm); padding: 10px 12px; color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none !important; border: 1px solid var(--line); }
.mini:hover { border-color: var(--blue); }
.mini svg { color: var(--blue); width: 20px; height: 20px; }

/* CTA-Band */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #dbe8f5; }
.cta-band-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Rechtliches */
.legal h1 { margin-bottom: .6em; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.todo { background: #fff3cd; color: #7a5a00; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* Footer */
.footer { background: var(--navy-dark); color: #b9c2e3; font-size: .95rem; }
.footer a { color: #fff; }
.footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: 40px; padding: 64px 24px 40px; }
.footer-logo { width: 160px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 6px; }
.hours td { padding: 2px 10px 2px 0; vertical-align: top; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-bottom nav a { margin-left: 20px; }

/* Schwebende Knöpfe auf Handy und Tablet */
.fab-bar { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; gap: 10px; }
.fab { display: inline-flex; align-items: center; gap: 8px; color: #fff; border-radius: 999px; padding: 14px 20px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.fab--call { background: var(--blue); box-shadow: 0 10px 24px rgba(0, 125, 197, .4); }
.fab--schaden { background: var(--navy); box-shadow: 0 10px 24px rgba(50, 50, 117, .4); }
@media (max-width: 1024px) { .fab-bar { display: flex; } }
@media (max-width: 400px) { .fab-bar { left: 16px; right: 16px; } .fab { flex: 1; justify-content: center; padding: 14px 12px; } }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .section { padding: 64px 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-cta .btn { display: none; }
  .header-cta { margin-left: auto; }
  .hero { min-height: 0; }
  .hero-inner { padding: 40px 16px; }
  .hero-card { padding: 28px 22px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split-text { order: 2; }
  .split--rev .split-img { order: 1; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px 18px; }
  .container { padding: 0 16px; }
  .footer-grid { padding: 48px 16px 32px; }
}
@media (max-width: 560px) {
  .grid-4, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; white-space: normal; text-align: center; padding-left: 16px; padding-right: 16px; }
  .topbar .container { gap: 12px; font-size: .82rem; }
}

/* Schaden online melden im Formular */
.schaden-box { display: flex; flex-direction: column; gap: 12px; background: var(--blue-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; }
.schaden-box b { display: block; color: var(--navy); }
.schaden-box span { font-size: .9rem; color: #4b5563; }
.schaden-box .btn { align-self: flex-start; }
.form-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 0 0 16px; }
.form-or::before, .form-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 560px) { .schaden-box .btn { width: 100%; } }

/* Datenschutz-Overlay */
.dialog { width: min(820px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.dialog::backdrop { background: rgba(20, 24, 60, .6); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--navy); color: #fff; font-weight: 700; }
.dialog-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.dialog-body { padding: 8px 28px 28px; overflow: auto; max-height: calc(100vh - 120px); font-size: .95rem; }
.dialog-body h1 { font-size: 1.6rem; margin-top: .6em; }
.dialog-body h2 { font-size: 1.05rem; }

/* Terminformular im Fenster */
.dialog--form { width: min(720px, calc(100% - 32px)); }
.dialog-body--form { padding: 0; }
.dialog-body--form .form { box-shadow: none; border-radius: 0; }
.dialog-body--form .form > h3 { display: none; }
