/* Seite /ablauf: ein Lehrgang mit Sachkundepass als Zeitleiste.
   Am Handy eine Spalte, Linie und Punkte links, Bild unter dem Text. Ab 60em
   steht die Zeitmarke links neben der Linie, Text und Bild rechts daneben.
   Farben und Schriften aus basis.css, Handy und App-Bildschirm aus
   anbieter-bausteine.css. Mobile-First, größere Bildschirme nur über min-width. */

/* Schmalere Breite nur für den Inhalt, der Kopf braucht seine volle Breite */
.ablauf main {
  --breite: 1120px;
  /* Farbe der erfundenen Schießschule Berger, wie beim Beispiel-Anbieter */
  --anbieter: #2B5876;
  /* Zeitleiste: Abstand von links bis zur Mitte der Linie, Größe der Punkte */
  --linie-x: 0.55rem;
  --punkt: 0.95rem;
  font-size: 17px;
  line-height: 1.6;
  background: var(--grund);
}

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.ab-kopf { max-width: 40rem; padding: 2.5rem 0 2.75rem; }
.ab-kopf h1 { margin-bottom: 1rem; font-size: clamp(2rem, 7vw, 2.6rem); }
.ab-kopf p { margin: 0; color: var(--text-leise); font-size: 1.1rem; }

/* ── Zeitleiste ───────────────────────────────────────────────────────── */
.ab-zeitleiste { margin: 0; padding: 0; list-style: none; }
.ab-station { position: relative; margin: 0; padding: 0 0 3rem 2.25rem; }

/* Linie bis zum nächsten Punkt, bei der letzten Station keine */
.ab-station::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: -0.4rem;
  left: calc(var(--linie-x) - 1px);
  width: 2px;
  background: var(--linie);
}
.ab-station:last-child::before { display: none; }

/* Punkt: Papierton mit tannengrünem Rand, auf Höhe der Zeitmarke */
.ab-station::after {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: calc(var(--linie-x) - var(--punkt) / 2);
  width: var(--punkt);
  height: var(--punkt);
  box-sizing: border-box;
  border: 2px solid var(--tanne);
  border-radius: 50%;
  background: var(--papier-ton);
}

.ab-zeit {
  margin: 0 0 0.4rem;
  color: var(--tanne);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.ab-text h2 { margin: 0 0 0.6rem; font-size: 1.3rem; line-height: 1.25; }
.ab-text p { max-width: 34rem; margin: 0; color: var(--text-leise); }

/* ── Bilder ───────────────────────────────────────────────────────────── */
/* Klein und ruhig, höchstens 280 px breit, Maße in em ab 0,85rem */
.ab-bild { width: 100%; max-width: 280px; margin-top: 1.5rem; font-size: 0.85rem; line-height: 1.4; }
.ab-bild p { margin: 0; }

/* Blatt aus dem Partnerbereich: weiß, feiner Rand */
.ab-blatt { padding: 1rem 1.1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--grund); }
.ab-titel { margin-bottom: 0.6em; font-family: var(--schrift-titel); font-size: 1.1em; font-weight: 700; line-height: 1.25; }
.ab-klein { color: var(--text-leise); font-size: 0.9em; font-weight: 600; }

/* Erfundenes Logo der Schießschule Berger */
.ab-logo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2em;
  height: 2em;
  border-radius: 0.45em;
  background: var(--anbieter);
  color: var(--text-hell);
  font-family: var(--schrift-titel);
  font-size: 0.85em;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ab-absender { display: flex; align-items: center; gap: 0.55em; margin-bottom: 0.9em; padding-bottom: 0.8em; border-bottom: 1px solid var(--linie-fein); font-weight: 700; color: var(--anbieter); }
.ab-blatt .ab-absender + .ab-klein { margin-bottom: 0.1em; }

/* Station 1: Kursgruppe mit Häkchen für die Standaufsicht */
.ab-option { display: flex; align-items: center; gap: 0.5em; }
.ab-kaestchen { position: relative; flex: none; width: 1.1em; height: 1.1em; border-radius: 0.25em; background: var(--tanne); }
.ab-kaestchen::after {
  content: '';
  position: absolute;
  left: 0.36em;
  top: 0.15em;
  width: 0.28em;
  height: 0.55em;
  border: solid var(--text-hell);
  border-width: 0 0.12em 0.12em 0;
  transform: rotate(45deg);
}

