/* ==========================================================================
   Digitales Serviceheft – Website
   Gestaltung nach der Visitenkarten-Vorlage: Rot, Hellgrau, Zartrosa,
   schräge rote Bänder, rote Kante unten, Michroma + Source Sans 3.
   Alle Schriften liegen lokal (keine Verbindung zu Google).

   Aufbau: Schriften · Farben · Grundlagen · Schrift · Knöpfe · Kopfzeile ·
   Bänder · Abschnitte · Kopfbereich · Listen · Karten · Ablauf · Preise ·
   Fragen · Kontakt · Rechtstexte · Abschluss · Fußzeile · App-Ansichten ·
   Hilfsklassen
   ========================================================================== */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben exakt aus der Visitenkarte */
  --rot: #c8192c;
  --hellgrau: #e5e4e4;
  --rosa: #f6dad4;
  --weiss: #ffffff;
  --schwarz: #231f20;
  --grau: #656263;

  --display: "Michroma", "Segoe UI", Arial, sans-serif;
  --text: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: clamp(6px, 0.9vw, 12px); /* rote Kante unten */
  --rise: clamp(26px, 7vw, 110px); /* Anstieg der schrägen Bänder */
  --linie: #cfcdcd; /* Trennlinien, aus Hellgrau abgedunkelt */
  --feld: #8f8b8c; /* Rahmen von Eingabefeldern in den App-Ansichten (wie in der App) */

  color-scheme: light;
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-wrap: break-word;
}

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

a {
  color: var(--rot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--schwarz);
}

:focus-visible {
  outline: 3px solid var(--schwarz);
  outline-offset: 3px;
}
.band-diag :focus-visible {
  outline-color: var(--weiss);
}

p,
ul,
ol {
  margin: 0;
}

strong,
b {
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--schwarz);
  color: var(--weiss);
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
  color: var(--weiss);
}

/* Hinweis-Band "Testansicht" ganz oben – erscheint nur, solange in
   werkzeuge/seiten-bauen.mjs TESTANSICHT = true gesetzt ist */
