/* =====================================================================
   igtracker Panel — Design-System
   Stil: Data-Dense Dashboard (dunkel), abgeleitet aus ui-ux-pro-max.
   Dichte Spacing-Skala (8–32px), Bewegung dezent (150–250ms),
   Fokus immer sichtbar, keine Emoji als Icons (siehe /static/js/icons.js).
   ===================================================================== */

:root {
  /* Flächen — leicht blaustichig statt neutralgrau, das wirkt weniger
     ausgewaschen als reines Zinc und passt zu den blauen Charts. */
  --bg: #0a0d16;
  --bg-elevated: #111624;
  --card: #0e1223;
  --card-hover: #141a2e;
  --border: #1e2639;
  --border-light: #2c3650;

  /* Text — muted-2 lag vorher unter 4.5:1 und war auf Karten kaum
     lesbar; beide Stufen sind jetzt WCAG-AA gegen --card. */
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --orange: #f59e0b;
  --orange-soft: rgba(245, 158, 11, 0.12);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.12);

  /* Abstände: dichte Skala für Dashboards */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);

  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sanfter Farbverlauf oben — nimmt der Fläche die Härte, ohne zu stören */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 320px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3d4a68; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.layout {
  max-width: 1560px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-5) 72px;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------
   Kopfzeile
   --------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.topbar h1 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}

.topbar h1 .icon { color: var(--accent); flex-shrink: 0; }
.topbar .actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.num, .value, table td { font-variant-numeric: tabular-nums; }

/* Icons: durchgehend SVG statt Emoji (Sprite in /static/js/icons.js) */
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; stroke-width: 1.5; }

/* ---------------------------------------------------------------------
   Schaltflächen
   --------------------------------------------------------------------- */
.btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 7px 13px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { background: var(--card-hover); border-color: #3d4a68; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: rgba(239, 68, 68, 0.4); color: var(--red); }
.btn-sm { padding: 4px 9px; font-size: 11.5px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--bg-elevated); border-color: var(--border-light); }

/* ---------------------------------------------------------------------
   Formularfelder
   --------------------------------------------------------------------- */
