/* Lechrain Kfz-Technik — Demo-Website KFZ 3
   Anthrazit #1C2126 · Sehr dunkel #12161A · Helle Fläche #F4F6F7
   Petrol #0E7C86 · Petrol hell #35BCC7 · Text #1F242B
   Systemschriften, keine externen Verbindungen.

   Unterschied zu KFZ 1: Überschriften laufen normal statt in Großbuchstaben,
   die Startseite hat eine bildschirmfüllende Bühne mit durchsichtiger Kopfzeile. */

:root {
  --dunkel: #1C2126;
  --dunkler: #12161A;
  --petrol: #0E7C86;
  --petrol-tief: #0A626A;
  --petrol-hell: #35BCC7;
  --flaeche: #F4F6F7;
  --linie: #DCE1E4;
  --linie-dunkel: #2C333A;
  --text: #1F242B;
  --text-leise: #4A525C;
  --weiss: #FFFFFF;
  --auf-dunkel: #C7D0D6;

  --breit: 1280px;
  --schmal: 780px;

  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
             Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--petrol-tief); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
label:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }

/* Überschriften: normale Schreibweise, größer, enger gesetzt. Das ist der
   sichtbarste Typografie-Unterschied zu KFZ 1. */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; letter-spacing: -.012em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 700; color: var(--petrol); margin: 0 0 .9rem;
}
.buehne-innen .kicker, .seitenkopf .kicker, .band-dunkel .kicker,
.abschluss .kicker { color: var(--petrol-hell); }

.springen {
  position: absolute; left: -9999px;
  background: var(--petrol); color: #fff; padding: .8rem 1.2rem; z-index: 200;
}
.springen:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- Raster */

.innen { width: min(100% - 2.5rem, var(--breit)); margin-inline: auto; }
.innen.schmal { width: min(100% - 2.5rem, var(--schmal)); }

