/* Nur die Erklärung unter „Wie es funktioniert“. Kein Einfluss auf den Rest
   der Startseite: Alle Regeln bleiben unter diesem Abschnitt. */
#wie-es-geht {
  scroll-margin-top: calc(var(--kopf-hoehe) + 20px);
}

#wie-es-geht .bahn {
  max-width: 1120px;
}

#wie-es-geht .ablauf-kopf {
  max-width: 760px;
}

#wie-es-geht .ablauf-label {
  margin: 0 0 10px;
  color: var(--tinte-weich);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

#wie-es-geht h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

#wie-es-geht h3 {
  margin: 0;
  color: var(--tinte);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

#wie-es-geht p {
  color: var(--tinte-weich);
  font-size: 1rem;
  line-height: 1.6;
}

#wie-es-geht .ablauf-kopf > p:last-child {
  margin: 18px 0 0;
  font-size: 1.12rem;
  max-width: 58ch;
}

#wie-es-geht .ablauf-schritte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  background: var(--weiss);
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
}

#wie-es-geht .ablauf-schritte > li {
  position: relative;
  min-width: 0;
  padding: 22px;
}

#wie-es-geht .ablauf-schritte > li + li {
  border-left: 1px solid var(--linie-stark);
}

#wie-es-geht .ablauf-nummer {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--tinte);
  color: var(--weiss);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

#wie-es-geht .ablauf-schritte p {
  margin: 10px 0 0;
}

#wie-es-geht .ablauf-beispiel {
  margin: 0;
  background: var(--weiss);
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
}

#wie-es-geht .ablauf-beispiel > figcaption {
  padding: 15px 24px;
  border-bottom: 1px solid var(--linie-stark);
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

#wie-es-geht .ablauf-beispiel-raster {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

#wie-es-geht .ablauf-gesprochen,
#wie-es-geht .ablauf-angebot {
  min-width: 0;
  padding: 24px;
}

#wie-es-geht .ablauf-angebot {
  border-left: 1px solid var(--linie-stark);
}

#wie-es-geht blockquote {
  margin: 12px 0 16px;
  color: var(--tinte);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
}

#wie-es-geht .ablauf-gesprochen > p:last-child {
  margin: 0;
}

#wie-es-geht table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--tinte-weich);
  font-size: 1rem;
  line-height: 1.45;
}

#wie-es-geht caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.5;
}

#wie-es-geht th,
#wie-es-geht td {
  padding: 10px 0;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

#wie-es-geht thead th {
  color: var(--tinte);
  font-weight: 700;
}

#wie-es-geht tbody th {
  font-weight: 500;
}

#wie-es-geht .ablauf-rechenweg {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

#wie-es-geht .ablauf-einzelpreis {
  white-space: nowrap;
}

#wie-es-geht tfoot th {
  font-weight: 500;
}

#wie-es-geht .ablauf-endsumme > * {
  border-top: 2px solid var(--tinte);
  border-bottom: 0;
  color: var(--tinte);
  font-weight: 800;
}

#wie-es-geht th:last-child,
#wie-es-geht td:last-child {
  width: 6.5rem;
  padding-left: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#wie-es-geht .ablauf-beispiel-hinweis {
  margin: 14px 0 0;
  font-size: 0.94rem;
}

#wie-es-geht .ablauf-vorbereitung {
  margin-top: 28px;
  max-width: 76ch;
}

#wie-es-geht .ablauf-vorbereitung p {
  margin: 10px 0 0;
}

#wie-es-geht .ablauf-vorbereitung a {
  color: var(--flamme-tief);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#wie-es-geht :is(.ablauf-vergleich, .ablauf-frage) {
  margin-top: 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--linie-stark);
}

#wie-es-geht :is(.ablauf-vergleich, .ablauf-frage) summary {
  min-height: 48px;
  padding: 12px 4px;
  cursor: pointer;
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

#wie-es-geht :is(.ablauf-vergleich, .ablauf-frage) p {
  max-width: 76ch;
  margin: 12px 0 0;
}

#wie-es-geht .ablauf-vergleich .felderliste {
  margin-top: 14px;
}

#wie-es-geht .ablauf-vergleich .felderliste li {
  color: var(--tinte-weich);
  font-size: 1rem;
}

#wie-es-geht .ablauf-start {
  margin-top: 24px;
}

#wie-es-geht .ablauf-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

#wie-es-geht .ablauf-aktionen .knopf {
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  padding: 13px 22px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.4;
}

#wie-es-geht .knopf-haupt {
  background: #D1450B;
  color: #fff;
}

#wie-es-geht .knopf-haupt:hover {
  background: #B93A06;
}

#wie-es-geht .ablauf-start > p {
  margin: 12px 0 0;
  font-size: 0.94rem;
}

#wie-es-geht :is(a, summary):focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  #wie-es-geht .ablauf-schritte,
  #wie-es-geht .ablauf-beispiel-raster {
    grid-template-columns: minmax(0, 1fr);
  }

  #wie-es-geht .ablauf-schritte > li {
    padding: 18px 18px 18px 64px;
  }

  #wie-es-geht .ablauf-nummer {
    position: absolute;
    top: 18px;
    left: 18px;
    margin: 0;
  }

  #wie-es-geht .ablauf-schritte > li + li,
  #wie-es-geht .ablauf-angebot {
    border-left: 0;
    border-top: 1px solid var(--linie-stark);
  }

  #wie-es-geht .ablauf-beispiel > figcaption,
  #wie-es-geht .ablauf-gesprochen,
  #wie-es-geht .ablauf-angebot {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  #wie-es-geht .bahn {
    padding-inline: 16px;
  }

  #wie-es-geht .ablauf-aktionen .knopf {
    width: 100%;
  }
}