input[type="text"], input[type="password"], input[type="number"], input[type="url"],
input[type="email"], select, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 7px 11px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input::placeholder, textarea::placeholder { color: #64748b; }
input:hover, select:hover, textarea:hover { border-color: #3d4a68; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select { cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
input[type="file"] { color: var(--muted-2); cursor: pointer; }
input[type="color"] {
  width: 44px; height: 30px; padding: 2px; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   Kennzahlen-Karten
   --------------------------------------------------------------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.card {
  background: linear-gradient(160deg, var(--card) 0%, #0c1020 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.22), transparent);
}
.card:hover { border-color: var(--border-light); }

.card .label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 7px;
  font-weight: 550;
}
.card .value { font-size: 25px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.15; }
.card .sub { font-size: 11.5px; margin-top: 6px; color: var(--muted-2); }

.up { color: var(--green); }
.down { color: var(--red); }

/* ---------------------------------------------------------------------
   Abschnitte
   --------------------------------------------------------------------- */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.section h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text);
}
.section h2 .icon { color: var(--muted-2); }

.toolbar {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.toolbar .spacer { flex: 1; }

/* ---------------------------------------------------------------------
   Tabellen
   --------------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  padding: var(--sp-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
  font-weight: 600;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 2;
}
thead th[data-sort] { cursor: pointer; transition: color var(--transition); }
thead th[data-sort]:hover { color: var(--text); }
thead th.active { color: var(--accent); }
th.num, td.num { text-align: right; }

tbody td {
  padding: 9px var(--sp-2);
  border-bottom: 1px solid rgba(30, 38, 57, 0.7);
  white-space: nowrap;
  font-size: 12.5px;
}
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: rgba(59, 130, 246, 0.05); }
tbody tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------------
   Statusmarken
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.badge-live, .badge-active { background: var(--green-soft); color: var(--green); border-color: rgba(34,197,94,0.25); }
.badge-appeal, .badge-pending { background: var(--orange-soft); color: var(--orange); border-color: rgba(245,158,11,0.25); }
.badge-banned, .badge-error { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.25); }
.badge-page, .badge-dns_ok { background: var(--accent-soft); color: var(--accent); border-color: rgba(59,130,246,0.25); }
.badge-redirect { background: var(--purple-soft); color: var(--purple); border-color: rgba(168,85,247,0.25); }
.badge-auto {
  opacity: 0.75; font-size: 8.5px; padding: 1px 5px;
  border: 1px solid currentColor; margin-left: 3px; cursor: pointer;
}

.status-select {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 10.5px;
  padding: 3px 8px;
  cursor: pointer;
}

.tag-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  font-size: 10.5px;
  color: var(--muted);
}

.sparkline { width: 90px; height: 24px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.movers-list { list-style: none; margin: 0; padding: 0; }
.movers-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 38, 57, 0.7);
  font-size: 12.5px;
}
.movers-list li:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------
   Login
   --------------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.login-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  width: 340px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.login-box::before {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(59,130,246,0.4), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.login-box h1 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.login-box p { color: var(--muted-2); font-size: 12.5px; margin: 0 0 var(--sp-5); }
.login-box input { width: 100%; margin-bottom: var(--sp-3); padding: 9px 12px; }
.login-box button { width: 100%; padding: 10px; justify-content: center; margin-top: var(--sp-1); }
.login-error { color: var(--red); font-size: 12px; margin-top: var(--sp-2); min-height: 16px; }

/* ---------------------------------------------------------------------
   Detailseiten
   --------------------------------------------------------------------- */
.detail-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap;
}
.detail-header h1 { font-size: 19px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.detail-stats { display: flex; gap: var(--sp-5); margin-top: var(--sp-3); flex-wrap: wrap; }
.detail-stats .item .label { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 550; }
.detail-stats .item .value { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }

.chart-tabs { display: flex; gap: 6px; margin-bottom: var(--sp-2); }
.chart-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.reel-row {
  display: grid; grid-template-columns: 110px 1fr 90px 90px 90px 100px;
  gap: var(--sp-2); padding: 8px 0; border-bottom: 1px solid rgba(30,38,57,0.7);
  font-size: 12px; align-items: center;
}
.reel-row.header { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.reel-row:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------
   Modale Dialoge
   --------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  padding: var(--sp-4);
  animation: fade-in 140ms ease-out;
}
.modal {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-xl);
  padding: var(--sp-5); width: 480px; max-width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal h2 { margin-top: 0; font-size: 15px; }
.modal textarea { width: 100%; min-height: 170px; resize: vertical; }
.modal .row { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.modal .row label { font-size: 11.5px; color: var(--muted-2); display: block; margin-bottom: 4px; }
.modal .actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-4); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.hidden { display: none !important; }

.toast {
  position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  color: var(--text); padding: 10px 18px; border-radius: 999px;
  font-size: 12.5px; z-index: 200; box-shadow: var(--shadow-lg);
  animation: toast-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.filter-inline { display: flex; gap: 6px; align-items: center; cursor: pointer; }

/* ---------------------------------------------------------------------
   Hub (Produktauswahl nach dem Login)
   --------------------------------------------------------------------- */
.hub-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: var(--sp-6) var(--sp-4); gap: var(--sp-5);
  position: relative; z-index: 1;
}
.hub-wrap h1 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.hub-wrap h1 span { color: var(--accent); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: var(--sp-4); width: 100%; max-width: 720px; }

.hub-card {
  background: linear-gradient(160deg, var(--card) 0%, #0c1020 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: block;
}
.hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.hub-card .icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4);
}
.hub-card h2 { font-size: 15px; margin: 0 0 6px; font-weight: 650; }
.hub-card p { color: var(--muted-2); font-size: 12.5px; margin: 0; line-height: 1.6; }
.hub-card .stat {
  margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--muted);
}

/* ---------------------------------------------------------------------
   Modul-Navigation
   --------------------------------------------------------------------- */
.subnav {
  display: flex; gap: var(--sp-1); margin-bottom: var(--sp-4);
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: var(--sp-1); border-radius: var(--radius-lg); width: fit-content;
  max-width: 100%; overflow-x: auto;
}
.subnav a {
  padding: 6px 14px; font-size: 12.5px; color: var(--muted-2);
  border-radius: var(--radius); white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.subnav a:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.subnav a.active { color: var(--text); background: var(--card-hover); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------------
   Link-Modul
   --------------------------------------------------------------------- */
.bar-list { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 64px; gap: var(--sp-3); align-items: center; font-size: 12px; }
.bar-row .bar-track { background: var(--bg-elevated); border-radius: 999px; height: 18px; overflow: hidden; }
.bar-row .bar-fill {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  height: 100%; border-radius: 999px; min-width: 3px;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-row .bar-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-row .bar-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--sp-4); align-items: start; }
.preview-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.preview-sticky { position: sticky; top: var(--sp-4); }
.preview-shell {
  border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; margin: 0 auto; transition: max-width 200ms ease; box-shadow: var(--shadow);
}
.preview-shell.mobile { max-width: 340px; height: 640px; }
.preview-shell.desktop { max-width: 100%; height: 640px; }

.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: 11.5px; color: var(--muted-2); margin-bottom: 5px; font-weight: 500; }
.field input[type="text"], .field input[type="url"], .field input[type="number"], .field textarea, .field select { width: 100%; }
.field textarea { min-height: 76px; resize: vertical; }
.field-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 120px; }
.field .hint { font-size: 11px; color: var(--muted-2); margin-top: 5px; line-height: 1.5; }

