/* Page "Ausweis aufs Handy holen": the page of the integration guide, a
   heading per pass with the area of the widget below it. Only the page's own
   elements are styled, nothing inside the widget. The sign-in page keeps the
   look of the HELIXPASS self-service (white card on a
   light grey gradient). */
:root {
  color-scheme: light;
  --text: #0f172a;
  --leise: #475569;
  --leiser: #64748b;
  --schwarz: #131313;
  --schwarz-2: #3e3e3d;
  --grau: #f3f3f3;
  --rand: #e2e8f0;
  --feldrand: #d1d5db;
  --fokus: #3d4b5a;
  --fehler-bg: #fef2f2;
  --fehler-rand: #fecaca;
  --fehler: #991b1b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #e9e8e8 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }

.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Card */
.karte {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}
.anmeldung { display: flex; flex-direction: column; align-items: center; justify-content: center; }
h1 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
.unter { margin: 8px 0 0; text-align: center; color: var(--leise); font-size: 16px; }

/* Button of the sign-in */
.knopf-haupt {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--schwarz) 0%, var(--schwarz-2) 100%);
}
.knopf-haupt:hover { background: linear-gradient(135deg, #504f4f 0%, #39393b 100%); }

/* Sign-in */
.login h1 { margin-top: 0; }
.login form { margin-top: 28px; }
.feld { margin: 0 0 20px; }
label { display: block; margin: 0 0 8px; font-weight: 500; }
input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--feldrand);
  border-radius: 12px;
  font-size: 16px;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
input:focus { outline: none; border-color: var(--fokus); box-shadow: 0 0 0 4px rgba(100, 116, 139, .15); }
.meldung {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--fehler-bg);
  border: 1px solid var(--fehler-rand);
  color: var(--fehler);
  font-size: 14px;
}

/* User menu (top right, as in the self-service). Opens on focus too, so it
   works before the page script runs. */
.nutzer { position: absolute; top: 12px; right: 16px; z-index: 10; }
.nutzer-knopf {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--leiser);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  cursor: pointer;
}
.nutzer-menue {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 200px;
  padding: 6px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
  visibility: hidden;
  opacity: 0;
}
.nutzer:not(.mit-skript):focus-within .nutzer-menue, .nutzer.offen .nutzer-menue { visibility: visible; opacity: 1; }
.nutzer-name { margin: 0; padding: 8px 10px; font-size: 14px; color: var(--leise); border-bottom: 1px solid var(--rand); }
.nutzer form { margin: 0; }
.nutzer-eintrag {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
}
.nutzer-eintrag:hover { background: var(--grau); }


