/* Einstieg (freigegebene Mockups 11 „Startseite“ und 23 „Anmeldung“, Governance Portal): die Szene „Horizont“ (partials/szene-horizont.ejs, css/szene-horizont.css)
   liegt als Kopf hinter Text und Karte, darunter das Einstiegsband mit Trennlinien; die Anmeldung ist eine ruhige Karte auf der Szene.
   Nur Hell. Keine Verläufe, keine weichen Schatten, keine Pillen (Startseiten-Spec startseite-pegel). Bewegung kommt allein aus szene-horizont.css
   (nur transform und opacity, bei reduzierter Bewegung Standbild); der Schalter „Bewegung: dezent | still“ (js/einstieg.js) hält die Szene an. */

/* ---------- Schalter Bewegung dezent/still ---------- */
.sk-still { position: absolute; right: 20px; top: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #101334; border-radius: 6px; background: #eef1fd; color: #101334; font: 600 14px/1.2 var(--sans); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sk-still::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; background: currentColor; flex: none; }
.sk-still[aria-pressed="true"]::before { background: transparent; }
.sk-still:focus-visible { outline: 3px solid #0b1bb8; outline-offset: 2px; }
.sk-still:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sk-still:hover { background: #fff; } }
[data-bewegung="still"] .hz-bild, [data-bewegung="still"] .hz-bild * { animation: none !important; }

/* ---------- Startseite: Szene als Kopfhintergrund über die volle Breite ---------- */
.sk-held { position: relative; background: #9aa7f6; color: #101334; overflow: hidden; }
.sk-held .sk-scene { position: absolute; inset: 0; z-index: 0; }
.sk-held .sk-scene .hz, .sk-held .sk-scene .hz-bild { height: 100%; }
.sk-held .sk-scene .hz-bild { border-radius: 0; }
.sk-held .sk-scene .hz-satz { left: auto; right: 24px; top: 72px; }
/* Satz auf der Szene mit eigenem Grund in Dunst: lesbar auf jedem Himmelston und für die Grundprüfung gegen einen einfarbigen Grund messbar
   (auf der Anmeldung liegt die Szene auf dem dunklen Meer des Kopfes, der Satz selbst aber auf dem Himmel) */
.sk-scene .hz-satz { padding: 0 10px; border-radius: 6px; background: #c6cefb; }
.sk-held .bw-held-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: end; min-height: 480px; }
.sk-held .sp-hero-text { align-self: start; min-width: 0; }
.sk-held h1 { max-width: 14em; font-size: clamp(2.5rem, 3.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.04; }
.sk-held .sp-q { color: #0b1bb8; }
.sk-held .sp-eyebrow { margin-bottom: 16px; color: #1a2060; }
.sk-held .sp-lead { margin-top: 16px; color: #101334; }
.sk-held .sp-actions { margin-top: 24px; }
.sk-held .sp-zusage { display: inline-block; margin-top: 16px; padding: 8px 12px; border-radius: 6px; background: var(--tide); color: #101334; font-size: 1rem; }   /* eigener heller Grund wie Schalter und Legende: Ink auf Tide rund 16:1 auf Himmel, Dunst und Meer */
.sk-held .sp-link { color: #101334; }
.sk-held :focus-visible { outline-color: #0b1bb8; }
/* Kartenrand zweifarbig (dunkel innen, hell außen): hält 3:1 sowohl auf dem hellen Himmel als auch auf dem dunklen Meer */
.sk-held .bw-karte { margin: 0; justify-self: end; width: 100%; max-width: 440px; min-width: 0; padding: 20px 22px 16px; background: var(--surface); color: var(--ink); border: 1px solid #101334; outline: 2px solid #ffffff; outline-offset: 0; border-radius: 12px; }
.sk-karte-kopf { display: grid; gap: 4px; }
.sk-karte-kopf .st { font-size: 0.875rem; }
.sk-karte-satz { margin: 0; max-width: none; font-size: 1.375rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.sk-karte-sub { margin: 0; max-width: none; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.sk-karte-balken { margin: 16px 0 0; height: 28px; }
.sk-karte-balken::before { display: none; }
.sk-held .bw-karte-hinweis { margin-top: 12px; }
.sk-held .bw-legende-zeile { margin-top: 40px; }
/* Legende-Aufklapper als Fläche wie der Schalter „Bewegung“: eigener heller Grund, damit der Text auf Himmel, Dunst und dunklem Meer
   dieselben 4,5:1 hält (die Grundprüfung rechnet gegen den nächsten einfarbigen Grund, das Auge sieht die Szene; beide passen) */
.sk-held .bw-legende-klapp > summary { padding: 0 14px; border: 1px solid #101334; border-radius: 6px; background: #eef1fd; color: #101334; text-decoration: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sk-held .bw-legende-klapp > summary:focus-visible { outline: 3px solid #0b1bb8; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .sk-held .bw-legende-klapp > summary:hover { background: #fff; } }

/* Einstiegsband mit Trennlinien (Mockup 11: drei Spalten, mittlere getönt) */
.sp-band { padding-top: 64px; padding-bottom: 64px; background: var(--surface); }
.sk-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.sk-band > article { min-width: 0; padding: 24px 24px 20px; }
.sk-band > article + article { border-left: 1px solid var(--rule); }
.sk-band > .sk-band-nt { background: var(--tide); }
.sk-band h3 { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
.sk-band p, .sk-band li { max-width: 62ch; font-size: 1rem; line-height: 1.6; } /* Zeilenmaß auch einspaltig (Tablet) unter 85 Zeichen */
.sk-band p { margin: 0; }
.sk-band ul, .sk-band ol { margin: 0; padding-left: 20px; }
.sk-band li + li { margin-top: 6px; }
.sk-band .sp-more { margin-top: 16px; }
.sk-band .sp-num { font-size: 1.0625rem; }

@media (max-width: 999px) {
  .sk-held { display: flex; flex-direction: column; }
  .sk-held .bw-held-grid { display: contents; }
  .sk-held .sp-hero-text { order: 1; }
  .sk-held .sk-scene { order: 2; position: relative; inset: auto; margin: 32px calc(50% - 50vw) 0; }
  .sk-held .sk-scene .hz, .sk-held .sk-scene .hz-bild { height: var(--hz-h); }
  .sk-held .sk-scene .hz { height: auto; }
  .sk-held .sk-scene .hz-satz { left: 20px; right: auto; top: 14px; }
  .sk-held .bw-karte { order: 3; position: relative; z-index: 1; align-self: center; width: calc(100% - 24px); max-width: 520px; margin: 20px 0 0; } /* über der (positionierten) Szene, sonst verdeckt deren Vordergrundwelle das Statuswort der Karte */
  .sk-held .bw-legende-zeile { order: 4; margin-top: 32px; }
  .sk-band { grid-template-columns: minmax(0, 1fr); }
  .sk-band > article + article { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .sk-still { right: 16px; top: 12px; padding: 0 12px; }
  .sk-held .sp-eyebrow { max-width: calc(100% - 150px); }
  .sk-held .sk-scene { margin-top: 24px; }
  .sk-held .bw-karte { width: 100%; margin-top: 16px; padding: 18px 18px 14px; }
  .sp-band { padding-top: 48px; padding-bottom: 64px; }
  .sk-band > article { padding: 20px 20px 16px; }
}
/* Handy: Szene 200 px statt 270 px (Betreiberentscheidung 10.11.); Figur und Blickziel folgen dem senkrechten Beschnitt (slice, mittig) */
@media (max-width: 499px) {
  .sk-held .sk-scene .hz-bild, .an-sk-kopf .sk-scene .hz-bild { height: 200px; }
  .an-sk-kopf .sk-scene .hz > * { --hz-fuss: calc(23.6cqw + 96px); --hz-zy: calc(-7.9cqw + 100px); }
}

/* ---------- Anmeldung: eine ruhige Karte auf der Szene ---------- */
.an.an-sk { display: block; max-width: 1120px; margin: 0 auto; padding-top: 24px; }
.an-sk-kopf { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: #1b2491; border-radius: 12px; overflow: hidden; }
.an-sk-kopf > * { grid-area: 1 / 1; }
.an-sk-kopf .sk-scene { align-self: start; z-index: 0; min-width: 0; }
.an-sk-kopf .sk-scene .hz-bild { border-radius: 0; }
.an-sk-kopf .sk-scene .hz .begl-gruss { margin: 16px 24px 24px; max-width: 60ch; color: #e3e6fb; }
.an-sk-kopf .sk-scene .hz .begl-wer { color: #fff; }
.an-sk-kopf .sk-scene .hz .begl-link { color: #fff; }
.an-karte { position: relative; z-index: 2; align-self: start; justify-self: end; width: min(480px, 46%); margin: 72px 40px 48px 0; padding: 24px 26px 20px; display: grid; gap: 14px; min-width: 0; background: var(--surface); color: var(--ink); border: 1px solid #101334; outline: 2px solid #ffffff; outline-offset: 0; border-radius: 12px; }
.an-karte > * { min-width: 0; }
.an-karte .an-portal { margin: 0; }
.an-karte h1 { margin: 0; font-size: 2.125rem; line-height: 1.1; letter-spacing: -0.025em; }
.an-karte .an-nutzen { margin: 0; max-width: none; font-size: 1.0625rem; line-height: 1.5; }
.an-karte .an-haupt { margin: 4px 0 0; max-width: none; }
.an-karte .an-konto { margin-top: 10px; }
.an-karte .an-kurz { margin-top: 0; }
.an-karte .an-pruefen { margin: 0; padding-top: 16px; max-width: none; border-top: 1px solid var(--rule); }
.an-karte .an-hinweis { margin: 4px 0 12px; }
.an-karte .an-hilfe { margin: 0; }
.an-karte .an-aus { margin: 0; max-width: none; }
.an-feldfehler { margin: 8px 0 0; display: flex; align-items: flex-start; gap: 6px; color: var(--crit); font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.an-feldfehler[hidden] { display: none; }
.an-feldfehler::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border: 2px solid currentColor; border-radius: 50%; font: 700 12px/14px var(--sans); text-align: center; }
.an-feld[aria-invalid="true"] { border: 2px solid var(--crit); }
.an-demo-hinweis { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.an-demo-hinweis a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }
.an-sk-unten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; margin-top: 48px; }
.an-sk-unten > * { grid-area: auto; }
.an-sk .an-erst, .an-sk .an-weg { margin-top: 0; max-width: none; }
.an-sk .an-zusagen { margin-top: 48px; max-width: none; }
.an-sk .an-zusagen dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.an-sk .an-zusagen dl > div:nth-child(-n+3) { border-top: 0; }
.an-sk .demo-access { margin-top: 48px; }
/* Q45: Anleitung „Microsoft anbinden“ unter den Schritten; Inhalt aus der gemeinsamen Anleitung (anleitung.css), nur Rahmen und Abstände hier. */
/* Die lange Anleitung liegt in einem zugeklappten details; die Überschrift ist die Bedienfläche (mindestens 44 px, sichtbarer Fokus). */
.an-sk .an-lang { margin-top: 48px; scroll-margin-top: 16px; min-width: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.an-sk .an-lang > summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 40px 12px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); touch-action: manipulation; }
.an-sk .an-lang > summary::-webkit-details-marker { display: none; }
.an-sk .an-lang > summary::after { content: '+'; content: '+' / ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--link); }
.an-sk .an-lang[open] > summary::after { content: '–'; content: '–' / ''; }
.an-sk .an-lang > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.an-sk .an-lang[open] > .an-anbindung { margin-top: 16px; padding-bottom: 24px; }
.an-sk .an-anbindung { margin-top: 48px; min-width: 0; scroll-margin-top: 16px; }
.an-sk .an-anbindung:focus:not(:focus-visible) { outline: none; }
.an-sk .an-anbindung:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.an-sk .an-anbindung > h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.an-sk .an-anbindung .anl { max-width: none; }
.an-sk .an-anbindung .anl-h { margin-top: 28px; }
.an-sk .an-anbindung .table-wrap { max-width: 100%; overflow-x: auto; }
.an-sk .an-anbindung .anl-clip .vp { max-width: 100%; }

/* breit: Karte links der Mitte (Mockup 23), Figur links darunter sichtbar, Schiff rechts frei */
@media (min-width: 1100px) {
  .an-karte { justify-self: start; width: 40%; margin: 72px 0 48px 24%; }
  .an-sk-kopf .sk-scene .hz .begl-gruss { margin-left: 66%; max-width: none; }
}
@media (max-width: 999px) {
  .an-sk-kopf { display: block; }
  .an-sk-kopf .sk-scene .hz .begl-gruss { margin: 16px 20px 0; }
  .an-karte { width: auto; max-width: 560px; margin: 20px auto 32px; }
  .an-sk-unten { grid-template-columns: minmax(0, 1fr); }
  .an-sk .an-zusagen dl { grid-template-columns: minmax(0, 1fr); }
  .an-sk .an-zusagen dl > div:nth-child(-n+3) { border-top: 1px solid var(--hairline); }
  .an-sk .an-zusagen dl > div:first-child { border-top: 0; }
}
@media (max-width: 599px) {
  .an.an-sk { padding-top: 0; }
  .an-sk-kopf { margin: 0 -20px; border-radius: 0; }
  .an-karte { margin: 16px 12px 24px; padding: 20px 18px 16px; }
  .an-karte h1 { font-size: 1.875rem; }
  .an-sk-unten { margin-top: 32px; }
  .an-sk .an-zusagen, .an-sk .demo-access, .an-sk .an-anbindung, .an-sk .an-lang { margin-top: 32px; }
}
