/* =========================================================================
   Gruppe B (03.10.2026): /setter/, /closer/, /vertriebsleitung/, /verlauf/,
   /sicherheit/. Laedt nach unterseite-hell.css und ergaenzt nur, was es dort
   nicht gibt. Erzeugt von werkzeuge/rollen-bauen.py, verlauf-bauen.py,
   sicherheit-bauen.py.
     1. Lila Kopf mit Foto statt Produktfenster (Rollenbild)
     2. Gebaute Karten: Zusatzteile (Felder, Haken, Trichter, Objekt)
     3. Rechte: zwei Karten, Kreuz-Liste, Rollen-Tabelle
     4. Die anderen Rollen (Bildkarten) und Linkzeile
     5. Verlauf: Zahlen, Regler, Paare, App
     6. Sicherheit: Karten-Raster, Vertraege
     7. Handy
   ========================================================================= */

/* ---------- 1. Lila Kopf mit Foto -------------------------------------- */
/* Das Rollenbild ist ein Foto: als ganzes Bild mit Rundung, nicht als
   auslaufendes Produktfenster. */
.ro-seite .u-hero--bild .u-buehne { padding-bottom: 64px; }
.ro-seite .u-hero--bild .u-hero-text { padding-bottom: 16px; }
.ro-seite .u-hero--bild .u-raster { align-items: center; }
.ro-seite .u-medien { min-height: 0; padding: 24px 80px 24px 0; }
.ro-seite .u-fenster {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 1600 / 1067;
  border-radius: 20px;
  -webkit-mask-image: none;
  mask-image: none;
  box-shadow: 0 40px 80px -40px rgba(8, 4, 20, .8);
}
.ro-seite .u-fenster img { border-radius: 20px; object-position: center; border-color: rgba(255, 255, 255, .18); }
.ro-seite .u-medien .uk { left: -56px; bottom: -8px; width: 340px; }

/* ---------- 2. Gebaute Karten: Zusatzteile ------------------------------ */
.ro-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ro-wert { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ro-wert.ro-warm { color: var(--f-deal); }
.ro-reihen .uk-reihe { padding: 8px 0; }
.ro-klein { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.ro-rechts { margin-left: auto; }
.uk-knopf.ro-gesperrt { background: var(--nebel); color: var(--ink-3); border: 1px solid var(--line-mid); }
.uk-knoepfe .uk-knopf.ro-gesperrt { flex: 1; }
.ro-objekt { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line-mid); border-radius: 12px; background: var(--paper-2); }
.ro-objekt .uk-name strong { font-size: 15px; }
.ro-objekt-bild { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; background: var(--f-objekte-bg); color: var(--f-objekte); }
.ro-objekt-bild svg { width: 20px; height: 20px; }
.ro-objekt-name strong { white-space: normal; }
.ro-uk-schmal.uk-a { width: 340px; }
.ro-uk-schmal.uk-a.eb-eins { left: auto; right: 48px; bottom: 40px; }
.ro-checks { display: grid; gap: 2px; padding: 4px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--field-line); }
.ro-check { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; }
.ro-check:has(.ist-an) { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.ro-check .uk-haken.ist-an { background: var(--accent); border-color: var(--accent); }
.ro-trichter { display: grid; gap: 10px; }
.ro-stufe { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.ro-stufe span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.ro-stufe span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--s); }
.ro-stufe i { display: block; height: 14px; border-radius: 5px; background: var(--nebel); overflow: hidden; }
.ro-stufe i b { display: block; width: var(--p); height: 100%; border-radius: 5px; background: var(--s); }
.ro-stufe strong { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.uk .uk-kachel small { margin-top: 0; }
.uk .uk-kachel b { margin-top: 6px; font-size: 28px; }

/* ---------- 3. Rechte ---------------------------------------------------- */
.ro-rechte { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.ro-rechte--tabelle { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.ro-karte { padding: 28px 28px 12px; border: 1px solid var(--line-mid); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card); }
.ro-karte h3 { margin-bottom: 14px; font-size: 21px; letter-spacing: -.02em; }
.ro-karte .u-fakten { border-top: 0; }
.ro-karte .u-fakten li:last-child { border-bottom: 0; }
.ro-karte--nicht { background: var(--paper-2); box-shadow: none; }
.u-haken.ro-kreuz { background: var(--nebel); color: var(--ink-4); }
.u-haken.ro-kreuz svg { width: 12px; height: 12px; }
.ro-karte--nicht .u-fakten li { color: var(--ink-3); }

/* Rollen-Tabelle: zwei Spalten, Text links, ohne feste Zeilenhoehe. */
.ro-tabelle th, .ro-tabelle td { height: auto; padding-top: 18px; padding-bottom: 18px; line-height: 1.5; }
.ro-tabelle thead th { height: 56px; padding-top: 0; padding-bottom: 0; text-align: left; font-size: 13px; font-family: Manrope, sans-serif; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.ro-tabelle thead th:first-child { width: 30%; }
.ro-tabelle td { text-align: left; color: var(--ink-2); }
.ro-rolle-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.ro-rolle-name::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--f); }

/* ---------- 4. Die anderen Rollen --------------------------------------- */
.ro-rollen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ro-rolle { display: flex; flex-direction: column; height: 100%; padding: 8px; border: 1px solid var(--line-mid); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card); transition: border-color var(--t-1) var(--ease); }
.ro-rolle:hover { border-color: var(--line-stark); }
.ro-rolle-bild { display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; }
.ro-rolle-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ro-rolle-text { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 16px; }
.ro-rolle-text strong { font-family: Outfit, sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.ro-rolle-text > span:not(.pfeil-link) { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ro-rolle-text .pfeil-link { margin-top: 6px; }
.ro-rolle:hover .pfeil-link svg { transform: translateX(3px); }
.ro-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; }

/* ---------- 5. Verlauf --------------------------------------------------- */
.vl-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 32px; max-width: 560px; }
.vl-zahlen div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.vl-zahlen strong { font-family: Outfit, sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.vl-zahlen span { font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .66); }