/* The page after the sign-in */
body.seite { display: block; padding: 0; background: #ffffff; }
.blatt { position: relative; max-width: 560px; margin: 0 auto; padding: 64px 20px 48px; }
.blatt h1 { margin: 0 0 32px; text-align: left; font-size: 24px; }
.blatt h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.ausweis + .ausweis { margin-top: 40px; }
.klein { margin: 24px 0 0; font-size: 13px; line-height: 1.5; color: var(--leiser); }
.meldung-karte {
  margin: 0 0 12px;
  padding: 12px 16px;
  width: 100%;
  border-radius: 8px;
  background: #fff7e6;
  border: 1px solid #f2c46d;
  text-align: center;
}

@media (max-width: 480px) {
  /* The user button scrolls with the page, next to the heading. */
  .nutzer { right: 12px; }
  .nutzer-knopf { width: 38px; height: 38px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
  .blatt { padding: 60px 16px 40px; }
  .blatt h1 { font-size: 22px; }
  body.anmeldung { padding: 0; background: #ffffff; justify-content: flex-start; }
  .karte { max-width: none; min-height: 100vh; padding: 16px 16px 24px; border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Widget-Bereich ---- */
/* Auf sehr schmalen Handys (bis 360 px) wird der Eintrag im Nutzermenü flacher, damit der Google-Knopf,
   der dort proportional schrumpft, kein kleinerer Knopf als ein anderer auf der Seite ist (Googles Regel). */
@media (max-width: 360px) { .nutzer-eintrag { padding: 6px 10px; } }

/* Auf winzigen Schirmen (bis 320 px, zum Beispiel Außendisplay eines Faltgeräts) werden Nutzerknopf und Menüeintrag 32 px hoch,
   damit der dort proportional geschrumpfte Google-Knopf kein kleinerer Knopf als ein anderer auf der Seite ist (Googles Regel). */
@media (max-width: 320px) {
  .nutzer-knopf { width: 32px; height: 32px; }
  .nutzer-eintrag { padding: 4px 10px; }
}

/* Die Seite ist hell. Browser mit erzwungenem Dunkelmodus (Chrome Android „Auto Dark“, Samsung ab 24) lassen sie hell,
   weil die Wallet-Knöpfe nur schwarz auf hellem Grund erlaubt sind. */
:root { color-scheme: only light; }
/* Am Handy 16 px Seitenrand wie auf der Anmeldekarte; der Google-Knopf bekommt so ab 364 px Fensterbreite seine 48 px. */


/* Seitenregeln rund um die Knopfzone. */
/* Die Ausweise trennt eine Haarlinie mit Luft, damit kein Knopf zum falschen Ausweis gelesen wird. */
.ausweis + .ausweis { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rand, #e2e8f0); }
/* Überschriften ohne Umbruchstelle (Zoom 300 % am Handy) brechen, statt die Seite waagrecht zu sprengen. */
.blatt h1, .blatt h2 { overflow-wrap: anywhere; }

/* Knopfzone (Stand 30.10.2026): nur die Knöpfe des Widgets und ihr Umfeld,
   über die Haken .bereich und .hp-*. Gemessen in Chromium, Firefox und WebKit
   (27 Geräteprofile) gegen die Markenregeln von Apple und Google.
   Voraussetzung: .bereich ist ein Block oder ein Flex-Element mit Breite. */

/* Je Wallet eine Spalte: Beschriftung, QR-Code, Abzeichen; die Spalten stehen nebeneinander und brechen um, wenn der Platz fehlt.
   Solange die Knöpfe noch laden, hält der leere Bereich seine spätere Höhe frei (kleiner Layoutsprung). */
.bereich { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.bereich:empty { position: relative; min-height: 98px; }
/* Platzhalter, solange die Knöpfe laden: zwei graue Flächen in der Form der späteren Abzeichen (Apple links, Google rechts),
   leicht schimmernd, ohne Skript; sie verschwinden, sobald das Widget zeichnet oder die Seite eine Zeile einsetzt. */
.bereich:empty::before, .bereich:empty::after {
  content: ""; position: absolute; top: 0; height: 48px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%;
  animation: hp-laden 1.4s ease-in-out infinite;
}
.bereich:empty::before { left: 0; width: 153px; border-radius: 10px; }
.bereich:empty::after { left: 177px; width: 340px; max-width: calc(100% - 177px); border-radius: 24px; }
@keyframes hp-laden { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .bereich:empty::before, .bereich:empty::after { animation: none; }
}
.bereich .hp-badge-wrap { display: flex; flex-direction: column; align-items: flex-start; row-gap: 2px; min-width: 0; max-width: 100%; }

/* Beide Grafiken gleich hoch, 48 px (Googles Mindestmaß), die Breite folgt dem Seitenverhältnis. Das Widget setzt inline
   width: auto, height: auto und max-width: 100 %; die Seite begrenzt nur die Höhe. Ist der Platz schmaler als der Google-Knopf
   (354 px bei 50 px), schrumpft Google proportional, wie im Widget selbst, und das Apple-Abzeichen schrumpft auf dieselbe Höhe,
   damit Google nie der kleinere Knopf ist. !important nur bei Apple, weil das Widget die Höhe inline setzt. */
.bereich .hp-badge img { max-height: 48px; object-fit: contain; object-position: left center; }
.bereich .hp-badge:not([data-wallet="GOOGLE"]) img { height: 48px !important; }

/* Sichtbarer Fokusring auch auf den Abzeichen (das Widget bringt keinen eigenen mit). */
.bereich .hp-badge:focus-visible { outline: 3px solid #3d4b5a; outline-offset: 3px; }

/* Die Statuszeile unter dem Apple-Knopf (Live-Region des Widgets) bleibt im Barrierebaum: leer ohne Höhe statt display: none,
   mit Text bricht sie in der Breite ihrer Spalte um. */
.bereich .hp-access-status { width: 0; min-width: 100%; margin: 6px 0 0; font-size: .8125rem; line-height: 1.4; color: #475569; overflow-wrap: anywhere; }
.bereich .hp-access-status:empty { margin: 0 0 -2px; }

/* Der Safari-Hinweis nimmt die Breite seiner Spalte und bricht um; sein Linkfeld bekommt einen Rand mit 3:1 Kontrast. */
.bereich .hp-safari-hint { max-width: 100%; margin-top: 8px; font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.bereich .hp-safari-hint-link { width: 100%; max-width: 340px; border-color: #64748b; }

/* QR-Dialog des Widgets: der QR-Code darf nie höher sein als der sichtbare Teil der Karte (Handy quer), sonst ist er nicht
   scannbar. Gehört ins Widget (qr.js), bis dahin hier; am PC bleibt er 364 px. */
/* Die Karte des QR-Dialogs ist höchstens 420 px breit: so macht es die nächste Widget-Fassung (MR !259) selbst,
   das heutige Live-Widget nimmt 90 % der Fensterbreite und zeigt den Link ausgeschrieben, bis Jens ausrollt. */
.hp-overlay-card { max-width: min(90vw, 420px) !important; }
.hp-overlay-card .hp-qr-svg { width: min(364px, calc(100vh - 170px)) !important; width: min(364px, calc(100dvh - 170px)) !important; height: auto !important; max-width: 100%; }

/* Am Handy stehen die Spalten untereinander. Der rechte Rand des Widgets (8 px) entfällt, weil der Seitenrand (16 px)
   den Freiraum liefert; so bekommt Google die volle Breite und ab 364 px Fensterbreite die vollen 48 px.
   Apple und der QR-Knopf folgen der Höhe des Google-Knopfs, sobald er schrumpft (Google nie der kleinere Knopf).
   Formel für Browser ohne Container-Queries: Fensterbreite minus 32 px Seitenrand minus 17 px Reserve für eine Scrollleiste. */
@media (max-width: 480px) {
  .bereich { flex-direction: column; }
  .bereich:empty { min-height: 236px; }
  .bereich:empty::after { left: 0; top: 126px; width: 100%; max-width: 340px; }
  .bereich .hp-badge-wrap { margin-right: 0 !important; }
  .bereich .hp-badge:not([data-wallet="GOOGLE"]) img { height: min(48px, calc((100vw - 67px) * 50 / 354)) !important; }
}

/* Browser mit Container-Queries (Chrome 105, Safari 16, Firefox 110, Samsung 20 und neuer) rechnen mit der echten Breite
   des Bereichs, auch bei Scrollleisten oder in schmalen Spalten; ältere Browser bleiben bei den Zeilen darüber.
   inline-size: 100 % hält den Bereich auch in einer Flex-Zeile oder Grid-Spalte offen (Containment setzt die Eigenbreite sonst auf 0). */
@supports (width: 1cqw) {
  .bereich { container-type: inline-size; inline-size: 100%; }
  /* Maß ist die Innenbreite der Karte (Wallet-Karte als eigener Container), nicht der ganze Bereich: beide Abzeichen folgen derselben Breite. */
  .bereich .hp-badge-wrap { container-type: inline-size; }
  .bereich .hp-badge:not([data-wallet="GOOGLE"]) img { height: min(48px, calc(100cqw * 50 / 354)) !important; }
}

/* ---- Beispiel-Hochschule (Vorschlag) und fester Baustein ---- */
/* Schmale Leiste oben auf jeder Seite der Demo. */
.demo-leiste {
  align-self: stretch; padding: 8px 16px; background: #0f172a; color: #ffffff;
  font-size: 14px; line-height: 1.4; text-align: center; overflow-wrap: anywhere;
}
/* Eingabefelder und Knöpfe erben die Schrift der Seite (WebKit nimmt sonst Serifen für Platzhalter). */
input, button { font: inherit; }
body.uni.anmeldung, body.pass-seite.anmeldung { padding: 0; justify-content: flex-start; }
body.anmeldung .karte { margin: auto; }
body.anmeldung { padding-bottom: 24px; }
.uni-name { margin: 0 0 4px; text-align: center; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #275b4b; font-weight: 700; }
.blatt .uni-name { text-align: left; }
/* Das Portal der Beispiel-Hochschule: eigene Farbe, kein HELIXPASS-Look. */
body.uni .knopf-haupt { background: #275b4b; }
body.uni .knopf-haupt:hover { background: #1c4639; }

/* Portal: der Pass-Block steht über den Kacheln, die Kacheln sind flach und klein. */
.blatt.portal { padding-top: 48px; }
.blatt.portal h1 { margin: 0 0 16px; font-size: 24px; }
.pass-kasten { margin: 0 0 16px; padding: 16px 16px 18px; border: 1px solid var(--rand); border-radius: 12px; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.pass-kasten h2 { margin: 0 0 4px; font-size: 18px; }
.pass-kasten > p { margin: 0 0 14px; color: var(--leise); font-size: 15px; line-height: 1.4; }
.pass-wahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.portal .pass-wahl {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border: 2px solid #275b4b; border-radius: 10px;
  color: var(--text); background: #ffffff; text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pass-feld { container-type: inline-size; width: 100%; aspect-ratio: 1 / 1; display: flex; justify-content: center; align-items: center; }
.pass-feld .passbild-esc { width: calc(100cqw * .714); }
.pass-text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--leise); }
.pass-wahl-zeile { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.pass-wahl-zeile .pass-text { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.wahl-pfeil { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: #275b4b; fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (forced-colors: active) {
  .portal .wahl-pfeil { stroke: LinkText; border: 1px solid LinkText; background: Canvas; }
}
.portal .pass-wahl:hover { border-color: #275b4b; background: #f0f6f3; box-shadow: 0 0 0 1px #275b4b; }
.portal .pass-wahl:focus-visible { outline: 3px solid #275b4b; outline-offset: 3px; background: #f0f6f3; }
.portal .pass-wahl:active { background: #e2eee7; }
body.uni input:focus { border-color: #275b4b; box-shadow: 0 0 0 4px rgb(39 91 75 / 15%); }
body.uni :focus-visible { outline-color: #275b4b; }
.kacheln { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
.kachel { padding: 4px 0; color: var(--text); font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }

/* Bilder der Beispielkarten, nach den echten Showcase-Pässen in der Wallet (Farben, Logo, Aufbau). Alle Größen in
   cqw, sie wachsen und schrumpfen mit der Karte. */
.passbild {
  position: relative; width: 100%; max-width: 340px; border-radius: 12px; color: #ffffff; overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .2); transition: transform .15s ease, box-shadow .15s ease;
  container-type: inline-size;
}
.pb-logo { position: absolute; display: block; height: auto; }
.pb-beispiel { position: absolute; right: 2.5cqw; bottom: 2cqw; font-size: max(9px, 2.6cqw); line-height: 1; opacity: .75; }
.passbild-student { aspect-ratio: 1.586; background: #1a2c5f; }
.passbild-student .pb-logo { left: 4cqw; top: 2.5cqw; width: 90cqw; }
.passbild-student .pb-quer {
  position: absolute; right: 3cqw; top: 30%; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: max(7px, 2.8cqw); font-weight: 700; letter-spacing: .04em; line-height: 1; color: #6f84c9;
}
.passbild-student .pb-fuss { position: absolute; left: 4.5cqw; bottom: 5cqw; display: flex; flex-direction: column; }
.passbild-student .pb-rolle { font-size: max(7px, 3.1cqw); letter-spacing: .02em; color: #b9c0d6; }
.passbild-student .pb-name { font-size: max(8px, 4.6cqw); font-weight: 600; line-height: 1.25; }
.passbild-esc { aspect-ratio: .714; background: linear-gradient(180deg, #c4c7d2 0%, #c4c8d5 55%, #b6bac6 100%); color: #2d3b6a; }
.passbild-esc .pb-logo { left: 3.5cqw; top: 5.5cqw; width: 42cqw; }
.pb-titel { position: absolute; left: 5cqw; right: 2cqw; top: 19cqw; font-size: 8.2cqw; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.pb-felder { position: absolute; left: 5cqw; right: 3cqw; top: 55cqw; display: flex; flex-wrap: wrap; gap: 1.5cqw 3cqw; margin: 0; }
.pb-felder dt { font-size: max(5px, 3cqw); font-weight: 700; letter-spacing: .03em; }
.pb-felder dd { margin: .5cqw 0 0; font-size: max(6px, 3.8cqw); }
.pb-felder .pb-escn { flex: 1 1 100%; }
.pb-felder .pb-escn dd { font-size: max(5px, 2.5cqw); overflow-wrap: anywhere; }
.pb-qr-platz { position: absolute; left: 50%; bottom: 12cqw; width: 36cqw; height: 36cqw; margin-left: -18cqw; border-radius: 3cqw; background: #e3e5ec; }
@media (max-width: 560px) {
  .pass-wahlen { gap: 10px; }
}

/* Der feste Baustein: breites Blatt für zwei Karten nebeneinander am PC, Markenzeile am Seitenende. */
body.pass-seite { display: flex; flex-direction: column; min-height: 100vh; }
.blatt-pass { width: 100%; max-width: 900px; flex: 1; padding-top: 52px; }
.blatt-pass h1 { margin: 0 0 2px; }
.zurueck { position: absolute; top: 14px; left: 20px; margin: 0; }
@media (max-width: 480px) { .zurueck { left: 16px; top: 12px; } }
.kartenname { margin: 0 0 14px; font-size: 14px; line-height: 1.4; color: var(--leiser); }
.wege { margin: 0 0 16px; }
.weg { margin: 0 0 6px; font-size: 16px; line-height: 1.45; color: var(--text); }
.weg-touch { display: none; }
.wege[hidden], .weg[hidden] { display: none; }
footer.klein { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 20px 24px; }
@media (max-width: 480px) { footer.klein { padding: 0 16px 20px; } }

/* Jede Wallet ist eine Karte mit Rahmen: Überschrift, QR-Code mit Linkzeile (am PC), Button. */
.bereich { display: flex; flex-direction: column; gap: 16px; }
.bereich .hp-badge-wrap {
  display: flex; flex-direction: column; align-items: center; margin: 0 !important; padding: 16px 16px 18px; width: 100%;
  border: 1px solid #cbd5e1; border-radius: 14px; background: #ffffff; box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  text-align: center;
}
.bereich .handy-name { order: -3; margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--text); }
.bereich .hp-qr-content { order: -2; margin: 0 0 14px !important; width: 100%; }
/* Der Satz des Widgets über dem QR-Code entfällt: die Zeile "Mit dem Handy" und die Überschrift der Karte sagen es schon.
   Die Linkzeile ("Link kopieren") bleibt unter dem Code: der Weg ohne Kamera. */
.bereich .hp-badge-wrap > .hp-qr-content .hp-qr-instruction { display: none !important; }
/* QR-Code: um 240 px breit (das Widget zeichnet 4 px je Modul, bei diesem Link ist das über 380 px). Die Kanten rasten
   auf Pixel ein, damit der Code bei halber Auflösung nicht verschwimmt. */
.bereich .hp-badge-wrap > .hp-qr-content .hp-qr-svg { width: 240px !important; height: auto !important; max-width: 100%; margin: 0 auto; shape-rendering: crispEdges; }
.bereich .hp-badge-wrap > .hp-qr-content .hp-qr-svg rect { shape-rendering: crispEdges; }
.bereich .hp-badge-wrap > .hp-qr-content .hp-qr-image { justify-content: center !important; }
.bereich .hp-badge-wrap > .hp-qr-content .hp-qr-copy-row { margin-left: auto; margin-right: auto; justify-content: center; }
/* Das Adressfeld neben "Link kopieren" ist Technik für Studierende: es ist nur fürs Auge weg (auch im QR-Fenster). Es bleibt
   auswählbar, weil das Widget ohne Zwischenablage-Schnittstelle genau dieses Feld markiert; app.js nimmt es aus der Tabfolge. */
.hp-qr-copy-row:not(.link-sichtbar) .hp-qr-link { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; opacity: 0 !important; }
.pkpass-satz { margin: 4px 0 12px; max-width: 340px; font-size: 16px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.bereich .hp-access-status { order: 5; }
.abgelaufen { grid-column: 1 / -1; width: 100%; padding: 20px; border: 1px solid #cbd5e1; border-radius: 14px; background: #ffffff; text-align: center; }
.abgelaufen p { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.abgelaufen .knopf-haupt { width: auto; min-width: 220px; }
@media (min-width: 840px) {
  .bereich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  .bereich .hp-badge-wrap { padding: 20px 20px 22px; }
}
/* Geräte mit Finger und ohne Maus: keine QR-Codes, kein Satz für den PC, eine Zeile zum Tippen. Das ist reines CSS,
   die Seite erkennt kein Gerät. */
@media (pointer: coarse), (hover: none) {
  .bereich .hp-badge-wrap > .hp-qr-content { display: none; }
  .weg-qr, .weg-pc, .pkpass-satz { display: none; }
  .weg-touch { display: block; }
  .bereich .hp-badge-wrap { padding: 14px 14px 16px; }
  .bereich .handy-name { margin-bottom: 10px; font-size: 18px; }
}
/* Am Handy hat die Karte seitlich nur 8 px Innenabstand: bei 390 px Fensterbreite bleiben 340 px für die Abzeichen, Google hat dort seine 48 px,
   das Apple-Abzeichen dieselbe Höhe. Steht nach der Touch-Regel, damit sie gewinnt. */
@media (max-width: 480px) { .bereich .hp-badge-wrap { padding-left: 8px; padding-right: 8px; } }

/* VB: one illustrated handoff above both codes, with the V0 wallet layout. */
.blatt-pass { padding-top: 44px; }
.kartenname { margin-bottom: 6px; }
.wege { margin-bottom: 8px; }
.bildschritte {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  list-style: none; margin: 6px 0 10px; padding: 0;
}
.bildschritte li { min-width: 0; display: flex; align-items: center; gap: 6px; }
.schritt-bild { display: block; width: 96px; height: 48px; flex: 0 1 96px; color: #334155; }
.bildschritte span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.bildschritte b { font-weight: 700; color: #64748b; margin-right: 4px; }
.bereich .handy-name {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px;
}
.bereich .hp-badge-wrap > .hp-qr-content { margin-bottom: 8px !important; }
@media (min-width: 840px) { .bereich .hp-badge-wrap { padding-top: 14px; padding-bottom: 16px; } }
@media (max-width: 600px) {
  .bildschritte { gap: 6px; }
  .bildschritte li { flex-direction: column; text-align: center; gap: 2px; }
  .schritt-bild { flex: none; max-width: 100%; width: 96px; height: 54px; }
  .bildschritte span { font-size: 13px; }
}
@media (pointer: coarse), (hover: none) {
  .bildschritte { display: none; }
}

/* Kartentitel aus VD, oberhalb der gleich hohen Bildfelder. */
.pass-wahl-titel {
  margin: 0;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 480px) { .pass-wahl-titel { font-size: 15px; } }

/* Auch mit Kartentiteln bleibt das Hochschulportal auf dem Handy im Fenster. */
@media (max-width: 480px) {
  .blatt.portal { padding-top: 36px; }
  .blatt.portal h1 { margin-bottom: 10px; }
  .pass-wahl { gap: 8px; }
  .pass-kasten { margin-bottom: 12px; }
}

/* Compact images above full-width text leave room for whole words on narrow phones. */
@media (max-width: 480px) {
  .blatt.portal { padding-top: 28px; }
  .portal .pass-kasten { padding-bottom: 12px; }
  .portal .pass-kasten > p { margin-bottom: 10px; }
  .portal .pass-wahlen { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .portal .pass-wahl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px; }
  .portal .pass-feld { grid-row: 1; width: 180px; max-width: 100%; height: auto; aspect-ratio: auto; justify-self: center; }
  .portal .pass-feld .passbild-student { width: 133.224px; }
  /* The portrait card gets 100 px of height, so the label and the grey square both fit and the page still fits a phone. */
  .portal .pass-feld .passbild-esc { width: 71.4px; }
  .portal .pass-wahl-titel { min-height: 0; }
  .portal .pass-wahl-zeile { margin-top: 0; gap: 6px; }
  .portal .pass-text { font-size: 13px; }
  .portal .wahl-pfeil { width: 28px; height: 28px; padding: 5px; }
}

.portal .pass-wahl-titel { color: #275b4b; text-decoration: underline; text-underline-offset: 3px; }
.portal .pass-wahl-titel, .portal .pass-wahl-zeile .pass-text { overflow-wrap: normal; hyphens: none; word-break: normal; }
/* Scale every label with its sample card, without changing pass-page styles. */
.portal .pass-feld .pb-beispiel { right: max(4px, 3cqw); bottom: max(4px, 3cqw); font-size: max(9px, 2.6cqw); line-height: 1.1; white-space: nowrap; }
.portal .passbild-student .pb-fuss { bottom: max(18px, 8cqw); }
/* The grey square of the European Student Card stays above the label at every size. */
.portal .passbild-esc .pb-qr-platz { bottom: calc(max(4px, 3cqw) + max(9px, 2.6cqw) * 1.1 + 3px); }
.portal .pass-feld .pb-quer { font-size: 2.8cqw; }
.portal .pass-feld .pb-rolle { font-size: 3.1cqw; }
.portal .pass-feld .pb-name { font-size: 4.6cqw; }
.portal .pass-feld .pb-felder dt { font-size: 3cqw; }
.portal .pass-feld .pb-felder dd { font-size: 3.8cqw; }
.portal .pass-feld .pb-felder .pb-escn dd { font-size: 2.5cqw; }