.test-band {
  background: var(--schwarz);
  color: var(--weiss);
  border-bottom: 3px solid var(--rot);
  text-align: center;
  font: 600 0.95rem/1.35 var(--text);
}
.test-band p {
  padding-block: 0.5rem;
}
.test-band strong {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Einzelner Buchstabe in Rot – wie das "Z" in "Auto-Zentrum" */
.r {
  color: var(--rot);
}

/* ---------- Schrift ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--schwarz);
}

h1 {
  font: 400 clamp(1.7rem, 0.95rem + 4.1vw, 4rem) / 1.14 var(--display);
  letter-spacing: -0.005em;
}

h2,
.h2 {
  font: 400 clamp(1.3rem, 0.95rem + 1.9vw, 2.2rem) / 1.25 var(--display);
}

h3 {
  font: 700 1.25rem/1.3 var(--text);
}

.h3-display {
  font: 400 clamp(1rem, 0.9rem + 0.45vw, 1.2rem) / 1.35 var(--display);
}

/* "Kfz-Meisterwerkstatt spezialisiert auf": Schlüsselwörter fett schwarz, Rest grau */
.kicker {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.4;
  color: var(--grau);
}
.kicker strong {
  color: var(--schwarz);
  font-weight: 600;
}

/* Slogan in Rot, Michroma */
.slogan {
  font: 400 clamp(1rem, 0.85rem + 0.9vw, 1.45rem) / 1.35 var(--display);
  color: var(--rot);
}
/* Auf Zartrosa nur groß (WCAG: großer Text) */
.slogan-lg {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  max-width: 60ch;
}

.muted {
  color: var(--grau);
}

.small {
  font-size: 0.95rem;
}

.note {
  font-size: 0.98rem;
  color: var(--grau);
}
.note strong {
  color: var(--schwarz);
}

.stack > * + * {
  margin-top: 1rem;
}

/* Michroma hat kein gut lesbares Euro-Zeichen – daher in Source Sans 3 */
.cur {
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.9em;
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.65em 1.35em;
  border: 2px solid transparent;
  border-radius: 3px;
  font: 700 1.0625rem/1.2 var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--rot);
  color: var(--weiss);
}
.btn-primary:hover {
  background: var(--schwarz);
  color: var(--weiss);
}
.btn-secondary {
  background: var(--weiss);
  color: var(--schwarz);
  border-color: var(--schwarz);
}
.btn-secondary:hover {
  color: var(--rot);
  border-color: var(--rot);
}
.btn-light {
  background: var(--weiss);
  color: var(--rot);
}
.btn-light:hover {
  background: var(--schwarz);
  color: var(--weiss);
}
.btn-ghost-light {
  background: transparent;
  color: var(--weiss);
  border-color: var(--weiss);
}
.btn-ghost-light:hover {
  background: var(--weiss);
  color: var(--rot);
}
.btn-small {
  min-height: 42px;
  padding: 0.45em 1em;
  font-size: 1rem;
}
/* Pfeil wie in den Aufzählungen der Visitenkarte */
.btn-chev::after {
  content: ">";
  font: 400 0.8em/1 var(--display);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hellgrau);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--schwarz);
  text-decoration: none;
  flex: none;
}
.brand:hover {
  color: var(--schwarz);
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-top {
  font: 600 0.85rem/1.1 var(--text);
  color: var(--grau);
  letter-spacing: 0.02em;
}
.brand-main {
  font: 400 1.05rem/1.15 var(--display);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav ul a {
  display: block;
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
  color: var(--schwarz);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav ul a:hover {
  color: var(--rot);
}
.main-nav ul a[aria-current="page"] {
  border-bottom-color: var(--rot);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--schwarz);
  border-radius: 3px;
  background: transparent;
  color: var(--schwarz);
  font: 700 1rem/1 var(--text);
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-icon {
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before {
  top: -6px;
}
.menu-icon::after {
  top: 6px;
}
.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1rem;
  }
  .js .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.25rem var(--gutter) 1.25rem;
    background: var(--weiss);
    border-bottom: var(--edge) solid var(--rot);
    box-shadow: 0 18px 30px -18px rgba(35, 31, 32, 0.45);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .js .main-nav.is-open {
    display: flex;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  /* Menüpunkte als "> "-Liste wie auf der Visitenkarte */
  .main-nav ul a {
    display: flex;
    gap: 0.6em;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--hellgrau);
    font: 400 1rem/1.3 var(--display);
  }
  .main-nav ul a::before {
    content: ">";
    color: var(--rot);
  }
  .main-nav ul a[aria-current="page"] {
    border-bottom-color: var(--hellgrau);
    color: var(--rot);
  }
  .main-nav .btn {
    margin-top: 1rem;
  }
}

/* ---------- Rotes Band oben (Vorderseite) mit schrägem Schriftzug ---------- */

.band-top {
  --bf: clamp(0.9rem, 0.25rem + 2.7vw, 2.35rem);
  position: relative;
  overflow: hidden;
  height: max(58px, calc(var(--bf) * 2.75));
  background: var(--rot);
}
.band-top .wrap {
  position: relative;
  height: 100%;
}
.band-text {
  position: absolute;
  right: var(--gutter);
  bottom: -0.14em;
  margin: 0;
  color: var(--weiss);
  font: 400 var(--bf) / 1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: 0 100%;
  transform: rotate(-4deg);
}

/* ---------- Schräges Band (Rückseite) ---------- */

.band-diag {
  position: relative;
  background: var(--rot);
  color: var(--weiss);
  clip-path: polygon(0 var(--rise), 100% 0, 100% calc(100% - var(--rise)), 0 100%);
  padding-block: calc(var(--rise) + clamp(1.75rem, 4vw, 3rem));
}
.band-diag h2,
.band-diag h3 {
  color: var(--weiss);
}
.band-diag a:not(.btn) {
  color: var(--weiss);
}

/* Überschrift direkt über einem schrägen Band */
.band-lead {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.band-lead .section-head {
  margin-bottom: 0;
}
.band-lead + .band-diag {
  margin-top: calc(var(--rise) * -0.35);
}

/* Rote Kante unten */
.edge {
  height: var(--edge);
  background: var(--rot);
}

/* ---------- Abschnitte ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}
.section-tight {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.bg-hellgrau {
  background: var(--hellgrau);
}
.bg-rosa {
  background: var(--rosa);
}
/* Auf Zartrosa reicht Rot für kleinen Text nicht (Kontrast) – Links schwarz mit roter Linie */
.bg-rosa a:not(.btn),
.vcard-rosa a:not(.btn) {
  color: var(--schwarz);
  text-decoration-color: var(--rot);
  text-decoration-thickness: 2px;
}

.section-head {
  max-width: 50rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-head > * + * {
  margin-top: 0.85rem;
}

/* ---------- Kopfbereich (Hero) ---------- */

.hero {
  background: var(--hellgrau);
}
.hero-rosa {
  background: var(--rosa);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero-text > * + * {
  margin-top: 1.1rem;
}
.hero-text .actions {
  margin-top: 1.75rem;
}
.hero-text .dotline,
.hero-text .chev-inline {
  margin-top: 1.75rem;
}
.hero-media {
  margin: 0;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .hero-grid.hero-wide-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.hero-simple .hero-grid {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: 0;
}

/* ---------- Listen ---------- */

/* Kontaktzeile mit roten Quadraten als Trenner (wie auf der Visitenkarte).
   Jeder Eintrag hat sein Quadrat links. Die Liste ragt um diesen Platz nach
   links hinaus, und genau dieser Streifen wird abgeschnitten – so steht nie
   ein Quadrat am Anfang einer Zeile, auch nicht nach einem Umbruch. */
.dotline {
  --dot-space: 1.55em;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.3em;
  list-style: none;
  margin: 0 0 0 calc(var(--dot-space) * -1);
  padding: 0;
  font-size: 1rem;
  clip-path: inset(-0.5em -0.5em -0.5em var(--dot-space));
}
.dotline > li {
  position: relative;
  padding-left: var(--dot-space);
}
.dotline > li::before {
  content: "";
  position: absolute;
  left: calc((var(--dot-space) - 0.42em) / 2);
  top: 0.6em;
  width: 0.42em;
  height: 0.42em;
  background: var(--rot);
}

/* "> "-Aufzählung in Michroma */
.chev {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  list-style: none;
  margin: 0;
  padding: 0;
  font: 400 clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem) / 1.45 var(--display);
}
.chev li {
  display: flex;
  gap: 0.6em;
}
.chev li::before {
  content: ">";
  flex: none;
  color: var(--rot);
}
.band-diag .chev li::before {
  color: var(--weiss);
}
.chev a {
  color: inherit;
  text-decoration: none;
}
.chev a:hover {
  text-decoration: underline;
  color: inherit;
}

/* Sprungmarken als waagerechte "> "-Liste */
.chev-inline {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.75rem;
  row-gap: 0.5rem;
}
.chev-inline a {
  text-decoration: underline;
  text-decoration-color: var(--rot);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.chev-inline a:hover {
  color: var(--rot);
}

/* Aufzählung mit kleinen roten Quadraten (Fließtext) */
.squares {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.squares li {
  position: relative;
  padding-left: 1.3em;
}
.squares li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.6em;
  width: 0.42em;
  height: 0.42em;
  background: var(--rot);
}
.band-diag .squares li::before {
  background: var(--weiss);
}

/* Kennzeichnung "Demnächst" / "Geplant" */
.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  border: 2px solid var(--schwarz);
  border-radius: 3px;
  font: 700 0.8rem/1.2 var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag-red {
  border-color: var(--rot);
  background: var(--rot);
  color: var(--weiss);
}

/* ---------- Karten im Visitenkarten-Stil ---------- */

.cards-2 {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.cards-2 > * {
  min-width: 0;
}
.cards-2.top {
  align-items: start;
}
@media (min-width: 800px) {
  .cards-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.vcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: clamp(10px, 1.5vw, 18px);
  background: var(--hellgrau);
  border-bottom: var(--edge) solid var(--rot);
}
.vcard-rosa {
  background: var(--rosa);
}
.bg-hellgrau .vcard:not(.vcard-rosa) {
  background: var(--weiss);
}
.vcard-band {
  position: relative;
  overflow: hidden;
  height: clamp(54px, 6.5vw, 80px);
  margin: 0;
  background: var(--rot);
}
.vcard-band span {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: -0.14em;
  color: var(--weiss);
  font: 400 clamp(1rem, 0.7rem + 1.2vw, 1.55rem) / 1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: 0 100%;
  transform: rotate(-4deg);
}
.vcard-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex: 1;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.vcard-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Kacheln */
.tiles {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.tile {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--weiss);
  border-top: 4px solid var(--rot);
}
.tile > * + * {
  margin-top: 0.7rem;
}
.section:not(.bg-hellgrau):not(.bg-rosa) .tile {
  background: var(--hellgrau);
}

/* Hinweiskasten (z. B. "Was passiert beim Widerruf?") */
.info-box {
  max-width: 60rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--weiss);
  border-bottom: var(--edge) solid var(--rot);
}
.info-box > * + * {
  margin-top: 0.9rem;
}

/* Hinweis "Demnächst" */
.soon-box {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  max-width: 52rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px dashed var(--grau);
}

/* ---------- Drei Schritte im schrägen Band ---------- */

.steps-list {
  display: grid;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 820px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}
.step-no {
  display: block;
  font: 400 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem) / 1 var(--display);
}
.steps-list h3 {
  margin: 0.8rem 0 0.5rem;
  font: 400 clamp(1rem, 0.9rem + 0.4vw, 1.2rem) / 1.35 var(--display);
}

/* ---------- Funktionszeilen mit Ansicht ---------- */

.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature > * {
  min-width: 0;
}
.feature + .feature {
  margin-top: clamp(4rem, 9vw, 7rem);
}
.feature-text > * + * {
  margin-top: 1rem;
}
.feature-text .actions {
  margin-top: 1.5rem;
}
.feature-media {
  margin: 0;
}
.feature-media figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--grau);
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .feature.reverse .feature-media {
    order: -1;
  }
}

/* ---------- Nummerierter Ablauf für Werkstätten ---------- */
/* Nummer links, Inhalt rechts – ohne Raster, damit beliebig viele Absätze passen */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}
.flow > li {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem) clamp(3.4rem, 2.5rem + 4vw, 6.5rem);
  border-top: 1px solid var(--linie);
  counter-increment: flow;
}
.flow > li:last-child {
  border-bottom: 1px solid var(--linie);
}
.flow > li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(1.5rem, 3vw, 2.25rem);
  min-width: 2.2em;
  color: var(--rot);
  font: 400 clamp(1.3rem, 1rem + 1.4vw, 2rem) / 1.1 var(--display);
}
.flow h3 {
  font: 400 clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem) / 1.35 var(--display);
}
.flow p,
.flow ul {
  margin-top: 0.6rem;
  max-width: 68ch;
}
.flow .table-scroll,
.flow .request-card {
  margin-top: 1rem;
}
/* Handy: Nummer über der Überschrift, damit der Inhalt die volle Breite hat */
@media (max-width: 599px) {
  .flow > li {
    padding-left: 0;
  }
  .flow > li::before {
    position: static;
    display: block;
    margin-bottom: 0.4rem;
  }
}