.vl-paare { display: grid; gap: 16px; }
.vl-paar { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line-mid); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.vl-buehne { position: relative; padding: 40px; background: color-mix(in srgb, var(--f) 9%, var(--paper)); }
.vl-regler { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--rahmen); background: var(--paper); box-shadow: 0 30px 60px -36px rgba(23, 16, 43, .5); --pos: 50%; }
.vl-regler img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.vl-regler-alt { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vl-griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 16, 43, .18); pointer-events: none; }
.vl-griff::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C2BF2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 4px 14px rgba(23, 16, 43, .25); }
.vl-regler input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.vl-regler input:focus-visible ~ .vl-griff::after, .vl-regler:has(input:focus-visible) .vl-griff::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.vl-etikett { position: absolute; top: 12px; z-index: 1; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: rgba(23, 16, 43, .78); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.vl-etikett-alt { left: 12px; }
.vl-etikett-neu { right: 12px; background: var(--accent); }
.vl-text { display: flex; flex-direction: column; gap: 18px; padding: 40px 40px 36px; }
.vl-text h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; }
.vl-text .pille { align-self: flex-start; }
.vl-stand { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.vl-stand time { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.vl-stand p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.vl-stand--neu time { color: var(--f); }
.vl-hinweis { max-width: 72ch; margin-top: 28px; font-size: 14.5px; line-height: 1.65; color: var(--ink-3); }
.vl-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.vl-app-bilder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 40px 40px 0; border-radius: 28px; background: color-mix(in srgb, var(--f) 9%, var(--paper)); overflow: hidden; }
.vl-app-bilder figure { margin: 0; }
.vl-app-bilder img { display: block; width: 100%; height: auto; border-radius: 22px 22px 0 0; border: 1px solid var(--rahmen); border-bottom: 0; box-shadow: 0 30px 60px -36px rgba(23, 16, 43, .5); }

/* Kopfkarte mit den Zahlen: Zeilen enger. */
.vl-seite .u-medien .uk-reihe { padding: 9px 0; }

/* ---------- 6. Sicherheit ------------------------------------------------ */
.si-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.si-vertraege { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.si-vertraege .ro-karte p { margin-bottom: 12px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.si-vertraege .ro-karte p a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.si-quelle { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.si-quelle a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.si-zusatz { margin-top: 16px; }

/* ---------- 7. Handy und schmale Fenster -------------------------------- */
@media (max-width: 1100px) {
  .ro-seite .u-medien { padding-right: 56px; }
  .ro-seite .u-medien .uk { width: 300px; left: -40px; }
  .vl-paar { grid-template-columns: 1fr; }
  .vl-app { grid-template-columns: 1fr; gap: 32px; }
  .si-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ro-seite .u-hero--bild .u-hero-text { padding-bottom: 8px; }
  .ro-seite .u-medien { padding: 16px 40px 72px 0; }
  .ro-seite .u-medien .uk { left: 16px; bottom: 0; }
  .ro-rechte, .ro-rechte--tabelle, .si-vertraege { grid-template-columns: 1fr; }
  .vl-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ro-seite .u-hero--bild .u-buehne { padding-bottom: 28px; }
  .ro-seite .u-medien { padding: 8px 20px 0 0; min-height: 0; }
  .ro-seite .u-fenster { right: auto; width: 100%; border-radius: 14px; }
  .ro-seite .u-fenster img { border-radius: 14px; }
  .ro-seite .u-medien .uk { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 12px 0; }
  .ro-karte { padding: 22px 20px 6px; }
  .ro-rollen { grid-template-columns: 1fr; gap: 12px; }
  .ro-rolle-text strong { font-size: 20px; }
  .ro-links { flex-direction: column; gap: 14px; }
  .ro-stufe { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px; font-size: 12.5px; }
  .ro-tabelle thead { display: none; }
  .ro-tabelle tr { display: grid; }
  .ro-tabelle th[scope="row"], .ro-tabelle td { height: auto; padding: 0 18px; text-align: left; white-space: normal; border-top: 0; }
  .ro-tabelle th[scope="row"] { padding-top: 16px; border-top: 1px solid var(--line); }
  .ro-tabelle tbody tr:first-child th { border-top: 0; }
  .ro-tabelle td { padding-bottom: 16px; padding-top: 4px; font-size: 14.5px; }
  .vl-buehne { padding: 16px; }
  .vl-text { padding: 24px 20px 24px; gap: 14px; }
  .vl-zahlen { gap: 6px; }
  .vl-app-bilder { gap: 8px; padding: 20px 16px 0; border-radius: 20px; }
  .vl-app-bilder img { border-radius: 14px 14px 0 0; }
  .si-raster { grid-template-columns: 1fr; gap: 12px; }
}
