/* Gemeinsamer Rahmen aller Werkzeuge unter dem Hub (04.12.2026).
   Schriften, Farben und der Kopf mit Weg zur Übersicht, Werkzeugwechsel und Konto. Jedes Werkzeug bindet ein
     <link rel="stylesheet" href="/_hub/rahmen.css">
     <script src="/_hub/rahmen.js" defer data-werkzeug="<id>"></script>
   Alle Klassen beginnen mit hub-, damit sie nicht mit den Stilen der Werkzeuge kollidieren.
   Farben und Schriften aus dem Styleguide RD SPN 1.3, Formen nach dem Original des PersonalDeck (Leo, 04.12.2026).
   Fokus sichtbar, Rot nie als Schrift auf Marineblau. */
@font-face { font-family: "Barlow Semi Condensed"; src: url("/_hub/fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/_hub/fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/_hub/fonts/barlow-semi-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/_hub/fonts/barlow-condensed-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/_hub/fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/_hub/fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/_hub/fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --spn-blau: #004799; --spn-rot: #BC1010; --spn-marine: #08236A; --spn-tief: #061746; --spn-wein: #751834;
  --spn-blau-10: #E6ECF5; --spn-blau-20: #CCDAEB; --spn-blau-40: #99B5D6; --spn-rot-8: #FBEDED; --spn-meta: #5A6B8C;
  --spn-verlauf: linear-gradient(100deg, #08236A 0%, #08236A 45%, #751834 100%);
  --spn-font-display: "Barlow Semi Condensed", "Arial Narrow", Helvetica, sans-serif;
  --spn-font-subline: "Barlow Condensed", "Arial Narrow", Helvetica, sans-serif;
  --spn-font-text: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hub-kopf: 64px;
}

/* Ein Stil für alles nach dem Original des PersonalDeck (Leo, 04.12.2026): schwebende weiße Leiste mit Rundung und
   leichtem Schatten, Profil mit rundem Bild, Menüs als abgerundete Karten. Werte aus Personalsystem/frontend/css. */
.hub-kopf { position: relative; z-index: 900; display: flex; align-items: center; gap: 10px; min-height: 60px; margin: 16px 16px 0;
  padding: 8px 10px 8px 14px; background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(6,23,70,.08);
  font-family: var(--spn-font-text); font-size: 14px; color: var(--spn-tief); }
/* In der eigenen Kopfleiste eines Werkzeugs nur Wechsel und Profil, rechts angeschlagen */
.hub-kopf--eingebettet { margin: 0 0 0 auto; padding: 0; min-height: 0; background: none; border-radius: 0; box-shadow: none; }
.hub-kopf *, .hub-kopf *::before, .hub-kopf *::after { box-sizing: border-box; }
.hub-kopf :focus-visible, .hub-menue :focus-visible { outline: 2px solid var(--spn-blau); outline-offset: 2px; }
.hub-marke { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--spn-marine); text-decoration: none; }
.hub-marke:hover { color: var(--spn-marine); text-decoration: none; }
.hub-marke img { width: 34px; height: 34px; display: block; }
.hub-marke__wort { font-family: var(--spn-font-display); font-weight: 800; font-size: 19px; line-height: 1; }
.hub-marke__firma { font-family: var(--spn-font-subline); font-size: 11.5px; letter-spacing: .04em; color: var(--spn-meta); white-space: nowrap; }
.hub-trenner { width: 1px; height: 28px; background: #DFE4EC; margin: 0 4px; }
.hub-wahl { position: relative; }
.hub-wahl__knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; background: none; border: 0; border-radius: 10px;
  cursor: pointer; font-family: var(--spn-font-display); font-weight: 700; font-size: 16px; color: var(--spn-tief); }
.hub-wahl__knopf:hover { background: #F4F7FB; }
.hub-wahl__knopf > svg { width: 14px; height: 14px; fill: none; stroke: var(--spn-meta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.hub-wahl__knopf[aria-expanded="true"] > svg { transform: rotate(180deg); }
.hub-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hub-rechts .hub-wahl__knopf { padding: 4px 8px 4px 4px; gap: 10px; border-radius: 999px; font-family: var(--spn-font-text); font-weight: 400; font-size: 13px; }
/* Rund auf Leos Wunsch (04.12.2026) wie das Profilbild im PersonalDeck */
.hub-kreis { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--spn-marine); color: #fff;
  font-family: var(--spn-font-display); font-weight: 700; font-size: 13px; }
.hub-profil { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.25; text-align: left; }
.hub-profil b { font-size: 13px; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-profil span { font-size: 11.5px; color: var(--spn-meta); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-menue { position: absolute; top: calc(100% + 8px); min-width: 230px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #E6ECF5;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(6,23,70,.14); padding: 6px; z-index: 950; font-family: var(--spn-font-text); }
.hub-menue[hidden] { display: none; }
.hub-menue--links { left: 0; } .hub-menue--rechts { right: 0; }
.hub-menue__titel { padding: 6px 10px 4px; font-family: var(--spn-font-subline); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--spn-meta); }
.hub-menue a, .hub-menue button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 7px; background: none;
  font: inherit; font-size: 13.5px; color: var(--spn-tief); text-decoration: none; text-align: left; cursor: pointer; }
.hub-menue a:hover, .hub-menue button:hover { background: #F4F7FB; color: var(--spn-tief); text-decoration: none; }
.hub-menue a[aria-current="page"] { color: var(--spn-rot); font-weight: 700; }
.hub-menue svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--spn-meta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-menue a[aria-current="page"] svg { stroke: var(--spn-rot); }
.hub-menue__lesend { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--spn-rot-8); font-size: 11px; font-weight: 700; color: var(--spn-rot); white-space: nowrap; }
.hub-menue hr { border: 0; border-top: 1px solid #E6ECF5; margin: 6px 4px; }
.hub-band { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 10px 16px; border-radius: 14px; background: var(--spn-rot-8); color: var(--spn-rot);
  font-family: var(--spn-font-text); font-size: 13.5px; }
[data-hub-band] .hub-band { margin: 0 0 16px; }
.hub-band svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hinweisseiten der Prüfstelle wie „Kein Zugriff“, wie die Anmeldung auf dem Blau der Visitenkarte mit weißer Karte */
.hub-hinweisseite { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 20px; box-sizing: border-box; font-family: var(--spn-font-text); color: var(--spn-tief);
  background: radial-gradient(110% 38% at 100% 100%, rgba(188,16,16,.62) 0%, rgba(188,16,16,0) 72%), linear-gradient(180deg, #08236A 0%, #0C2E8C 52%, #0A2777 100%);
  background-color: #0A2777; }
.hub-hinweis { background: #fff; padding: 34px 34px 30px; max-width: 460px; box-sizing: border-box; border-radius: 18px; box-shadow: 0 10px 30px rgba(6,23,70,.24); }
@media (max-width: 479px) { .hub-hinweis { padding: 26px 22px 22px; } }
.hub-hinweis h1 { margin: 0 0 10px; font-family: var(--spn-font-display); font-weight: 700; font-size: 22px; color: var(--spn-tief); }
.hub-hinweis p { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: var(--spn-meta); }
.hub-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--spn-blau-20); border-radius: 11px;
  font-family: var(--spn-font-display); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.hub-knopf--primaer { background: var(--spn-rot); border-color: var(--spn-rot); color: #fff; }
.hub-knopf--primaer:hover { background: #9C0D0D; border-color: #9C0D0D; color: #fff; }
.hub-knopf:focus-visible { outline: 2px solid var(--spn-blau); outline-offset: 2px; }

@media (max-width: 767px) {
  .hub-kopf { margin: 10px 10px 0; padding: 6px 6px 6px 10px; gap: 4px; min-height: 56px; }
  .hub-kopf--eingebettet { margin: 0 0 0 auto; padding: 0; min-height: 0; }
  .hub-marke__firma, .hub-profil, .hub-trenner { display: none; }
  .hub-marke img { width: 30px; height: 30px; }
  .hub-marke__wort { font-size: 17px; }
  .hub-wahl__knopf { padding: 0 8px; font-size: 15px; }
  .hub-wahl__name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hub-rechts .hub-wahl__knopf { padding: 3px 6px 3px 3px; gap: 4px; }
  .hub-band { margin: 10px 10px 0; }
}
/* Schmale Telefone: nur die Bildmarke, der Name steht schon im Wechselknopf */
@media (max-width: 479px) { .hub-marke__wort { display: none; } .hub-marke br { display: none; } }
@media (prefers-reduced-motion: reduce) { .hub-kopf * { transition: none !important; } }