/* ---------- Preise ---------- */

.price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  max-width: 60rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

ul.prices {
  list-style: none;
  margin: 0;
  padding: 0;
}
.prices {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
}
.price {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--weiss);
  border-bottom: var(--edge) solid var(--rot);
}
.section:not(.bg-hellgrau):not(.bg-rosa) .price {
  background: var(--hellgrau);
}
.price-range {
  font-weight: 700;
  font-size: 1.1rem;
}
.price-amount {
  font: 400 clamp(2.2rem, 1.7rem + 2vw, 3.1rem) / 1.05 var(--display);
}
.price-unit {
  color: var(--grau);
  font-size: 0.98rem;
}
.price-free .price-amount {
  color: var(--rot);
}

.price-driver {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .price-driver {
    grid-template-columns: auto 1fr;
    gap: 3rem;
  }
}
.price-driver .price-amount {
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  color: var(--rot);
}

/* ---------- Fragen & Antworten ---------- */

.faq-group + .faq-group {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.faq-group h2 {
  margin-bottom: 1rem;
}
.faq details {
  border-bottom: 1px solid var(--linie);
}
.faq details:first-of-type {
  border-top: 1px solid var(--linie);
}
.faq summary {
  position: relative;
  padding: 1.1rem 2.75rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: ">";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  color: var(--rot);
  font: 400 1.1rem/1 var(--display);
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s;
}
.faq details[open] > summary::after {
  transform: translateY(-50%) rotate(-90deg);
}
.faq summary:hover {
  color: var(--rot);
}
.faq .answer {
  max-width: 72ch;
  padding: 0 0 1.4rem;
}
.faq .answer > * + * {
  margin-top: 0.75rem;
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--hellgrau);
  border-bottom: var(--edge) solid var(--rot);
}
.bg-hellgrau .contact-card {
  background: var(--weiss);
}
.contact-card .label {
  font: 400 0.95rem/1.3 var(--display);
}
.contact-card .value {
  font-size: 1.3rem;
  font-weight: 700;
  word-break: break-word;
}
.contact-card .value a {
  color: var(--schwarz);
  text-decoration-color: var(--rot);
  text-decoration-thickness: 2px;
}
.contact-card .value a:hover {
  color: var(--rot);
}
.contact-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
address.value {
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
}

