/* ============================================================
   TNIO PLANUNG — angelehnt an tnio.de (The Night Is Ours)
   ============================================================ */

@font-face {
  font-family: "Hanson";
  src: url("../fonts/hanson-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0b2f;
  --bg-2: #131040;
  --ink: #fff;
  --accent: #d81e78;
  --accent-hot: #ff4d96;
  --blue: #2f33d8;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff5470;
  --muted: rgba(255, 255, 255, .56);
  --faint: rgba(255, 255, 255, .36);
  --line: rgba(255, 255, 255, .12);
  --card: rgba(255, 255, 255, .045);
  --card-hi: rgba(255, 255, 255, .075);
  --field: rgba(0, 0, 0, .28);

  --display: "Hanson", "Arial Black", Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --side: 248px;
  --gut: clamp(16px, 3.4vw, 44px);
  --r: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 2px; border-radius: 4px; }

/* ---------- Hintergrund wie auf tnio.de ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 40% at 18% 22%, rgba(216, 30, 120, .30), transparent 70%),
    radial-gradient(48% 46% at 85% 80%, rgba(47, 51, 216, .38), transparent 72%),
    var(--bg);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { filter: hue-rotate(-14deg); background-position: 0 0; } }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain { 33% { transform: translate(-2%, 1.5%); } 66% { transform: translate(1.5%, -2%); } }
@media (prefers-reduced-motion: reduce) { .grain, .bg { animation: none; } }

/* ---------- Typo ---------- */
.kicker {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.slash { color: var(--accent-hot); }
.h1 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 54px); line-height: .92; letter-spacing: -.01em; font-weight: 700;
}
.h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1; letter-spacing: .01em; font-weight: 700;
}
.h3 { font-size: 15px; font-weight: 700; }
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: -.01em; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.nowrap { white-space: nowrap; }

/* ---------- App-Shell ---------- */
.side {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); z-index: 50;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px 16px;
  background: rgba(10, 8, 36, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand {
  font-family: var(--display); font-size: 30px; letter-spacing: .04em; text-decoration: none;
  padding: 0 8px; line-height: 1;
}
.brand__sub {
  display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--accent-hot); margin-top: 6px; font-weight: 600;
}
.event-switch { padding: 0 8px; display: grid; gap: 6px; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  transition: background .2s, color .2s;
}
.nav a:hover { color: #fff; background: var(--card); }
.nav a.is-active { color: #fff; background: linear-gradient(110deg, rgba(216, 30, 120, .32), rgba(47, 51, 216, .2)); box-shadow: inset 0 0 0 1px rgba(255, 77, 150, .3); }
.nav .ico { width: 18px; height: 18px; flex: none; }
.nav .count {
  margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: 0;
  background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px;
}
.side__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 8px 0; border-top: 1px solid var(--line);
}
.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { display: block; font-size: 11px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.main { margin-left: var(--side); min-height: 100vh; padding: 0 var(--gut) 60px; }
.topbar {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 34px 0 26px;
}
.topbar__title { display: grid; gap: 10px; min-width: 0; flex: 1; }
.topbar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-btn.menu-btn { display: none; }
.scrim { display: none; }
.content { display: grid; gap: 22px; max-width: 1400px; }

@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .35s var(--ease); }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .5); }
  .main { margin-left: 0; }
  .icon-btn.menu-btn { display: inline-grid; align-self: center; }
  .topbar { padding-top: 20px; align-items: center; }
}

