/* NoAim Dashboard – dunkles, schlichtes Esports-Design, ohne externe Abhängigkeiten */
:root {
  --bg: #0b0d12;
  --surface: #12151d;
  --surface-2: #181c26;
  --surface-3: #1f2430;
  --border: #262c3a;
  --text: #e7e9ef;
  --muted: #8a92a6;
  --accent: #e63946;
  --accent-soft: rgba(230, 57, 70, .14);
  --ok: #2fbf9b;
  --warn: #f4a261;
  --err: #ff5a67;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
a { color: #ff7b85; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: .2px; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 13px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
code { font-family: var(--mono); background: var(--surface-3); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Layout */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(230, 57, 70, .45), 0 0 14px rgba(230, 57, 70, .35); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 1.5px; line-height: 1.05; }
.brand-name span { color: var(--accent); }
.brand-name small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 4.2px; color: var(--accent);
  text-transform: uppercase; opacity: .85; margin-top: 3px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--muted);
  font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav-sep { margin: 14px 10px 6px; font-size: 11px; color: #5d667a; text-transform: uppercase; letter-spacing: 1px; }
.main { padding: 26px 32px 60px; max-width: 1180px; width: 100%; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.userbox { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.userbox img { width: 30px; height: 30px; border-radius: 50%; }

/* Karten & Raster */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .tiles > .card + .card { margin-top: 0; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 2px; }
.stat .sub { color: var(--muted); font-size: 12px; }

/* Status */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-3); color: var(--muted); }
.badge.ok { background: rgba(47,191,155,.15); color: var(--ok); }
.badge.warn { background: rgba(244,162,97,.15); color: var(--warn); }
.badge.err { background: rgba(255,90,103,.15); color: var(--err); }
.badge.live { background: var(--accent); color: #fff; }

/* Listen & Tabellen */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
table.data tr:hover td { background: var(--surface-2); }
td.nowrap, th.nowrap { white-space: nowrap; }

/* Hinweise */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.flash.ok { background: rgba(47,191,155,.1); border-color: rgba(47,191,155,.35); }
.flash.error { background: rgba(255,90,103,.1); border-color: rgba(255,90,103,.4); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); margin-bottom: 14px; }
.notice.warn { border-color: rgba(244,162,97,.4); color: #f6c39a; }

/* Formulare */
.form-section { margin-bottom: 16px; }
.field { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 6px 22px; padding: 12px 0;
  border-bottom: 1px solid var(--border); align-items: start; }
.field:last-child { border-bottom: 0; }
.field > label, .field > .flabel { font-weight: 600; padding-top: 7px; }
.field .help { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
input[type=text], input[type=number], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 7px;
  padding: 8px 10px; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { width: 56px; height: 36px; padding: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; }
input:disabled { opacity: .6; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; margin-top: 5px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 99px; cursor: pointer; transition: background .15s; }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px;
  background: #cfd3dc; border-radius: 50%; transition: transform .15s; }
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px var(--accent-soft); }
.picker { border: 1px solid var(--border); border-radius: 7px; background: var(--bg); }
.picker input[type=search] { border: 0; border-bottom: 1px solid var(--border); border-radius: 7px 7px 0 0; }
.picker .opts { max-height: 190px; overflow-y: auto; padding: 4px 6px; }
.picker label { display: flex; gap: 8px; align-items: center; padding: 3px 4px; border-radius: 5px; cursor: pointer; font-weight: 400; }
.picker label:hover { background: var(--surface-2); }
.picker .role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; }
.checkgrid label { display: flex; gap: 8px; align-items: center; font-weight: 400; padding: 3px 0; }
.rows { display: grid; gap: 8px; }
.row-item { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.row-item .sub { flex: 1 1 150px; min-width: 120px; }
.row-item .sub label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; font-weight: 400; }
.row-item .sub.check { flex: 0 0 auto; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 18px 0 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); padding: 8px 14px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #f04855; }
.btn.danger { color: var(--err); border-color: rgba(255,90,103,.4); background: transparent; }
.btn.danger:hover { background: rgba(255,90,103,.1); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; width: 100%; justify-content: center; padding: 11px; }
.inline { display: inline; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-logo { display: grid; place-items: center; margin: -4px 0 4px; }
.login-logo img { width: 240px; max-width: 80%; height: auto; border-radius: 14px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 66%, transparent 82%);
          mask-image: radial-gradient(ellipse at center, #000 66%, transparent 82%); }
.login-sub { margin-top: 0; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }
.divider { text-align: center; color: var(--muted); margin: 16px 0; font-size: 12px; }

/* Discord-Embed-Vorschau */
.embed-preview { background: #313338; border-radius: 8px; padding: 14px 16px; color: #dbdee1; font-family: var(--font); }
.embed-preview .msg { margin-bottom: 8px; white-space: pre-wrap; word-break: break-word; }
.embed { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; background: #2b2d31; border-left: 4px solid var(--accent);
  border-radius: 4px; padding: 10px 14px 12px; max-width: 520px; }
.embed .e-author { font-size: 13px; font-weight: 600; color: #fff; grid-column: 1; }
.embed .e-title { font-weight: 700; color: #fff; grid-column: 1; }
.embed .e-desc { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; grid-column: 1; }
.embed .e-thumb { grid-column: 2; grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: 6px; object-fit: cover; background: #1e1f22; }
.embed .e-fields { grid-column: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
.embed .e-field b { display: block; font-size: 12.5px; color: #fff; }
.embed .e-field.wide { grid-column: 1 / -1; }
.embed .e-image { grid-column: 1 / -1; width: 100%; border-radius: 4px; background: #1e1f22; aspect-ratio: 16 / 9;
  display: grid; place-items: center; color: #777; font-size: 12px; }
.embed .e-footer { grid-column: 1 / -1; font-size: 12px; color: #a7abb3; }
.e-button { display: inline-block; margin-top: 8px; background: #4e5058; color: #fff; padding: 5px 14px; border-radius: 4px; font-size: 13px; }
.preview-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

.pagination { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.filters label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; }
.progress { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
details summary { cursor: pointer; color: var(--muted); }
details[open] summary { margin-bottom: 10px; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
/* Desktop: Seitenleiste einklappbar */
.layout { transition: grid-template-columns .28s ease; }
.layout.collapsed { grid-template-columns: 0 1fr; }
.layout.collapsed .sidebar { visibility: hidden; padding-inline: 0; border-right-width: 0; }
.sidebar { transition: padding .28s ease, visibility 0s linear .28s; }
.layout:not(.collapsed) .sidebar { transition-delay: 0s; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .layout.collapsed .sidebar { display: block; }
  .sidebar { position: fixed; z-index: 20; inset: 0 30% 0 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .main { padding: 16px; }
  .field { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .embed .e-fields { grid-template-columns: 1fr 1fr; }
}
.center { text-align: center; }
.mt { margin-top: 12px; }
.mb { margin-bottom: 12px; }
.right { text-align: right; }
.row-item .sub:has(input[type=text]) { flex: 2 1 240px; }
.inline-dot { display: inline-block; vertical-align: middle; }
.nav-count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; }
.pre { white-space: pre-wrap; word-break: break-word; }
label.mt { display: block; }
.replies { display: grid; gap: 8px; }
.reply { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.reply-head { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-preview { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 10px; background: #313338; margin: 6px 0; }

.sidebar-backdrop { display: none; }
@media (max-width: 760px) {
  .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.45); }
}

/* Statistik-Dashboard */
.section-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 0; }
h2.section-title.mt { margin: 26px 0 12px; }
.stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.segmented a { padding: 6px 14px; color: var(--muted); font-weight: 600; font-size: 13px; }
.segmented a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.segmented a.active { background: var(--accent); color: #fff; }
.gauge-card { text-align: center; }
.gauge-card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.gauge-card .sub { color: var(--muted); font-size: 12px; min-height: 2.6em; }
.viz-gauge-svg { width: 100%; max-width: 150px; height: auto; display: block; margin: 4px auto 0; }
.viz-gauge { fill: none; stroke-width: 12; stroke-linecap: round; }
.viz-gauge-value { fill: var(--text); font-size: 30px; font-weight: 700; }
.viz-gauge-unit { font-size: 15px; fill: var(--muted); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tiles .value { font-size: 22px; }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.stats-main { display: grid; gap: 16px; }
.stats-main > .card + .card { margin-top: 0; }
.stats-side { position: sticky; top: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chart-head h2 { margin-bottom: 6px; font-size: 14px; }
.viz { width: 100%; height: auto; display: block; }
.viz-grid { stroke: var(--border); stroke-width: 1; }
.viz-base { stroke: #3a4152; stroke-width: 1; }
.viz-tick { fill: var(--muted); font-size: 11px; }
.viz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-dot { stroke: var(--surface); stroke-width: 2; }
.viz-hit { fill: transparent; }
.viz-hit:hover { fill: rgba(255, 255, 255, .05); }
.viz-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--muted); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0 7px 10px; border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent); margin-bottom: 4px; background: var(--surface-2); border-radius: 0 6px 6px 0; padding-right: 10px; font-size: 13px; }
.kv li span { color: var(--muted); }
@media (max-width: 1200px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats-grid { grid-template-columns: 1fr; } .stats-side { position: static; } }
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 > .gauge-card { padding: 12px; min-width: 0; }
  .segmented a { padding: 6px 10px; }
  .stats-head { flex-direction: column; align-items: flex-start; }
}

/* Änderungsverlauf */
.history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.history-table td:first-child { width: 32%; font-weight: 600; }
.history-table td:nth-child(3) { width: 1%; }

/* Stoßzeiten-Heatmap */
.mt-lg { margin-top: 26px; }
.heat-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.heat-peak { margin: 8px 0 0; }

/* ---------------------------------------------------------------------------
   Animationen – nur CSS-Klassen, keine Inline-Styles (CSP). Wer in Windows
   „Animationen anzeigen“ ausschaltet, bekommt alles statisch (siehe unten).
   --------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(230,57,70,.45), 0 0 12px rgba(230,57,70,.30); }
                  50% { box-shadow: 0 0 0 1px rgba(230,57,70,.75), 0 0 22px rgba(230,57,70,.60); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes logo-glow { 0%, 100% { filter: drop-shadow(0 0 10px rgba(230,57,70,.35)); }
                       50% { filter: drop-shadow(0 0 26px rgba(230,57,70,.7)); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(47,191,155,.55); } 100% { box-shadow: 0 0 0 7px rgba(47,191,155,0); } }
@keyframes pulse-live { 0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,.6); } 50% { box-shadow: 0 0 0 5px rgba(230,57,70,0); } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gauge-fill { from { stroke-dasharray: 0 100; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

/* Seitenaufbau */
.topbar { animation: fade .35s ease both; }
.flash { animation: slide-in .35s ease both; }
.nav a { animation: slide-in .3s ease both; }
.nav a:nth-child(n+4) { animation-delay: .03s; } .nav a:nth-child(n+8) { animation-delay: .06s; }
.nav a:nth-child(n+12) { animation-delay: .09s; } .nav a:nth-child(n+16) { animation-delay: .12s; }
.brand-logo { animation: glow 3.2s ease-in-out infinite; }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.06); }
.brand-logo { transition: transform .25s ease; }

/* Karten erscheinen beim Scrollen (Klasse kommt per JS – ohne JS bleibt alles sichtbar) */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease, border-color .2s, box-shadow .2s; }
.card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card:hover { border-color: #3a2a33; box-shadow: 0 6px 22px rgba(0,0,0,.35), 0 0 0 1px rgba(230,57,70,.12); }
.stat:hover, .gauge-card:hover { transform: translateY(-2px); }

/* Diagramme bauen sich auf, sobald die Karte sichtbar wird */
.viz path, .viz rect:not(.viz-hit) { transform-box: fill-box; transform-origin: 50% 100%; }
.reveal.in .viz:not(.viz-heat) path, .reveal.in .viz:not(.viz-heat) rect:not(.viz-hit) { animation: bar-grow .7s cubic-bezier(.2,.8,.2,1) both; }
.reveal.in .viz-heat .viz-cell { animation: pop .45s ease both; transform-origin: 50% 50%; }
.viz-cell { transition: stroke .12s; stroke: transparent; stroke-width: 2; }
.viz-cell:hover { stroke: var(--text); }
.viz-line { stroke-dasharray: 1; }
.reveal.in .viz-line { animation: line-draw 1.1s ease both; }
.reveal.in .viz-dot { animation: pop .4s ease 1s both; transform-box: fill-box; transform-origin: center; }
.reveal.in .viz-gauge-fill { animation: gauge-fill 1.2s cubic-bezier(.2,.8,.2,1) .1s both; }
.viz-hit { transition: fill .15s; }

/* Navigation & Bedienelemente */
.nav a { transition: background .15s, color .15s, padding-left .18s ease; }
.nav a:hover { padding-left: 14px; }
.nav a .ico { transition: transform .2s ease; }
.nav a:hover .ico { transform: scale(1.18); }
.btn { transition: background .15s, border-color .15s, transform .1s ease, box-shadow .2s; position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn.primary:hover { box-shadow: 0 0 16px rgba(230,57,70,.45); }
.btn.primary::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transform: translateX(-120%) skewX(-20deg); }
.btn.primary:hover::after { animation: shine .7s ease; }
.segmented a { transition: background .15s, color .15s; }
.nav-count { animation: pop .4s ease .3s both; }
.dot.ok { animation: pulse-ring 2s ease-out infinite; }
.badge.live { animation: pulse-live 1.6s ease-in-out infinite; }
.kv li { transition: background .15s, transform .15s; }
.kv li:hover { background: var(--surface-3); transform: translateX(3px); }
table.data td { transition: background .12s; }
details > summary { transition: color .15s; }
details > summary:hover { color: var(--text); }
details[open] > :not(summary) { animation: rise .3s ease both; }
.list li { animation: fade .4s ease both; }

/* Anmeldeseite */
.login-card { animation: rise .5s ease both; }
.login-logo img { animation: float 5s ease-in-out infinite, logo-glow 3.5s ease-in-out infinite; }

/* Barrierefreiheit: keine Bewegung, wenn das System sie abschaltet */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
