/* SOLCOM FK-Feedback – styles based on the approved mockup and docs/design/tokens.json */

@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 400; font-display: swap; src: url('fonts/alegreya-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 500; font-display: swap; src: url('fonts/alegreya-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 700; font-display: swap; src: url('fonts/alegreya-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy-950: #000c2c;
  --navy-900: #001c52;
  --navy-700: #0a3659;
  --blue-500: #005ea8;
  --sky-300: #73bce7;
  --mint-300: #81d9a7;
  --lime-400: #bedc00;
  --white: #ffffff;
  --cream-100: #f4f0e5;
  --steel-400: #6999c9;
  --slate: #3d5277;
  --error: #a3271a;
  --peach: #ffb38a;
  --font-display: Montserrat, 'Arial Black', sans-serif;
  --font-sans: 'Scala Sans LF', 'Scala Sans', 'Alegreya Sans', 'Segoe UI', sans-serif;
  --radius-pill: 999px;
  --radius-bubble: 28px;
  --radius-panel: 16px;
  --gradient: linear-gradient(90deg, var(--blue-500), var(--mint-300), var(--lime-400));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); min-height: 100vh; }
body.night {
  color: var(--white);
  background: radial-gradient(1200px 700px at 15% 0%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%) fixed, var(--navy-900);
}
body.day { color: var(--navy-900); background: var(--cream-100); }
body.night a { color: var(--lime-400); }
body.night a:hover { color: var(--white); }
body.day a { color: var(--blue-500); }
body.day a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--lime-400); outline-offset: 2px; }
body.day :focus-visible { outline-color: var(--blue-500); }

.wrap { margin: 0 auto; width: 100%; }
.wrap.wide { max-width: 1360px; padding-left: 32px; padding-right: 32px; }
.wrap.narrow { max-width: 820px; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Header */
.topbar { border-bottom: 2px dotted rgba(255,255,255,0.3); color: var(--white); }
body.night .topbar { background: var(--navy-950); }
body.day .topbar { background: var(--navy-900); }
body.day .topbar.admin { background: var(--navy-950); }
body.day .mainnav a { color: var(--white); }
body.day .mainnav a.active, body.day .mainnav a:hover { background: var(--white); color: var(--navy-900); }
body.day .topbar .linkbutton { color: var(--lime-400); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; min-height: 64px; }
.topbar .wrap.narrow { justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { height: 48px; width: auto; display: block; }
.brand span { color: var(--lime-400); font-size: 16px; }
.topbar .note { font-size: 13px; color: var(--steel-400); }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.mainnav a, .mainnav span { color: var(--white); text-decoration: none; padding: 10px 18px; border-radius: var(--radius-bubble); font-size: 16px; font-weight: 700; }
body.night .mainnav a { color: var(--white); }
body.night .mainnav a.active, body.night .mainnav a:hover { background: var(--white); color: var(--navy-900); }
.mainnav .soon { opacity: 0.4; cursor: default; }
.user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--steel-400); }
.user form { margin: 0; }
.linkbutton { font: inherit; background: none; border: none; color: var(--lime-400); cursor: pointer; padding: 8px 4px; font-weight: 600; }
.linkbutton:hover { color: var(--white); }

