/* PubQuiz Hub, Wave 1 bis 3: schlichte Grundverwaltung ohne Tailwind-Build. */
:root { --bg: #0f0c29; --card: rgba(255,255,255,0.07); --line: rgba(255,255,255,0.14); --text: #eef0f7; --muted: #a8adc4; --accent: #22d3ee; --ok: #34d399; --warn: #f87171; }
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(135deg, #0f0c29, #302b63 60%, #24243e); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; }
a { color: var(--accent); }
.hub-wrap { max-width: 1040px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.8rem; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 24px 0 10px; }
.hub-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hub-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hub-list li:last-child { border-bottom: 0; }
.hub-muted { color: var(--muted); font-size: 0.9rem; }
.hub-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(34,211,238,0.15); color: var(--accent); font-size: 0.8rem; }
.hub-ok, .hub-alert { padding: 10px 14px; border-radius: 10px; }
.hub-ok { background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.4); }
.hub-alert { background: rgba(248,113,113,0.15); border: 1px solid rgba(248,113,113,0.4); }
.hub-rc { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: rgba(52,211,153,0.08); font-size: 0.9rem; }
.hub-rc dt, .hub-rc dd { margin: 0; }
.hub-rc dd { text-align: right; }
form.hub-form { display: grid; gap: 12px; max-width: 620px; }
label { display: grid; gap: 4px; font-size: 0.95rem; }
input, select, textarea { color-scheme: dark; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,0.25); color: var(--text); font: inherit; }
input[type=checkbox], input[type=radio] { width: auto; padding: 0; margin: 0; flex: 0 0 auto; }
button, .hub-button { display: inline-block; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--accent); color: #0b1020; font-weight: 700; cursor: pointer; text-decoration: none; font: inherit; }
button.hub-secondary { background: rgba(255,255,255,0.12); color: var(--text); font-weight: 600; }
button.hub-danger { background: rgba(248,113,113,0.2); color: #fecaca; }
.hub-inline { display: inline; }
.hub-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hub-round { margin-bottom: 16px; }
.hub-code { font-family: ui-monospace, monospace; font-size: 1.4rem; letter-spacing: 0.15em; }
.hub-presenter { text-align: center; padding: 40px 16px; }
.hub-presenter h1 { font-size: clamp(2rem, 5vw, 4rem); }
.hub-presenter .hub-code { font-size: clamp(2rem, 6vw, 5rem); }
@media (max-width: 600px) { h1 { font-size: 1.4rem; } }

/* Wave 2: Host-Konsole */
.hub-console h1 { word-break: break-word; }
.hub-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; align-items: center; }
.hub-controls p { flex-basis: 100%; margin: 0; }
button.hub-big, .hub-big { padding: 16px 20px; font-size: 1.1rem; min-height: 56px; border-radius: 12px; background: rgba(255,255,255,0.12); color: var(--text); font-weight: 700; }
button.hub-go, .hub-big.hub-go { background: var(--accent); color: #0b1020; }
button.hub-big.hub-danger { background: rgba(248,113,113,0.2); color: #fecaca; }
button.hub-active { background: var(--accent); color: #0b1020; }
button:disabled { opacity: 0.5; cursor: default; }
.hub-timerbox { flex-basis: 100%; }
.hub-inline-label { display: inline-flex; align-items: center; gap: 8px; }
.hub-inline-label input { width: 90px; }
.hub-console-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hub-console-grid h2:first-child { margin-top: 0; }
.hub-qtext { font-size: 1.25rem; font-weight: 600; word-break: break-word; }
.hub-options { margin: 8px 0; padding-left: 22px; }
.hub-options li { padding: 4px 0; }
.hub-correct { color: var(--ok); font-weight: 700; }
.hub-badge-ok { background: rgba(52,211,153,0.2); color: var(--ok); }
.hub-badge-bad { background: rgba(248,113,113,0.2); color: #fecaca; }
.hub-answers li { display: block; }
.hub-answer-main { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; word-break: break-word; }
.hub-correct-form { margin-top: 8px; }
.hub-correct-form input[type=number] { width: 100px; }
.hub-correct-form input[type=text] { flex: 1 1 160px; min-width: 0; }
.hub-team { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.hub-team:first-of-type { border-top: 0; margin-top: 0; }
.hub-team input[type=text] { flex: 1 1 140px; min-width: 0; }
.hub-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: 0.5; }
.hub-dot-on { background: var(--ok); opacity: 1; }
.hub-audit li { font-size: 0.9rem; }
.hub-timer { margin: 10px 0; }
.hub-timer-text { font-variant-numeric: tabular-nums; font-weight: 700; }
.hub-timerbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; margin-top: 6px; }
.hub-timerbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }

/* Wave 2: Mitspielen auf dem Handy */
.hub-play { max-width: 640px; }
.hub-play main { display: grid; gap: 14px; }
.hub-play .hub-card { word-break: break-word; }
.hub-teampick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; margin: 0; min-width: 0; }
.hub-choice { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.hub-choice input { width: 22px; height: 22px; }
.hub-teamcard p { margin: 4px 0; }
.hub-choices { display: grid; gap: 10px; margin: 12px 0; }
button.hub-choice-btn { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 16px; min-height: 60px; background: rgba(255,255,255,0.1); color: var(--text); font-weight: 600; border: 2px solid transparent; }
button.hub-choice-btn.hub-selected { border-color: var(--accent); background: rgba(34,211,238,0.18); }
button.hub-choice-btn.hub-correct { border-color: var(--ok); background: rgba(52,211,153,0.2); }
button.hub-choice-btn:disabled { opacity: 0.85; }
.hub-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 8px; background: rgba(0,0,0,0.3); font-weight: 800; }
.hub-sortlist { list-style: decimal; padding-left: 24px; margin: 12px 0; }
.hub-sortlist li { display: list-item; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hub-sortlist li > span:first-child { display: inline-block; max-width: calc(100% - 110px); vertical-align: middle; }
.hub-sortlist li > .hub-row { float: right; }
.hub-sortlist li::after { content: ""; display: block; clear: both; }
.hub-textanswer input { flex: 1 1 180px; min-width: 0; }
.hub-play button.hub-big { width: 100%; }
.hub-answerline { font-weight: 600; }
.hub-saved { color: var(--ok); }
.hub-own { color: var(--accent); font-weight: 700; }
.hub-wait { text-align: center; padding: 32px 16px; }

/* Wave 2: Beamer */
.hub-stage-body { overflow-x: hidden; }
.hub-stage { min-height: 100vh; padding: 3vh 4vw; display: flex; flex-direction: column; justify-content: center; text-align: center; font-size: clamp(1rem, 1.8vw, 2rem); }
.hub-stage h1 { font-size: clamp(2rem, 4.5vw, 4.5rem); margin: 0 0 2vh; word-break: break-word; }
.hub-stage h2 { font-size: clamp(1.3rem, 2.4vw, 2.4rem); }
.hub-stage .hub-muted { font-size: clamp(1rem, 1.6vw, 1.6rem); }
.hub-stage-join { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4vw; margin: 3vh 0; }
.hub-stage-qr { width: clamp(160px, 22vw, 300px); height: auto; background: #fff; padding: 10px; border-radius: 12px; }
.hub-stage-url { font-size: clamp(1.4rem, 3vw, 3rem); font-weight: 700; margin: 0; }
.hub-stage .hub-code { font-size: clamp(2.4rem, 7vw, 6rem); margin: 0; }
.hub-stage-teams { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hub-stage-teams li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; }
.hub-stage-round { font-size: clamp(3rem, 7vw, 7rem) !important; }
.hub-stage-media { max-width: 100%; max-height: 40vh; margin: 0 auto 2vh; border-radius: 12px; display: block; }
.hub-stage-answers { list-style: none; padding: 0; display: grid; gap: 2vh 2vw; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); text-align: left; }
.hub-stage-answers li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 2vh 2vw; }
.hub-stage-answers li.hub-correct { border-color: var(--ok); background: rgba(52,211,153,0.2); color: var(--text); }
.hub-stage-answers li.hub-dim { opacity: 0.5; }
.hub-stage-answers .hub-letter { min-width: 1.8em; height: 1.8em; }
.hub-stage-answer-text { flex: 1 1 auto; word-break: break-word; }
.hub-stage-answers .hub-stage-media { max-height: 18vh; margin: 0; }
.hub-dist { flex-basis: 100%; height: 12px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.hub-dist span { display: block; height: 100%; background: var(--accent); }
.hub-dist-count { font-weight: 700; }
.hub-stage-solution { font-size: clamp(1.4rem, 3vw, 3rem); color: var(--ok); }
.hub-stage-banner { display: inline-block; margin: 2vh auto; padding: 1vh 2vw; border-radius: 12px; background: rgba(248,113,113,0.2); border: 1px solid rgba(248,113,113,0.5); font-weight: 700; }
.hub-stage-count { color: var(--muted); }
.hub-stage-timer { max-width: 900px; width: 100%; margin: 2vh auto 0; font-size: clamp(1.4rem, 3vw, 3rem); }
.hub-stage-timer .hub-timerbar { height: 14px; }
.hub-stage-winner { font-size: clamp(2rem, 5vw, 5rem); font-weight: 800; color: var(--accent); }
.hub-stage-board { list-style: none; padding: 0; max-width: 1000px; width: 100%; margin: 0 auto; text-align: left; }
.hub-stage-board li { display: flex; gap: 2vw; align-items: center; padding: 1.2vh 1vw; border-bottom: 1px solid var(--line); }
.hub-stage-board li.hub-first { color: var(--accent); font-weight: 800; }
.hub-rank { min-width: 2.5em; }
.hub-stage-team { flex: 1 1 auto; word-break: break-word; }

/* Wave 3: Verbindung, Kennzeichen, Papierwertung, Punkte setzen, Stichfrage */
.hub-net { margin: 8px 0; padding: 8px 14px; border-radius: 10px; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.4); color: var(--text); }
.hub-badge-mode { background: rgba(255,255,255,0.12); color: var(--text); }
.hub-badge-wager { background: rgba(250,204,21,0.18); color: #fde68a; }
.hub-badge-paper { background: rgba(251,146,60,0.2); color: #fed7aa; font-weight: 700; letter-spacing: 0.04em; }
.hub-badge-digital { background: rgba(34,211,238,0.15); color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.hub-badge-tie { background: rgba(248,113,113,0.2); color: #fecaca; font-weight: 700; }
.hub-tied > span:first-child { font-weight: 700; }
.hub-label { margin: 12px 0 6px; font-weight: 600; }
.hub-autolock { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.hub-autolock p { margin: 4px 0; }
.hub-add-paper input[type=text] { flex: 1 1 160px; min-width: 0; }
.hub-paper { margin: 0 0 16px; }
.hub-paper h2:first-child { margin-top: 0; }
.hub-paper-bar { margin-bottom: 10px; }
.hub-paper-bar select { width: auto; min-width: 180px; }
.hub-paper-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
.hub-paper-table { border-collapse: collapse; min-width: 100%; }
.hub-paper-table th, .hub-paper-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; vertical-align: middle; }
.hub-paper-table thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.hub-paper-table th.hub-paper-team { text-align: left; font-weight: 600; min-width: 140px; word-break: break-word; }
.hub-paper-table th.hub-paper-team .hub-badge { margin-left: 6px; }
button.hub-pcell { min-width: 52px; min-height: 48px; padding: 6px; font-size: 1.4rem; line-height: 1; background: rgba(255,255,255,0.08); color: var(--muted); border: 2px solid var(--line); }
button.hub-pcell.hub-pcell-ok { background: rgba(52,211,153,0.25); color: var(--ok); border-color: var(--ok); }
button.hub-pcell.hub-pcell-bad { background: rgba(248,113,113,0.2); color: #fecaca; border-color: var(--warn); }
button.hub-pcell:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input.hub-pstake { display: block; width: 76px; margin: 6px auto 0; padding: 6px; text-align: center; }
input.hub-pcount { width: 96px; }
.hub-tiegroups { display: grid; gap: 4px; margin: 8px 0; }
.hub-tiebreak-table td { white-space: nowrap; }
.hub-wager-round { display: grid; gap: 6px; }
.hub-wager-round input[type=number] { width: 110px; }
.hub-wagerbox { margin: 12px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(250,204,21,0.4); background: rgba(250,204,21,0.08); }
.hub-wagerbox input { max-width: 160px; margin-top: 4px; font-size: 1.2rem; }
.hub-wagerbox p { margin: 6px 0 0; }
.hub-wagerline { font-weight: 600; }

/* Wave 3: Beamer für 1920x1080 */
.hub-stage .hub-badge { font-size: 0.75em; margin-left: 0.5em; vertical-align: middle; }
.hub-stage-net { position: fixed; top: 12px; right: 12px; margin: 0; font-size: 1.1rem; z-index: 5; }
.hub-stage-explanation { max-width: 1400px; margin: 2vh auto; font-size: clamp(1.2rem, 2.2vw, 2.4rem); color: var(--text); }
.hub-stage-table { border-collapse: collapse; margin: 2vh auto; min-width: min(100%, 1100px); text-align: left; }
.hub-stage-table th, .hub-stage-table td { padding: 1vh 1.5vw; border-bottom: 1px solid var(--line); }
.hub-stage-table th { color: var(--muted); font-weight: 600; font-size: 0.85em; }
.hub-stage-table tr.hub-correct td { color: var(--ok); }
.hub-stage-table tr.hub-dim td { opacity: 0.75; }
.hub-stage-table tr.hub-first td { color: var(--accent); font-weight: 800; }
.hub-stage-tbteams { font-size: clamp(1.4rem, 2.6vw, 2.8rem); }
.hub-stage-winner.hub-stage-tie { color: #fecaca; }
@media (min-width: 1600px) {
  .hub-stage { font-size: 2rem; }
  .hub-stage-qtext { font-size: 4.5rem; line-height: 1.15; }
  .hub-stage-answers li { font-size: 2.4rem; }
  .hub-stage-board li { font-size: 2.4rem; }
}

@media (max-width: 600px) {
  .hub-console-grid { grid-template-columns: 1fr; }
  button.hub-big { flex: 1 1 calc(50% - 10px); }
  .hub-play button.hub-big { flex-basis: 100%; }
}

/* Das hidden-Attribut gilt immer, auch wenn eine Klasse display setzt (z. B. .hub-badge). */
[hidden] { display: none !important; }

/* Wave 4: Ligatabelle (Host und Beamer), Trend */
.hub-league-table td:nth-child(n+3), .hub-league-table th:nth-child(n+3) { text-align: right; }
.hub-league-table tr.hub-first td { color: var(--accent); font-weight: 700; }
.hub-trend-up { color: var(--ok); }
.hub-trend-down { color: #fca5a5; }
.hub-league-stage { width: min(100%, 1400px); }
.hub-league-stage td:nth-child(n+3), .hub-league-stage th:nth-child(n+3) { text-align: right; }
@media (min-width: 1600px) {
  .hub-league-stage td, .hub-league-stage th { font-size: 2.4rem; padding: 1.2vh 1.5vw; }
}
/* Wave 5: Einstieg, öffentliche Angaben, Demo */
.hub-progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.hub-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.hub-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 18px; counter-reset: step; }
.hub-steps li { counter-increment: step; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.hub-steps li::before { content: counter(step) ". "; }
.hub-steps li.done { color: var(--ok); border-color: rgba(52,211,153,0.5); }
.hub-steps li.done::before { content: "✓ "; }
.hub-steps li.current { color: var(--text); border-color: var(--accent); font-weight: 700; }
.hub-onboarding-step { margin-bottom: 16px; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.hub-inline { display: inline; margin: 0; }
.hub-join-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 12px 0; }
.hub-join-box img { background: #fff; border-radius: 12px; padding: 8px; }
.hub-join-code { font-size: 2rem; font-weight: 800; letter-spacing: 0.12em; margin: 0 0 8px; }
.hub-check { display: flex; gap: 8px; align-items: center; }
.hub-badge-test { background: rgba(248,113,113,0.18); color: var(--warn); }
.hub-resume { margin-bottom: 16px; border-color: var(--accent); }
.hub-demo-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(250,204,21,0.18); color: #facc15; font-weight: 700; }
.hub-demo-stage { margin: 16px 0; }
.hub-demo-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
/* Pakete */
.hub-plans { margin: 16px 0; }
.hub-plan ul { margin: 10px 0; padding-left: 1.2em; }
.hub-plan-main { border-color: var(--accent); }
.hub-price { font-size: 1.5rem; font-weight: 800; margin: 6px 0 0; }
.hub-team-size { max-width: 70px; }

/* Auswahllisten: dunkler Hintergrund auch in der geöffneten Liste (02.10.2026). */
select { background-color: #1b1838; }
select option, select optgroup { background-color: #1b1838; color: var(--text); }

/* Überschrift oben in einer Karte ohne zusätzlichen Abstand. */
.hub-card > h2:first-child, .hub-card > h3:first-child { margin-top: 0; }

/* Übersicht: Karten mit Symbol und kurzer Beschreibung. */
.hub-dashboard .hub-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; transition: border-color .15s; }
.hub-dashboard .hub-card:hover { border-color: rgba(34,211,238,0.45); }
.hub-dashboard h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.hub-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(34,211,238,0.14); font-size: 1.15rem; }
.hub-card-desc { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* Host-Konsole: Karten nicht auf die Höhe der Nachbarkarte strecken, Abstand zwischen Rastern und Papierwertung. */
.hub-console-grid { align-items: start; margin-bottom: 16px; }

/* Kästchen und Optionsfelder stehen direkt vor ihrer Beschriftung. */
label:has(> input[type=checkbox]), label:has(> input[type=radio]) { display: flex; align-items: center; gap: 8px; }

/* Reine Formularseiten (Feedback, neuer Ort, neue Serie, neuer Abend): Zurück-Link,
   Überschrift, Einleitung und Formular stehen gemeinsam in einer mittigen Spalte.
   Seiten mit Listen oder Kartenrastern behalten die volle Breite. */
main:not(:has(section, .hub-grid, .hub-console-grid, table, ul)) { max-width: 680px; margin-left: auto; margin-right: auto; }
main:not(:has(section, .hub-grid, .hub-console-grid, table, ul)) form.hub-form { max-width: none; }
main > form.hub-form:not(.hub-card) { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }

/* Paketstatus in der Übersicht */
.hub-status { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.hub-plan-chosen { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(34,211,238,0.35); }

/* ============================================================
   Design-Polish 03.10.2026: Kopf, Menü, Sprachumschalter,
   Seitentitel, Knöpfe, Karten, Fußleiste. Nur Darstellung.
   ============================================================ */
:root { --accent-soft: rgba(34,211,238,0.14); --accent-ring: rgba(34,211,238,0.55); --surface: rgba(15,12,41,0.6); }

/* Seitengerüst: die Fußleiste sitzt bei wenig Inhalt am unteren Rand. */
.hub-wrap { max-width: 1200px; padding: 16px 24px 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.hub-wrap > main { flex: 1 0 auto; width: 100%; }

/* Tastaturfokus überall sichtbar */
a:focus-visible, button:focus-visible, .hub-button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* Kopf */
.hub-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 20px; margin: 4px 0 32px; padding: 14px 14px 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.22); }
.hub-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; border-radius: 8px; }
.hub-brand-mark { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hub-nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; min-width: 0; margin: 0 -4px; padding-top: 10px; border-top: 1px solid var(--line); }
.hub-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s; }
.hub-nav a:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.hub-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; box-shadow: inset 0 0 0 1px var(--accent-ring); }
.hub-nav a[aria-current="page"]:hover { background: rgba(34,211,238,0.2); }

/* Sprachumschalter als Schalter mit zwei Stellungen */
.hub-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); }
.hub-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 32px; padding: 0 10px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; transition: background-color .15s, color .15s; }
.hub-lang a:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.hub-lang a[aria-current="true"] { background: var(--accent); color: #0b1020; }

@media (max-width: 600px) {
  .hub-wrap { padding: 12px 14px 0; }
  .hub-header { margin-bottom: 24px; padding: 12px 12px 10px; border-radius: 14px; }
  .hub-nav { gap: 6px; }
  .hub-nav a { min-height: 40px; padding: 0 12px; background: rgba(255,255,255,0.04); }
}

/* Seitentitel */
main > h1 { font-size: 2rem; letter-spacing: -0.01em; margin: 0 0 8px; }
main > h1 + .hub-muted { max-width: 72ch; margin: 0 0 24px; font-size: 0.98rem; line-height: 1.55; }
@media (max-width: 600px) { main > h1 { font-size: 1.5rem; } }

/* Knöpfe als Links: gleiche Höhe, zweitrangige Knöpfe auch als Link zurückhaltend */
.hub-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; line-height: 1.2; transition: background-color .15s, filter .15s, box-shadow .15s; }
.hub-button:hover, button:hover:not(:disabled) { filter: brightness(1.08); }
.hub-button.hub-secondary { background: rgba(255,255,255,0.1); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.hub-button.hub-secondary:hover, button.hub-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.16); filter: none; }
main > .hub-row { gap: 10px; margin: 0 0 24px; }
@media (max-width: 600px) { main > .hub-row > .hub-button { flex: 1 1 auto; } }

/* Übersichtskarten */
.hub-dashboard { gap: 18px; }
.hub-dashboard .hub-card { padding: 22px; border-radius: 16px; }
.hub-dashboard h2 { font-size: 1.15rem; }
.hub-dashboard .hub-list li { flex-wrap: nowrap; align-items: flex-start; padding: 12px 0; }
.hub-dashboard .hub-list li > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.hub-dashboard .hub-list li > .hub-badge, .hub-dashboard .hub-list li > a:last-child { flex: 0 0 auto; margin-top: 1px; }
.hub-dashboard .hub-list li > span:last-child:not(:first-child) { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 1px; }
.hub-dashboard .hub-list a { text-decoration: none; font-weight: 600; }
.hub-dashboard .hub-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hub-dashboard .hub-list li > a:last-child { padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; color: var(--text); background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); }
.hub-dashboard .hub-list li > a:last-child:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.hub-badge { line-height: 1.6; font-weight: 600; white-space: nowrap; }

/* Fußleiste */
.hub-footer { margin: 56px 0 0; padding: 22px 0 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 0.875rem; color: var(--muted); }
.hub-footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.hub-footer nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; transition: background-color .15s, color .15s; }
.hub-footer nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
@media (max-width: 600px) {
  .hub-footer { flex-direction: column; align-items: flex-start; margin-top: 40px; }
  .hub-footer nav { margin-left: -10px; }
}

