/* ============================================================
   HWF DESIGN BASELINE — professional local-business foundation
   Customized for Kfz-Technik Breidenbach (KFZ / Anthrazit-Rennrot)
   ============================================================ */

:root {
  --c-primary: #dc2626;        /* Rennrot */
  --c-primary-dark: #b91c1c;
  --c-accent: #f59e0b;
  --c-ink: #18181b;            /* Anthrazit */
  --c-body: #3f3f46;
  --c-muted: #71717a;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f4f5;
  --c-line: #e4e4e7;
  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 4px 12px rgb(15 23 42 / 0.08), 0 20px 48px rgb(15 23 42 / 0.14);
  --space-1: clamp(0.5rem, 1vw, 0.75rem);
  --space-2: clamp(1rem, 2vw, 1.5rem);
  --space-3: clamp(1.5rem, 3vw, 2.5rem);
  --space-4: clamp(2.5rem, 5vw, 4rem);
  --space-5: clamp(4rem, 8vw, 7rem);
  --content: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); font-weight: 600; }
p { margin: 0 0 var(--space-2); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--c-muted); max-width: 46rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-primary);
  margin-bottom: var(--space-1);
}
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: var(--c-primary); display: inline-block; }

.container { max-width: var(--content); margin-inline: auto; padding-inline: var(--space-2); }
section { padding-block: var(--space-5); }
section.alt { background: var(--c-bg-alt); }
section.dark { background: var(--c-ink); color: #d4d4d8; }
section.dark h2 { color: #fff; }
.grid { display: grid; gap: var(--space-3); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgb(24 24 27 / 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); padding-block: 0.8rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.brand svg { width: 2.2rem; height: 2.2rem; }
nav.main { display: flex; gap: 1.4rem; align-items: center; }
nav.main a { color: #d4d4d8; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav.main a:hover { color: var(--c-primary); }
nav.main .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
@media (max-width: 759px) { nav.main .navlink { display: none; } }

/* — Hero (split layout) — */
.hero { padding-block: var(--space-5); position: relative; overflow: hidden; background: linear-gradient(180deg, #18181b 0%, #1f1f23 100%); color: #e4e4e7; }
.hero h1 { color: #fff; }
.hero .lead { color: #a1a1aa; }
.hero .kicker { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: var(--space-2); color: #a1a1aa; font-size: 0.95rem; }
.hero .kicker span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero .kicker strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--space-3); }
.hero-visual { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgb(220 38 38 / 0.18), transparent 60%); }
.hero-visual .badge { position: absolute; bottom: 1rem; left: 1rem; background: rgb(24 24 27 / 0.85); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(6px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 0.85rem 1.6rem; border-radius: 8px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: rgb(255 255 255 / 0.25); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-accent { background: var(--c-accent); color: var(--c-ink); box-shadow: var(--shadow); }

.card {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: var(--space-3);
  box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: var(--space-2);
  background: color-mix(in srgb, var(--c-primary) 10%, white);
  color: var(--c-primary);
}
.card .icon svg { width: 1.6rem; height: 1.6rem; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; margin-bottom: var(--space-3); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary); color: #fff;
  font-family: var(--font-head); font-weight: 700;
}

.facts { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; text-align: center; }
.fact strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--c-primary); }
.fact span { color: var(--c-muted); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.9rem; color: var(--c-body); font-weight: 500; }

.faq details { border-bottom: 1px solid var(--c-line); padding-block: var(--space-2); }
.faq summary { font-family: var(--font-head); font-weight: 600; color: var(--c-ink); cursor: pointer; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--c-primary); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: var(--space-1); color: var(--c-body); }

form.contact { display: grid; gap: var(--space-2); }
form.contact label { font-weight: 600; color: var(--c-ink); font-size: 0.95rem; display: grid; gap: 0.4rem; }
form.contact input, form.contact textarea, form.contact select {
  font: inherit; padding: 0.8rem 1rem; border: 1px solid var(--c-line);
  border-radius: 8px; background: #fff; color: var(--c-ink); width: 100%;
}
form.contact input:focus, form.contact textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--c-primary) 45%, transparent);
  border-color: var(--c-primary);
}

.contact-panel {
  background: var(--c-ink); color: #e4e4e7;
  border-radius: var(--radius); padding: var(--space-4);
}
.contact-panel h2, .contact-panel h3 { color: #fff; }
.contact-panel a { color: #fff; font-weight: 600; }
.contact-panel .tel { font-family: var(--font-head); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); color: #fff; text-decoration: none; }
.contact-panel .tel:hover { color: var(--c-primary); }
.contact-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }

footer.site { background: var(--c-ink); color: #a1a1aa; border-top: 1px solid rgb(255 255 255 / 0.08); padding-block: var(--space-4); font-size: 0.9rem; }
footer.site .container { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
footer.site a { color: #a1a1aa; }
footer.site a:hover { color: #fff; }

.callbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: none; gap: 0.75rem; padding: 0.7rem var(--space-2);
  background: rgb(24 24 27 / 0.97); backdrop-filter: blur(8px);
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.callbar .btn { flex: 1; padding-block: 0.75rem; }
@media (max-width: 759px) {
  .callbar { display: flex; }
  body { padding-bottom: 4.4rem; }
}

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* legal pages */
.legal { max-width: 46rem; margin-inline: auto; padding-block: var(--space-5); }
.legal h1 { margin-bottom: var(--space-3); }
.legal h2 { margin-top: var(--space-4); font-size: 1.3rem; }