/* Typography */
.display, h1.display, h2.display {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; font-weight: 800; margin: 0; line-height: 1.25;
}
h1.display { font-size: 28px; }
h2.display { font-size: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
body.night .eyebrow, .muted { color: var(--steel-400); }
body.day .eyebrow, body.day .muted { color: var(--slate); }
.lead { margin: 0; font-size: 15px; line-height: 1.6; }
.small { font-size: 13px; line-height: 1.55; }
p { margin: 0; }

/* Buttons */
.btn {
  font: inherit; font-size: 15px; font-weight: 700; display: inline-block; text-align: center; text-decoration: none;
  padding: 13px 24px; border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer;
  transition: padding 0.15s ease, margin 0.15s ease;
}
.btn.primary { background: var(--lime-400); color: var(--navy-900) !important; }
.btn.primary:hover { background: var(--white); }
body.day .btn.primary:hover { background: var(--navy-900); color: var(--white) !important; }
.btn.secondary { background: transparent; }
body.night .btn.secondary { border-color: var(--white); color: var(--white); }
body.night .btn.secondary:hover { background: var(--white); color: var(--navy-900); }
body.day .btn.secondary { border-color: var(--navy-900); color: var(--navy-900); }
body.day .btn.secondary:hover { background: var(--navy-900); color: var(--white); }
.btn.small { font-size: 14px; padding: 10px 16px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea, input.pill, select.pill {
  font: inherit; font-weight: 400; font-size: 15px; padding: 12px 14px; border: 2px solid var(--lime-400);
  border-radius: var(--radius-pill); color: var(--navy-900); background: var(--white);
}
.field textarea { border-radius: 20px; resize: vertical; line-height: 1.5; }
.compact { padding: 9px 12px !important; font-size: 14px !important; }

/* Cards */
.card { border-radius: var(--radius-bubble); padding: 32px; }
body.night .card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); }
body.day .card.dotted { border: 2px dotted var(--navy-900); background: transparent; }
.alert { border-radius: var(--radius-panel); padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.alert.error { background: rgba(163,39,26,0.12); border: 1px solid var(--error); }
body.night .alert.error { background: rgba(255,120,100,0.15); border-color: #ff8a7a; color: var(--white); }
.alert.ok { background: rgba(190,220,0,0.12); border: 1px solid rgba(190,220,0,0.55); }
.alert.info { background: rgba(0,94,168,0.08); border: 1px solid var(--blue-500); }
/* Admin preview "Ansicht als …": same look on night and day pages, never printed */
.alert.preview { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; background: var(--peach); color: var(--navy-900); border: 0; border-radius: var(--radius-bubble); padding: 14px 22px; margin-bottom: 8px; }
.alert.preview strong { font-size: 15px; }
.alert.preview span { flex: 1 1 260px; }
body .alert.preview a { color: var(--navy-900); font-weight: 700; }
@media print { .alert.preview { display: none; } }
.alert.anon { background: rgba(129,217,167,0.3); border: 1px solid rgba(0,28,82,0.2); display: flex; gap: 14px; align-items: flex-start; }
.alert.anon svg { flex: 0 0 auto; margin-top: 1px; }

/* Login */
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.login-box .card { display: flex; flex-direction: column; gap: 20px; padding: 36px; }
.login-box h1 { font-size: 26px; }
.login-box .field input { width: 100%; }
.login-box .hint { text-align: center; color: var(--steel-400); }

/* Admin overview */
.admin-main { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pagehead h1 { font-size: 30px; margin-top: 4px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { border-radius: var(--radius-bubble); padding: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); }
.kpi .label, .kpi .hint { color: var(--steel-400); font-size: 13px; }
.kpi .hint { font-size: 12px; margin-top: 4px; }
.kpi .value { font-size: 32px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.due { background: rgba(190,220,0,0.08); border: 1px solid rgba(190,220,0,0.55); border-radius: var(--radius-bubble); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.due-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--lime-400); }
.due-head h2 { font-size: 16px; color: var(--lime-400); }
.due-list { display: flex; flex-wrap: wrap; gap: 12px; }
.due-link { float: right; font-size: 13px; font-weight: 600; text-decoration: none; padding: 2px 0 2px 12px; }
.due-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(190,220,0,0.55); border-radius: var(--radius-panel); padding: 12px 16px; flex: 1 1 280px; }
.due-item strong { display: block; font-size: 14px; }
.due-item span { font-size: 12px; color: var(--steel-400); }
.due-item span.last { display: block; margin-top: 4px; font-size: 13px; color: var(--white); }
.due-item span.last b { font-weight: 700; }
.due-item.overdue { border-color: var(--peach); background: rgba(255,179,138,0.1); box-shadow: inset 4px 0 0 var(--peach); }
.overdue-badge { font-style: normal; font-size: 11px; font-weight: 700; color: var(--navy-900); background: var(--peach); padding: 1px 8px; border-radius: var(--radius-pill); margin-left: 4px; white-space: nowrap; }
.panel { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-bubble); overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--steel-400); }
.filters label.grow { flex: 1 1 240px; }
.filters select { min-width: 180px; }
.tablewrap { overflow-x: auto; }
table.rounds { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 1080px; }
table.rounds thead tr { background: rgba(255,255,255,0.07); text-align: left; color: var(--steel-400); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
table.rounds th { padding: 12px; font-weight: 600; }
table.rounds td { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,0.2); vertical-align: middle; }
table.rounds th:first-child, table.rounds td:first-child { padding-left: 20px; }
table.rounds th:last-child, table.rounds td:last-child { padding-right: 20px; text-align: right; }
table.rounds .sub { font-size: 12px; color: var(--steel-400); }
table.rounds .nowrap { white-space: nowrap; }
.phase { display: inline-flex; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-bubble); white-space: nowrap; color: var(--navy-900); }
.phase.planned { background: var(--sky-300); }
.phase.running { background: var(--lime-400); }
.phase.completed { background: var(--mint-300); }
.phase.failed { background: var(--peach); }
.meter { display: flex; align-items: center; gap: 10px; }
.meter .bar { flex: 1; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; min-width: 80px; }
.meter .bar div { height: 8px; background: var(--gradient); }
.meter span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.extend { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.extend input { padding: 7px 10px; font-size: 13px; border-radius: var(--radius-pill); border: 2px solid var(--lime-400); }
.empty { padding: 24px 20px; color: var(--steel-400); }
.footnote { font-size: 12px; color: var(--steel-400); }

/* Questionnaire */
.q-main { padding-top: 32px; padding-bottom: 48px; }
.q-card { display: flex; flex-direction: column; gap: 22px; }
.q-card.start { padding: 36px; }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate); }
.progress .track { height: 6px; background: rgba(0,28,82,0.2); border-radius: 3px; overflow: hidden; }
.progress .fill { height: 6px; background: var(--gradient); transition: width 0.2s ease; }
fieldset.consent { border: 2px dotted var(--navy-900); border-radius: var(--radius-bubble); margin: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
fieldset.consent legend { padding: 0 8px; font-size: 15px; font-weight: 700; }
.radio { display: flex; gap: 12px; align-items: center; font-size: 15px; min-height: 44px; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--navy-900); margin: 0; }
.error-text { font-size: 14px; font-weight: 700; color: var(--error); }
fieldset.statement { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.statement legend { font-size: 16px; line-height: 1.5; font-weight: 500; padding: 0; margin-bottom: 12px; }
fieldset.statement.missing legend { color: var(--error); }
.q-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); border-top: 1px solid rgba(0,28,82,0.2); padding-top: 14px; gap: 12px; flex-wrap: wrap; }
.navrow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.savestate { font-size: 12px; color: var(--slate); min-height: 1em; }

