/* „Schulungsvideos“ – gleiche Formensprache wie E-Mail und Kalender.
   Bleibt wie diese auch im Dunkelmodus hell (siehe css/app.css). */
.sv-shell { --sv-linie: #e4eaf2; --sv-text: #243650; --sv-leise: #6b7d93; --sv-blau: #2563eb; --sv-flaeche: #fafbfd; box-sizing: border-box; width: min(1440px, calc(100vw - 40px)); max-width: none; height: min(940px, calc(100dvh - 40px)); max-height: none; margin: auto; padding: 0; border: 1px solid var(--sv-linie); border-radius: 22px; background: #fff; color: var(--sv-text); color-scheme: light; font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.6; box-shadow: 0 30px 100px #12274b30; overflow: hidden; }
.sv-shell[open] { display: flex; flex-direction: column; }
.sv-shell::backdrop { background: #14264080; backdrop-filter: blur(5px); }
.sv-shell * { box-sizing: border-box; }
.sv-shell [hidden] { display: none !important; }
.sv-shell :is(button, input) { font: inherit; }
.sv-shell button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid #dce5f1; border-radius: 9px; background: #fff; color: #31577f; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.sv-shell button:hover { background: #f0f5ff; }
.sv-shell :is(button, input, a):focus-visible { outline: 3px solid #80b2ff; outline-offset: 2px; }
.sv-shell .sv-primaer { background: var(--sv-blau); border-color: var(--sv-blau); color: #fff; }
.sv-shell .sv-primaer:hover { background: #1d50c3; border-color: #1d50c3; }
.sv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[dir="rtl"] .sv-shell :is(.fa-arrow-left, .fa-arrow-right) { transform: scaleX(-1); }

/* Kopf, Leiste, Fuß */
.sv-kopf { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 30px; border-bottom: 1px solid var(--sv-linie); }
.sv-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #71849e; }
.sv-kopf h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.6px; color: inherit; }
.sv-stand { margin: 4px 0 0; font-size: 13px; color: var(--sv-leise); }
.sv-stand:empty { display: none; }
.sv-shell .sv-schliessen { flex-shrink: 0; font-size: 24px; line-height: 1; padding: 6px 14px; }

.sv-leiste { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 14px 30px; border-bottom: 1px solid var(--sv-linie); background: var(--sv-flaeche); }
.sv-themen { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sv-shell .sv-thema-knopf { min-height: 38px; padding: 7px 8px 7px 15px; border-radius: 999px; font-size: 13px; }
.sv-shell .sv-thema-knopf[aria-pressed="true"] { background: #eaf1ff; border-color: #bfd3fb; color: var(--sv-blau); }
.sv-zahl { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: #e9edf4; color: #5b6b81; font-size: 11px; line-height: 1.6; text-align: center; }
.sv-thema-knopf[aria-pressed="true"] .sv-zahl { background: #d6e4ff; color: #1d4ed8; }
.sv-suche { position: relative; flex: 0 1 300px; min-width: 200px; margin-inline-start: auto; }
.sv-suche i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: #8494a9; font-size: 13px; pointer-events: none; }
.sv-suche input { width: 100%; min-height: 40px; padding: 9px 14px; padding-inline-start: 38px; border: 1px solid #dce4ef; border-radius: 999px; background: #fff; color: var(--sv-text); font-size: 13px; }

.sv-main { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px 30px 30px; }

.sv-fuss { flex-shrink: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; padding: 12px 30px; border-top: 1px solid var(--sv-linie); background: var(--sv-flaeche); color: var(--sv-leise); font-size: 12px; line-height: 1.6; }
.sv-fuss-text { flex: 1 1 320px; display: flex; align-items: baseline; gap: 8px; }
.sv-fuss-text i { color: #3f8a5a; }
.sv-schalter { display: inline-flex; align-items: center; gap: 8px; color: #31577f; font-weight: 600; cursor: pointer; }
.sv-schalter input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--sv-blau); cursor: pointer; }
.sv-fuss a { color: inherit; font-weight: 600; }

/* Kacheln: ohne Freigabe eine Themenfläche, mit Freigabe das Vorschaubild */
.sv-bild { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; --sv-a: #1d4ed8; --sv-b: #3b82f6; background: radial-gradient(120% 140% at 88% 8%, #ffffff30, transparent 55%), linear-gradient(135deg, var(--sv-a), var(--sv-b)); }
.sv-shell [data-thema="alltag"] { --sv-a: #0f766e; --sv-b: #14b8a6; }
.sv-shell [data-thema="planung"] { --sv-a: #4338ca; --sv-b: #6366f1; }
.sv-shell [data-thema="ausbildung"] { --sv-a: #b45309; --sv-b: #f59e0b; }
.sv-shell [data-thema="wissen"] { --sv-a: #0369a1; --sv-b: #0ea5e9; }
.sv-shell [data-thema="werkzeuge"] { --sv-a: #334155; --sv-b: #64748b; }
.sv-shell [data-thema="betrieb"] { --sv-a: #047857; --sv-b: #10b981; }
.sv-bild-symbol { position: absolute; inset-inline-end: 7%; bottom: -10%; font-size: 96px; color: #ffffff2e; transform: rotate(-8deg); }
.sv-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-bild-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #ffffffeb; color: var(--sv-blau); font-size: 17px; box-shadow: 0 8px 24px #0f172a40; transition: transform .15s; }
.sv-bild-play i { margin-inline-start: 3px; }
.sv-gesehen { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #ecf8f0; color: #1f6b3a; font-size: 11px; font-weight: 700; }
.sv-dauer { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 2px 7px; border-radius: 6px; background: #0f172ad9; color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

.sv-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.sv-shell .sv-karte { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; width: 100%; min-height: 0; padding: 0; border: 1px solid var(--sv-linie); border-radius: 16px; background: #fff; color: inherit; text-align: start; font-weight: 400; overflow: hidden; }
.sv-shell .sv-karte:hover { background: #fff; border-color: #c9d8f0; box-shadow: 0 14px 30px #12274b17; transform: translateY(-2px); }
.sv-shell .sv-karte:focus-visible { outline-offset: 3px; }
.sv-karte:hover .sv-bild-play { transform: scale(1.08); }
.sv-karte-text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.sv-karte-thema, .sv-info-thema { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #71849e; }
.sv-karte-text strong { font-size: 15px; font-weight: 650; line-height: 1.4; color: #1f3552; overflow-wrap: anywhere; }
.sv-karte-beschreibung { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.6; color: var(--sv-leise); }

.sv-leer { max-width: 620px; margin: 8vh auto; text-align: center; }
.sv-leer-symbol { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 23px; background: #edf4ff; color: #5684d6; font-size: 30px; }
.sv-leer h2 { margin: 24px 0 10px; font-size: 23px; letter-spacing: -.5px; color: #314760; }
.sv-leer p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: var(--sv-leise); }
.sv-leer .sv-primaer { margin-top: 14px; }
.sv-keine { padding: 60px 20px; text-align: center; color: var(--sv-leise); }
.sv-keine p { margin: 0 0 16px; font-size: 14px; }

/* Ein Video */
.sv-ansicht-zurueck { margin-bottom: 16px; }
.sv-ansicht-raster { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
/* So hoch, dass Kopf, Zurück und Fuß daneben noch ins Fenster passen. */
.sv-player { position: relative; width: min(100%, max(480px, calc((100dvh - 340px) * 16 / 9))); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0f172a; --sv-a: #1d4ed8; --sv-b: #3b82f6; }
.sv-seite { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sv-schranke { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(180deg, #0f172a4d, #0f172acc), linear-gradient(135deg, var(--sv-a), var(--sv-b)); }
.sv-schranke > :not(.sv-bild-symbol) { position: relative; }
.sv-schranke .sv-bild-symbol { font-size: 180px; color: #ffffff1f; }
.sv-shell .sv-abspielen { flex-direction: column; gap: 10px; min-height: 0; padding: 4px 10px; border: 0; background: transparent; color: #fff; font-size: 15px; font-weight: 700; }
.sv-shell .sv-abspielen:hover { background: transparent; }
.sv-abspielen-kreis { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--sv-blau); font-size: 24px; box-shadow: 0 10px 30px #0f172a59; transition: transform .15s; }
.sv-abspielen-kreis i { margin-inline-start: 4px; }
.sv-abspielen:hover .sv-abspielen-kreis { transform: scale(1.06); }
.sv-schranke p { max-width: 540px; margin: 0; font-size: 13px; line-height: 1.7; color: #ffffffe6; }
.sv-schranke a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sv-merken { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #fff; cursor: pointer; }
.sv-merken input { width: 17px; height: 17px; margin: 0; accent-color: #fff; cursor: pointer; }

.sv-info { min-width: 0; }
.sv-info h2 { margin: 6px 0 8px; font-size: 22px; line-height: 1.35; letter-spacing: -.4px; color: #1f3552; overflow-wrap: anywhere; }
.sv-info p { margin: 0; font-size: 14px; line-height: 1.8; color: #4a5d76; white-space: pre-line; overflow-wrap: anywhere; }
.sv-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sv-youtube { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid #dce5f1; border-radius: 9px; background: #fff; color: #31577f; font-size: 13px; font-weight: 600; text-decoration: none; }
.sv-youtube:hover { background: #f0f5ff; }
.sv-youtube i { color: #e0002a; font-size: 15px; }

.sv-weitere { padding-top: 20px; border-top: 1px solid var(--sv-linie); }
.sv-weitere h3 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #71849e; }
.sv-shell .sv-mini { display: flex; align-items: flex-start; justify-content: flex-start; gap: 12px; width: 100%; min-height: 0; margin-bottom: 4px; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: start; font-weight: 400; }
.sv-shell .sv-mini:hover { background: #f4f8ff; }
.sv-mini .sv-bild { flex: 0 0 132px; border-radius: 10px; }
.sv-mini .sv-bild-symbol { font-size: 46px; }
.sv-mini .sv-bild-play { width: 30px; height: 30px; font-size: 10px; }
.sv-mini-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sv-mini-text strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.45; color: #1f3552; }
.sv-mini-text small { font-size: 11.5px; color: var(--sv-leise); }

@media (max-width: 1100px) {
    .sv-ansicht-raster { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .sv-seite { max-width: 880px; }
}
@media (max-width: 760px) {
    .sv-shell { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .sv-kopf { padding: 16px 18px; }
    .sv-kopf h1 { font-size: 22px; }
    .sv-leiste { padding: 12px 16px; }
    .sv-themen { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .sv-themen::-webkit-scrollbar { display: none; }
    .sv-shell .sv-thema-knopf { flex-shrink: 0; }
    .sv-suche { flex-basis: 100%; margin-inline-start: 0; }
    .sv-main { padding: 16px 16px 24px; }
    .sv-raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    /* Unten nur Schalter und Datenschutz in einer Zeile; erklärt wird an der Schranke. */
    .sv-fuss { flex-wrap: nowrap; justify-content: space-between; padding: 10px 16px; }
    .sv-fuss-text { display: none; }
    .sv-schalter { font-size: 12px; line-height: 1.4; }
    .sv-info h2 { font-size: 20px; }
    /* Auf dem Handy reicht die 16:9-Fläche nicht für Knopf und Hinweis. */
    .sv-player.is-schranke { aspect-ratio: auto; }
    .sv-player.is-schranke .sv-schranke { position: relative; inset: auto; min-height: 56vw; padding: 22px 16px; }
    .sv-schranke p { font-size: 12px; }
    .sv-abspielen-kreis { width: 60px; height: 60px; font-size: 20px; }
}