.band { padding: clamp(3rem, 6.5vw, 5.25rem) 0; }
.band-flaeche { background: var(--flaeche); }
.band-dunkel { background: var(--dunkel); color: var(--auf-dunkel); }
.band-dunkel h2, .band-dunkel h3 { color: #fff; }

.gross { font-size: 1.18rem; }
.klein { font-size: .9rem; color: var(--text-leise); }
.band-dunkel .klein { color: #93A0A8; }

/* ------------------------------------------------------------ Demo-Hinweis */

.hinweis-schalter { position: absolute; opacity: 0; pointer-events: none; }

.demo-schicht {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(18, 22, 26, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}
.hinweis-schalter:checked ~ .demo-schicht { display: none; }

.demo-kasten {
  background: #fff; max-width: 640px; width: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 6px solid var(--petrol);
}
.demo-marke {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--petrol); margin-bottom: .5rem;
}
.demo-kasten h2 { margin-bottom: .7em; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.demo-kasten p { font-size: 1rem; }
.demo-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Das Hinweisband steht ganz oben und ist nie durchsichtig — auch nicht auf der
   Startseite, wo die Kopfzeile über dem Bühnenbild liegt. */
.demo-band {
  background: var(--dunkler); color: var(--auf-dunkel);
  font-size: .88rem; text-align: center;
  padding: .55rem 1rem;
  border-bottom: 3px solid var(--petrol);
  position: relative; z-index: 120;
}
.demo-band p { margin: 0; }
.demo-band a { color: #fff; }

/* -------------------------------------------------------------- Kopfzeile */

.servicezeile {
  background: var(--dunkler); color: #93A0A8;
  font-size: .87rem;
  display: flex; flex-wrap: wrap; gap: .25rem 1.75rem;
  justify-content: center; padding: .5rem 1.25rem;
  border-bottom: 1px solid var(--linie-dunkel);
  position: relative; z-index: 120;
}
.servicezeile p { margin: 0; }
.servicezeile a { color: #fff; font-weight: 700; text-decoration: none; }

.kopf { background: var(--dunkel); position: sticky; top: 0; z-index: 100; }
/* Auf der Startseite steckt die Kopfzeile im Bühnenhalter. Dort würde sticky nur
   bis zum Ende der Bühne kleben — schmal läuft sie deshalb einfach mit. */
.kopf.ueber-buehne { position: static; }
.kopf-innen {
  width: min(100% - 2.5rem, var(--breit));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
  flex-wrap: wrap;
}

.logo { text-decoration: none; display: block; color: #fff; }
.logo svg { display: block; height: 44px; width: auto; }

.kopf nav ul {
  list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap;
}
.kopf nav a {
  text-decoration: none; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 700;
  padding: .4rem 0; display: block;
  border-bottom: 2px solid transparent;
}
.kopf nav a:hover { color: var(--petrol-hell); }
.kopf nav a[aria-current="page"] { border-bottom-color: var(--petrol-hell); }

.menue-schalter { position: absolute; opacity: 0; pointer-events: none; }
.menue-knopf { display: none; }

@media (max-width: 899px) {
  .menue-knopf {
    display: inline-flex; align-items: center; gap: .5rem;
    text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700;
    border: 2px solid #fff; color: #fff;
    padding: .5rem .8rem; cursor: pointer;
  }
  .menue-knopf span { width: 18px; height: 2px; background: #fff; position: relative; display: block; }
  .menue-knopf span::before, .menue-knopf span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
  }
  .menue-knopf span::before { top: -6px; }
  .menue-knopf span::after { top: 6px; }

  .kopf nav { display: none; width: 100%; }
  .menue-schalter:checked ~ nav { display: block; }
  .kopf nav ul { flex-direction: column; gap: 0; padding-top: .5rem; }
  .kopf nav li { border-top: 1px solid var(--linie-dunkel); }
  .kopf nav a { padding: .85rem 0; border-bottom: none; }
  .kopf nav a[aria-current="page"] { color: var(--petrol-hell); }
}

/* ------------------------------------------------- Bühne (nur Startseite) */

/* Mobil: Bild im eigenen Seitenverhältnis, Text darunter. Es wird nie so ins
   Motiv geschnitten, dass nichts mehr zu sehen ist. */
.buehne-bild img { width: 100%; }
.buehne-text {
  background: var(--dunkel); color: #fff;
  padding: clamp(1.9rem, 5vw, 3rem) 1.25rem;
}
.buehne-innen { width: min(100%, var(--breit)); margin-inline: auto; }
.buehne h1 { color: #fff; margin-bottom: .45em; }
.buehne-text p { font-size: 1.2rem; color: var(--auf-dunkel); max-width: 34em; }
/* Der Kicker ist ein p, soll aber nie umbrechen. */
.buehne-text p.kicker { max-width: none; font-size: .78rem; }

/* Ab 900px wird daraus die bildschirmfüllende Bühne mit durchsichtiger
   Kopfzeile darüber — der eine Baustein, der von KFZ 2 kommt. */
@media (min-width: 900px) {
  /* Durchsichtig, aber mit weichem Verlauf nach oben — sonst verschwindet das
     Menü, sobald das Bühnenbild an dieser Stelle hell ist. */
  .kopf.ueber-buehne {
    position: absolute; top: 0; left: 0; right: 0;
    background: linear-gradient(to bottom, rgba(18, 22, 26, .78) 0%,
                                           rgba(18, 22, 26, .45) 60%,
                                           rgba(18, 22, 26, 0) 100%);
    padding-bottom: 1.5rem; z-index: 90;
  }
  .buehne-halter { position: relative; }

  .buehne { position: relative; min-height: 82vh; display: flex; }
  .buehne-bild { position: absolute; inset: 0; }
  .buehne-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
  .buehne-text {
    position: relative; width: 100%;
    background: linear-gradient(
      to right, rgba(18, 22, 26, .93) 0%, rgba(18, 22, 26, .74) 42%, rgba(18, 22, 26, .10) 92%);
    display: flex; align-items: flex-end;
    padding: 0 0 clamp(3rem, 7vw, 5.5rem);
  }
  .buehne-innen { width: min(100% - 2.5rem, var(--breit)); }
  .buehne-text p { max-width: 30em; }
  .buehne h1 { max-width: 14em; }
}

.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.knopf {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .84rem;
  padding: .95rem 1.6rem; border: 2px solid transparent;
}
.knopf-petrol { background: var(--petrol); color: #fff; }
.knopf-petrol:hover { background: var(--petrol-tief); }
.knopf-hell { background: #fff; color: var(--dunkel); }
.knopf-hell:hover { background: var(--flaeche); }
.knopf-linie { border-color: var(--dunkel); color: var(--dunkel); background: transparent; }
.knopf-linie:hover { background: var(--dunkel); color: #fff; }

/* Auf dunklem Grund läuft die Linienvariante weiß, sonst verschwindet sie. */
.abschluss .knopf-linie,
.band-dunkel .knopf-linie,
.buehne-text .knopf-linie,
.seitenkopf .knopf-linie { border-color: #fff; color: #fff; }
.abschluss .knopf-linie:hover,
.band-dunkel .knopf-linie:hover,
.buehne-text .knopf-linie:hover,
.seitenkopf .knopf-linie:hover { background: #fff; color: var(--dunkel); }

/* ------------------------------------------------------------- Seitenkopf */

.seitenkopf { background: var(--dunkel); color: var(--auf-dunkel); padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.seitenkopf h1 { color: #fff; }
.seitenkopf p { color: var(--auf-dunkel); font-size: 1.15rem; max-width: 40em; }

.seitenkopf.mit-bild { padding-top: 0; }
.seitenkopf.mit-bild .kopfbild { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.seitenkopf.mit-bild .kopfbild img { width: 100%; }
@media (min-width: 900px) {
  .seitenkopf.mit-bild .kopfbild img { max-height: 46vh; object-fit: cover; object-position: center 52%; }
}

/* ---------------------------------------------------------------- Kacheln */

.kacheln { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.25rem; }
@media (min-width: 700px)  { .kacheln { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kacheln { grid-template-columns: repeat(4, 1fr); } }

.kachel { background: #fff; border: 1px solid var(--linie); display: flex; flex-direction: column; }
.kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kachel-text { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.kachel-text h3 { color: var(--dunkel); }
.kachel-text p { flex: 1; font-size: .97rem; }
.kachel-text a {
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem;
  color: var(--petrol-tief); text-decoration: none; margin-top: .9rem;
}
.kachel-text a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- Schritte */

.schritte {
  list-style: none; padding: 0; margin: 2.25rem 0 0;
  display: grid; gap: 1.75rem; grid-template-columns: 1fr;
}
@media (min-width: 800px) { .schritte { grid-template-columns: repeat(3, 1fr); } }
.schritte li { border-top: 3px solid var(--petrol); padding-top: 1.15rem; }
.schritt-zahl {
  display: block; font-size: 2.3rem; font-weight: 700; color: var(--petrol);
  line-height: 1; margin-bottom: .4rem; letter-spacing: -.03em;
}

/* ----------------------------------------------------------------- Gründe */

.gruende { display: grid; gap: 1.9rem; grid-template-columns: 1fr; margin-top: 2.25rem; }
@media (min-width: 800px) { .gruende { grid-template-columns: repeat(3, 1fr); } }
.gruende h3 { border-left: 3px solid var(--petrol-hell); padding-left: .85rem; }
.gruende p { color: var(--auf-dunkel); }

/* --------------------------------------------------------------- Streifen */

.streifen { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .streifen { grid-template-columns: repeat(3, 1fr); } }
.streifen img { width: 100%; }
@media (min-width: 700px) { .streifen img { aspect-ratio: 3 / 2; object-fit: cover; } }

/* ------------------------------------------------------------- Zweispalter */

.zweispalt {
  display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) {
  .zweispalt { grid-template-columns: 5fr 6fr; }
  .zweispalt.gedreht .spalt-bild { order: 2; }
  .zweispalt.gedreht .spalt-text { order: 1; }
}
.spalt-bild img { width: 100%; }

.haken, .kreuze { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.haken li, .kreuze li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: .5rem; height: .5rem; background: var(--petrol);
}
.kreuze li::before {
  content: "×"; position: absolute; left: 0; top: 0;
  color: var(--petrol); font-weight: 700; font-size: 1.2rem; line-height: 1.5;
}
@media (min-width: 700px) {
  .haken.zweizeilig { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; }
}

.nummern { margin: 0 0 1.2em; padding-left: 1.35rem; }
.nummern li { margin-bottom: .65rem; }

.weiter {
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  font-size: .8rem; color: var(--petrol-tief); text-decoration: none;
}
.weiter:hover { text-decoration: underline; }

.merksatz { background: var(--flaeche); border-left: 3px solid var(--petrol); padding: 1.1rem 1.35rem; }
.band-flaeche .merksatz { background: #fff; }

/* --------------------------------------------------------------- Tabellen */

.tabellenrahmen { overflow-x: auto; margin: 1.6rem 0 .5rem; }
table.preise { border-collapse: collapse; width: 100%; min-width: 380px; }
table.preise th, table.preise td {
  text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--linie);
}
table.preise thead th {
  background: var(--dunkel); color: #fff;
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
}
table.preise td:last-child { font-weight: 700; white-space: nowrap; }

table.zeiten { border-collapse: collapse; margin-bottom: 1.1em; }
table.zeiten td { padding: .35rem 1.5rem .35rem 0; vertical-align: top; }

/* ---------------------------------------------------------------- Fragen */

.fragen { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.9rem; }
@media (min-width: 850px) { .fragen { grid-template-columns: repeat(2, 1fr); } }
.frage { background: #fff; padding: 1.3rem 1.45rem; border-top: 3px solid var(--petrol); }
.frage h3 { color: var(--dunkel); font-size: 1.05rem; }
.frage p { font-size: .97rem; margin: 0; }

/* -------------------------------------------------------------- Abschluss */

.abschluss { background: var(--dunkler); color: var(--auf-dunkel); padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.abschluss h2 { color: #fff; }

.tel-zeile { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: .35em; letter-spacing: -.02em; }
.tel-zeile a { color: var(--petrol-tief); text-decoration: none; }
.abschluss .tel-zeile a { color: var(--petrol-hell); }

/* --------------------------------------------------------------- Formular */

.formular { margin-top: 1.9rem; }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.freiwillig { font-weight: 400; color: var(--text-leise); }
.feld input, .feld textarea {
  width: 100%; font: inherit; color: inherit;
  padding: .75rem .85rem; border: 2px solid var(--linie); background: #fff;
}
.feld input:focus, .feld textarea:focus { border-color: var(--petrol); }
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular button { border: none; }
.formular .klein { margin-top: 1rem; }

/* ----------------------------------------------------------- Platzhalter */

.platzhalter {
  background: #FFF4F5; border: 2px dashed #C8102E;
  padding: 1.25rem 1.4rem; margin-bottom: 1.75rem;
}

/* ------------------------------------------------------------------ Fuß */

.fuss { background: var(--dunkel); color: var(--auf-dunkel); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.fuss a { color: #fff; }
.fuss-innen {
  width: min(100% - 2.5rem, var(--breit)); margin-inline: auto;
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 750px) { .fuss-innen { grid-template-columns: repeat(3, 1fr); } }
.fuss-logo svg { height: 40px; width: auto; display: block; margin-bottom: .9rem; }
.fuss-titel {
  text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700;
  color: #fff; margin-bottom: .6rem;
}
.fuss-liste { list-style: none; padding: 0; margin: 0; }
.fuss-liste li { margin-bottom: .35rem; }

.fuss-hinweis {
  background: var(--dunkler);
  border-top: 3px solid var(--petrol);
  padding: 1.6rem 1.25rem;
}
.fuss-hinweis p {
  width: min(100%, var(--breit)); margin-inline: auto;
  font-size: .87rem; color: #8B979F;
}
.fuss-hinweis strong { color: #fff; }
.fuss-links { margin-top: .9rem !important; }
.fuss-sichtvoll { margin-top: .5rem !important; }

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

/* --------------------------------------------------- Rechtstextseiten */

/* Der Generatortext bleibt am Stück und ohne style-Angaben.
   Die gesamte Gestaltung sitzt hier. */
.rechtstext h2 { margin-top: 2.6rem; }
.rechtstext h3 { margin-top: 2.2rem; }
.rechtstext h4 { margin-top: 1.6rem; font-size: 1.02rem; }
.rechtstext h2:first-child, .rechtstext h3:first-child { margin-top: 0; }
.rechtstext p { margin-bottom: 1.1em; }
.rechtstext ul, .rechtstext ol { margin: 0 0 1.1em; padding-left: 1.4rem; }
.rechtstext li { margin-bottom: .4rem; }
.rechtstext a { word-break: break-word; }
.rechtstext .quellenhinweis {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  font-size: .9rem; color: var(--text-leise);
}

.demo-kasten-text {
  background: var(--flaeche); border-left: 3px solid var(--petrol);
  padding: 1.25rem 1.4rem; margin-bottom: 2.5rem;
}
.demo-kasten-text p { font-size: .97rem; }