@media (max-width: 640px) {
  .wrap.wide { padding-left: 16px; padding-right: 16px; }
  .wrap.narrow { padding-left: 16px; padding-right: 16px; }
  .card, .q-card.start { padding: 22px; }
  h1.display { font-size: 22px; }
  h2.display { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Answer scale (agreed 13.11.2026): legend once per topic, buttons only show 1–6 and "nicht einschätzbar" */
.scale-legend, .scale7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.scale-legend { position: sticky; top: 0; z-index: 1; background: var(--cream-100); padding: 8px 0; }
/* Always exactly two lines per label, centered over its button column. */
.scale-legend div {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 12.5px; line-height: 1.3; font-weight: 500; color: var(--slate);
}
.scale-legend span { white-space: nowrap; }
.scale7 button {
  font: inherit; font-size: 15px; font-weight: 600; height: 36px; padding: 0 4px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--lime-400); background: var(--white); color: var(--navy-900); cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.scale7 button.na { font-size: 12px; font-weight: 500; line-height: 1.1; }
.scale7 button:hover { border-color: var(--navy-900); }
.scale7 button[aria-pressed="true"] { background: var(--lime-400); border-color: var(--navy-900); }
.legend-list { display: none; }
@media (max-width: 640px) {
  .scale-legend { display: none; }
  .legend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; padding: 12px 14px; background: rgba(0,28,82,0.06); border-radius: var(--radius-panel); font-size: 13px; list-style: none; }
  .scale7 { gap: 5px; }
  .scale7 button { height: 40px; font-size: 15px; border-radius: 12px; }
  .scale7 button.na { font-size: 10.5px; }
}

/* Report (after the approved mockup) */
.report-main { max-width: 1100px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.report-main .card { padding: 28px 32px; }
.notice { display: flex; flex-direction: column; gap: 4px; border-width: 2px; }
.notice strong { font-size: 16px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.report-head { display: flex; flex-direction: column; gap: 22px; }
.report-head h1 { font-size: 32px; margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: rgba(0,28,82,0.06); border-radius: var(--radius-panel); padding: 14px 16px; }
.tile .label, .dim-values .label { font-size: 12px; color: var(--slate); }
.tile .value { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .value.scale-note { font-size: 15px; font-weight: 600; line-height: 1.35; margin-top: 6px; }
.section-title { font-size: 18px !important; }
.dim-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.dim-tile { border: 1px solid rgba(0,28,82,0.2); border-radius: var(--radius-panel); padding: 16px; }
.dim-name { font-size: 14px; font-weight: 700; min-height: 40px; }
.dim-values { display: flex; gap: 16px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.dim-values .v { font-size: 22px; font-weight: 600; }
.dim-values .v.team { font-weight: 700; }
.dim-values .v.superior { color: var(--blue-500); }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.report-main .highlight { padding: 24px; }
.highlight h2 { font-size: 16px; margin-bottom: 4px; }
.highlight .sub { font-size: 12px; color: var(--slate); margin-bottom: 14px; }
.hl-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(0,28,82,0.2); font-size: 14px; }
.hl-row strong { font-variant-numeric: tabular-nums; }
.compare-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; align-items: center; margin-bottom: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; }
.lg-team { width: 12px; height: 12px; border-radius: 50%; background: var(--navy-900); }
.lg-band { width: 28px; height: 8px; border-radius: 4px; background: rgba(0,28,82,0.18); }
.lg-self { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--navy-900); background: var(--lime-400); }
.lg-superior { width: 10px; height: 10px; background: var(--blue-500); transform: rotate(45deg); }
.dim-block { margin-top: 18px; }
.dim-head, .comp-row { display: flex; gap: 16px; align-items: center; }
.dim-head { background: var(--navy-900); color: var(--white); border-radius: var(--radius-panel); padding: 10px 14px; align-items: flex-end; }
.dim-head .name { font-size: 15px; font-weight: 700; }
.dim-head .ticks { flex: 1; display: flex; justify-content: space-between; font-size: 12px; }
.dim-head .val { font-size: 12px; }
.dim-head .name, .comp-row .name { flex: 0 0 340px; }
.dim-head .val, .comp-row .val { flex: 0 0 56px; text-align: right; font-variant-numeric: tabular-nums; }
.comp { border-bottom: 1px solid rgba(0,28,82,0.2); }
.comp-row { padding: 0 14px; min-height: 44px; cursor: pointer; list-style: none; border-radius: 12px 12px 0 0; }
.comp-row::-webkit-details-marker { display: none; }
.comp-row:hover { background: rgba(0,94,168,0.08); }
.comp[open] > .comp-row { background: rgba(0,94,168,0.14); }
.comp-row .name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.comp-row .val { font-size: 14px; font-weight: 600; }
.chev { flex: 0 0 auto; color: var(--slate); transition: transform 0.15s ease; }
.comp[open] .chev { transform: rotate(90deg); }
.track { flex: 1; position: relative; height: 22px; display: block; min-width: 120px; }
.track .axis { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(0,28,82,0.2); }
.track .band { position: absolute; top: 7px; height: 8px; border-radius: 4px; background: rgba(0,28,82,0.18); }
.track .m-team, .track .m-self, .track .m-superior { position: absolute; z-index: 1; }
.track .m-team { top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--navy-900); }
.track .m-self { top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2.5px solid var(--navy-900); background: var(--lime-400); box-sizing: border-box; }
.track .m-superior { top: 6px; width: 10px; height: 10px; margin-left: -5px; background: var(--blue-500); transform: rotate(45deg); }
.st-text { font-size: 13px; line-height: 1.4; }
.st-meta { font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; margin-top: 4px; }
.comments { display: flex; flex-direction: column; gap: 18px; }
.comment-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.comment-col { display: flex; flex-direction: column; gap: 10px; }
.comment-col h3 { margin: 0; font-size: 14px; font-weight: 700; }
.comment-col h3 .muted { font-weight: 400; }
.comment-col blockquote { margin: 0; background: rgba(0,28,82,0.06); border-radius: var(--radius-panel); padding: 12px 16px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.footnote-day { font-size: 12px; color: var(--slate); line-height: 1.6; }

/* Statement details: grid with equal row heights so the connecting lines
   (SVG with % coordinates) always meet the markers. */
.comp-detail {
  display: grid; grid-template-columns: 340px minmax(0, 1fr) 56px; grid-template-rows: repeat(var(--rows), 1fr);
  column-gap: 16px; background: rgba(0,94,168,0.08); border-left: 4px solid var(--blue-500);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel); margin-bottom: 10px; padding: 4px 14px 8px 10px;
}
.comp-detail .chart { grid-column: 2; grid-row: 1 / -1; position: relative; }
.comp-detail svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.comp-detail svg.lines polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.line-team { stroke: var(--navy-900); stroke-width: 2.5; }
.line-self { stroke: var(--navy-900); stroke-width: 2; stroke-dasharray: 5 4; }
.line-superior { stroke: var(--blue-500); stroke-width: 2; }
.st-name, .st-track, .st-val { padding: 8px 0; display: flex; align-items: center; }
.st-name { grid-column: 1; flex-direction: column; align-items: stretch; justify-content: center; }
.st-track { grid-column: 2; position: relative; z-index: 1; }
.st-val { grid-column: 3; justify-content: flex-end; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sep { border-top: 1px solid rgba(0,28,82,0.15); }

@media screen and (max-width: 760px) {
  .report-main { padding: 20px 16px; }
  .report-main .card { padding: 20px; }
  .dim-head, .comp-row { flex-wrap: wrap; gap: 6px 12px; }
  .dim-head .name, .comp-row .name { flex: 1 0 100%; }
  .comp-row { padding: 8px 10px; }
  /* Phone: name above its scale, no connecting lines. */
  .comp-detail { display: block; }
  .comp-detail .chart { display: none; }
  .st-track, .st-val { border-top: none; padding: 2px 0; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body.day { background: #fff; }
  .topbar, .no-print, .alert.info.small { display: none !important; }
  .report-main { padding: 0; max-width: none; gap: 14px; }
  .report-main .card { padding: 16px 18px; break-inside: avoid; }
  .compare, .comments { break-inside: auto !important; }
  .comp { break-inside: avoid; }
  .comp-row { cursor: default; }
  .dim-head .name, .comp-row .name { flex-basis: 42%; }
  .comp-detail { grid-template-columns: 42% minmax(0, 1fr) 44px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.linkbutton.test-action { color: var(--peach); }

/* Master data and planning */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.leader-list { flex: 1 1 320px; min-width: 0; }
.detail { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.list-search { padding: 16px; }
.filters-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--steel-400); }
.leader-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.2); text-decoration: none; }
body.night .leader-item { color: var(--white); }
.leader-item:hover { background: rgba(255,255,255,0.06); }
.leader-item.selected { background: rgba(190,220,0,0.16); }
.leader-item .who { flex: 1; display: flex; flex-direction: column; }
.leader-item .who strong { font-size: 14px; font-weight: 600; }
.leader-item .who span, .leader-item .size { font-size: 12px; color: var(--steel-400); }
.detail-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-head h2 { font-size: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-grid .field input, .form-grid .field select { font-size: 14px; padding: 10px 12px; width: 100%; }
/* Searchable select (admin.js, select[data-search]) */
.combo { position: relative; }
.combo ul { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: var(--white); color: var(--navy-900); border: 2px solid var(--lime-400); border-radius: 18px; box-shadow: 0 16px 36px rgba(0,0,0,.4); font-weight: 400; }
.combo li { padding: 9px 12px; border-radius: 12px; font-size: 14px; cursor: pointer; }
.combo li.active { background: rgba(190,220,0,.35); }
.combo li[aria-selected="true"] { font-weight: 700; }
.combo li[aria-disabled="true"] { color: #8a96ab; cursor: default; }
.combo li.none { color: #8a96ab; cursor: default; }
.facts { display: flex; flex-wrap: wrap; gap: 32px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.panel-head h3 { margin: 0; font-size: 16px; }
table.team-table { min-width: 620px; }
.linkbutton.danger { color: #ffb3a6; font-weight: 500; }
.add-member { border-top: 1px solid rgba(255,255,255,0.2); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.add-member h4 { margin: 0; font-size: 14px; color: var(--lime-400); }
.perspectives { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.persp { border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.persp .eyebrow { font-size: 12px; }
.member-box { border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-panel); overflow: hidden; }
.member-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255,255,255,0.07); font-size: 13px; font-weight: 600; }
.member { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 14px; cursor: pointer; }
.member input, .check input { width: 18px; height: 18px; accent-color: var(--lime-400); margin: 0; }
.member .n { flex: 1 1 160px; }
.member .e { flex: 1 1 200px; color: var(--steel-400); font-size: 13px; }
.member .note { color: var(--steel-400); font-size: 12px; }
.member-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.2); }
.member-add select { font-size: 14px; padding: 10px 12px; }
.check { display: flex; gap: 12px; align-items: center; font-size: 14px; min-height: 28px; cursor: pointer; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 14px; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: rgba(255,255,255,0.2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--lime-400); margin-top: 3px; }
.timeline .date { font-size: 12px; color: var(--steel-400); font-variant-numeric: tabular-nums; }
.timeline .text { font-size: 14px; font-weight: 500; }
.alert.threshold { background: rgba(115,188,231,0.12); border: 1px solid var(--sky-300); border-radius: var(--radius-bubble); padding: 18px 20px; font-size: 13px; line-height: 1.5; }

/* Organigramm (/admin/organigramm) – approved mockup docs/mockup/Organigramm-Mockup.html */
body:has(.og-page) { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.og-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.og-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.og-bar h1 { font-size: 22px; }
.og-bar .hint { color: var(--steel-400); font-size: 14px; flex: 1 1 260px; }
.og-searchbox { position: relative; }
.og-search { font: inherit; font-size: 15px; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: var(--white); width: 240px; }
.og-search::placeholder { color: var(--steel-400); }
.og-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--navy-950); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; overflow: hidden; }
.og-results button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--white); background: none; border: 0; padding: 9px 14px; cursor: pointer; }
.og-results button:hover, .og-results button:focus-visible { background: rgba(190,220,0,.16); }
.og-results small { color: var(--steel-400); }

.og-body { flex: 1; min-height: 0; display: flex; }
.og-pool { flex: 0 0 220px; border-right: 1px solid rgba(255,255,255,.12); padding: 16px 14px; overflow-y: auto; }
.og-pool h3 { margin: 0 0 4px; font-size: 15px; }
.og-pool p { margin: 0 0 12px; font-size: 13px; color: var(--steel-400); }
.og-pool .list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: 12px; }
.og-pool .og-card { width: 100%; }
.og-allset { font-size: 13px; color: var(--steel-400); }
@media (max-width: 760px) { .og-pool { display: none; } }

.og-canvas { flex: 1; min-width: 0; overflow: auto; position: relative; cursor: grab; }
.og-canvas.panning { cursor: grabbing; }
.og-board { position: relative; display: inline-flex; flex-direction: column; gap: 46px; padding: 32px 48px 180px; min-width: 100%; }
.og-level { position: relative; display: flex; flex-wrap: wrap; gap: 10px; width: max-content; max-width: calc(7 * 196px + 6 * 10px); }
.og-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.og-lines path { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 2; }
.og-lines path.active { stroke: var(--lime-400); }
.og-empty { color: var(--steel-400); font-size: 15px; }

.og-card { position: relative; width: 196px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-top: 4px solid var(--dept); border-radius: 14px; padding: 10px 12px 0; cursor: pointer; touch-action: none; user-select: none; display: flex; flex-direction: column; color: var(--white); }
.og-card:hover { background: rgba(255,255,255,.13); }
.og-card.open { border-color: var(--lime-400); border-top-color: var(--dept); box-shadow: 0 0 0 1px var(--lime-400); }
.og-card.found { animation: og-pulse 1.4s ease 2; }
@keyframes og-pulse { 50% { box-shadow: 0 0 0 6px rgba(190,220,0,.5); } }
@media (prefers-reduced-motion: reduce) { .og-card.found { animation: none; outline: 3px solid var(--lime-400); } }
.og-card .top { display: flex; align-items: center; gap: 8px; }
.og-avatar { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--navy-900); background: var(--dept); }
.og-card .n { font-weight: 700; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.og-card .meta { font-size: 12px; color: var(--steel-400); margin-top: 6px; line-height: 1.45; }
.og-card .meta b, .og-card .fb b { color: var(--white); font-weight: 500; }
.og-card .fb { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; }
.og-card .foot { display: flex; justify-content: space-between; align-items: center; margin: 8px -12px 0; padding: 4px 8px 4px 12px; border-top: 1px solid rgba(255,255,255,.14); min-height: 30px; font-size: 12px; color: var(--steel-400); }
.og-card .foot .cnt { font-weight: 700; color: var(--white); }
.og-card .foot .cnt::after { content: " \25BE"; color: var(--steel-400); }
.og-card.open .foot .cnt::after { content: " \25B4"; color: var(--lime-400); }
.og-card .btns { display: flex; align-items: center; gap: 2px; }
.og-card .plus { font: inherit; font-size: 15px; font-weight: 800; line-height: 1; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(190,220,0,.6); background: none; color: var(--lime-400); cursor: pointer; padding: 0; }
.og-card .plus:hover { background: var(--lime-400); color: var(--navy-900); }
.og-card .more { font: inherit; font-weight: 800; letter-spacing: .1em; color: var(--white); background: none; border: 0; border-radius: 8px; padding: 0 8px 4px; cursor: pointer; }
.og-card .more:hover { background: rgba(255,255,255,.15); }
.og-badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-pill); color: var(--navy-900); white-space: nowrap; }
.og-badge.due { background: var(--peach); }
.og-badge.run { background: var(--lime-400); }
.og-badge.plan, .og-badge.new { background: var(--sky-300); }
.og-badge.admin { background: var(--peach); vertical-align: 2px; margin-left: 6px; }
.og-admin { border-top: 1px dotted rgba(255,255,255,.25); padding-top: 10px; width: 100%; }
.og-admin p { margin: 0; }

