/* Singold Kfz-Technik — Demo-Website KFZ 1
   Werkstattblau #14385F · helles Blaugrau #F2F4F6 · Signalrot #C8102E · Anthrazit #1F242B
   Systemschriften, keine externen Verbindungen. */

:root {
  --blau: #14385F;
  --blau-dunkel: #0E2942;
  --rot: #C8102E;
  --rot-dunkel: #A50D26;
  --grau: #F2F4F6;
  --grau-linie: #DDE1E6;
  --text: #1F242B;
  --text-leise: #4A525C;
  --weiss: #FFFFFF;

  --breit: 1320px;
  --schmal: 800px;

  --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.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.springen {
  position: absolute; left: -9999px;
  background: var(--rot); 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)); margin-inline: auto; }

.band { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.band-grau { background: var(--grau); }
.band-dunkel { background: var(--blau); color: #E8ECF1; }
.band-dunkel h2, .band-dunkel h3 { color: #fff; }

.gross { font-size: 1.2rem; }
.klein { font-size: .9rem; color: var(--text-leise); }

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

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

.demo-schicht {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(14, 41, 66, .93);
  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(--rot);
}
.demo-marke {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--rot); margin-bottom: .5rem;
}
.demo-kasten h2 { margin-bottom: .7em; }
.demo-kasten p { font-size: 1rem; }
.demo-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.demo-band {
  background: var(--text); color: #E8ECF1;
  font-size: .88rem; text-align: center;
  padding: .55rem 1rem;
  border-bottom: 3px solid var(--rot);
}
.demo-band p { margin: 0; }
.demo-band a { color: #fff; }

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

.servicezeile {
  background: var(--blau-dunkel); color: #C9D5E2;
  font-size: .88rem;
}
.servicezeile {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
  justify-content: center; padding: .5rem 1.25rem;
}
.servicezeile p { margin: 0; }
.servicezeile a { color: #fff; font-weight: 700; text-decoration: none; }

.kopf {
  background: #fff;
  border-bottom: 1px solid var(--grau-linie);
  position: sticky; top: 0; z-index: 100;
}
.kopf-innen {
  width: min(100% - 2.5rem, var(--breit));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
  flex-wrap: wrap;
}

.logo { text-decoration: none; color: var(--blau); display: block; }
.logo-wort {
  display: block; font-size: 1.5rem; font-weight: 800;
  letter-spacing: .16em; line-height: 1;
}
.logo-balken {
  display: block; width: 2.6rem; height: 4px; background: var(--rot); margin: .3rem 0 .25rem;
}
.logo-zusatz {
  display: block; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-leise);
}

.kopf nav ul {
  list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap;
}
.kopf nav a {
  text-decoration: none; color: var(--text);
  text-transform: uppercase; letter-spacing: .07em;
  font-size: .82rem; font-weight: 700;
  padding: .35rem 0; display: block;
  border-bottom: 3px solid transparent;
}
.kopf nav a:hover { color: var(--rot); }
.kopf nav a[aria-current="page"] { border-bottom-color: var(--rot); }

.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: .82rem; font-weight: 700;
    border: 2px solid var(--blau); color: var(--blau);
    padding: .5rem .8rem; cursor: pointer;
  }
  .menue-knopf span {
    width: 18px; height: 2px; background: var(--blau); position: relative; display: block;
  }
  .menue-knopf span::before, .menue-knopf span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--blau);
  }
  .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(--grau-linie); }
  .kopf nav a { padding: .8rem 0; border-bottom: none; }
  .kopf nav a[aria-current="page"] { color: var(--rot); }
}

/* ----------------------------------------------------------------- Bühne */