/* ---------- Bausteine ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(16px, 2vw, 24px);
  min-width: 0;
}
.card--glow { background: linear-gradient(135deg, rgba(47, 51, 216, .22), rgba(216, 30, 120, .12) 70%); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card__head .h2 { display: flex; align-items: center; gap: 10px; }

.grid { display: grid; gap: 22px; }
.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split--wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: 18px 20px; }
.stat__val { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: 12px; color: var(--muted); margin-top: 8px; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.inline { display: inline; }
.sep { height: 1px; background: var(--line); margin: 6px 0; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: #fff; color: #000; border: 1px solid #fff;
  font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background .2s, color .2s, box-shadow .3s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 36px -12px var(--accent-hot); }
.btn .ico { width: 15px; height: 15px; }
.btn--ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.btn--sm { padding: 9px 15px; font-size: 10px; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
  cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--card-hi); color: #fff; border-color: var(--line); }
.icon-btn.danger:hover { color: var(--bad); }
.icon-btn.on { color: var(--accent-hot); }
.icon-btn .ico { width: 17px; height: 17px; }
.ico { width: 18px; height: 18px; display: block; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 14px; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
label, .label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; min-width: 0;
  background: var(--field); color: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 15px; }
select option { background: var(--bg-2); color: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-hot); box-shadow: 0 0 0 3px rgba(255, 77, 150, .18); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=color] { width: 100%; height: 44px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: 0; text-transform: none; color: #fff; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hint { font-size: 12px; color: var(--faint); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * clamp(16px, 2vw, 24px)); padding: 0 clamp(16px, 2vw, 24px); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
  font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.actions { white-space: nowrap; text-align: right; width: 1%; }
tfoot td { border-top: 1px solid rgba(255, 255, 255, .3); border-bottom: 0; font-weight: 700; padding-top: 14px; }
tr.is-done td { opacity: .45; }
.group-row td { padding-top: 22px; border-bottom-color: rgba(255, 255, 255, .22); }

/* ---------- Badges / Chips ---------- */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 99px; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8);
}
.badge--bezahlt, .badge--vertrag { background: rgba(61, 220, 151, .16); color: var(--ok); }
.badge--bestaetigt, .badge--zugesagt { background: rgba(47, 51, 216, .4); color: #c9cbff; }
.badge--offen, .badge--angefragt { background: rgba(255, 181, 71, .15); color: var(--warn); }
.badge--abgesagt { background: rgba(255, 84, 112, .15); color: var(--bad); text-decoration: line-through; }
.badge--wichtig { background: var(--accent); color: #fff; }
.badge--in { background: rgba(61, 220, 151, .16); color: var(--ok); }
.badge--out { background: rgba(255, 84, 112, .14); color: #ff8aa0; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c, var(--accent)); box-shadow: 0 0 12px var(--c, var(--accent)); }

/* ---------- Flash ---------- */
.flash {
  max-width: 1400px; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .1); font-size: 14px;
}
.flash--err { border-color: rgba(255, 84, 112, .5); background: rgba(255, 84, 112, .12); }
.flash--info { border-color: rgba(47, 51, 216, .6); background: rgba(47, 51, 216, .2); }

/* ---------- Tabs / Filter ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.tabs a:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.tabs a.is-active { background: #fff; color: #000; border-color: #fff; }

/* ---------- Leerzustand ---------- */
.empty { text-align: center; padding: 30px 10px; color: var(--muted); font-size: 14px; }
.empty .ico { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--faint); }

/* ---------- Dashboard ---------- */
.hero-card { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.hero-card__name { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 5.6vw, 72px); line-height: .88; letter-spacing: -.015em; }
.hero-card__meta { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.countdown { display: flex; gap: 14px; }
.countdown div { text-align: center; min-width: 56px; }
.countdown b { display: block; font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .hero-card { grid-template-columns: 1fr; } }

.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; display: flex; }
.bar > i { display: block; height: 100%; background: var(--c, var(--accent)); }
.bar--lg { height: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }

.coverage { display: grid; gap: 12px; }
.coverage__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 13px; }