.qr-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.qr-box img {
  width: 150px;
  height: 150px;
  padding: 10px;
  background: var(--weiss);
}
.qr-box p {
  flex: 1 1 16rem;
}

/* ---------- Rechtstexte ---------- */

.prose > * {
  max-width: 74ch;
}
.prose h2 {
  margin: 2.5rem 0 0.8rem;
  font: 400 clamp(1.1rem, 0.95rem + 0.8vw, 1.45rem) / 1.35 var(--display);
}
.prose > h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}
.prose p,
.prose ul {
  margin-bottom: 1rem;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 0.35rem;
}
.prose address {
  font-style: normal;
  margin-bottom: 1rem;
}
/* Hervorgehobener Absatz (Widerspruchsrecht, Art. 21 Abs. 4 DSGVO) */
.prose .highlight {
  padding: 1rem 1.25rem;
  background: var(--hellgrau);
  border-left: 4px solid var(--rot);
}

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

.cta-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 820px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.cta-grid > div > * + * {
  margin-top: 0.85rem;
}
.cta-grid .actions {
  margin-top: 1.25rem;
}

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

.site-footer {
  background: var(--hellgrau);
  border-top: 1px solid var(--linie);
}
.footer-main {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
@media (min-width: 820px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-main h2 {
  margin-bottom: 0.75rem;
  font: 400 0.95rem/1.3 var(--display);
}
.footer-links {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--schwarz);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--rot);
  text-decoration: underline;
}
.footer-brand > * + * {
  margin-top: 1rem;
}
.footer-contact {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 0.35rem;
  font-size: 0.98rem;
}
.footer-contact a {
  color: var(--schwarz);
}
.footer-contact a:hover {
  color: var(--rot);
}

/* ---------- 404 ---------- */

.notfound-code {
  font: 400 clamp(4rem, 3rem + 8vw, 9rem) / 1 var(--display);
  color: var(--rot);
}

/* ==========================================================================
   App-Ansichten (Handy, Laptop, Aushang) – nur Beispieldaten.
   Nachgebildet nach dem neuen App-Design (Zweig "design-visitenkarte"):
   rotes Kopfband mit gedrehtem Schriftzug, weiße Karten auf Hellgrau.
   Die Statusfarben (Grün, Bernstein) gibt es nur hier, weil die App sie zeigt.
   ========================================================================== */

