/* Layout: wie queltempo.com – Creme-Fläche, Anthrazit-Bänder, Logo mittig oben, Pill-Buttons, Karten mit 1px-Rand.
   Unten (mobil) eine Tab-Leiste wie in einer App. Team-Bereich = dieselbe CI, nur dichter. */
:root {
  --paper: #F3EEE4;      /* Website scheme-aqt-1 Hintergrund */
  --paper-2: #EAE3D6;    /* leicht dunkleres Creme für Flächen */
  --card: #FBF8F2;
  --ink: #484448;        /* Website Anthrazit */
  --ink-strong: #2F2C2F;
  --band: #484448;       /* Website scheme-aqt-2 */
  --on-band: #F3EEE4;
  --muted: rgba(72, 68, 72, .66);
  --line: rgba(72, 68, 72, .2);
  --line-strong: rgba(72, 68, 72, .55);
  --blue: #234887;       /* CI Dunkelblau, sparsam für Links/Fokus */
  --ok: #2E6A3E; --ok-bg: #DCEAD9;
  --warn: #9A6412; --warn-bg: #F2E3C4;
  --bad: #A2392B; --bad-bg: #F2D8D2;
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Questrial', 'Avenir Next', 'Century Gothic', sans-serif;
  --r-card: 18px; --r-pill: 40px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #2A272A; --paper-2: #332F33; --card: #363236; --ink: #F3EEE4; --ink-strong: #FFFFFF;
    --band: #1F1D1F; --on-band: #F3EEE4; --muted: rgba(243, 238, 228, .66); --line: rgba(243, 238, 228, .18); --line-strong: rgba(243, 238, 228, .5);
    --blue: #8FB0E8; --ok: #8CCB98; --ok-bg: #22382A; --warn: #E7B866; --warn-bg: #3D3220; --bad: #EE9A8C; --bad-bg: #432723;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #2A272A; --paper-2: #332F33; --card: #363236; --ink: #F3EEE4; --ink-strong: #FFFFFF;
  --band: #1F1D1F; --on-band: #F3EEE4; --muted: rgba(243, 238, 228, .66); --line: rgba(243, 238, 228, .18); --line-strong: rgba(243, 238, 228, .5);
  --blue: #8FB0E8; --ok: #8CCB98; --ok-bg: #22382A; --warn: #E7B866; --warn-bg: #3D3220; --bad: #EE9A8C; --bad-bg: #432723;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: 16px; line-height: 1.55; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- Typo ---------- */
.d { font-family: var(--f-display); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.02; margin: 0; text-wrap: balance; }
.d-xl { font-size: clamp(40px, 9vw, 104px); letter-spacing: .03em; }
.d-l { font-size: clamp(28px, 4.6vw, 52px); }
.d-m { font-size: clamp(21px, 2.4vw, 28px); }
.d-s { font-size: 17px; letter-spacing: .04em; }
.eyebrow { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin: 0; }
.copy { max-width: 62ch; margin: 0; }
.stack { display: grid; gap: 14px; align-content: start; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

/* ---------- Buttons (Website: Pill, 1px Rand) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px; border-radius: var(--r-pill); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 12px; }
.btn--block { width: 100%; }
.band .btn { border-color: var(--on-band); background: var(--on-band); color: var(--band); }
.band .btn:hover, .band .btn--ghost { background: transparent; color: var(--on-band); }
.band .btn--ghost:hover { background: var(--on-band); color: var(--band); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--blue); text-underline-offset: 3px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 14px; }
.logo { display: block; justify-self: center; text-decoration: none; }
.logo img { height: 22px; width: auto; }
.logo .wm { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .26em; white-space: nowrap; }
.hdr__side { display: flex; gap: 8px; align-items: center; min-width: 0; }
.hdr__side--r { justify-content: flex-end; }
.nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 40px); padding-bottom: 12px; }
.nav a { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: currentColor; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.chipbtn svg { width: 16px; height: 16px; }
.demo { background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 6px 12px; }

/* Tab-Leiste unten (Kunden-App, wie bei RE) – auf allen Größen */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--line); padding: 6px var(--gut-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gut-l); }
.tabs__in { display: contents; }
@media (min-width: 761px) { .tabs { grid-template-columns: repeat(4, minmax(0, 130px)); justify-content: center; gap: 24px; } }
.tabs a { display: grid; justify-items: center; gap: 3px; min-height: 48px; padding-top: 4px; text-decoration: none; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tabs a svg { width: 22px; height: 22px; }
.tabs a[aria-current="page"] { color: var(--ink); }
.has-tabs main { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom, 0px)); }
.has-tabs .ftr { padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom, 0px)); }
.hdr__label { font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.modes { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 6px 12px 8px; background: var(--ink); }
.modes button { border: 1px solid rgba(243,238,228,.4); background: transparent; color: var(--paper); border-radius: var(--r-pill); padding: 4px 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; min-height: 32px; }
.modes button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
:root[data-mode="einlass"] .res__big { font-size: clamp(34px, 9vw, 56px); }
@media (max-width: 520px) { .hide-s { display: none !important; } .logo .wm { font-size: 15px; letter-spacing: .16em; } .logo img { height: 17px; } }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bands / sections ---------- */
.sec { padding-block: clamp(40px, 6vw, 80px); }
.sec--tight { padding-block: clamp(24px, 4vw, 44px); }
.band { background: var(--band); color: var(--on-band); --muted: rgba(243, 238, 228, .7); --line: rgba(243, 238, 228, .22); --line-strong: rgba(243, 238, 228, .55); }
.sec-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: end; justify-content: space-between; margin-bottom: 24px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--paper); color: var(--ink-strong); border-bottom: 1px solid var(--line); }
.hero .d-xl { font-size: clamp(44px, 11vw, 120px); letter-spacing: .05em; font-weight: 800; }
.hero .lead { color: var(--ink); }
.hero .claim { color: var(--muted); }
.hero__photo { width: 100%; max-width: 960px; margin-top: 8px; }
.hero__photo .media { aspect-ratio: 16 / 7; border-radius: var(--r-card); }
.hero__in { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; padding-block: clamp(36px, 7vw, 80px) clamp(28px, 5vw, 56px); }
.hero .lead { margin-inline: auto; }
.claim { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.strip { overflow: hidden; border-block: 1px solid var(--line); white-space: nowrap; padding-block: 12px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.strip__in { display: inline-flex; gap: 3em; animation: run 40s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; min-width: 0; }
.band .card { background: rgba(243, 238, 228, .06); }
.card__body { padding: 18px 18px 20px; display: grid; gap: 10px; align-content: start; }
.media { position: relative; background: var(--paper-2); aspect-ratio: 4 / 3; overflow: hidden; max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* event card: Datumsblock wie auf der Website */
.ev { display: grid; grid-template-columns: 76px minmax(0, 1fr); text-decoration: none; }
.ev__date { display: grid; align-content: center; justify-items: center; gap: 2px; border-right: 1px solid var(--line-strong); padding: 14px 6px; }
.ev__day { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; }
.ev__mon { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.ev__yr { font-size: 11px; color: var(--muted); }
.ev .card__body { padding: 14px 16px 16px; gap: 6px; }
.ev--big { grid-template-columns: 1fr; }
.ev--big .ev__date { border-right: 0; border-bottom: 1px solid var(--line-strong); grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; padding: 12px 18px; }

/* pills / status */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill--warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill--bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.pill--ink { background: var(--ink); color: var(--paper); border-color: transparent; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line-strong); margin: 0; }
.facts > div { padding: 12px 14px 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts dt { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }

/* news */
.news { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.news__item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.news__item .media { flex: none; width: 96px; aspect-ratio: 1; border-radius: 12px; }
.news__item > .stack { flex: 1; }
.news__date { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Ticket (allgemeines AQT-Ticket) ---------- */
.tk { --tk-bg: #F7F4EE; --tk-ink: #484448; display: grid; grid-template-columns: minmax(0, 1fr) 150px; background: var(--tk-bg); color: var(--tk-ink); border-radius: 16px; border: 1px solid rgba(72, 68, 72, .35); max-width: 560px; position: relative; overflow: hidden; }
.tk__main { padding: 18px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tk__brand { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .28em; }
.tk__title { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.tk__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 13px; }
.tk__meta span { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.tk__claim { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.tk__stub { border-left: 2px dashed rgba(72, 68, 72, .4); padding: 14px; display: grid; gap: 8px; justify-items: center; align-content: center; background: #EFE9DE; }
.tk__stub svg { width: 118px; height: 118px; }
.tk__code { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; }
.tk::before, .tk::after { content: ""; position: absolute; right: 141px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid rgba(72, 68, 72, .35); }
.tk::before { top: -10px; } .tk::after { bottom: -10px; }
.tk.is-used { opacity: .6; }
@media (max-width: 480px) {
  .tk { grid-template-columns: 1fr; }
  .tk__stub { border-left: 0; border-top: 2px dashed rgba(72, 68, 72, .4); }
  .tk__stub svg { width: 168px; height: 168px; }
  .tk::before, .tk::after { display: none; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .lbl { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 16px; border-radius: 26px; border: 1px solid var(--line-strong); background: var(--card); }
textarea.input { border-radius: 16px; min-height: 90px; resize: vertical; }
.input--sm { min-height: 36px; padding: 4px 12px; font-size: 14px; border-radius: 18px; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form .full { grid-column: 1 / -1; }
.msg { font-size: 14px; min-height: 1.4em; }
.msg--bad { color: var(--bad); }

/* ---------- Team ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 14px 16px; display: grid; gap: 4px; background: var(--card); min-width: 0; }
.kpi b { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.kpi .bar i { display: block; height: 100%; background: var(--ink); }
.list { display: grid; border-top: 1px solid var(--line-strong); }
.li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li__t { font-weight: 600; overflow-wrap: anywhere; }
.li__s { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.li__r { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; background: transparent; padding: 0; }
.check svg { width: 14px; height: 14px; opacity: 0; }
.check[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check[aria-pressed="true"] svg { opacity: 1; }
.li.is-done .li__t { text-decoration: line-through; color: var(--muted); }
.who { min-width: 58px; }
.over { color: var(--bad); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 6px 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tablewrap { overflow-x: auto; border-top: 1px solid var(--line-strong); }
table.tb { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.tb th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line-strong); }
.tb td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb td.num, .tb th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tb input.input--sm { width: 96px; text-align: right; }
.tb tfoot td { font-family: var(--f-display); font-weight: 700; border-bottom: 0; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.note { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.daygrp { display: grid; gap: 0; }
.daygrp h4 { margin: 18px 0 6px; }

/* ---------- Einlass ---------- */
.gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .gate { grid-template-columns: 1fr; } }
.cam { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: var(--r-card); overflow: hidden; background: var(--band); color: var(--on-band); display: grid; place-items: center; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam__frame { position: absolute; inset: 18%; border: 2px solid rgba(243, 238, 228, .85); border-radius: 18px; pointer-events: none; }
.cam__msg { position: relative; text-align: center; padding: 24px; display: grid; gap: 12px; justify-items: center; max-width: 34ch; }
.res { border-radius: var(--r-card); padding: 22px; display: grid; gap: 8px; min-height: 170px; align-content: center; border: 1px solid var(--line-strong); background: var(--card); }
.res--ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.res--warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.res--bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.res__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.counter { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.counter b { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }

/* footer */
.ftr { padding-block: 32px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.ftr ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px; max-width: calc(100% - 32px); }
.has-tabs .toast { bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom, 0px)); }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

.evwrap { flex: 1 1 240px; min-width: 0; max-width: 460px; }
.evwrap select { width: 100%; min-width: 0; text-overflow: ellipsis; }

/* Budget als Karten-Zeilen: passt auf Handybreite, kein Querscrollen */
.blist { border-top: 1px solid var(--line-strong); }
.brow { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px 14px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.brow__name { display: grid; gap: 2px; align-self: center; min-width: 0; }
.brow__name .pill { justify-self: start; margin-top: 4px; }
.brow__f { display: grid; gap: 4px; min-width: 0; }
.brow__f .input, .brow__f select { width: 100%; }
.brow__live { display: flex; align-items: center; min-height: 36px; font-family: var(--f-display); font-weight: 700; }
.brow__chk { display: flex; gap: 8px; align-items: center; min-height: 36px; font-size: 14px; white-space: nowrap; }
.brow__note { grid-column: 1 / -1; margin: 0; font-size: 13px; }
@media (max-width: 760px) {
  .brow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .brow__name { grid-column: 1 / -1; }
}

/* Team-App: 5 Kacheln unten wie bei RE */
.tabs--5 { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 761px) { .tabs--5 { grid-template-columns: repeat(5, minmax(0, 120px)); } }
.tabs--5 a[aria-current="page"] { color: var(--blue); }
.tabs--5 a[aria-current="page"] span { color: var(--ink); }
.pushbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; }
.pushbar svg { width: 20px; height: 20px; flex: none; }
.pushbar span { flex: 1 1 180px; }
.pushbar .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; min-height: 120px; border-radius: var(--r-card); border: 1px solid var(--line-strong); background: var(--card); text-decoration: none; color: inherit; }
.tile svg { width: 26px; height: 26px; color: var(--blue); }
.tile__t { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.tile__d { font-size: 13px; color: var(--muted); }
.tile:hover { border-color: var(--ink); }
.tile__t { overflow-wrap: anywhere; }

/* Logo im Dunkelmodus hell */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { filter: invert(1) brightness(1.15); } }
:root[data-theme="dark"] .logo img { filter: invert(1) brightness(1.15); }
.btn { white-space: nowrap; }
.btn .ico { width: 18px; height: 18px; flex: none; }