/* ---------- Pinnwand ---------- */
.posts { display: grid; gap: 16px; }
.post { position: relative; }
.post--pinned { border-color: rgba(255, 77, 150, .45); background: linear-gradient(135deg, rgba(216, 30, 120, .14), rgba(47, 51, 216, .1) 70%); }
.post--wichtig::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-hot); }
.post__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.post__title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.post__body { margin-top: 10px; color: rgba(255, 255, 255, .86); font-size: 15px; overflow-wrap: anywhere; }
.post__body a { color: var(--accent-hot); }
.post__tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 2px; }
.comments { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.comment { font-size: 14px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.comment .avatar { width: 28px; height: 28px; font-size: 12px; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { padding: 9px 12px; font-size: 14px; }

/* ---------- Timetable ---------- */
.tt { display: grid; gap: 14px; }
.tt__scale { position: relative; height: 18px; margin-left: 120px; font-size: 10px; color: var(--faint); letter-spacing: .1em; }
.tt__scale span { position: absolute; transform: translateX(-50%); }
.tt__row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; }
.tt__floor { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tt__lane { position: relative; height: 62px; border-radius: 12px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px var(--hour, 60px)); border: 1px solid var(--line); }
.tt__set {
  position: absolute; top: 5px; bottom: 5px; border-radius: 9px; padding: 7px 10px; overflow: hidden;
  background: linear-gradient(120deg, rgba(216, 30, 120, .85), rgba(47, 51, 216, .85));
  box-shadow: 0 6px 24px -10px var(--accent-hot);
}
.tt__set--head { background: linear-gradient(120deg, #ff4d96, #d81e78); }
.tt__set--pending { background: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 8px, rgba(255,255,255,.06) 8px 16px); box-shadow: none; border: 1px dashed rgba(255,255,255,.35); }
.tt__set b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 14px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt__set small { font-size: 11px; opacity: .85; white-space: nowrap; }
@media (max-width: 720px) { .tt__row { grid-template-columns: 1fr; } .tt__scale { margin-left: 0; } }

.lineup-list { display: grid; gap: 2px; }
.act { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act__no { font-family: var(--display); color: var(--accent-hot); font-size: 18px; }
.act__name { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2.4vw, 28px); line-height: 1; }
.act__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Aufgaben ---------- */
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task__title { font-size: 15px; }
.task.is-done .task__title { text-decoration: line-through; color: var(--faint); }
.task__meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.task__meta .late { color: var(--bad); font-weight: 600; }
.tick {
  width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .4);
  background: transparent; cursor: pointer; display: grid; place-items: center; color: transparent; padding: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.tick:hover { border-color: var(--accent-hot); }
.tick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tick .ico { width: 15px; height: 15px; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth__box { width: min(420px, 100%); display: grid; gap: 26px; }
.auth__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(44px, 12vw, 72px); line-height: .86; letter-spacing: -.015em; }
.auth__title span { display: block; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 10px 0; margin: 0 calc(-1 * var(--gut)); white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 28px; animation: tick 40s linear infinite; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.ticker__track i { color: var(--accent-hot); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Druck ---------- */
@media print {
  :root { --ink: #000; --muted: #555; --faint: #777; --line: #ccc; --card: #fff; }
  body { background: #fff; color: #000; font-size: 12px; }
  .bg, .grain, .side, .menu-btn, .topbar__actions, .no-print, .actions, .flash, form, .ticker { display: none !important; }
  .main { margin: 0; padding: 0; }
  .card { border: 0; padding: 0; background: none !important; break-inside: avoid; }
  .split, .split--wide, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .badge { background: none !important; color: #000 !important; border: 1px solid #999; }
  a { text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- Status-Auswahl in Tabellen ---------- */
.status-select { width: auto; padding: 5px 30px 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 99px; background-position: right 8px center; background-size: 12px; }
.status-bestaetigt, .status-zugesagt { color: #c9cbff; border-color: rgba(47, 51, 216, .7); }
.status-vertrag, .status-bezahlt { color: var(--ok); border-color: rgba(61, 220, 151, .5); }
.status-angefragt, .status-offen { color: var(--warn); border-color: rgba(255, 181, 71, .45); }
.status-abgesagt { color: var(--bad); }

/* ---------- Segment-Schalter (Ein/Aus) ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); }
.seg label { cursor: pointer; letter-spacing: .16em; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 99px; transition: background .2s, color .2s; }
.seg input:checked + span { background: #fff; color: #000; }
.seg input:focus-visible + span { outline: 2px solid var(--accent-hot); }

/* ---------- Belege ---------- */
.invoice { border: 1px dashed rgba(255, 255, 255, .22); border-radius: 12px; padding: 12px 14px; }
.invoice[open] { border-style: solid; background: rgba(255, 255, 255, .025); }
.invoice summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; list-style: none; }
.invoice summary::-webkit-details-marker { display: none; }
.invoice summary .ico { width: 16px; height: 16px; color: var(--accent-hot); }
.attach { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.attach a { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 9px 3px 7px; border-radius: 99px; background: rgba(255, 77, 150, .14); color: #ffc2dc; text-decoration: none; }
.attach a:hover { background: rgba(255, 77, 150, .3); color: #fff; }
.attach .ico, .chip .ico { width: 13px; height: 13px; }
.file-input { width: 100%; font-size: 13px; color: var(--muted); }
.file-input::file-selector-button { margin-right: 12px; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: #fff; font: 700 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.file-input::file-selector-button:hover { border-color: #fff; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.linkish:hover { color: var(--bad); }

/* ---------- Dashboard-Kleinkram ---------- */
.mini-post { display: block; text-decoration: none; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.mini-post:hover { border-color: rgba(255, 77, 150, .5); background: rgba(255, 255, 255, .05); }
.mini-post.is-hot { border-left: 3px solid var(--accent-hot); }
.mini-post .post__meta .ico { width: 14px; height: 14px; color: var(--accent-hot); }
.clamp { margin-top: 4px; }
.auto-row td { background: rgba(47, 51, 216, .07); }
