/* Sperrung der Unterzeile. Errechnet, damit „Reparatur von Mercedes-Benz“
   genau so breit wird wie „Autoservice Zimmermann“ darueber. */
:root { --sperrung: .6465em; }

/* Ergaenzungen fuer automatikgetriebe-dresden.de
   Baut auf main.css auf, ueberschreibt nichts Grundlegendes. */

.h-steps { font-family: var(--serif); font-size: var(--step-2); margin-bottom: 1.8rem; }

/* Briefkopf-Motiv: Zeile zwischen zwei Haarlinien, fuer Abschnittsmarken */
.ruled {
  border-top: 1px solid var(--brand); border-bottom: 1px solid var(--brand);
  padding-block: .3rem; font-family: var(--serif); font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; text-align: center;
  color: var(--brand);
  /* Wie beim Wortzeichen: die Haarlinien sind genau so breit wie der Text,
     nicht so breit wie der Platz. Auf schmalen Geraeten bricht die Zeile um. */
  width: max-content; max-width: min(34rem, 100%); margin-inline: auto;
}
.section--deep .ruled, .hero .ruled {
  border-color: var(--brand-lit); color: var(--brand-lit);
}

/* Symptom-Liste auf der Diagnoseseite */
.symptoms { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; padding: 0; }
@media (min-width: 44rem) { .symptoms { grid-template-columns: repeat(2, 1fr); } }
.symptoms li { background: var(--paper); padding: 1.35rem 1.5rem; }
.symptoms h3 { font-size: 1.05rem; color: var(--brand); }
.symptoms p { margin-top: .45rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }


/* Zitatband – ersetzt den Kennzahlen-Balken */
.motto { margin-top: clamp(2.8rem, 6vw, 4.5rem); border-top: 1px solid var(--brand-line); padding-top: clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.motto blockquote {
  margin: 0 auto; max-width: 26ch;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.6rem); line-height: 1.22;
  color: var(--white); letter-spacing: -.005em;
}
.motto blockquote em { font-style: italic; color: var(--brand-lit); }
.motto__note {
  margin: clamp(1.6rem, 3vw, 2.2rem) auto 0; max-width: 54ch;
  font-size: .98rem; line-height: 1.65; color: var(--on-deep-soft);
}
.motto__note strong { color: var(--white); font-weight: 600; }

/* Getriebearten als schlichte Aufzählung mit Haarlinien */
.arten { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.arten li { border-bottom: 1px solid var(--line); padding: 1.05rem 0; display: grid; gap: .2rem; }
@media (min-width: 44rem) { .arten li { grid-template-columns: 15rem 1fr; align-items: baseline; } }
.arten dt, .arten b {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--brand);
}
.arten span { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }

/* Kopfbereich der Startseite: rein typografisch, wie der Briefkopf.
   Kein Bildplatz – eine leere Fläche wirkt wie ein Fehler, nicht wie Gestaltung. */
.hero--typo { text-align: center; }
.hero--typo .ruled { margin: 0 auto 2.2rem; }
.hero--typo h1 { margin-inline: auto; max-width: 18ch; }
.hero--typo .hero__lead { margin: 1.6rem auto 0; max-width: 52ch; }
.hero--typo .btn-row { justify-content: center; }
.hero--typo .hero__meta {
  margin-top: 2.4rem; font-size: .82rem; letter-spacing: .04em;
  color: var(--on-deep-mute);
}
.hero--typo .hero__meta a { color: var(--on-deep-soft); text-decoration: none; }
.hero--typo .hero__meta a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.hero--typo .hero__meta span { white-space: nowrap; }
.hero--typo .hero__meta i { font-style: normal; color: var(--brand-line); padding-inline: .55rem; }
@media (max-width: 36rem) {
  .hero--typo .hero__meta i { display: block; height: 0; overflow: hidden; padding: .15rem 0; }
}

/* Teil-Überschrift: trennt größere Blöcke einer Seite sichtbar voneinander.
   Nimmt die Linie aus dem Briefkopf auf. */
.prose h2.part {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 2px solid var(--brand);
  font-size: var(--step-3);
  color: var(--brand);
}
.prose > h2.part:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2.part + * { margin-top: 1.2rem; }

/* Zwei Felder nebeneinander, auf schmalen Geräten untereinander */
.feldpaar { display: grid; gap: 0 1.2rem; }
@media (min-width: 34rem) { .feldpaar { grid-template-columns: 1fr 1fr; } }

/* Schnellauswahl */
fieldset.checks { border: 1px solid var(--line); background: var(--paper-2); padding: 1.1rem 1.3rem 1.3rem; }
fieldset.checks legend {
  padding-inline: .5rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
fieldset.checks label {
  display: flex; align-items: center; gap: .6rem; padding: .4rem 0;
  font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); cursor: pointer; margin: 0;
}
fieldset.checks input {
  width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--brand);
  -webkit-appearance: auto; appearance: auto;
}
@media (min-width: 40rem) {
  fieldset.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; }
  fieldset.checks legend { grid-column: 1 / -1; }
}
