:root {
  --blue: #0B4FA8;
  --blue-bright: #1E6FE0;
  --sky: #E8F1FC;
  --ink: #0E1B2A;
  --grey: #F2F5F9;
  --steel: #5B6B7C;
  --white: #FFFFFF;
  --line: #E3EAF3;
  --paper: var(--white);
  --accent: var(--blue-bright);
  --shadow: 0 12px 30px rgba(11, 79, 168, .08);
  --radius: 14px;
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--white); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .16em; }
a:hover { color: var(--blue-bright); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--ink); color: var(--white); border-radius: 0 0 8px 8px; font-weight: 700; }
.skip-link:focus { top: 0; }
.shell { width: min(var(--shell), calc(100% - 2rem)); margin-inline: auto; }
section { padding: 4rem 0; }
.section-grey { background: var(--grey); }
.section-sky { background: var(--sky); }
.eyebrow { margin: 0 0 .65rem; color: var(--blue); font-family: var(--font-display); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 7vw, 4.8rem); font-weight: 800; letter-spacing: -.05em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.65rem); font-weight: 750; letter-spacing: -.035em; }
h3 { font-size: 1.18rem; font-weight: 750; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
.lead { max-width: 62ch; color: var(--steel); font-size: clamp(1.05rem, 2.1vw, 1.22rem); }
.section-heading { display: flex; flex-direction: column; gap: .35rem; max-width: 710px; margin-bottom: 2rem; }
.section-heading p:last-child { margin-bottom: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 9px; font-family: var(--font-display); font-weight: 750; line-height: 1.2; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #083e84; color: var(--white); }
.btn-secondary { background: var(--white); border-color: var(--line); color: var(--blue); }
.btn-secondary:hover { background: var(--sky); color: var(--blue); }
.btn-quiet { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { background: var(--grey); color: var(--ink); }

/* Header */
.utility-bar { background: var(--blue); color: var(--white); font-size: .82rem; }
.utility-inner { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; min-height: 34px; padding: .35rem 0; }
.utility-inner p, .utility-phone { display: inline-flex; gap: .35rem; align-items: center; margin: 0; color: var(--white); }
.utility-phone { font-weight: 700; }
.header-main { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(11, 79, 168, .03); }
.header-main.is-scrolled { box-shadow: 0 9px 24px rgba(11,79,168,.1); }
.header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; letter-spacing: -.05em; }
.brand-copy em { color: var(--blue); font-style: normal; }
.brand-copy small { margin-top: .25rem; color: var(--steel); font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--blue); border-radius: 1px; }
.nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem .85rem; padding: 0 0 .75rem; }
.nav a { padding: .25rem 0; color: var(--ink); font-family: var(--font-display); font-size: .92rem; font-weight: 700; text-decoration: none; }
.nav a:hover, body[data-page="start"] .nav a[data-nav="start"], body[data-page="leistungen"] .nav a[data-nav="leistungen"], body[data-page="inspektion"] .nav a[data-nav="leistungen"], body[data-page="reifenservice"] .nav a[data-nav="leistungen"], body[data-page="ueber-uns"] .nav a[data-nav="ueber-uns"], body[data-page="kontakt"] .nav a[data-nav="kontakt"] { color: var(--blue-bright); }
.header-cta { display: none; }