.mock {
  --ok-bg: #ecfdf5;
  --ok-text: #065f46;
  --ok-ring: #6ee7b7;
  --soon-bg: #fef3c7;
  --soon-text: #78350f;
  --soon-ring: #fbbf24;
  --great: #047857;
  --wa: #047857;
  margin: 0;
}
.mock * {
  box-sizing: border-box;
}

/* Handy */
.phone {
  --w: min(300px, 82vw);
  position: relative;
  width: var(--w);
  aspect-ratio: 300 / 616;
  margin-inline: auto;
  padding: calc(var(--w) * 0.034);
  background: var(--schwarz);
  border-radius: calc(var(--w) * 0.15);
  box-shadow:
    inset 0 0 0 2px #4a4546,
    0 40px 60px -32px rgba(35, 31, 32, 0.6);
  container-type: inline-size;
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--w) * 0.058);
  left: 50%;
  width: 29%;
  height: calc(var(--w) * 0.078);
  background: var(--schwarz);
  border-radius: 999px;
  transform: translateX(-50%);
}
.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--hellgrau);
  border-radius: calc(var(--w) * 0.118);
  color: var(--schwarz);
  font-family: var(--text);
  font-size: 12px;
  font-size: 4.45cqi;
  line-height: 1.35;
  text-align: left;
}

/* Statuszeile */
.m-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15em 2em 0.55em;
  font-weight: 700;
  font-size: 0.95em;
  background: var(--rot);
  color: var(--weiss);
}
.m-status .m-icons {
  display: flex;
  gap: 0.3em;
  align-items: flex-end;
}
.m-icons i {
  display: block;
  width: 0.28em;
  background: var(--weiss);
  border-radius: 1px;
}
.m-icons i:nth-child(1) { height: 0.4em; }
.m-icons i:nth-child(2) { height: 0.6em; }
.m-icons i:nth-child(3) { height: 0.8em; }
.m-icons b {
  display: block;
  width: 1.7em;
  height: 0.8em;
  margin-left: 0.3em;
  border: 1.5px solid var(--weiss);
  border-radius: 0.2em;
  background: linear-gradient(90deg, var(--weiss) 70%, transparent 70%) padding-box;
}
.screen.lock .m-status,
.screen.chat .m-status {
  position: relative;
  background: transparent;
  color: var(--schwarz);
}
.screen.lock .m-icons i {
  background: var(--schwarz);
}
.screen.lock .m-icons b {
  border-color: var(--schwarz);
  background: linear-gradient(90deg, var(--schwarz) 70%, transparent 70%) padding-box;
}

/* Rotes Kopfband der App mit schräger Unterkante */
.m-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: -1px;
  padding: 0.75em 1.1em 1.3em;
  background: var(--rot);
  color: var(--weiss);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.8em), 0 100%);
}
.m-band {
  display: inline-block;
  font: 400 0.78em/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.m-out {
  font-weight: 600;
  font-size: 0.82em;
  text-decoration: underline;
}
.m-nav {
  display: flex;
  gap: 1em;
  padding: 0 1.1em;
  font-weight: 600;
  font-size: 0.9em;
}
.m-nav span::before {
  content: "> ";
  color: var(--rot);
  font: 400 0.8em var(--display);
}

.m-body {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  flex: 1;
  min-height: 0;
  padding: 0.9em 1em 1em;
  overflow: hidden;
}
.m-title {
  font: 400 1.12em/1.25 var(--display);
}
.m-sub {
  color: var(--grau);
  font-size: 0.92em;
}
.m-card {
  overflow: hidden;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 0.5em;
}
.m-vcard {
  border-bottom: 0.3em solid var(--rot);
}
.m-pad {
  padding: 0.8em 0.9em;
}
.m-photo {
  position: relative;
  height: 7.4em;
  overflow: hidden;
  background: var(--rosa);
}
.m-photo::before {
  content: "";
  position: absolute;
  inset: 22% -5% 26%;
  background: var(--rot);
  clip-path: polygon(0 32%, 100% 0, 100% 68%, 0 100%);
}
.m-photo svg {
  position: absolute;
  left: 50%;
  bottom: 0.6em;
  width: 72%;
  transform: translateX(-50%);
}
.m-vehicle {
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.m-ring {
  flex: none;
  width: 4.6em;
  height: 4.6em;
}
.m-ring text {
  font: 700 15px var(--text);
  fill: var(--schwarz);
}
.m-name {
  font-weight: 700;
  font-size: 1.12em;
  line-height: 1.2;
}
.m-vcard .m-name {
  font: 400 1em/1.25 var(--display);
}
.m-meta {
  color: var(--grau);
  font-size: 0.92em;
}
.m-plate {
  font-weight: 700;
  color: var(--schwarz);
}
.m-health {
  margin-top: 0.15em;
  font-size: 0.92em;
}
.m-great {
  color: var(--great);
  font-weight: 700;
}
.m-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6em;
}
.m-row + .m-row {
  margin-top: 0.55em;
  padding-top: 0.55em;
  border-top: 1px solid var(--hellgrau);
}
.m-row-title {
  font-weight: 700;
}
.m-row-sub {
  display: block;
  color: var(--grau);
  font-size: 0.88em;
}
.m-h {
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 0.45em;
}

/* Status-Abzeichen mit Symbol wie in der App (Dreieck, Uhr, Haken) */
.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  flex: none;
  padding: 0.18em 0.65em 0.18em 0.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78em;
  line-height: 1.35;
  white-space: nowrap;
}
.m-badge svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.m-badge.due {
  background: var(--rot);
  color: var(--weiss);
}
.m-badge.soon {
  background: var(--soon-bg);
  color: var(--soon-text);
  box-shadow: inset 0 0 0 1px var(--soon-ring);
}
.m-badge.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  box-shadow: inset 0 0 0 1px var(--ok-ring);
}

