/* Gemeinsame Bausteine der Startseite und der Seite für Lehrgangsanbieter
   (/partner): Häkchen in Messing, Vertrauenszeile, zweispaltige Abschnitte mit
   Produktbild, das Hero-Bild (src/utils/produktbilder.js), die Liste der
   Kursgruppen und Handys mit Bildschirmen aus der Teilnehmer-App.
   Farben und Schriften aus basis.css. Mobile-First, größere Bildschirme
   ausschließlich über min-width. Die Produktbilder sind Schmuck (aria-hidden). */

/* ── Häkchen in Messing ──────────────────────────────────────────────── */
/* Auf hellem Grund der dunkle Messington (Kontrast über 3:1), auf Tannengrün
   der helle. Dasselbe Zeichen in den Listen und, kleiner, in der Vertrauenszeile. */
.haken-zeichen { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--haken-farbe, var(--messing-dunkel)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.haken-liste { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.haken-liste li { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: 0.7rem; align-items: start; margin: 0; }
.haken-liste .haken-zeichen { margin-top: 0.22em; }

/* Vertrauenszeile unter den Knöpfen im Hero: am Handy untereinander, sonst nebeneinander */
.vertrauen-zeile { display: flex; flex-direction: column; gap: 0.45rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--text-leise); font-size: 0.95rem; font-weight: 600; }
.vertrauen-zeile li { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.vertrauen-zeile .haken-zeichen { width: 0.95rem; height: 0.95rem; }

/* ── Zweispaltige Abschnitte: Text und Produktbild ───────────────────── */
/* Am Handy Text zuerst, Bild darunter. Ab 60em nebeneinander, beim
   gespiegelten Abschnitt steht das Bild links. */
.saeule { display: grid; gap: 2.5rem; align-items: center; }
.saeule-text > p { max-width: 34rem; color: var(--text-leise); font-size: 1.1rem; }
.saeule-text .haken-liste { margin: 1.5rem 0; font-size: 1.05rem; }
.saeule-nachsatz { margin: 0; color: var(--text-leise); }
.saeule-nachsatz + .saeule-nachsatz { margin-top: 0.6rem; }
.saeule-bild { margin: 0; }

/* ── Partnerfarbe des Beispiel-Anbieters "Schießschule Nordhang" ─────── */
/* Schieferblau, nicht Tannengrün: das ist der Auftritt des Anbieters. Gilt für
   das Handy im Hero-Bild und die Bildschirme aus der Teilnehmer-App. */
.pb-schirm, .ps-schirm {
  --marke: #2B5876;
  --marke-dunkel: #1E3F56;
  --marke-hell: #E3EAF0;
}

/* ── Hero-Bild: Kursgruppe, davor das Handy mit der Lernapp ──────────── */
/* Unter 30em nur die Karte, das Handy wäre dort zu klein. Ab 30em liegen beide
   in derselben Rasterzelle: die Karte rechts, das Handy links davor, leicht
   überlappend. Die Höhe ergibt sich aus dem Höheren der beiden. */
.pb-buehne { width: 100%; max-width: 34rem; margin: 0 auto; }
.pb-bild { display: grid; }
.pb-karte, .pb-handy { grid-area: 1 / 1; }

.pb-karte {
  align-self: start;
  margin: 0;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: var(--radius-gr);
  background: var(--grund);
  box-shadow: var(--schatten-gross);
  font-size: 0.8rem;
  line-height: 1.4;
}
.pb-karte p { margin: 0; }
.pb-karte-art { color: var(--text-leise); font-size: 0.9em; font-weight: 600; }
.pb-karte-titel { margin: 0.1em 0 0.8em; font-family: var(--schrift-titel); font-size: 1.3em; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.pb-angaben { display: grid; gap: 0.35em; margin: 0 0 1em; }
.pb-angaben div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 0.5em; }
.pb-angaben dt { color: var(--text-leise); }
.pb-angaben dd { margin: 0; font-weight: 600; }
.pb-karte .pb-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.5em; margin-bottom: 0.35em; padding-top: 0.8em; border-top: 1px solid var(--linie-fein); }
.pb-zeile span { color: var(--text-leise); }
.pb-zeile strong { font-weight: 700; }
.pb-karte .pb-bereit { margin-top: 0.9em; }
.pb-bereit span { color: var(--text); font-weight: 700; }
.pb-leiste { display: block; height: 0.5em; border-radius: 999px; background: var(--tanne-hell); overflow: hidden; }
.pb-leiste-wert { display: block; height: 100%; border-radius: inherit; background: var(--tanne); }
.pb-leiste-messing { background: #EFE6D3; }
.pb-leiste-messing .pb-leiste-wert { background: var(--messing); }
.pb-w-33 { width: 33%; }
.pb-w-39 { width: 39%; }
.pb-w-71 { width: 71%; }
.pb-w-83 { width: 83%; }

/* Handy: Rahmen in dunklem Tannengrün, Inhalt skaliert über cqw mit der Breite */
.pb-handy {
  display: none;
  position: relative;
  z-index: 1;
  container-type: inline-size;
  align-self: start;
  width: 40%;
  margin-top: 2.5rem;
  aspect-ratio: 9 / 18;
  overflow: hidden;
  border: 6px solid var(--tanne-dunkel);
  border-radius: 26px;
  background: var(--grund);
  box-shadow: 0 18px 40px -16px rgba(21, 43, 32, 0.4);
}
.pb-schirm { display: flex; flex-direction: column; height: 100%; font-size: 6.4cqw; line-height: 1.35; color: var(--text); }
.pb-schirm p { margin: 0; }
.pb-app-kopf { display: flex; align-items: center; gap: 0.5em; padding: 0.7em 0.8em; background: var(--grund); }
.pb-logo { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 0.45em; background: var(--marke); color: var(--text-hell); font-family: var(--schrift-titel); font-size: 0.8em; font-weight: 800; letter-spacing: 0.02em; }
.pb-app-name { font-family: var(--schrift-titel); font-size: 0.85em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Kopf wie im öffentlichen Quiz, in der Farbe des Anbieters: Fortschritt in
   zehn Segmenten, Stand, Frage. Segmentfarben mit mindestens 3:1 auf Schieferblau. */
.pb-frage-kopf { padding: 0.8em 0.8em 0.9em; background: var(--marke); color: var(--text-hell); }
.pb-segmente { display: flex; gap: 0.18em; margin: 0 0 0.6em; padding: 0; list-style: none; }
.pb-segmente li { flex: 1; height: 0.22em; margin: 0; border-radius: 0.2em; background: rgba(255, 255, 255, 0.18); }
.pb-segmente .pb-seg-richtig { background: var(--messing-hell); }
.pb-segmente .pb-seg-falsch { background: #DCB0AA; background: color-mix(in srgb, var(--siegel) 40%, #FFFFFF); }
.pb-segmente .pb-seg-aktuell { background: #FFFFFF; }
.pb-schirm .pb-meta { display: flex; justify-content: space-between; gap: 0.5em; margin-bottom: 0.4em; color: var(--messing-hell); font-size: 0.7em; }
.pb-frage { font-family: var(--schrift-titel); font-size: 1em; font-weight: 700; line-height: 1.25; }
.pb-blatt { display: grid; gap: 0.4em; padding: 0.8em; }
.pb-antwort { display: flex; align-items: center; gap: 0.45em; padding: 0.45em 0.5em; border: 1px solid var(--linie); border-radius: 0.45em; font-size: 0.82em; }
.pb-buchstabe { display: grid; place-items: center; flex: none; width: 1.45em; height: 1.45em; border: 1px solid var(--feld-rand); border-radius: 50%; color: var(--text-leise); font-size: 0.85em; font-weight: 700; }
.pb-richtig { border-color: var(--gut); background: var(--tanne-hell); }
.pb-richtig .pb-buchstabe { border-color: var(--tanne); background: var(--tanne); color: var(--text-hell); }
.pb-marke { margin-left: auto; color: var(--tanne); font-size: 0.85em; font-weight: 700; }

/* ── Liste der Kursgruppen (Startseite, Säule 1) ─────────────────────── */
.pb-liste { max-width: 30rem; margin: 0 auto; padding: 1.1rem 1.1rem 0.6rem; border-radius: var(--radius-gr); background: var(--grund); box-shadow: var(--schatten-gross); font-size: 0.9rem; line-height: 1.35; }
.pb-liste p { margin: 0; }
.pb-liste-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--linie-fein); }
.pb-liste-titel { font-family: var(--schrift-titel); font-size: 1.15rem; font-weight: 700; }
.pb-liste-neu { padding: 0.35rem 0.8rem; border-radius: var(--radius); background: var(--tanne); color: var(--text-hell); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.pb-gruppen { margin: 0; padding: 0; list-style: none; }
.pb-gruppen li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--linie-fein); }
.pb-gruppen li:last-child { border-bottom: 0; }
.pb-gruppe-name { font-weight: 700; }
.pb-gruppe-info { grid-column: 1; color: var(--text-leise); font-size: 0.85rem; }
.pb-gruppe-belegung { grid-column: 2; grid-row: 1 / 3; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-gruppen .pb-leiste { grid-column: 1 / -1; margin-top: 0.45rem; height: 0.4rem; }

/* ── Handy mit Bildschirmen aus der Teilnehmer-App ───────────────────── */
/* Schlichter Rahmen in dunklem Tannengrün, keine Notch, keine Knöpfe. Der
   Bildschirm skaliert über cqw mit der Breite des Handys, damit er bei 200,
   260 und 320 px gleich aussieht und nichts umbricht. Nicht bedienbar. */
.ps-handy {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border: 10px solid var(--tanne-dunkel);
  border-radius: 40px;
  background: var(--grund);
  box-shadow: 0 18px 40px -16px rgba(21, 43, 32, 0.35);
  pointer-events: none;
  user-select: none;
}
.ps-handy-saeule { max-width: 270px; margin: 0 auto; }

/* Bildschirm im Auftritt des Beispiel-Anbieters "Schießschule Nordhang".
   Die Regeln sind aus public/css/lernen.css und basis.css übernommen, Maße in em
   statt rem. Farbe: die Partnerfarbe des Beispiel-Anbieters (oben). */
.ps-schirm {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 5cqw;
  line-height: 1.45;
  color: var(--text);
  background: var(--grund);
}
.ps-schirm p { margin: 0; }
.ps-schirm .portal-kopf { border-bottom: 1px solid var(--linie-fein); }
.ps-schirm .portal-kopf-innen { display: flex; align-items: center; min-height: 3.2em; padding: 0.5em 1.1em; }
.ps-schirm .portal-name { font-family: var(--schrift-titel); font-size: 1.1em; font-weight: 700; letter-spacing: -0.02em; color: var(--marke); white-space: nowrap; }
.ps-schirm .portal-inhalt { flex: 1 0 auto; padding: 1.2em 1.1em 0; }
.ps-schirm .karte { margin-bottom: 0.8em; padding: 1em; border: 0; border-radius: 0.9em; box-shadow: var(--schatten-klein); }
.ps-schirm progress { height: 0.55em; margin-bottom: 0.9em; }
.ps-schirm .portal-fuss { padding: 0.7em 1.1em; border-top: 1px solid var(--linie-fein); color: var(--text-leise); }
.ps-schirm .portal-bereitgestellt { font-size: 0.8em; }

/* Lernmodus: Frage mit Rückmeldung */
.ps-schirm .lern-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; margin-bottom: 0.4em; }
.ps-schirm .lern-zurueck { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 600; color: var(--marke); }
.ps-schirm .lern-zurueck::before {
  content: '';
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--pfeil) center / contain no-repeat;
  mask: var(--pfeil) center / contain no-repeat;
  transform: scaleX(-1);
}
.ps-schirm .lern-zaehler { font-size: 0.85em; font-weight: 600; color: var(--text-leise); white-space: nowrap; }
.ps-schirm .lern-titel { margin: 0 0 0.7em; font-size: 0.85em; font-weight: 600; color: var(--marke-dunkel); white-space: nowrap; }
.ps-schirm .lern-frage { margin-bottom: 0.5em; font-family: var(--schrift-titel); font-size: 1.15em; font-weight: 700; line-height: 1.3; }
.ps-schirm .lern-legende { margin-bottom: 0.5em; font-size: 0.8em; font-weight: 600; color: var(--text-leise); }
.ps-schirm .lern-antwort { gap: 0.5em; min-height: 2.5em; margin-bottom: 0.4em; padding: 0.45em 0.7em; border-radius: 0.55em; }
.ps-schirm .auswahl-zeichen { font-size: 0.8em; }
.ps-schirm .meldung { margin: 0.5em 0 0; padding: 0.5em 0.8em; border-radius: 0.55em; font-size: 0.9em; }

/* Ergebnis der Prüfung mit stilisierter Bescheinigung */
.ps-schirm .ps-ergebnis-titel { margin-bottom: 0.2em; font-family: var(--schrift-titel); font-size: 1.7em; font-weight: 700; line-height: 1.1; }
/* wie .sim-ergebnis.bestanden h1 in lernen.css */
.sim-ergebnis.bestanden .ps-ergebnis-titel { color: var(--gut); }
.ps-schirm .lern-ergebnis { margin-bottom: 0.9em; font-size: 0.95em; white-space: nowrap; }
.ps-schirm .lern-ergebnis strong { font-family: var(--schrift-titel); font-size: 1.4em; color: var(--marke); }
.ps-bescheinigung { display: flex; flex-direction: column; gap: 0.25em; padding: 0.9em; border: 1px solid var(--linie); border-radius: 0.4em; background: var(--papier); }
.ps-bescheinigung-marke { font-size: 0.8em; font-weight: 700; color: var(--marke); white-space: nowrap; }
.ps-bescheinigung-titel { font-family: var(--schrift-titel); font-size: 1.35em; font-weight: 700; }
.ps-bescheinigung-modul { font-size: 0.85em; font-weight: 600; }
.ps-bescheinigung-zeile { height: 0.35em; margin-top: 0.35em; border-radius: 999px; background: var(--linie); }
.ps-bescheinigung-zeile:last-child { width: 60%; }

/* Kontaktdaten des Anbieters */
.ps-kontakt strong { display: block; margin-bottom: 0.4em; font-family: var(--schrift-titel); font-size: 1.1em; white-space: nowrap; }
.ps-schirm .portal-kontakt { margin-bottom: 0.3em; font-size: 0.85em; color: var(--text-leise); }
.ps-kontakt span { display: block; font-weight: 600; color: var(--marke); }

/* Einladungsmail, aufgebaut wie der Rahmen in src/utils/mailer.js (rahmenPartner) */
.ps-mailschirm { background: var(--flaeche); }
.ps-mail-kopf { padding: 1em 1.1em 0.8em; border-bottom: 1px solid var(--linie); background: var(--grund); }
.ps-mail-kopf strong { display: block; white-space: nowrap; }
.ps-mail-kopf span { display: block; font-size: 0.85em; color: var(--text-leise); white-space: nowrap; }
.ps-mail-rahmen { margin: 0.9em 0.7em; border: 1px solid var(--linie); border-radius: 0.5em; background: var(--grund); }
.ps-mail-marke { padding: 0.7em 1em; border-bottom: 0.2em solid var(--marke); font-weight: 700; color: var(--marke); white-space: nowrap; }
.ps-mail-text { padding: 0.9em 1em 0.2em; font-size: 0.9em; }
.ps-schirm .ps-mail-text p { margin-bottom: 0.7em; }
.ps-mail-knopf { display: inline-block; margin: 0.2em 0 0.8em; padding: 0.55em 1em; border-radius: 0.35em; background: var(--marke); color: var(--text-hell); font-weight: 700; white-space: nowrap; }
.ps-mail-fuss { padding: 0.6em 1em; border-top: 1px solid var(--linie-fein); font-size: 0.75em; color: var(--text-leise); }

/* ── Größere Bildschirme ─────────────────────────────────────────────── */
@media (min-width: 30em) {
  .pb-karte { margin-left: 30%; padding-left: 13%; }
  .pb-handy { display: block; }
}

@media (min-width: 40em) {
  .vertrauen-zeile { flex-direction: row; flex-wrap: wrap; gap: 0.45rem 1.6rem; }
  .pb-karte { font-size: 0.9rem; padding: 1.3rem 1.4rem 1.4rem 13%; }
  .pb-handy { border-width: 8px; border-radius: 32px; }
}

@media (min-width: 60em) {
  .saeule { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; }
  .saeule-gespiegelt .saeule-bild { grid-column: 1; grid-row: 1; }
  .saeule-gespiegelt .saeule-text { grid-column: 2; grid-row: 1; }
  .pb-karte { font-size: 1rem; }
  .pb-buehne { max-width: 36rem; }
  .ps-handy-saeule { max-width: 300px; }
}
