/* ============================================================
   lkw-untersuchung.de — Design System
   Palette: Signalgelb / Tiefschwarz / Weiss (flache Farbfelder)
   Keine externen Schriftarten, kein Tracking, keine Cookies.
   ============================================================ */

:root {
  --yellow: #ffff00;
  --black: #111111;
  --white: #ffffff;
  --paper: #f4f3ee;
  --muted: #55554f;
  --line: 1.5px solid #111111;
  --font-sans: "Helvetica Neue", Helvetica, "Segoe UI", Arial, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ease-out: cubic-bezier(.215, .61, .355, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--black); color: var(--yellow); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: var(--yellow);
  padding: .75rem 1.25rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: space-between;
  background: var(--white);
  border-bottom: var(--line);
  min-height: 4.5rem;
}
.wordmark {
  display: flex; align-items: center; gap: .6rem;
  padding: 0 var(--pad);
  font-weight: 900; letter-spacing: -.03em; font-size: 1.1rem;
  text-decoration: none; white-space: nowrap;
}
.wordmark .dot {
  width: .8rem; height: .8rem; background: var(--yellow);
  border: var(--line); flex: none;
}
.wordmark em { font-style: normal; background: var(--yellow); padding: 0 .3rem; }
.main-nav { display: flex; align-items: stretch; }
.main-nav a {
  display: flex; align-items: center;
  padding: 0 1.1rem;
  font-family: var(--font-mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
  border-left: var(--line);
  transition: background .25s var(--ease-out);
}
.main-nav a:hover { background: var(--yellow); }
.main-nav a.nav-cta { background: var(--black); color: var(--yellow); font-weight: 700; }
.main-nav a.nav-cta:hover { background: var(--yellow); color: var(--black); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 4.5rem 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1rem var(--pad); border-left: 0; border-top: var(--line); }
  .nav-toggle {
    display: flex; align-items: center; gap: .5rem;
    background: none; border: none; border-left: var(--line);
    padding: 0 1.25rem; cursor: pointer;
    font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase;
  }
  .nav-toggle span { display: block; width: 1.4rem; height: 2px; background: var(--black); box-shadow: 0 .45rem 0 var(--black), 0 -.45rem 0 var(--black); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 60rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--black);
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .82;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(17,17,17,.78) 0%, rgba(17,17,17,.45) 46%, rgba(17,17,17,0) 72%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: var(--pad);
  color: var(--white);
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.overline {
  font-family: var(--font-mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em;
  display: inline-block;
  background: var(--yellow); color: var(--black);
  padding: .35rem .7rem; border: var(--line);
  width: fit-content;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  font-weight: 900; letter-spacing: -.035em; line-height: 1.16;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 span.line {
  display: inline;
  background: var(--black);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: .04em .35rem;
}
.hero h1 .hl {
  background: var(--yellow); color: var(--black);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: .04em .35rem;
}
.hero-sub {
  max-width: 42rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  background: rgba(17,17,17,.72); padding: 1rem 1.25rem;
  border-left: .35rem solid var(--yellow);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
  padding: 1rem 1.6rem;
  border: var(--line);
  background: var(--white); color: var(--black);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
  cursor: pointer;
}
.btn:hover { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--black); }
.btn-solid { background: var(--yellow); }
.btn-solid:hover { background: var(--white); }
.btn-dark { background: var(--black); color: var(--yellow); }
.btn-dark:hover { background: var(--yellow); color: var(--black); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--yellow); border-bottom: var(--line);
  overflow: hidden; white-space: nowrap;
  padding: .8rem 0;
}
.marquee-track {
  display: inline-flex; gap: 0;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: .95rem;
  padding: 0 1.6rem;
}
.marquee-track span::after { content: "✦"; padding-left: 3.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections / Grid ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) var(--pad); border-bottom: var(--line); }
.section-dark { background: var(--black); color: var(--white); }
.section-paper { background: var(--paper); }
.section-yellow { background: var(--yellow); }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .split, .split-reverse { grid-template-columns: 1fr; } }

.sticky-label { position: sticky; top: 6.5rem; }
@media (max-width: 900px) { .sticky-label { position: static; } }