/* Hero */
.hero { overflow: hidden; padding: 3rem 0 3.5rem; background: linear-gradient(135deg, var(--sky) 0%, var(--white) 65%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lead { margin-top: 1.25rem; }
.service-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.35rem 0 1.55rem; padding: 0; list-style: none; }
.service-chips li { padding: .35rem .68rem; border: 1px solid #cbdcf2; border-radius: 999px; background: var(--white); color: var(--blue); font-family: var(--font-display); font-size: .82rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual { position: relative; margin: 0; padding: 0 0 1.5rem; }
.hero-image-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.hero-image-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-visual figcaption, .image-band figcaption, .detail-figure figcaption { padding: .65rem .8rem; color: var(--steel); font-size: .8rem; }
.check-card { position: relative; width: min(92%, 370px); margin: -1.5rem 0 0 auto; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.check-card h2 { font-size: .95rem; }
.check-list { display: grid; gap: .38rem; margin: .75rem 0 0; padding: 0; list-style: none; font-size: .86rem; }
.check-list li { display: flex; gap: .5rem; align-items: center; }
.tick { display: inline-grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 800; }

/* Cards and services */
.cards-grid { display: grid; gap: 1rem; }
.service-card, .step-card, .info-card, .contact-card, .advantage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.service-card { display: flex; flex-direction: column; padding: 1.3rem; }
.card-icon, .advantage-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: var(--sky); color: var(--blue); font-family: var(--font-display); font-weight: 800; }
.card-icon svg { width: 24px; height: 24px; }
.service-card p { color: var(--steel); font-size: .94rem; }
.service-card a { display: inline-flex; margin-top: auto; padding-top: .5rem; font-family: var(--font-display); font-size: .9rem; font-weight: 800; text-decoration: none; }
.service-card a::after { margin-left: .45rem; content: "→"; }

/* Checklist table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.check-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.check-table caption { padding: 1rem 1rem 0; color: var(--steel); text-align: left; }
.check-table th, .check-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.check-table th { color: var(--blue); font-family: var(--font-display); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; }
.check-table tr:nth-child(even) td { background: #f8fbff; }
.check-table tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-size: .82rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright); }

/* Steps */
.steps { display: grid; gap: 1rem; }
.step-card { position: relative; padding: 1.25rem; }
.step-badge { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: .9rem; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--font-display); font-size: .9rem; font-weight: 800; }
.step-card p, .advantage p { color: var(--steel); font-size: .94rem; }

/* Advantages and images */
.advantages { display: grid; gap: 1.15rem; }
.advantage { display: grid; grid-template-columns: auto 1fr; gap: .85rem; padding: 1.15rem; box-shadow: none; }
.advantage-icon { margin: 0; }
.advantage h3 { margin-top: .12rem; }
.advantage p { margin: .35rem 0 0; }
.image-band { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.image-band img, .detail-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* CTA */
.cta-panel { padding: 1.65rem; border-radius: var(--radius); background: var(--blue); color: var(--white); box-shadow: 0 15px 35px rgba(11,79,168,.2); }
.cta-panel h2, .cta-panel p { color: var(--white); }
.cta-panel h2 { max-width: 18ch; }
.cta-panel p { max-width: 56ch; margin-top: .65rem; }
.cta-panel .btn-primary { background: var(--white); color: var(--blue); }
.cta-panel .btn-primary:hover { background: var(--sky); color: var(--blue); }
.cta-panel .btn-secondary { margin-top: .75rem; border-color: rgba(255,255,255,.52); background: transparent; color: var(--white); }
.cta-panel .btn-secondary:hover { background: rgba(255,255,255,.1); color: var(--white); }
.cta-panel .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }

/* Interior pages */
.page-hero { padding: 3rem 0; background: var(--sky); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; color: var(--steel); list-style: none; font-size: .87rem; }
.breadcrumbs li:not(:last-child)::after { margin-left: .4rem; content: "/"; color: #98a8ba; }
.breadcrumbs a { color: var(--steel); }
.content-grid { display: grid; gap: 2rem; }
.prose { max-width: 75ch; }
.prose h2 { margin: 2.1rem 0 .8rem; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.prose h3 { margin: 1.5rem 0 .4rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .42rem; }
.prose strong { color: var(--ink); }
.callout { padding: 1.1rem 1.2rem; border-left: 4px solid var(--blue-bright); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sky); }
.callout p:last-child { margin-bottom: 0; }
.detail-figure { align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: .9rem 1rem; }
.faq summary { cursor: pointer; color: var(--ink); font-family: var(--font-display); font-weight: 750; }
.faq details p { margin: .75rem 0 0; color: var(--steel); }

/* Contact and forms */
.contact-layout { display: grid; gap: 1rem; }
.contact-card { padding: 1.35rem; }
.contact-card h2 { font-size: 1.35rem; }
.contact-card address { margin: .8rem 0; font-style: normal; }
.contact-card .phone-link { display: inline-flex; gap: .45rem; align-items: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.contact-form { margin-top: 1.1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label, .checkbox { display: block; color: var(--ink); font-family: var(--font-display); font-size: .92rem; font-weight: 750; }
.optional { color: var(--steel); font-family: var(--font-text); font-weight: 400; }
.form-field input, .form-field textarea { width: 100%; margin-top: .38rem; border: 1px solid #bdc9d8; border-radius: 8px; background: var(--white); color: var(--ink); padding: .72rem .8rem; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue-bright); outline: 3px solid rgba(30,111,224,.2); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; margin: .25rem 0 1rem; font-family: var(--font-text); font-weight: 400; }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--blue); }
.field-error { margin: .35rem 0 0; color: #a02121; font-size: .86rem; font-weight: 700; }
.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status.is-error { color: #a02121; }
.form-status.is-success { color: #075e37; }
.contact-form button[disabled] { cursor: wait; opacity: .7; }

/* Legal and privacy */
.legal-note { padding: 1rem; border: 1px solid #cbdcf2; border-radius: var(--radius); background: var(--sky); }
.settings-card { max-width: 700px; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.setting-row { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--line); }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; width: 48px; height: 28px; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 100%; height: 100%; border-radius: 99px; background: #aebbc9; transition: background .2s ease; }
.switch span::after { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); content: ""; transition: transform .2s ease; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.settings-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }

/* Footer */
.site-footer { margin-top: 0; background: var(--ink); color: #dce7f4; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2.2rem; }
.site-footer h2 { margin-bottom: .7rem; color: var(--white); font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; }
.site-footer a { color: var(--white); }
.site-footer address { margin-bottom: .45rem; font-style: normal; }
.footer-wordmark { color: var(--white); font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.06em; }
.footer-wordmark span { color: #83b5ff; }
.footer-brand p:last-child { max-width: 28ch; color: #b5c7dc; }
.footer-links { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.footer-bottom { padding: 1.15rem 0; border-top: 1px solid rgba(255,255,255,.14); color: #aabdd2; font-size: .78rem; }
.footer-bottom p { margin: 0 0 .4rem; }

/* Consent */
.consent-banner { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; left: 1rem; max-width: 650px; margin-left: auto; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 42px rgba(14,27,42,.24); }
.consent-banner[hidden] { display: none !important; }
.consent-banner h2 { font-size: 1.05rem; }
.consent-banner p { margin-bottom: .6rem; color: var(--steel); font-size: .9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

@media (min-width: 640px) {
  .shell { width: min(var(--shell), calc(100% - 3rem)); }
  section { padding: 5rem 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: repeat(2, 1fr); }
  .contact-layout .contact-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.25fr; }
  .consent-banner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: end; }
  .consent-actions { justify-content: flex-end; margin: 0; }
}

@media (min-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 78px; }
  .nav { grid-column: auto; justify-content: center; padding: 0; }
  .nav a { padding: .5rem .25rem; }
  .header-cta { display: inline-flex; }
  .hero { padding: 4.8rem 0 5.2rem; }
  .hero-grid { grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); gap: 3.5rem; }
  .check-card { position: absolute; right: -1rem; bottom: 0; margin: 0; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
  .steps .step-card:not(:last-child)::after { position: absolute; top: 1.95rem; right: -1.4rem; width: 1.4rem; height: 2px; background: #bcd1ed; content: ""; }
  .advantages { grid-template-columns: repeat(3, 1fr); }
  .advantage { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr); gap: 4rem; }
  .detail-figure { position: sticky; top: 105px; }
  .contact-layout { grid-template-columns: .84fr 1.16fr; gap: 1.5rem; }
  .contact-layout .contact-card:last-child { grid-column: auto; }
}

@media (max-width: 899px) {
  .header-main.nav-ready .header-inner { grid-template-columns: 1fr auto; }
  .header-main.nav-ready .nav { display: none; }
  .header-main.nav-ready .nav.is-open { display: flex; }
  .header-main.nav-ready .nav-toggle { display: block; }
}

@media (min-width: 1200px) {
  .hero-grid { gap: 5rem; }
  .check-card { right: -2rem; }
  .cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2.1rem 2.4rem; }
  .cta-panel .cta-actions { justify-content: flex-end; margin: 0; }
}

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