/* Puls-Hub · Corporate Design Schlagerpuls (Dunkelrot #8B0000, Lato) */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lato-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lato-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/lato-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lato-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lato-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/lato-latin-900-normal.woff2) format("woff2"); }

:root {
  /* Marke */
  --accent: #8b0000;          /* Schlagerpuls-Rot */
  --accent-hover: #6e0000;
  --accent-ink: #fff;
  --accent-soft: #f8e9e9;
  --accent-line: #e9c4c4;
  /* Flächen und Text (warmes Neutral passend zum Rot) */
  --bg: #f6f4f3; --panel: #fff; --panel-2: #fbfaf9;
  --ink: #231f1f; --ink-2: #4a4343; --muted: #716968; --line: #e7e1df; --line-strong: #d7cfcc;
  /* Status */
  --blue: #1d5fbf; --green: #1c7a3d; --amber: #a35f00; --red: #b3261e; --violet: #6b3fb5; --grey: #7a7271;
  --radius: 10px; --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(40, 10, 10, .05), 0 6px 20px rgba(40, 10, 10, .05);
  --shadow-lg: 0 10px 40px rgba(40, 10, 10, .18);
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar: 62px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: 26px; font-weight: 900; letter-spacing: -.01em; margin: 0 0 6px; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
p { margin: 0 0 10px; }
ul, ol { padding-left: 20px; margin: 0 0 10px; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
pre { white-space: pre-wrap; }
.muted { color: var(--muted); }
small, .small { font-size: 13px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* ---------- Rahmen ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar); display: flex; align-items: center; gap: 14px; padding: 0 22px; background: #fff; border-bottom: 3px solid var(--accent); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 900; font-size: 18px; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand .hubname { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--accent); font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.brand .wordmark { color: var(--accent); font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(139,0,0,.5); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139,0,0,.45); } 70% { box-shadow: 0 0 0 9px rgba(139,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(139,0,0,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } * { transition: none !important; } }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.topbar-right a { color: var(--ink-2); padding: 7px 10px; border-radius: var(--radius-sm); }
.topbar-right a:hover { background: var(--bg); text-decoration: none; }
.topbar-right .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; margin-right: 6px; }
.topbar-right .user { display: inline-flex; align-items: center; }
.navtoggle { display: none; background: none; border: 0; color: var(--ink); font-size: 22px; width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; }
.navtoggle:hover { background: var(--bg); }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px 40px; position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto; }
.navgroup { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 18px 12px 6px; }
.navgroup:first-child { margin-top: 4px; }
.sidebar a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14.5px; }
.sidebar a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.sidebar a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.sidebar a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.sidebar a.active svg { opacity: 1; }
.sidebar a.active::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.main { padding: 28px 32px 72px; max-width: 1320px; width: 100%; }
.backdrop { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: var(--topbar); left: 0; bottom: 0; width: 280px; height: auto; z-index: 35; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.navopen .sidebar { transform: none; }
  body.navopen .backdrop { display: block; position: fixed; inset: var(--topbar) 0 0 0; background: rgba(35,31,31,.35); z-index: 34; }
  .navtoggle { display: inline-grid; place-items: center; }
  .main { padding: 18px 16px 60px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .brand img { height: 28px; }
  .brand .hubname { display: none; }
  .topbar-right .label { display: none; }
}

/* ---------- Seitenkopf und Raster ---------- */
.pagehead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead > div:first-child { min-width: 0; flex: 1 1 420px; }
.pagehead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pagehead p.small a { color: var(--muted); }
.lead { color: var(--muted); margin: 0; max-width: 780px; font-size: 15.5px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
.card.narrow { max-width: 760px; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 1100px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid.two, .grid.three, .grid.side { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .85; }
.stat .v { font-size: 28px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.stat .v small { font-size: 13px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat a { color: inherit; display: block; }
.stat a:hover { text-decoration: none; }
.stat:has(a:hover) { border-color: var(--accent-line); }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 700; font-size: 13px; color: var(--ink-2); margin: 12px 0 5px; }
label.inline { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; font-size: 14px; color: var(--ink); margin: 5px 16px 5px 0; cursor: pointer; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input[type=color] { width: 52px; height: 40px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
input[readonly] { background: var(--panel-2); color: var(--ink-2); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 360px; font-family: var(--mono); font-size: 13px; }
input:hover, select:hover, textarea:hover { border-color: #c4b9b6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
::placeholder { color: #a39a98; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
form.inline { display: inline; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); }
details > summary { cursor: pointer; color: var(--accent); margin: 10px 0 4px; }
details.inline-details { display: inline-block; }
details.inline-details > summary { list-style: none; margin: 0; display: inline-flex; }
details.inline-details > summary::-webkit-details-marker { display: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 190px; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { background: var(--panel-2); border-color: #c4b9b6; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(139,0,0,.25); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ai::before { content: "✦"; font-size: 12px; color: var(--accent); }
.btn.primary.ai::before { color: #ffd7d7; }
.btn.small { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: #fdf0ef; border-color: #ecc2bf; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Tabellen ---------- */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td { background: #fcfafa; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; }
table.list td a strong { color: var(--ink); }
table.list td a:hover strong { color: var(--accent); }
.tablewrap { overflow-x: auto; }

/* ---------- Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #efeceb; color: var(--grey); white-space: nowrap; vertical-align: middle; }
.badge.blue { background: #e8f0fc; color: var(--blue); }
.badge.green { background: #e5f3ea; color: var(--green); }
.badge.amber { background: #fdf2e0; color: var(--amber); }
.badge.red { background: #fbe9e8; color: var(--red); }
.badge.violet { background: #f0ebfa; color: var(--violet); }
.badge.portal { background: color-mix(in srgb, var(--pc) 11%, #fff); color: var(--pc); border: 1px solid color-mix(in srgb, var(--pc) 22%, #fff); }
.prio1 { color: var(--red); font-weight: 700; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-size: 14.5px; }
.flash::before { font-weight: 900; }
.flash.success { background: #edf7f0; border-color: #bfe0ca; color: #14532d; }
.flash.success::before { content: "✓"; }
.flash.error { background: #fdf0ef; border-color: #f1c3bf; color: #8a1c15; }
.flash.error::before { content: "!"; }
.flash.info { background: #eef4fd; border-color: #c8d9f5; color: #17407f; }
.flash.info::before { content: "i"; }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; }
.notice { background: #fff8ec; border: 1px solid #f0dcb3; border-left: 4px solid var(--amber); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.notice a { font-weight: 700; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-strong); margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 700; font-size: 14px; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a .muted { font-weight: 400; }
.tabs.sub { border-bottom: 0; gap: 6px; }
.tabs.sub a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; margin: 0; }
.tabs.sub a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.score { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-size: 20px; font-weight: 900; color: #fff; }
.score.green { background: var(--green); } .score.amber { background: var(--amber); } .score.red { background: var(--red); }

/* ---------- Inhalte ---------- */
.preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; max-height: 540px; overflow: auto; background: #fff; font-size: 15px; }
.preview h2 { font-size: 18px; margin-top: 18px; }
.preview img { max-width: 100%; height: auto; }
.preview table { border-collapse: collapse; width: 100%; } .preview td, .preview th { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; }
.preview blockquote { border-left: 3px solid var(--accent); margin: 12px 0; padding: 2px 14px; color: var(--ink-2); font-style: italic; }
.mailbody { white-space: pre-wrap; font-size: 13.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; max-height: 460px; overflow: auto; }
.checklist { padding-left: 18px; } .checklist li { margin-bottom: 5px; }
.issue { border: 1px solid var(--line); border-left: 4px solid var(--grey); border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 10px; background: #fff; }
.issue.widerspruch, .issue.fehler { border-left-color: var(--red); }
.issue.veraltet, .issue.prüfen { border-left-color: var(--amber); }
.issue.fehlt, .issue.hinweis, .issue.nicht { border-left-color: var(--blue); }
.issue.bestätigt { border-left-color: var(--green); }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.diff > div { font-size: 13.5px; padding: 9px 11px; border-radius: 6px; white-space: pre-wrap; word-break: break-word; }
.diff .old { background: #fcebea; text-decoration: line-through; text-decoration-color: rgba(179,38,30,.4); }
.diff .new { background: #e9f5ed; }
.diff .new textarea { width: 100%; font: inherit; color: inherit; resize: vertical; }
@media (max-width: 700px) { .diff { grid-template-columns: 1fr; } }
.copybox { position: relative; }
.copybox textarea, .copybox input { padding-right: 96px; }
.copybox .btn { position: absolute; right: 7px; top: 6px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo { position: relative; border: 2px solid transparent; border-radius: var(--radius-sm); background: #fff; overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s; }
.photo img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #eee; }
.photo.selected { border-color: var(--accent); }
.photo.dup { opacity: .55; }
.photo .meta { font-size: 12px; padding: 6px 9px; display: flex; justify-content: space-between; gap: 6px; color: var(--muted); }
.photo .flag { position: absolute; top: 7px; left: 7px; }
.photo .check { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; cursor: pointer; }
.photo textarea { min-height: 46px; font-size: 12.5px; border-radius: 0; border-width: 1px 0 0; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 16px; text-align: center; color: var(--muted); background: var(--panel-2); transition: all .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.bar span.b { display: inline-block; height: 10px; background: var(--accent); border-radius: 3px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.ampel { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #cfc7c5; vertical-align: middle; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.ampel.aktuell, .ampel.aktualisiert { background: var(--green); }
.ampel.prüfen { background: #e3a008; }
.ampel.veraltet { background: var(--red); }

/* ---------- Ladeanzeige ---------- */
.busy { position: fixed; inset: 0; background: rgba(35,31,31,.42); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.busy[hidden] { display: none; }
.busy-box { background: #fff; border-radius: 14px; padding: 26px 32px; text-align: center; box-shadow: var(--shadow-lg); max-width: 380px; border-top: 4px solid var(--accent); }
.busy-box .busy-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 14px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Anmeldung ---------- */
body.loginpage { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(180deg, var(--accent) 0 220px, var(--bg) 220px); }
.login { width: 100%; max-width: 410px; padding: 30px 30px 24px; border-top: 0; box-shadow: var(--shadow-lg); }
.login .logo { display: block; margin: 0 auto 6px; max-width: 260px; max-height: 70px; height: auto; }
.login .logo-fallback { text-align: center; font-size: 26px; font-weight: 900; color: var(--accent); margin-bottom: 6px; }
.login h1 { text-align: center; font-size: 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin: 0 0 20px; }
.login .btn.primary { width: 100%; min-height: 44px; font-size: 15px; }
.login .pw { position: relative; }
.login .pw input { padding-right: 76px; }
.login .pw button { position: absolute; right: 6px; top: 5px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px; }
.login .foot { text-align: center; margin: 18px 0 0; }

/* ---------- Report ---------- */
.report-head { border-bottom: 3px solid var(--accent); padding-bottom: 14px; margin-bottom: 18px; }
.report-brands { margin-bottom: 8px; }

/* ---------- Druck (Reports) ---------- */
@media print {
  .topbar, .sidebar, .noprint, .flash, .backdrop { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .card, .stat { box-shadow: none; break-inside: avoid; }
  body { background: #fff; font-size: 12pt; }
  a { color: var(--ink); }
}

/* Zugänglichkeit */
.sr-only { position: absolute; left: -9999px; top: 0; }
.sr-only:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: 6px; box-shadow: var(--shadow-lg); }

/* 1.3.0 Testmodus und Funktionsschalter */
.testmode { background: #fff4d6; color: #7a4b00 !important; border: 1px solid #f0d27a; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
.switchlist { list-style: none; margin: 0; padding: 0; }
.switchlist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switchlist li:last-child { border-bottom: 0; }
.switchlist input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: #8B0000; flex: none; }
.switchlist strong { display: block; }
.switchlist .hint { margin: 2px 0 0; }

/* Kopfzeile im Hintergrundton des Logos (#8B0000) */
.topbar { background: #8B0000; border-bottom: 3px solid #5c0000; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.brand, .brand .wordmark { color: #fff; }
.brand .hubname { color: #fff; border-left-color: rgba(255,255,255,.35); }
.topbar .pulse { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
.topbar-right a { color: #fff; }
.topbar-right a:hover { background: rgba(255,255,255,.14); }
.topbar-right .avatar { background: #fff; color: #8B0000; }
.topbar-right a.testmode { color: #7a4b00 !important; }
.topbar-right a.testmode:hover { background: #ffe9a8; }
.navtoggle { color: #fff; }
.navtoggle:hover { background: rgba(255,255,255,.14); }
.topbar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.topbar .pulse { animation-name: pulsew; }
@keyframes pulsew { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