/* Station 2: Anmeldungen */
.ab-zeilen, .ab-stand, .ab-erledigt { margin: 0; padding: 0; list-style: none; }
.ab-zeilen li { display: flex; align-items: center; gap: 0.6em; margin: 0; padding: 0.55em 0; border-top: 1px solid var(--linie-fein); }
.ab-zeilen .initiale, .ab-stand .initiale { width: 2.1em; height: 2.1em; font-size: 0.8em; }
.ab-wer { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.ab-wer span { display: block; color: var(--text-leise); font-size: 0.9em; font-weight: 600; }
.ab-wer .ab-gut { color: var(--gut); }
.ab-knopf { flex: none; padding: 0.35em 0.7em; border: 1px solid var(--tanne); border-radius: 0.5em; background: var(--tanne); color: var(--text-hell); font-size: 0.9em; font-weight: 700; }
.ab-knopf-hell { display: inline-block; margin-top: 0.9em; background: transparent; color: var(--tanne); }
.ab-haken { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: var(--gut); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Station 3: Handy mit der Lern-App */
/* So hoch wie der Inhalt, kein leerer Bildschirm unter den Unterlagen */
.ab-handy { max-width: 210px; aspect-ratio: auto; border-width: 8px; border-radius: 30px; }
.ab-handy .ps-schirm { height: auto; }
.ab-handy .portal-inhalt { padding-bottom: 0.9em; }
.ab-handy .portal-kopf-innen { gap: 0.5em; }
.ab-handy .ab-logo { font-size: 0.8em; }
.ab-handy .portal-name { color: var(--anbieter); }
.ab-handy .karte { margin-bottom: 1.1em; }
.ab-unterlagen-titel { margin-bottom: 0.4em; font-size: 0.85em; font-weight: 700; color: var(--text-leise); }
.ab-datei { display: flex; align-items: center; gap: 0.5em; padding: 0.45em 0; border-top: 1px solid var(--linie-fein); font-size: 0.9em; white-space: nowrap; }
.ab-datei-symbol { display: grid; place-items: center; flex: none; width: 1.6em; height: 1.9em; border-radius: 0.25em; background: #F1E8D7; color: var(--messing-dunkel); font-size: 0.65em; font-weight: 800; }

/* Station 4: Lernstand je Teilnehmer */
.ab-stand li { display: grid; grid-template-columns: auto minmax(0, 1fr) 3em; align-items: center; gap: 0.7em; margin: 0; padding: 0.4em 0; }
.ab-balken { display: block; height: 0.5em; border-radius: 999px; background: var(--tanne-hell); overflow: hidden; }
.ab-balken span { display: block; height: 100%; border-radius: inherit; background: var(--tanne); }
.ab-w-100 { width: 100%; }
.ab-w-60 { width: 60%; }
.ab-w-0 { width: 0; }
.ab-wert { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-offen .ab-balken { background: var(--achtung-hell); }
.ab-offen .ab-wert { color: var(--achtung); }

/* Station 5: Bescheinigung auf Papier */
.ab-dokument { padding: 1.1rem 1.2rem 1.3rem; border: 1px solid var(--linie); border-radius: 0.4rem; background: var(--papier); }
.ab-dokument-titel { font-family: var(--schrift-titel); font-size: 1.45em; font-weight: 700; line-height: 1.2; }
.ab-zeile { display: block; height: 0.35em; margin-top: 0.6em; border-radius: 999px; background: var(--linie); }
.ab-dokument .ab-klein + .ab-zeile { margin-top: 0.9em; }
.ab-zeile-kurz { width: 55%; }

/* Station 6: abgeschlossene Kursgruppe */
.ab-erledigt li { display: flex; align-items: center; gap: 0.55em; margin: 0; padding: 0.35em 0; }
/* Löschtermin unter dem Häkchen, eingerückt auf die Höhe des Textes */
.ab-erledigt .ab-termin { padding-left: 1.75em; color: var(--text-leise); font-variant-numeric: tabular-nums; }

/* ── Schluss ──────────────────────────────────────────────────────────── */
.ab-schluss { padding: 1rem 0 4rem 2.25rem; }
.ab-schluss p { margin: 0 0 0.6rem; font-size: 1.1rem; }
.ab-schluss .ab-telefon { margin: 1.25rem 0 0; color: var(--text-leise); font-size: 0.95rem; }
.ab-telefon a { color: inherit; }

/* ── Größere Bildschirme ──────────────────────────────────────────────── */
@media (min-width: 60em) {
  .ablauf main { --linie-x: 13.5rem; }
  .ab-kopf { padding: 4.5rem 0 4rem; }
  .ab-kopf h1 { font-size: 3rem; }
  .ab-kopf p { font-size: 1.2rem; }

  /* Zeitmarke rechtsbündig links der Linie, Inhalt rechts daneben */
  .ab-station { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0 3rem; padding: 0 0 4.5rem; }
  .ab-zeit { margin: 0.1rem 0 0; text-align: right; }
  .ab-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 3rem; align-items: start; }
  .ab-text h2 { font-size: 1.5rem; }
  .ab-bild { margin-top: 0.3rem; }
  .ab-schluss { padding: 1rem 0 6rem 15rem; }
}