.og-ctrl { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 2px; background: var(--navy-950); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-pill); padding: 4px 6px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.og-ctrl button { font: inherit; font-size: 18px; font-weight: 700; color: var(--white); background: none; border: 0; border-radius: var(--radius-pill); width: 38px; height: 34px; cursor: pointer; }
.og-ctrl button:hover { background: rgba(255,255,255,.14); }
.og-ctrl span { font-size: 14px; min-width: 50px; text-align: center; color: var(--white); }
.og-ctrl i { width: 1px; height: 22px; background: rgba(255,255,255,.25); margin: 0 4px; }
body.og-has-changes .og-ctrl { bottom: 130px; }

.og-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -40%) rotate(-2deg); box-shadow: 0 14px 32px rgba(0,0,0,.5); background: var(--navy-700); opacity: .96; }
.og-dragging, .og-dragging * { cursor: grabbing !important; }
.drag-src { opacity: .3; }
.og-card.drop-ok, .og-pool .list.drop-ok { outline: 3px solid var(--lime-400); outline-offset: 3px; background: rgba(190,220,0,.14); }
.og-card.drop-bad, .og-pool .list.drop-bad { outline: 3px solid var(--peach); outline-offset: 3px; }
.og-tip { position: fixed; z-index: 1001; pointer-events: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--navy-950); border: 1px solid rgba(255,255,255,.3); transform: translate(16px, 20px); max-width: 280px; }
.og-tip.ok { color: var(--lime-400); }
.og-tip.bad { color: var(--peach); }