.m-btn {
  display: block;
  padding: 0.62em 0.6em;
  border-radius: 0.35em;
  font-weight: 700;
  font-size: 0.92em;
  text-align: center;
}
.m-btn.primary {
  background: var(--rot);
  color: var(--weiss);
}
.m-btn.secondary {
  background: var(--weiss);
  box-shadow: inset 0 0 0 1px var(--feld);
}
.m-btn.wa {
  background: var(--wa);
  color: var(--weiss);
}
.m-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}
.m-workshop {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.m-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 0.4em;
  background: var(--schwarz);
  color: var(--weiss);
  font: 700 0.85em/1 var(--text);
}
.m-slogan {
  color: var(--rot);
  font: 400 0.68em/1.3 var(--display);
}
.m-small {
  color: var(--grau);
  font-size: 0.85em;
}
.m-req {
  padding: 0.6em 0.75em;
  border: 1px solid rgba(200, 25, 44, 0.3);
  border-radius: 0.4em;
  background: rgba(246, 218, 212, 0.5);
  font-weight: 700;
}
.m-req::before {
  content: "▸ ";
}
.m-field {
  display: block;
  padding: 0.5em 0.65em;
  border: 1px solid var(--feld);
  border-radius: 0.35em;
  background: var(--weiss);
}
.m-label {
  display: block;
  margin-bottom: 0.25em;
  font-weight: 600;
  font-size: 0.9em;
}
.m-check {
  display: flex;
  gap: 0.55em;
  align-items: flex-start;
}
.m-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.1em;
  border: 1.5px solid var(--schwarz);
  border-radius: 0.2em;
}
.m-box.on {
  background: var(--rot);
  border-color: var(--rot);
}
.m-box.on::after {
  content: "";
  width: 0.35em;
  height: 0.6em;
  margin-top: -0.12em;
  border: solid var(--weiss);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}
.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.6em;
  border-radius: 999px;
  background: var(--hellgrau);
  font-size: 0.85em;
  font-weight: 600;
}
.m-chip::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--rot);
}
.m-link {
  color: var(--rot);
  font-weight: 600;
  font-size: 0.9em;
}
.m-stack > * + * {
  margin-top: 0.65em;
}
.m-push {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
}
.m-push .m-dot {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  margin-top: 0.3em;
  background: var(--rot);
}

/* Sperrbildschirm mit Erinnerung */
.screen.lock {
  position: relative;
  background: var(--rosa);
}
.screen.lock::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 52%;
  height: 30%;
  background: var(--rot);
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
}
.lock-time {
  position: relative;
  margin-top: 2.6em;
  text-align: center;
  font: 400 3.4em/1 var(--display);
}
.lock-date {
  position: relative;
  margin-top: 0.4em;
  text-align: center;
  font-weight: 600;
}
.notif {
  position: relative;
  margin: 1.8em 0.8em 0;
  padding: 0.8em 0.9em;
  border-radius: 1em;
  background: var(--weiss);
  box-shadow: 0 0.6em 1.4em -0.6em rgba(35, 31, 32, 0.45);
}
.notif + .notif {
  margin-top: 0.6em;
  opacity: 0.92;
}
.notif-head {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--grau);
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.notif-head img {
  width: 1.6em;
  height: 1.6em;
}
.notif-head span:last-child {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
}
.notif-title {
  margin-top: 0.4em;
  font-weight: 700;
}
.notif-body {
  font-size: 0.95em;
}

