/* ==========================================================================
   Dürnberger Automotive Solutions — Design System
   Dunkles Anthrazit/Navy + Amber-Akzent. Technisch, präzise, vertrauenswürdig.
   ========================================================================== */

:root {
  --color-bg: #0a1120;
  --color-bg-alt: #0f1a2e;
  --color-surface: #16223b;
  --color-surface-alt: #1c2941;
  --color-border: #2a3852;
  --color-anthracite: #1a2333;

  --color-text: #eef1f6;
  --color-text-muted: #a6b1c5;
  --color-text-faint: #7784998f;

  --color-accent: #f2a541;
  --color-accent-dark: #d9862a;
  --color-accent-contrast: #1a1002;

  --color-success: #3ecf8e;
  --color-white: #ffffff;

  --font-base: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-w: 1180px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;

  --shadow-card: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
img, picture { max-width: 100%; display: block; }
picture .photo { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--surface { background: var(--color-surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.text-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-s);
  padding: 6px 10px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.brand-text .sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.95rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 76px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(242, 165, 65, 0.16), transparent 60%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero p.text-lead { max-width: 560px; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--color-accent);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Badges / trust bar ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.badge svg { width: 15px; height: 15px; color: var(--color-accent); }

.brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-surface-alt);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-anthracite), var(--color-surface-alt));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(242, 165, 65, 0.14), transparent 55%);
  pointer-events: none;
}
.cta-banner h2, .cta-banner h3 { margin-bottom: 8px; }
.cta-banner p { margin-bottom: 0; }
.cta-banner--urgent {
  border-color: rgba(242, 165, 65, 0.4);
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cta-strip .btn:only-child { min-width: 290px; text-align: center; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-s);
  background: rgba(242, 165, 65, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-accent);
}

.service-list-card ul { margin-top: 10px; }
.service-list-card li {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}
.service-list-card li:first-of-type { border-top: none; }
.service-list-card li svg { width: 16px; height: 16px; color: var(--color-success); flex-shrink: 0; margin-top: 3px; }

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.93rem; }

/* ---------- Problem list (Schiebedach page) ---------- */
.problem-block {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 32px;
  margin-bottom: 24px;
}
.problem-block h2, .problem-block h3 { color: var(--color-text); }
.problem-block:last-child { margin-bottom: 0; }

/* ---------- FAQ (details/summary, no-JS accessible) ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-accent);
  transition: transform 0.15s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 24px 22px;
  color: var(--color-text-muted);
}
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Image placeholder ---------- */
.img-placeholder {
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-m);
  background: repeating-linear-gradient(135deg, var(--color-surface), var(--color-surface) 10px, var(--color-surface-alt) 10px, var(--color-surface-alt) 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 260px;
  color: var(--color-text-faint);
  padding: 24px;
}
.img-placeholder svg { width: 34px; height: 34px; color: var(--color-text-muted); }
.img-placeholder strong { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 700; }
.img-placeholder span { font-size: 0.8rem; max-width: 320px; }

.photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span[aria-hidden] { margin: 0 8px; opacity: 0.5; }
.breadcrumb .current { color: var(--color-text); }

/* ---------- Contact block ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-methods { display: grid; gap: 16px; margin-top: 24px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 18px 20px;
}
.contact-method .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: rgba(242, 165, 65, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method .icon svg { width: 22px; height: 22px; }
.contact-method strong { display: block; font-size: 0.95rem; }
.contact-method span, .contact-method a.value {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.contact-method a.value:hover { color: var(--color-accent); }

.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.map-placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 32px 24px;
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.map-placeholder svg { width: 34px; height: 34px; color: var(--color-accent); }
.map-placeholder p { max-width: 420px; font-size: 0.88rem; margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { max-width: 320px; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-accent); }

.footer-mobility-hint {
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-faint);
}
.footer-mobility-hint a { color: var(--color-text-muted); font-weight: 600; }
.footer-mobility-hint a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text-faint);
}
.footer-bottom a { color: var(--color-text-faint); }
.footer-bottom a:hover { color: var(--color-accent); }

/* ---------- Cookie-Consent ---------- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 18px 24px;
  box-shadow: 0 -8px 30px -6px rgba(0, 0, 0, 0.5);
}
.cookie-consent__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-consent p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 640px;
}
.cookie-consent p a { color: var(--color-accent); text-decoration: underline; }
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-settings-link {
  color: var(--color-text-faint);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-settings-link:hover { color: var(--color-accent); }

@media (max-width: 760px) {
  .cookie-consent { bottom: 68px; padding: 16px 20px; }
  .cookie-consent__actions { flex-direction: column; width: 100%; }
  .cookie-consent__actions .btn { width: 100%; }
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 10px 12px;
  gap: 10px;
}
.mobile-cta-bar a {
  flex: 1;
}

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal-content li { color: var(--color-text-muted); margin-bottom: 0.4em; }

/* ---------- Keyword text block ---------- */
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--color-text); }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 1.2em 0; }
.prose ul li {
  padding-left: 28px;
  position: relative;
  color: var(--color-text-muted);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.stat-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 28px 36px;
}
.stat-bar .stat { text-align: center; }
.stat-bar .stat strong { display: block; font-size: 1.8rem; color: var(--color-accent); }
.stat-bar .stat span { font-size: 0.82rem; color: var(--color-text-muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  padding: 12px 18px;
  border-radius: var(--radius-s);
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
  .cta-strip--single { justify-content: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 56px 0; }
  .cta-banner { padding-left: 12px; padding-right: 12px; }
  .cta-strip--single .btn:only-child { min-width: 260px; max-width: 100%; padding: 16px 18px; white-space: normal; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
  .stat-bar { justify-content: flex-start; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 24px;
  }
  .main-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav.is-open a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--color-border); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