.og-changes { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy-950); border-top: 3px solid var(--lime-400); box-shadow: 0 -10px 30px rgba(0,0,0,.4); color: var(--white); }
.og-changes .in { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 12px 32px; }
.og-changes h3 { margin: 0; font-size: 16px; white-space: nowrap; }
.og-changes ol { flex: 1 1 400px; margin: 0; padding-left: 20px; max-height: 70px; overflow-y: auto; font-size: 14px; }
.og-changes li small { color: var(--peach); }
.og-changes .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.og-error { flex-basis: 100%; margin: 0; color: var(--peach); font-weight: 600; }

.og-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 100vw); z-index: 60; background: var(--navy-900); border-left: 1px solid rgba(255,255,255,.25); box-shadow: -10px 0 30px rgba(0,0,0,.4); padding: 24px; overflow-y: auto; transform: translateX(105%); transition: transform .2s ease; color: var(--white); }
.og-drawer.open { transform: none; }
.og-drawer h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; margin: 4px 0 2px; overflow-wrap: anywhere; }
.og-drawer .sub { color: var(--steel-400); }
.og-drawer .close { position: absolute; top: 14px; right: 14px; font: inherit; font-size: 22px; background: none; border: 0; color: var(--white); cursor: pointer; }
.og-drawer dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; margin: 18px 0; }
.og-drawer dt { color: var(--steel-400); }
.og-drawer dd { margin: 0; }
.og-drawer .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.og-access { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.og-access h3 { margin: 0; font-size: 16px; }
.og-access p { margin: 0; }
.og-access-result { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: 100%; }
.og-link { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; width: 100%; }
.og-link input { font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--lime-400); background: var(--navy-950); color: var(--white); width: 100%; }
.og-edit { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.og-edit summary { cursor: pointer; font-weight: 700; color: var(--lime-400); }
.og-form { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.og-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-top: 8px; }
.og-form input, .og-form select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: var(--navy-950); color: var(--white); }
.og-form-error { color: var(--peach); font-size: 14px; margin: 10px 0 0; }