/* App-Symbol mit Zahl offener Wartungen */
.appicon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 64px;
  height: 64px;
}
.appicon img {
  width: 100%;
  height: 100%;
}
.appicon b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: 2px solid var(--weiss);
  border-radius: 999px;
  background: var(--schwarz);
  color: var(--weiss);
  font: 700 0.95rem/1 var(--text);
}
.appicon-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Chat (Nachricht an die Werkstatt) */
.screen.chat {
  background: var(--hellgrau);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 2.6em 1em 0.7em;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.chat-head .m-logo {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
}
.chat-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 0;
  padding: 0.9em;
  overflow: hidden;
}
.bubble {
  align-self: flex-end;
  max-width: 92%;
  padding: 0.7em 0.8em 0.5em;
  border-radius: 0.8em 0.8em 0.2em 0.8em;
  background: var(--weiss);
  box-shadow: 0 1px 0 rgba(35, 31, 32, 0.12);
  font-size: 0.9em;
}
.bubble .t {
  display: block;
  margin-top: 0.3em;
  color: var(--grau);
  font-size: 0.8em;
  text-align: right;
}
.bubble u {
  color: var(--rot);
  text-decoration: underline;
  word-break: break-all;
}
.chat-input {
  display: flex;
  gap: 0.5em;
  align-items: center;
  padding: 0.6em 0.8em 1.6em;
  background: var(--weiss);
}
.chat-input span:first-child {
  flex: 1;
  padding: 0.5em 0.8em;
  border-radius: 999px;
  background: var(--hellgrau);
  color: var(--grau);
}
.chat-input span:last-child {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--rot);
  color: var(--weiss);
  font: 400 0.9em/1 var(--display);
}

/* Laptop mit Werkstatt-Portal */
.laptop {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 5.5%;
}
.laptop-lid {
  padding: 2.4% 2.4% 0;
  background: var(--schwarz);
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 0 0 2px #4a4546;
  container-type: inline-size;
}
.laptop-display {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hellgrau);
  color: var(--schwarz);
  font-family: var(--text);
  font-size: 11px;
  font-size: 1.95cqi;
  line-height: 1.35;
  text-align: left;
}
.laptop-base {
  position: relative;
  height: 0;
  margin: 0 -5.5%;
  padding-bottom: 3.6%;
  background: linear-gradient(#e5e4e4, #a9a6a7);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 30px 40px -28px rgba(35, 31, 32, 0.6);
}
.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 40%;
  background: #bdbabb;
  border-radius: 0 0 8px 8px;
  transform: translateX(-50%);
}
.b-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.9em;
  background: var(--hellgrau);
  border-bottom: 1px solid var(--linie);
}
.b-bar i {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #b3b0b1;
}
.b-url {
  flex: 1;
  max-width: 60%;
  margin-left: 1em;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  background: var(--weiss);
  color: var(--grau);
  font-size: 0.92em;
}
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.8em 1.4em 1.4em;
  background: var(--rot);
  color: var(--weiss);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.7em), 0 100%);
}
.p-head .m-band {
  font-size: 0.95em;
  transform: rotate(-1.5deg);
}
.p-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 1.4em;
  padding: 0 1.4em;
  font-weight: 600;
}
.p-subnav span::before {
  content: "> ";
  color: var(--rot);
  font: 400 0.8em var(--display);
}
.p-main {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  flex: 1;
  min-height: 0;
  padding: 1.1em 1.4em;
  overflow: hidden;
}
.p-tabs {
  display: flex;
  gap: 0.3em;
  padding: 0.3em;
  border: 1px solid var(--linie);
  border-radius: 0.5em;
  background: var(--weiss);
}
.p-tabs span {
  flex: 1;
  padding: 0.45em;
  border-radius: 0.35em;
  text-align: center;
  font-weight: 600;
  color: var(--grau);
}
.p-tabs span.on {
  background: var(--rot);
  color: var(--weiss);
  box-shadow: 0 1px 2px rgba(35, 31, 32, 0.15);
}
.p-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}
.p-titlebar .m-title {
  font-size: 1.25em;
}
.p-titlebar .m-btn {
  padding: 0.5em 1em;
}
.p-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
  padding: 0.65em 0.9em;
  border: 1px solid var(--linie);
  border-radius: 0.55em;
  background: var(--weiss);
}
.p-row > div {
  min-width: 0;
}
.p-row .m-row-sub {
  font-size: 0.92em;
}
.p-due {
  margin-top: 0.2em;
  font-size: 0.92em;
}

/* Auf dem Handy wäre der ganze Laptop unlesbar klein. Dort erscheint das Portal
   deshalb als Browserfenster in normaler Schriftgröße, ohne Laptop-Gehäuse. */
@media (max-width: 599px) {
  .laptop {
    max-width: 440px;
    padding-inline: 0;
  }
  .laptop-lid {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--linie);
    border-radius: 10px;
    box-shadow: 0 30px 40px -28px rgba(35, 31, 32, 0.6);
  }
  .laptop-display {
    aspect-ratio: auto;
    font-size: 13px;
  }
  .laptop-base {
    display: none;
  }
  .b-url {
    max-width: none;
  }
  .p-head,
  .p-subnav,
  .p-main {
    padding-inline: 0.9em;
  }
  .p-row {
    padding-inline: 0.75em;
    gap: 0.6em;
  }
}

