/* =====================================================
   Dierkes Car Performance – Stylesheet v4
   1:1-Nachbau des Original-Designs (Enfold-Look)
   Droid Sans / Open Sans · 13px · Rot #cc0000
   ===================================================== */

/* Droid Sans – Original-Schrift, selbst gehostet (DSGVO-sicher) */
@font-face {
  font-family: "Droid Sans";
  src: url("../fonts/droid-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Droid Sans";
  src: url("../fonts/droid-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #cc0000;
  --red-dark: #a30000;
  --text: #111b24;
  --heading: #111b24;
  --gray-bg: #f5f5f5;
  --footer-bg: #111b24;
  --border: #e1e1e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Droid Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;          /* Fließtext wie im Original (16px/26.4) */
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

.container { max-width: 1310px; margin: 0 auto; padding: 0 50px; }
.center { text-align: center; }
.white { color: #fff; }

p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Überschriften ---------- */
h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .8em;
}
h1 { font-size: 34px; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: 28px; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 18px; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; }

/* Überschrift mit Linien links/rechts (Enfold-Stil) */
.lined {
  display: flex; align-items: center; gap: 25px;
  text-align: center; justify-content: center;
}
.lined::before, .lined::after {
  content: ""; flex: 1; height: 1px;
  background: rgba(0,0,0,.25);
  max-width: 260px;
}
.lined.light::before, .lined.light::after { background: rgba(255,255,255,.35); }
.lined.light { color: #fff; }
.lined span { flex-shrink: 1; }

/* Rote Überschrift mit Linie rechts */
.red, .red-text { color: var(--red); }
h2.red { text-transform: none; letter-spacing: 0; font-size: 20px; line-height: 1.1; }
.lined-after { display: flex; align-items: center; gap: 25px; }
.lined-after::after { content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn::before { content: "➔ "; font-size: 12px; }
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn-submit { padding: 14px 40px; }
.btn-submit::before { content: ""; }

/* ---------- Hero ---------- */
.hero {
  /* Overlay wie im Original: #111b24 mit 50% über dem Foto */
  background:
    linear-gradient(rgba(17, 27, 36, .5), rgba(17, 27, 36, .5)),
    url("../images/hero.jpg") center / cover no-repeat, #333;
  min-height: 710px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.hero-inner { max-width: 1100px; width: 100%; }
.hero-logo { margin-bottom: 10px; height: auto; }
.hero-eyebrow {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: .85;
  margin: 0 0 1.2em;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.hero h1 { color: #fff; margin-bottom: .6em; }
.hero .lined::before, .hero .lined::after { background: rgba(255,255,255,.6); max-width: 120px; }
.hero-sub {
  color: #fff; font-size: 21px; line-height: 1.65;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  margin-bottom: 1.6em;
}

/* ---------- Sektionen ---------- */
.section { padding: 60px 0; }
.section-gray { background: var(--gray-bg); }

/* ---------- Spalten ---------- */
.cols3, .cols4, .cols2 { display: grid; gap: 45px; margin: 35px 0 25px; }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols4 { grid-template-columns: repeat(4, 1fr); }
.cols2 { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 60px; margin: 0 auto; }
.cols2 img { width: 100%; height: auto; display: block; }

/* Leistungen: zentrierte Spalten, Icon + Überschrift */
.cols3 .col { text-align: center; }
.icon-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: .9em; }
.icon-circle {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--red); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 17px; height: 17px; }

/* ---------- Dunkles Band (Zahlen / Hersteller) ---------- */
.band {
  position: relative;
  /* Overlay wie im Original: #1a1a1a mit 80% über dem Foto */
  background:
    linear-gradient(rgba(26, 26, 26, .8), rgba(26, 26, 26, .8)),
    url("../images/band.jpg") center / cover no-repeat fixed, #16181c;
  color: #fff;
  padding: 60px 0;
}
.band p { color: #fff; }
.band-slim { padding: 40px 0 30px; }

.stat-number {
  font-size: 40px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
  letter-spacing: -2px;
}
.stat-unit { font-size: 22px; color: #b9b9b9; margin-left: 6px; letter-spacing: 0; }
.stat-label { color: var(--red); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: .5em; }
.stat p { font-size: 16px; line-height: 1.3; }

.band .btn { margin-top: 10px; }

.brands { color: var(--red); font-weight: 600; font-size: 16px; }
.band-slim h3 { margin-bottom: .6em; text-transform: none; letter-spacing: 0; }
.red-text.lined::before, .red-text.lined::after { background: rgba(255,255,255,.35); }

/* ---------- Ratgeber-Teaser ---------- */
.teaser {
  display: block;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px 26px;
  color: var(--text);
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.teaser:hover { text-decoration: none; border-color: var(--red); box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.teaser h3 { font-size: 16px; color: var(--red); }
.teaser p { margin-bottom: 1.2em; font-size: 14px; }
.teaser-grid { gap: 25px; }
.teaser-more { color: var(--red); font-size: 13px; font-weight: 700; }
.teaser:hover .teaser-more { text-decoration: underline; }

/* ---------- Kontakt-Formular ---------- */
.form-wrap { max-width: 640px; }
.form-title {
  text-transform: none; letter-spacing: 0;
  font-size: 20px; line-height: 1.1; margin-bottom: 1.2em;
}
#kontakt-form { font-size: 13px; }
#kontakt-form input[type="text"],
#kontakt-form input[type="email"],
#kontakt-form input[type="tel"],
#kontakt-form select,
#kontakt-form textarea {
  display: block; width: 100%;
  margin-bottom: 14px;
  padding: 13px 14px;
  font: inherit; color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
}
#kontakt-form input:focus, #kontakt-form select:focus, #kontakt-form textarea:focus {
  outline: none; border-color: #aaa;
}
#kontakt-form ::placeholder { color: #999; }
.captcha-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: #fff;
  border-radius: 2px; padding: 6px 14px; margin-bottom: 18px;
}
.captcha-row input {
  border: none !important; flex: 1;
  padding: 7px 0 !important; margin: 0 !important;
}
.hp { position: absolute !important; left: -9999px; }
#form-status { margin-top: 12px; font-weight: 600; }
#form-status.ok { color: #2e7d32; }
#form-status.error { color: var(--red); }

/* ---------- Kontakt: zweispaltig (Formular + Anfahrt) ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.map-address { font-size: 13px; margin-top: 14px; }

/* ---------- Anfahrt: Zwei-Klick-Karte ---------- */
.map-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.map-wrap img { display: block; width: 100%; height: auto; }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, .82);
  text-align: center;
  padding: 20px;
}
.map-consent p { max-width: 520px; font-size: 13px; margin: 0 0 6px; }
.map-alt { font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #dddddd;
  font-size: 13px;
  padding: 50px 0 40px;
}
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  color: #fff; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1em;
}
.site-footer a { color: var(--red); }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin-top: 1.5em; color: #8a9099; }

/* Scroll-to-top */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px;
  background: #3d454f; color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 12px; border-radius: 2px;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--red); text-decoration: none; }

/* ---------- Unterseiten ---------- */
.subpage-header {
  background: var(--footer-bg);
  padding: 7px 0;
}
.subpage-header .container { display: flex; align-items: center; justify-content: space-between; }
.header-phone {
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.header-phone:hover { color: var(--red); text-decoration: none; }
.subpage-nav a { color: #d6dade; margin-left: 24px; font-weight: 600; }
.subpage-nav a:hover, .subpage-nav a.active { color: var(--red); text-decoration: none; }

.page-title-band {
  background:
    linear-gradient(rgba(26, 26, 26, .8), rgba(26, 26, 26, .8)),
    url("../images/band.jpg") center / cover no-repeat, #16181c;
  color: #fff;
  padding: 55px 0;
  text-align: center;
}
.page-title-band h1 { color: #fff; font-size: 28px; margin: 0; }
.page-title-band p { color: #ddd; margin: .8em 0 0; font-size: 15px; }

.content-page { padding: 55px 0 70px; }
.content-page .container { max-width: 860px; }
.content-page h2 { font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--red); margin-top: 2em; }
.content-page h2:first-child { margin-top: 0; }
.content-page ul { padding-left: 1.3em; margin: 0 0 1em; }
.content-page li { margin-bottom: .4em; }

.cta-box {
  background: var(--gray-bg);
  border-left: 3px solid var(--red);
  padding: 22px 26px;
  margin: 2.5em 0 0;
}
.cta-box p { margin-bottom: 1em; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: 16px 0;
  font-weight: 600; font-size: 15px; color: var(--heading);
  list-style: none; position: relative; padding-right: 30px;
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  color: var(--red); font-size: 20px; font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* Rechtsseiten */
.legal-page { padding: 55px 0 70px; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-size: 26px; }
.legal-page h2 { font-size: 17px; text-transform: none; letter-spacing: 0; margin-top: 2em; }
.placeholder-hint {
  background: #fff8e1; border: 1px solid #ffe082; color: #7a5c00;
  padding: 12px 16px; border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 989px) {
  .cols3, .cols4 { grid-template-columns: 1fr 1fr; }
  .cols2 { grid-template-columns: 1fr; gap: 35px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 45px; }
  .band { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .cols3, .cols4 { grid-template-columns: 1fr; gap: 35px; }
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .hero { min-height: 560px; }
  .hero-logo { width: 240px; }
  .lined { gap: 14px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .subpage-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