.og-toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 70; background: var(--lime-400); color: var(--navy-900); font-weight: 700; padding: 10px 18px; border-radius: var(--radius-pill); box-shadow: 0 8px 24px rgba(0,0,0,.35); }

/* Fragebögen (/admin/frageboegen) – approved mockup screen "Fragebögen verwalten" */
.qe-main { padding-bottom: 140px; }
.qe-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.2); }
.qe-tabs a { padding: 10px 18px; border-radius: 14px 14px 0 0; text-decoration: none; font-weight: 700; color: var(--white) !important; border: 1px solid transparent; border-bottom: 0; }
.qe-tabs a.active { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: var(--lime-400) !important; }
.qe-version { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; background: rgba(115,188,231,.1); border: 1px solid rgba(115,188,231,.4); border-radius: var(--radius-panel); padding: 12px 18px; }
.qe-version label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.qe-version select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: var(--navy-950); color: var(--white); }
.qe-version .muted { flex: 1 1 320px; color: var(--steel-400); }
.qe-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .qe-layout { grid-template-columns: 1fr; } }
.qe-list { position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow-y: auto; }
.qe-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; font-size: 13px; color: var(--steel-400); border-bottom: 1px solid rgba(255,255,255,.18); }
.qe-dim { padding: 12px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-300); }
.qe-item { display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.1); }
.qe-item.selected { background: rgba(190,220,0,.16); }
.qe-item.inactive .n { color: var(--steel-400); text-decoration: line-through; }
.qe-pick { flex: 1; display: flex; justify-content: space-between; gap: 10px; text-align: left; font: inherit; color: var(--white); background: none; border: 0; padding: 10px 6px 10px 16px; cursor: pointer; }
.qe-pick .n { font-size: 14px; font-weight: 600; }
.qe-pick .s { font-size: 12px; color: var(--steel-400); white-space: nowrap; }
.qe-move { display: inline-flex; gap: 2px; padding-right: 8px; }
.qe-move button { font: inherit; font-size: 13px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: none; color: var(--white); cursor: pointer; }
.qe-move button:disabled { opacity: .25; cursor: default; }
.qe-move button:not(:disabled):hover { background: rgba(255,255,255,.15); }
.qe-empty { margin: 4px 16px 10px; font-size: 13px; color: var(--steel-400); }
.qe-item { cursor: grab; user-select: none; }
.qe-handle { flex: 0 0 auto; padding: 8px 2px 8px 10px; color: var(--steel-400); font-weight: 800; letter-spacing: -2px; cursor: grab; touch-action: none; border-radius: 6px; }
.qe-handle:hover, .qe-handle:focus-visible { color: var(--lime-400); }
.qe-item .qe-pick { padding-left: 6px; }
.qe-del { flex: 0 0 auto; font: inherit; font-size: 18px; line-height: 1; width: 28px; height: 28px; margin-right: 8px; border-radius: 8px; border: 0; background: none; color: var(--steel-400); cursor: pointer; }
.qe-del:hover, .qe-del:focus-visible { background: rgba(255,179,138,.18); color: var(--peach); }
.qe-stmt-head .qe-handle { padding: 2px 4px; }
.qe-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(12px, -50%) rotate(-2deg); background: var(--navy-700); color: var(--white); border: 2px solid var(--lime-400); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.45); max-width: 320px; }
.qe-dropline { position: fixed; z-index: 999; height: 3px; background: var(--lime-400); border-radius: 3px; pointer-events: none; box-shadow: 0 0 0 2px rgba(190,220,0,.25); }
.qe-dragging, .qe-dragging * { cursor: grabbing !important; }