/* Mobil: Bild in voller Höhe, Text darunter. Nie ins Motiv hineinschneiden. */
.buehne-bild img { width: 100%; }
.buehne-text {
  background: var(--blau);
  color: #fff;
  padding: clamp(1.75rem, 5vw, 2.5rem) 1.25rem;
}
.buehne-innen { width: min(100%, var(--breit)); margin-inline: auto; }
.buehne h1 { color: #fff; margin-bottom: .4em; }
.buehne-text p { font-size: 1.15rem; color: #D6DFE9; max-width: 34em; }

@media (min-width: 900px) {
  .buehne { position: relative; }
  .buehne-bild img {
    width: 100%; max-height: 68vh; object-fit: cover; object-position: center 42%;
  }
  .buehne-text {
    position: absolute; inset: 0; background: linear-gradient(
      to right, rgba(14, 41, 66, .90) 0%, rgba(14, 41, 66, .62) 46%, rgba(14, 41, 66, 0) 88%);
    display: flex; align-items: center;
    padding-inline: 0;
  }
  .buehne-innen { width: min(100% - 2.5rem, var(--breit)); }
  .buehne-text p { max-width: 30em; }
}

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

.knopf {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .85rem;
  padding: .9rem 1.5rem; border: 2px solid transparent;
}
.knopf-rot { background: var(--rot); color: #fff; }
.knopf-rot:hover { background: var(--rot-dunkel); }
.knopf-hell { background: #fff; color: var(--blau); }
.knopf-hell:hover { background: var(--grau); }
.knopf-linie { border-color: var(--blau); color: var(--blau); background: transparent; }
.knopf-linie:hover { background: var(--blau); color: #fff; }

/* Auf dunklem Grund lauft die Linienvariante weiss, sonst verschwindet sie. */
.abschluss .knopf-linie,
.band-dunkel .knopf-linie,
.buehne-text .knopf-linie {
  border-color: #fff; color: #fff;
}
.abschluss .knopf-linie:hover,
.band-dunkel .knopf-linie:hover,
.buehne-text .knopf-linie:hover { background: #fff; color: var(--blau); }

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

.seitenkopf { background: var(--blau); color: #fff; padding: clamp(2rem, 5vw, 3.25rem) 0; }
.seitenkopf h1 { color: #fff; }
.seitenkopf p { color: #D6DFE9; font-size: 1.15rem; }

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

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

.kacheln {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@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(--grau-linie); display: flex; flex-direction: column; }
.kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kachel-text { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.kachel-text h3 { color: var(--blau); }
.kachel-text p { flex: 1; font-size: .97rem; }
.kachel-text a {
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem;
  color: var(--rot); text-decoration: none; margin-top: .8rem;
}
.kachel-text a:hover { text-decoration: underline; }

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

.schritte {
  list-style: none; padding: 0; margin: 2rem 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: 4px solid var(--grau-linie); padding-top: 1.1rem; }
.schritt-zahl {
  display: inline-block; font-size: 2.2rem; font-weight: 800; color: var(--rot);
  line-height: 1; margin-bottom: .35rem;
}

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

.gruende {
  display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin-top: 2rem;
}
@media (min-width: 800px) { .gruende { grid-template-columns: repeat(3, 1fr); } }
.gruende h3 { border-left: 4px solid var(--rot); padding-left: .8rem; }
.gruende p { color: #C9D5E2; }

/* --------------------------------------------------------------- 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, 3rem); 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, .nummern { 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: .62em;
  width: .55rem; height: .55rem; background: var(--rot);
}
.kreuze li::before {
  content: "×"; position: absolute; left: 0; top: 0;
  color: var(--rot); 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 { list-style: decimal; padding-left: 1.3rem; }
.nummern li { margin-bottom: .6rem; }

.weiter {
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: .82rem; color: var(--rot); text-decoration: none;
}
.weiter:hover { text-decoration: underline; }

.merksatz {
  background: #fff; border-left: 4px solid var(--rot); padding: 1rem 1.25rem;
}
.band .merksatz { background: var(--grau); }
.band-grau .merksatz { background: #fff; }

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

.tabellenrahmen { overflow-x: auto; margin: 1.5rem 0 .5rem; }
table.preise { border-collapse: collapse; width: 100%; min-width: 380px; }
table.preise th, table.preise td {
  text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--grau-linie);
}
table.preise thead th {
  background: var(--blau); color: #fff;
  text-transform: uppercase; letter-spacing: .07em; font-size: .8rem;
}
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.75rem; }
@media (min-width: 850px) { .fragen { grid-template-columns: repeat(2, 1fr); } }
.frage { background: #fff; padding: 1.25rem 1.4rem; border-top: 4px solid var(--blau); }
.frage h3 { color: var(--blau); font-size: 1.05rem; }
.frage p { font-size: .97rem; margin: 0; }

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

.abschluss { background: var(--blau-dunkel); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.abschluss h2 { color: #fff; }
.abschluss p { color: #C9D5E2; }

.tel-gross { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: .3em; }
.tel-gross a { color: var(--blau); text-decoration: none; }

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

.formular { margin-top: 1.75rem; }
.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: .7rem .8rem; border: 2px solid var(--grau-linie); background: #fff;
}
.feld input:focus, .feld textarea:focus { border-color: var(--blau); }
.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 var(--rot);
  padding: 1.25rem 1.4rem; margin-bottom: 1.75rem;
}

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

.fuss { background: var(--blau); color: #C9D5E2; padding-top: clamp(2.25rem, 5vw, 3.25rem); }
.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.25rem;
}
@media (min-width: 750px) { .fuss-innen { grid-template-columns: repeat(3, 1fr); } }
.fuss-logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .14em; color: #fff; margin-bottom: .5rem;
}
.fuss-logo span {
  display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 400; color: #A9BDD2; margin-top: .2rem;
}
.fuss-titel {
  text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; 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(--blau-dunkel);
  border-top: 3px solid var(--rot);
  padding: 1.5rem 1.25rem;
}
.fuss-hinweis p {
  width: min(100%, var(--breit)); margin-inline: auto;
  font-size: .88rem; color: #A9BDD2;
}
.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(--grau-linie);
  font-size: .9rem; color: var(--text-leise);
}

/* Der Demo-Hinweis steht als eigener Kasten daneben, nicht im Generatortext. */
.demo-kasten-text {
  background: var(--grau); border-left: 4px solid var(--rot);
  padding: 1.25rem 1.4rem; margin-bottom: 2.5rem;
}
.demo-kasten-text p { font-size: .97rem; }