/* Gedruckter Aushang */
.paper {
  position: relative;
  width: min(330px, 80vw);
  aspect-ratio: 210 / 297;
  margin-inline: auto;
  padding: 7% 8%;
  overflow: hidden;
  background: var(--weiss);
  box-shadow: 0 30px 50px -30px rgba(35, 31, 32, 0.6), 0 0 0 1px var(--linie);
  container-type: inline-size;
  color: var(--schwarz);
  text-align: center;
  transform: rotate(-2deg);
}
.paper-in {
  font-size: 10px;
  font-size: 4cqi;
  line-height: 1.35;
}
.paper-in > p {
  margin-top: 0.6em;
}
.paper-logo {
  display: grid;
  place-items: center;
  width: 4.5em;
  height: 4.5em;
  margin: 0 auto 0.6em;
  border-radius: 0.6em;
  background: var(--schwarz);
  color: var(--weiss);
  font: 400 1.2em/1 var(--display);
}
.paper-name {
  font-weight: 700;
  font-size: 1.25em;
}
.paper-title {
  margin-top: 1.4em;
  font: 400 1.35em/1.3 var(--display);
}
.paper-qr {
  width: 42%;
  margin: 1.2em auto 0;
}
.paper ol {
  margin: 1.2em auto 0;
  padding: 0;
  list-style: none;
  max-width: 85%;
  text-align: left;
}
.paper ol li + li {
  margin-top: 0.3em;
}

/* Beispieltabelle "Wartungen einrichten" */
.table-scroll {
  position: relative; /* hält die unsichtbaren Zusatztexte im Kasten */
  overflow-x: auto;
  border-bottom: var(--edge) solid var(--rot);
}
.setup {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--weiss);
}
.setup th,
.setup td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--hellgrau);
  text-align: left;
  vertical-align: top;
}
.setup thead th {
  background: var(--schwarz);
  color: var(--weiss);
  font-weight: 600;
  white-space: nowrap;
}
.setup .tick {
  color: var(--rot);
  font-weight: 700;
}
.setup td.off {
  color: var(--grau);
}
/* Schmale Bildschirme: jede Zeile als eigene Karte mit Beschriftung, kein seitliches Wischen */
@media (max-width: 699px) {
  .table-scroll {
    overflow: visible;
  }
  .setup,
  .setup tbody,
  .setup tr,
  .setup th,
  .setup td {
    display: block;
  }
  .setup {
    background: transparent;
  }
  .setup thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .setup tr {
    padding: 0.8rem 1rem;
    background: var(--weiss);
  }
  .setup tr + tr {
    margin-top: 0.5rem;
  }
  .setup th[scope="row"] {
    padding: 0 0 0.35rem;
    border: 0;
    font-size: 1.05rem;
  }
  .setup td {
    display: flex;
    gap: 0.4rem;
    padding: 0.3rem 0;
    border: 0;
    border-top: 1px solid var(--hellgrau);
  }
  .setup td::before {
    content: attr(data-label);
    flex: 0 0 8.5rem;
    color: var(--grau);
    font-weight: 600;
  }
  .setup td.note-cell {
    display: block;
  }
  .setup td.note-cell::before {
    content: none;
  }
}

/* Freigabe-Karte */
.request-card {
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-bottom: var(--edge) solid var(--rot);
  font-size: 0.98rem;
}
.request-card .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  align-items: baseline;
}
.request-card .who {
  font-weight: 700;
  font-size: 1.1rem;
}
.request-card .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.request-card .btns span {
  padding: 0.45rem 0.8rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
}
.request-card .b1 {
  background: var(--rot);
  color: var(--weiss);
}
.request-card .b2 {
  box-shadow: inset 0 0 0 2px var(--schwarz);
}
.request-card .b3 {
  color: var(--rot);
  box-shadow: inset 0 0 0 2px var(--rot);
}

/* Plattform-Karten (Installation) */
.platforms {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.platform {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--weiss);
  border-top: 4px solid var(--rot);
}
.platform h3 {
  font: 400 1.05rem/1.3 var(--display);
}
.platform ol {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}
.platform li + li {
  margin-top: 0.35rem;
}

/* Großer Ring */
.ring-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--weiss);
  border-bottom: var(--edge) solid var(--rot);
}
.ring-demo .m-ring {
  width: clamp(120px, 26vw, 200px);
  height: auto;
}
.ring-label {
  font: 400 clamp(1.4rem, 1rem + 2vw, 2.2rem) / 1.2 var(--display);
  white-space: nowrap;
}

/* Kilometerstand */
.km-demo {
  max-width: 420px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--hellgrau);
  border-bottom: var(--edge) solid var(--rot);
  font-size: 1rem;
}
.km-label {
  font-weight: 600;
}
.km-value {
  margin-top: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--weiss);
  border: 2px solid var(--schwarz);
  border-radius: 3px;
  font: 400 clamp(1.3rem, 1rem + 1.4vw, 1.8rem) / 1.2 var(--display);
}
.km-hint {
  margin-top: 0.6rem;
  padding-left: 1.2em;
  position: relative;
  font-size: 0.95rem;
}
.km-hint::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  background: var(--rot);
}
.km-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}
.km-btns .m-btn {
  font-size: 0.95rem;
}

/* ---------- Hilfsklassen ---------- */

.mt-s {
  margin-top: 1rem;
}
.mt-m {
  margin-top: 1.75rem;
}
.mt-l {
  margin-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .menu-toggle,
  .band-top,
  .actions {
    display: none !important;
  }
  .band-diag {
    clip-path: none;
  }
}