/* Confirmation dialog (public/dialog.js) instead of window.confirm() */
.fk-dialog { border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-bubble); padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--navy-900); color: var(--white); box-shadow: 0 24px 60px rgba(0,0,0,.55); font-family: var(--font-sans); }
.fk-dialog::backdrop { background: rgba(0,12,44,.72); backdrop-filter: blur(2px); }
.fk-dialog form { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 24px; margin: 0; }
.fk-dialog h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 19px; margin: 0; line-height: 1.3; }
.fk-dialog-text { margin: 0; font-size: 15px; line-height: 1.55; }
.fk-dialog-tip { margin: 0; font-size: 14px; line-height: 1.5; background: rgba(129,217,167,.14); border: 1px solid rgba(129,217,167,.55); border-radius: 16px; padding: 12px 14px; }
.fk-dialog-tip strong { color: var(--mint-300); }
.fk-dialog-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.fk-dialog .btn.secondary { border-color: var(--white); color: var(--white); background: transparent; }
.fk-dialog .btn.secondary:hover { background: var(--white); color: var(--navy-900); }
.btn.danger { background: var(--peach); color: var(--navy-900) !important; border-color: var(--peach); }
.btn.danger:hover { background: var(--white); border-color: var(--white); }

/* Rollen & Sichtbarkeit (/admin/rollen) */
.roles-admins .panel-head { flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid rgba(255,255,255,.12); }
.roles-admins .panel-head:first-child { border-top: 0; }
.roles-admin-list, .roles-requests { list-style: none; margin: 0; padding: 0 24px 12px; }
.roles-admin-list li, .roles-requests li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.roles-admin-list li:first-child, .roles-requests li:first-child { border-top: 0; }
.roles-admin-list form, .roles-requests form { margin: 0; }
.roles-requests .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.roles-admins .empty { padding: 0 24px 16px; margin: 0; }
.roles-history { padding: 4px 24px 18px; font-size: 13px; color: var(--steel-400); }
.roles-history summary { cursor: pointer; font-weight: 700; color: var(--white); }
.roles-history ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
table.roles-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.roles-table th, .roles-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid rgba(255,255,255,.12); }
.roles-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--steel-400); border-top: 0; white-space: nowrap; }
.roles-table tbody th[scope="row"] { font-weight: 600; width: 24%; }
.roles-table tr.group th { padding-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-300); border-top: 0; }
.perm { line-height: 1.4; }
.perm .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.perm.yes .dot { background: var(--lime-400); }
.perm.part .dot { background: var(--sky-300); }
.perm.no { color: var(--steel-400); }
.perm.no .dot { background: transparent; border: 2px solid var(--steel-400); width: 9px; height: 9px; box-sizing: border-box; }
.perm.later { color: var(--steel-400); font-style: italic; }
.perm.later .dot { background: transparent; border: 2px dashed var(--steel-400); box-sizing: border-box; }
.roles-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 14px 24px 18px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.12); }
.roles-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.roles-notes .card { padding: 22px 24px; }
.roles-notes h2 { margin: 0 0 8px; font-size: 16px; color: var(--lime-400); }
.roles-notes p { margin: 0; font-size: 14px; line-height: 1.55; }
.qe-drag-src { opacity: .35; }
.qe-detail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.qe-detail .card { padding: 26px; }
.qe-comp-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.qe-comp-head .grow, .qe-free-row .grow { flex: 1 1 240px; }
.qe-check { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 12px; }
.qe-check input { width: 20px; height: 20px; accent-color: var(--lime-400); }
.qe-stmt { border-top: 1px dotted rgba(255,255,255,.3); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.qe-stmt-head { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--lime-400); }
.qe-stmt-head > span:first-child { flex: 1; }
.qe-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.qe-free-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.qe-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy-950); border-top: 3px solid var(--lime-400); box-shadow: 0 -10px 30px rgba(0,0,0,.4); color: var(--white); }
.qe-savebar .in { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 12px 32px; }
.qe-savebar label { display: flex; align-items: center; gap: 8px; font-size: 14px; flex: 1 1 340px; }
.qe-savebar input { flex: 1; font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: var(--navy-900); color: var(--white); }
.qe-error { flex-basis: 100%; margin: 0; color: var(--peach); font-weight: 600; }
.qe-preview { padding-bottom: 48px; }
.qe-views { display: flex; flex-wrap: wrap; gap: 8px; }
.qe-views a { padding: 6px 14px; border-radius: var(--radius-pill); border: 2px solid var(--navy-900); text-decoration: none; font-weight: 700; font-size: 14px; }
.qe-views a[aria-current="true"] { background: var(--navy-900); color: var(--white) !important; }
.qe-pv-comp h2 { font-size: 18px; margin: 0 0 6px; }
.qe-pv-comp ol, .qe-preview ol { margin: 0; padding-left: 22px; line-height: 1.55; }
.qe-pv-comp + .qe-pv-comp { border-top: 1px dotted var(--navy-900); padding-top: 14px; }
