/* Anleitung nach Evas Entwurf (Nick 10.11.2026). Desktop: vier Kästen als
   Raute (1 oben, 2 links, 3 rechts, 4 unten), dünne Linien verbinden sie in
   der Reihenfolge 1-2-3-4. Masse aus dem Entwurf bei 1920: Raute 936 breit,
   Kasten 364 x 270, 60 zwischen den Reihen. Handy und Tablet: eine Spalte,
   kurze senkrechte Linie zwischen den Kästen. */
.howto { padding-bottom: var(--dbj-space-6); }
.howto__wrap { width: min(100%, 61rem); margin: 0 auto; }   /* Nick 2.12.2026 abends: 976 px wie FAQ und Über uns, Raute wächst mit (Prozent + SVG ohne Seitenverhältnis) */
.howto__title { font-size: var(--dbj-t-h2); font-weight: 500; line-height: 1.1;
  color: var(--dbj-text-2); margin: var(--dbj-space-3) 0 var(--dbj-space-4); text-wrap: balance; }
.howto__lead { font-size: var(--dbj-t-lead); font-weight: 400; line-height: 1.05;
  color: var(--dbj-text-2); margin: 0 0 var(--dbj-space-5); }
.howto__lead strong { display: block; font-weight: 700; }

.howto__steps { list-style: none; margin: 0; padding: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; }
.howto__step { width: 100%; max-width: 22.75rem; border: 1px solid var(--dbj-text-2);
  border-radius: var(--dbj-radius-field); padding: var(--dbj-space-4) var(--dbj-space-3);
  text-align: center; color: var(--dbj-text-2); background: var(--dbj-bg); position: relative; }
/* Handy: kurze Linie zwischen zwei Kästen. */
.howto__step + .howto__step { margin-top: var(--dbj-space-5); }
.howto__step + .howto__step::before { content: ""; position: absolute; left: 50%;
  top: calc(-1 * var(--dbj-space-5) - 1px); height: var(--dbj-space-5); border-left: 1px solid var(--dbj-text-2); }
.howto__step h2 { font-size: var(--dbj-t-step); font-weight: 500; line-height: 1;
  margin: 0 0 var(--dbj-space-3); }
.howto__step p { font-size: var(--dbj-t-text); line-height: 1; margin: 0; }
.howto__step strong { font-weight: 700; }
.howto__lines { display: none; }

.howto__cta { text-align: center; margin-top: var(--dbj-space-5); max-width: none; }
.howto__cta .dbj-btn { min-width: min(100%, 31rem); }

@media (min-width: 1024px) {
  /* Nick 2.12.2026 abends: Titel und Einleitung so breit wie FAQ und Über uns (976 px, x 232 bei 1440); die Raute bleibt 936 */
  .howto__wrap > header { padding-left: 0; }
  /* Raute: feste Höhe, damit die Linien (SVG in derselben Box) treffen. */
  .howto__steps { display: block; height: 58rem; }
  .howto__step { position: absolute; width: 38.9%; max-width: none; height: 16.875rem;
    display: flex; flex-direction: column; justify-content: center; margin: 0; }
  .howto__step + .howto__step { margin-top: 0; }
  .howto__step + .howto__step::before { content: none; }
  .howto__step--1 { left: 31.95%; top: 0; }
  .howto__step--2 { left: 0; top: 20.5rem; }
  .howto__step--3 { right: 0; top: 20.5rem; }
  .howto__step--4 { left: 31.95%; top: 41rem; }
  .howto__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: visible; }
  .howto__lines line { stroke: var(--dbj-text-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
}