/* Aufklappbare Abschnitte im Editor */
.section.acc { padding-top: var(--sp-3); }
.section.acc > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--sp-2);
  padding: 2px 0 var(--sp-3); border-radius: var(--radius-sm);
}
.section.acc > summary::-webkit-details-marker { display: none; }
.section.acc > summary::before {
  content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--muted-2);
  border-bottom: 1.5px solid var(--muted-2); transform: rotate(-45deg);
  transition: transform var(--transition); margin-left: 3px; margin-right: 2px;
}
.section.acc[open] > summary::before { transform: rotate(45deg); }
.section.acc > summary h2 { margin: 0; }
.section.acc > summary:hover h2 { color: var(--accent); }

.upload-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.upload-row input[type="file"] { font-size: 12px; max-width: 220px; }
.avatar-preview {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-light); background: var(--bg-elevated);
}
.cover-preview {
  width: 120px; aspect-ratio: 3 / 1; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border-light); background: var(--bg-elevated);
}

.style-picker { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.style-chip {
  border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 8px 15px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.style-chip:hover { transform: translateY(-1px); }
.style-chip.active { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }

.item-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-3); margin-bottom: var(--sp-2);
  transition: border-color var(--transition);
}
.item-card:hover { border-color: var(--border-light); }
.item-card.dragging { opacity: 0.4; }
.item-card .item-head { display: flex; gap: var(--sp-2); align-items: center; }
.item-card .item-head input[type="text"] { flex: 1; min-width: 0; }
.item-card .item-body {
  display: grid; grid-template-columns: 1fr 1fr 130px 175px 90px; gap: var(--sp-2);
  margin-top: var(--sp-2); align-items: center;
}
.item-card input, .item-card select { font-size: 12px; padding: 6px 9px; }
.item-card .drag { cursor: grab; color: var(--muted-2); user-select: none; font-size: 14px; line-height: 1; }
.item-card .drag:active { cursor: grabbing; }
.thumb-slot { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.thumb-slot img { width: 30px; height: 30px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border-light); }
.thumb-slot input[type="file"] { width: 92px; font-size: 10px; }
.adult-toggle { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.adult-toggle input { margin: 0; }

.slug-url { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }
.copy-btn { cursor: pointer; }

.dns-table { font-family: var(--font-mono); font-size: 11.5px; }
.dns-table td { padding: 7px 10px; }

.steps { counter-reset: step; padding-left: 0; list-style: none; margin: 0; }
.steps li {
  position: relative; padding-left: 32px; margin-bottom: var(--sp-3);
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(59,130,246,0.3);
  font-size: 11px; font-weight: 650;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--text); font-weight: 600; }

.notice {
  padding: 11px 14px; border-radius: var(--radius); font-size: 12.5px;
  margin-bottom: var(--sp-3); display: flex; gap: var(--sp-2); align-items: flex-start; line-height: 1.55;
}
.notice .icon { margin-top: 1px; }
.notice-warn { background: var(--orange-soft); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.notice-error { background: var(--red-soft); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.notice-info { background: var(--accent-soft); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

.empty-state { text-align: center; padding: var(--sp-6) var(--sp-4); color: var(--muted-2); }
.empty-state .icon-xl { color: var(--border-light); margin-bottom: var(--sp-3); }
.empty-state h3 { color: var(--text); font-size: 14px; margin: 0 0 6px; }
.empty-state p { margin: 0; font-size: 12.5px; line-height: 1.6; }

/* ---------------------------------------------------------------------
   Bewegung: dezent, gestaffelt beim Laden
   --------------------------------------------------------------------- */
.grid-cards .card { animation: rise-in 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.grid-cards .card:nth-child(1) { animation-delay: 0ms; }
.grid-cards .card:nth-child(2) { animation-delay: 40ms; }
.grid-cards .card:nth-child(3) { animation-delay: 80ms; }
.grid-cards .card:nth-child(4) { animation-delay: 120ms; }
.grid-cards .card:nth-child(5) { animation-delay: 160ms; }
.grid-cards .card:nth-child(6) { animation-delay: 200ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   Responsiv
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .editor-grid { grid-template-columns: 1fr; }
  .preview-sticky { position: static; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .item-card .item-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .layout { padding: var(--sp-3) var(--sp-3) 56px; }
  .topbar { align-items: flex-start; }
  .topbar h1 { font-size: 15px; }
  .grid-cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-2); }
  .card { padding: var(--sp-3); }
  .card .value { font-size: 21px; }
  .detail-stats { gap: var(--sp-4); }
  .reel-row { grid-template-columns: 90px 1fr 70px 70px; }
  .reel-row > :nth-child(5), .reel-row > :nth-child(6) { display: none; }
}

/* Tabellen dürfen scrollen, die Seite nicht */
.table-scroll { overflow-x: auto; margin: 0 calc(var(--sp-4) * -1); padding: 0 var(--sp-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
