/* AURORA – Portal der bbw Hochschule. Keine externen Ressourcen (DSGVO). */
:root {
  --teal: #5B8893;
  --green: #1A5F2E;
  --teal-dark: #486B74;
  --ink: #1d2b2f;
  --ink-soft: #4a5b60;
  --muted: #6b7b80;
  --night: #16262b;
  --night-2: #1e3338;
  --paper: #ffffff;
  --mist: #f3f6f6;
  --line: #dfe6e7;
  --line-strong: #c8d3d5;
  --danger: #a4262c;
  --danger-bg: #fbeceb;
  --warning: #8a5a00;
  --warning-bg: #fdf3dc;
  --success: #1A5F2E;
  --success-bg: #e3efe7;
  --info-bg: #eaf2f4;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(22, 38, 43, .06), 0 8px 24px -12px rgba(22, 38, 43, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--mist); padding: 1px 6px; border-radius: 5px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 8px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.light { color: #bfe0d0; }
:focus-visible { outline: 3px solid #6fbf8a; outline-offset: 2px; }

/* ------------------------------------------------------------ Kopf- und Fußzeile (Gäste) */
header.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.logo img { display: block; height: 52px; width: auto; }
.top-meta { display: flex; align-items: center; gap: 14px; }
.pill { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--teal-dark); border: 1px solid var(--teal); border-radius: 999px; padding: 4px 10px; }
.language { display: flex; gap: 2px; background: var(--mist); border-radius: 999px; padding: 3px; }
.language a { font-size: .75rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); padding: 3px 9px; border-radius: 999px; }
.language a.selected { background: var(--paper); color: var(--teal-dark); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.site-footer { background: var(--night); color: #b9c9cc; font-size: .88rem; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #e3eeee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.demo-banner { background: var(--warning-bg); color: var(--warning); font-size: .84rem; padding: 7px 16px; text-align: center; }
.demo-banner span { font-weight: 800; letter-spacing: .08em; margin-right: 6px; }
.guest-main { min-height: calc(100vh - 84px - 80px); display: flex; flex-direction: column; }
.notices { padding-top: 16px; }

/* ------------------------------------------------------------ Polarlicht */
.hero, .auth-band, .welcome { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .85; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora .a1 { width: 60%; height: 45%; left: -5%; top: 5%; background: var(--green); }
.aurora .a2 { width: 55%; height: 40%; left: 30%; top: -5%; background: var(--teal); animation-duration: 28s; }
.aurora .a3 { width: 50%; height: 50%; left: 55%; top: 25%; background: var(--teal-dark); animation-duration: 34s; }
.aurora .a4 { width: 35%; height: 30%; left: 15%; top: 45%; background: #2f8a4a; opacity: .6; animation-duration: 40s; }
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  50% { transform: translate3d(6%, 4%, 0) scale(1.12) rotate(8deg); }
  100% { transform: translate3d(-4%, 8%, 0) scale(.95) rotate(-6deg); }
}
.hero::after, .auth-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* ------------------------------------------------------------ Landingpage */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .eyebrow { margin-bottom: 18px; }
.wordmark { margin: 0; font-weight: 800; line-height: .95; font-size: clamp(3.4rem, 10vw, 7rem); letter-spacing: .06em;
  background: linear-gradient(90deg, #ffffff 0%, #d7efe3 40%, #a9cfd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.longtitle { margin: 22px 0 0; font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.4; color: #e8f1f1; max-width: 34ch; }
.longtitle b { font-weight: 800; color: #fff; border-bottom: 3px solid #6fbf8a; padding-bottom: 1px; }
.lead { margin: 26px 0 0; color: #c9d9db; max-width: 52ch; font-size: 1.02rem; }
.login-card { background: rgba(255,255,255,.98); color: var(--ink); border-radius: var(--radius); padding: 28px 26px 22px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); border-top: 5px solid var(--green); }
.login-card h2 { margin: 0 0 4px; font-size: 1.25rem; }
.login-card .sub { margin: 0 0 18px; color: var(--ink-soft); font-size: .92rem; }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; font-size: .9rem; }
.ms-button { background: #2f2f2f; color: #fff; padding: 12px 16px; font-size: .95rem; }
.ms-button:hover { background: #1f1f1f; }
.ms-button svg { width: 20px; height: 20px; }
.ms-note { margin: 10px 0 0; }
.password-login { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.password-login summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--teal-dark); margin-bottom: 12px; }
.password-login[open] summary { margin-bottom: 16px; }
.login-card .notice a { color: inherit; font-weight: 700; }
.hint { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--teal-dark); font-size: .85rem; line-height: 1.45; }
.hint svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pillars { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--teal-dark); }
.section-head p { margin: 0; color: var(--ink-soft); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { border-left: 4px solid var(--teal); padding-left: 18px; }
.pillar:nth-child(2) { border-color: var(--green); }
.pillar:nth-child(3) { border-color: var(--teal-dark); }
.pillar h3 { margin: 0 0 6px; font-size: 1.15rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.modules-band { padding: clamp(56px, 8vw, 96px) 0; background: var(--mist); }

/* ------------------------------------------------------------ Formularseiten für Gäste */
.auth-band { flex: 1; padding: clamp(40px, 7vw, 88px) 0; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: min(520px, 100%); padding: 32px 30px 26px; border-top: 5px solid var(--green); box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); }
.auth-card h1 { margin: 0 0 12px; font-size: 1.5rem; color: var(--ink); }
.auth-card > p, .auth-card .prose p { color: var(--ink-soft); }
.back { margin: 16px 0 0; font-size: .9rem; }

/* ------------------------------------------------------------ Karten, Formulare, Schaltflächen */
.card { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h2 { margin: 0 0 14px; font-size: 1.12rem; }
.card + .card, .stack > .card + .card { margin-top: 20px; }
.card.narrow { max-width: 560px; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
label small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 5px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(91,136,147,.25); }
input:disabled { background: var(--mist); color: var(--muted); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; margin-bottom: 8px; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: .85rem; font-weight: 700; margin-bottom: 8px; padding: 0; }
fieldset.roles label.depth-1 { margin-left: 26px; }
fieldset.roles label.depth-2 { margin-left: 52px; }
fieldset.roles label.depth-3 { margin-left: 78px; }
fieldset.roles label.depth-0 span { font-weight: 700; }
.icon-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-picker legend { width: 100%; }
.icon-picker label { margin: 0; cursor: pointer; }
.icon-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-picker span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--teal-dark); }
.icon-picker svg { width: 20px; height: 20px; }
.icon-picker input:checked + span { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.icon-picker input:focus-visible + span { outline: 3px solid #6fbf8a; outline-offset: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .92rem; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.button svg { width: 18px; height: 18px; }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: #154d25; }
.button.primary:disabled { opacity: .5; cursor: not-allowed; }
.button.secondary { background: var(--paper); color: var(--teal-dark); border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--teal); background: var(--mist); }
.button.danger { background: var(--paper); color: var(--danger); border-color: #e5b7b4; }
.button.danger:hover { background: var(--danger-bg); }
.button.small { padding: 6px 10px; font-size: .82rem; }
.button.block { width: 100%; }
form + form .button.block, .stack form + form { margin-top: 10px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-dark); text-decoration: underline; cursor: pointer; }
.danger-text { color: var(--danger); }
form.inline { display: inline; }

.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.notice.danger { background: var(--danger-bg); color: var(--danger); border-color: #f1c9c6; }
.notice.warning { background: var(--warning-bg); color: var(--warning); border-color: #f2dfae; }
.notice.success { background: var(--success-bg); color: var(--success); border-color: #c5ddcc; }
.notice.info { background: var(--info-bg); color: var(--teal-dark); border-color: #cfe0e4; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; background: #e6eef0; color: var(--teal-dark); white-space: nowrap; margin: 1px 2px 1px 0; }
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.chip { display: inline-block; font-size: .78rem; padding: 2px 9px; margin: 2px 4px 2px 0; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts.compact { gap: 8px; margin: 14px 0; }
.facts.compact div { grid-template-columns: 130px 1fr; }
.secret-card { border-color: #c5ddcc; background: linear-gradient(0deg, #f7fbf8, #f7fbf8); margin-bottom: 20px; }
.secret-head { display: flex; gap: 14px; }
.secret-head > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--green); color: #fff; }
.secret-head h2 { margin-bottom: 4px; }
.secret-head p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
code.secret { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; background: #fff; border: 1px dashed var(--teal); padding: 4px 10px; }
.secret-box { margin: 8px 0 16px; }
.prose h2 { font-size: 1.02rem; margin: 20px 0 6px; }
.prose p { margin: 0; }

/* ------------------------------------------------------------ Module (Kacheln) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.module-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
.module-card h3 { margin: 6px 0 0; font-size: 1.1rem; }
.module-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.module-card.openable { transition: box-shadow .15s, border-color .15s, transform .15s; }
.module-card.openable:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-card.muted-card { background: #fbfcfc; }
a.stretched { color: inherit; text-decoration: none; }
a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--green); }
.go svg { width: 16px; height: 16px; }
.icon-tile { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-dark); color: #fff; flex: none; }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.small { width: 34px; height: 34px; border-radius: 9px; }
.icon-tile.small svg { width: 18px; height: 18px; }
.icon-tile.area-akademisch, .icon-tile.area-aktiv { background: var(--green); }
.icon-tile.area-verwaltung { background: var(--teal); }
.icon-tile.area-beide, .icon-tile.area-entwicklung { background: var(--teal-dark); }
.icon-tile.area-spezifisch, .icon-tile.area-geplant { background: #6d8a91; }
.status { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #e6eef0; color: var(--teal-dark); }
.status-aktiv { background: var(--success-bg); color: var(--green); }
.status-entwicklung { background: var(--warning-bg); color: var(--warning); }

/* ------------------------------------------------------------ Arbeitsbereich (angemeldet) */
body.workspace { background: var(--mist); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; background: var(--night); color: #d6e3e5; display: flex; flex-direction: column; padding: 20px 14px; z-index: 20; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 4px 8px 20px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: linear-gradient(135deg, var(--green), var(--teal)); }
.brand > span:last-child { font-weight: 800; letter-spacing: .12em; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-weight: 400; letter-spacing: .02em; font-size: .75rem; color: #a9c1c5; margin-top: 3px; }
.nav-caption { font-size: .7rem; letter-spacing: .14em; font-weight: 700; color: #88a3a8; padding: 18px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: #d6e3e5; text-decoration: none; font-size: .93rem; }
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(111,191,138,.16); color: #fff; box-shadow: inset 3px 0 0 #6fbf8a; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.profile { display: flex; gap: 10px; align-items: center; padding: 14px 8px 10px; }
.profile strong { display: block; color: #fff; font-size: .9rem; }
.profile small { display: block; color: #a9c1c5; font-size: .76rem; line-height: 1.3; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--teal-dark); color: #fff; }
.logout button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 1px solid rgba(255,255,255,.14); color: #d6e3e5; border-radius: 9px; padding: 8px 10px; font: inherit; font-size: .88rem; cursor: pointer; }
.logout button:hover { background: rgba(255,255,255,.06); }
.logout svg { width: 17px; height: 17px; }
.app-shell { margin-left: 264px; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 36px); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.breadcrumb { flex: 1; font-size: .9rem; color: var(--muted); font-weight: 600; }
.breadcrumb span { margin: 0 8px; color: var(--line-strong); }
.mobile-menu { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 10px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.work-main { padding: clamp(18px, 3vw, 36px); max-width: 1240px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); }
.page-heading p { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.section-title { font-size: 1.05rem; margin: 30px 0 14px; color: var(--teal-dark); }
.welcome { border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.welcome .aurora { filter: blur(50px); opacity: .7; }
.welcome h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.welcome p { margin: 0; color: #c9d9db; max-width: 60ch; }
.welcome .eyebrow { margin-bottom: 10px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.metric:hover { border-color: var(--teal); }
.metric-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.metric-top svg { width: 18px; height: 18px; color: var(--teal); }
.metric strong { display: block; font-size: 1.8rem; margin-top: 4px; }
.metric.warn strong { color: var(--warning); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2.wide-left { grid-template-columns: 1.5fr 1fr; }
.grid-2 > .card + .card { margin-top: 0; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: var(--teal); }
.empty h3 { margin: 8px 0 4px; color: var(--ink); }
.explain ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink-soft); }
.explain li { margin-bottom: 6px; }

/* Tabellen und Filter */
.filters { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; margin-bottom: 6px; }
.filters label { min-width: 190px; }
.filters .grow { flex: 1; min-width: 220px; }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
td.wrap { white-space: normal; min-width: 180px; }
td.status-cell { white-space: normal; min-width: 110px; }
td.actions { width: 1%; text-align: right; }
td small { display: block; color: var(--muted); font-size: .8rem; }
tbody tr:hover { background: #fafcfc; }
.table-title { display: flex; gap: 12px; align-items: center; }
.table-title small { display: block; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 20px; font-size: .9rem; }
.check-grid small { display: block; color: var(--muted); }

/* Rollenbaum */
.role-tree { list-style: none; margin: 0; padding: 0; }
.role-tree li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.role-tree li.depth-0 { font-weight: 700; }
.role-tree li.depth-1 { padding-left: 24px; }
.role-tree li.depth-2 { padding-left: 48px; }
.role-tree li.depth-3 { padding-left: 72px; }
.role-tree code { font-size: .74rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.role-meta { color: var(--muted); font-size: .84rem; font-weight: 400; white-space: nowrap; }

/* ------------------------------------------------------------ Responsiv */
@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
  .grid-2 > .card + .card, .grid-2 > .stack { margin-top: 0; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .login-card { max-width: 480px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s, visibility .2s; visibility: hidden; }
  body.nav-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .app-shell { margin-left: 0; }
  .mobile-menu { display: block; }
}
@media (max-width: 560px) {
  .logo img { height: 40px; }
  .pill { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .facts div, .facts.compact div { grid-template-columns: 1fr; gap: 2px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .auth-card { padding: 24px 20px 20px; }
  .card { padding: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
}

/* Modulstart */
.launch { margin: 40px auto; text-align: center; }
.launch .icon-tile { margin: 0 auto 12px; }
.launch h2 { margin-bottom: 8px; }
.launch form { margin-top: 18px; }

/* ------------------------------------------------------------ Lehrangebot (Stammdaten) */
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.use { display: inline-block; font-size: .78rem; line-height: 1.3; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; margin: 2px 4px 2px 0; white-space: nowrap; color: var(--ink-soft); }
.use.life-neu { background: var(--success-bg); border-color: #b9d6c2; color: var(--success); }
.use.life-auslaufend { background: var(--warning-bg); border-color: #ecd49a; color: var(--warning); }
.legend .use { margin-right: 6px; }
.metric small { display: block; font-size: .76rem; margin-top: 2px; }
.subform { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.subform h3 { margin: 0 0 10px; font-size: 1rem; }
.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0; background: var(--paper); }
.disclosure summary { cursor: pointer; font-weight: 600; }
.disclosure ul { margin: 10px 0 0; padding-left: 20px; max-height: 320px; overflow: auto; }
.actions-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.narrow-left { max-width: 640px; }
tr.inactive td { opacity: .6; }
#course-table td, #course-table th { white-space: normal; }
#course-table td:first-child { min-width: 240px; }