.kicker {
  font-family: var(--font-mono); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .14em;
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: 1.2rem;
}
.kicker::before { content: ""; width: 2.2rem; height: 1.5px; background: currentColor; }

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.02;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}
h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  margin: 2.2rem 0 .8rem;
}
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 44rem; }
.prose p { margin-bottom: 1rem; max-width: 46rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; max-width: 44rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { font-weight: 800; }

/* ---------- Cards (flach, 1.5px-Rahmen) ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0; border: var(--line); background: var(--white);
}
.card-grid > * + * { border-left: var(--line); }
@media (max-width: 900px) { .card-grid > * + * { border-left: 0; border-top: var(--line); } }
.card {
  padding: 1.8rem;
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--white); color: var(--black);
  transition: background .25s var(--ease-out);
}
.card:hover { background: var(--yellow); }
.card .card-tag {
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
}
.card h3 { margin: 0; }
.card p { font-size: .98rem; }

/* ---------- Bildblöcke (asymmetrisch) ---------- */
.figure-block { position: relative; }
.figure-block img {
  width: 100%; border: var(--line);
  filter: saturate(.95) contrast(1.05);
}
.figcaption {
  font-family: var(--font-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em;
  margin-top: .6rem; color: var(--muted);
}
.section-dark .figcaption { color: #9a9a92; }

/* ---------- Preistabellen ---------- */
.price-table { width: 100%; border-collapse: collapse; border: var(--line); background: var(--white); color: var(--black); }
.price-table th, .price-table td {
  text-align: left; padding: 1.1rem 1.3rem;
  border-bottom: var(--line);
  vertical-align: top;
}
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table thead th {
  font-family: var(--font-mono); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .12em;
  background: var(--black); color: var(--yellow);
}
.price-table .price {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem;
  white-space: nowrap;
}
.price-table tr.highlight th, .price-table tr.highlight td { background: var(--yellow); font-weight: 800; }
.price-note { font-family: var(--font-mono); font-size: .8rem; margin-top: .8rem; color: var(--muted); }
.section-dark .price-note { color: #9a9a92; }

/* ---------- Schritte ---------- */
.steps { display: grid; gap: 0; border: var(--line); background: var(--white); color: var(--black); }
.step {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.4rem;
  padding: 1.6rem 1.8rem; align-items: baseline;
}
.step + .step { border-top: var(--line); }
.step-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 2rem;
  color: var(--black); background: var(--yellow);
  width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center;
  border: var(--line);
}
.step h3 { margin: 0 0 .4rem; }

/* ---------- Checkliste ---------- */
.check-list { list-style: none; border: var(--line); background: var(--white); color: var(--black); }
.check-list li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem;
  padding: 1.15rem 1.4rem; align-items: start;
}
.check-list li + li { border-top: var(--line); }
.check-list .tick {
  width: 1.6rem; height: 1.6rem; background: var(--yellow); border: var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem;
}
.check-list strong { display: block; font-weight: 800; }
.check-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Rechtliche Übersicht (Matrix) ---------- */
.matrix { width: 100%; border-collapse: collapse; border: var(--line); background: var(--white); color: var(--black); font-size: .95rem; }
.matrix th, .matrix td { border: var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; font-size: .9rem; }
.matrix thead th { background: var(--black); color: var(--yellow); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.matrix td:first-child { font-weight: 800; white-space: nowrap; }
.matrix .yes { background: var(--yellow); font-weight: 800; text-align: center; }
.matrix .no { text-align: center; color: var(--muted); }
.matrix-wrap { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq { border: var(--line); background: var(--white); color: var(--black); }
.faq details { border-bottom: var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.3rem 1.5rem;
  font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background .2s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.4rem; flex: none;
  width: 2rem; height: 2rem; border: var(--line); background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary { background: var(--yellow); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.5rem 1.4rem; max-width: 46rem; }
.faq .faq-body p { margin-bottom: .8rem; }

/* ---------- Standorte ---------- */
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0; border: var(--line); }
.location { padding: 1.8rem; background: var(--white); color: var(--black); }
.location + .location { border-left: var(--line); }
@media (max-width: 900px) { .location + .location { border-left: 0; border-top: var(--line); } }
.location .mono { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.location h3 { margin: .5rem 0 .8rem; }
.location address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.location a.tel { font-family: var(--font-mono); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.location a.tel:hover { background: var(--yellow); }

/* ---------- CTA-Band ---------- */
.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { margin: 0; }
.cta-phone {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
  border-bottom: .2rem solid var(--black);
}
.cta-phone:hover { background: var(--black); color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 3rem var(--pad) 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1.5px solid #333;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2, .site-footer h3 { margin: 0 0 .8rem; }
.site-footer a { color: var(--yellow); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.site-footer a:hover { background: var(--yellow); color: var(--black); }
.footer-legal { padding-top: 1.5rem; font-family: var(--font-mono); font-size: .75rem; color: #8a8a82; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal a { color: #8a8a82; }
.footer-legal a:hover { color: var(--black); }
.big-word {
  font-weight: 900; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(2.6rem, 9vw, 8rem);
  color: var(--yellow);
  margin-bottom: 1.2rem;
}

/* ---------- Reveal-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(2.2rem); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal-page { max-width: 52rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--pad); }
.legal-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900;
  letter-spacing: -.03em; margin: 1.2rem 0 2rem;
}
.legal-page h2 { font-size: 1.5rem; margin: 2.6rem 0 .9rem; }
.legal-page p, .legal-page ul { max-width: 46rem; margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.3rem; }
.legal-page li { margin-bottom: .4rem; }
.legal-page address { font-style: normal; line-height: 1.75; margin: 0 0 1.2rem; }
.legal-page hr { border: 0; border-top: var(--line); margin: 2.5rem 0; }
