/* niktrix: Steuerzentrale für Performance-Marketing.
   Navigationsleiste in Midnight Blue (#201547), helle Arbeitsfläche, Vermillion (#EB005A) für Aktionen. Grün bleibt den guten Zuständen vorbehalten. */

:root {
  --ink: #201547;
  --ink-soft: #2e2160;
  --ink-line: #40317a;
  --paper: #f4f3f8;
  --surface: #ffffff;
  --line: #e1deeb;
  --line-strong: #cbc6db;
  --text: #201547;
  --muted: #625c78;
  --signal: #eb005a;
  --signal-strong: #c2004a;
  --signal-soft: #fde5ee;
  --accent: #eb005a;
  --good: #0b7a63;
  --good-strong: #086350;
  --good-soft: #dcf0e9;
  --amber: #8a5a0b;
  --amber-soft: #faedcf;
  --rose: #b0362f;
  --rose-soft: #f9e1de;
  --r-card: 14px;
  --r-control: 9px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.5 var(--body);
}

a { color: var(--signal-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Rahmen */

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.side {
  background: var(--ink);
  color: #d6cce6;
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.wordmark { display: flex; align-items: center; gap: 0.6rem; color: #fff; font: 600 1.12rem "Unbounded", var(--display); letter-spacing: 0.01em; padding: 0 0.5rem; }
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; }
.side nav { display: flex; flex-direction: column; gap: 0.15rem; }
.side nav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.65rem; border-radius: var(--r-control);
  color: #d6cce6; font-weight: 500;
}
.side nav a:hover { background: var(--ink-soft); text-decoration: none; color: #fff; }
.side nav a.on { background: var(--ink-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side nav svg { width: 19px; height: 19px; flex: none; }
.count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 0.5rem; font-size: 0.78rem; font-weight: 700; }
.count.warn { background: #f0a23b; }
.side nav { overflow-y: auto; }
.side .foot a.linklike { display: block; margin-top: 0.2rem; }
.side .foot { margin-top: auto; border-top: 1px solid var(--ink-line); padding: 0.9rem 0.5rem 0; font-size: 0.9rem; }
.side .foot form { margin: 0.2rem 0 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #a898c0; cursor: pointer; }
.linklike:hover { color: #fff; text-decoration: underline; }

.main { padding: 2rem 2.25rem 4rem; min-width: 0; }
.wrap { max-width: 1180px; margin: 0 auto; }

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.pagehead .lede { color: var(--muted); margin-top: 0.3rem; }
.crumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; }
.crumb a { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.actions form { margin: 0; }

/* Flächen */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; margin-bottom: 1.25rem; }
.panel > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.panel > header p { color: var(--muted); font-size: 0.9rem; flex-basis: 100%; margin-top: -0.4rem; }
.section { scroll-margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--signal); color: #fff; border: 1px solid var(--signal);
  border-radius: var(--r-control); padding: 0.55rem 0.95rem;
  font: 600 0.92rem var(--body); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--signal-strong); border-color: var(--signal-strong); text-decoration: none; }
.btn.quiet { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.quiet:hover { background: var(--paper); }
.btn.danger { background: var(--surface); color: var(--rose); border-color: #e6bdb9; }
.btn.danger:hover { background: var(--rose-soft); }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

.badge { display: inline-block; border-radius: 99px; padding: 0.08rem 0.6rem; font-size: 0.78rem; font-weight: 600; background: #ebe7f1; color: var(--muted); vertical-align: middle; white-space: nowrap; }
.badge.active, .badge.connected, .badge.live, .badge.approved { background: var(--good-soft); color: var(--good-strong); }
.badge.pending, .badge.paused { background: var(--amber-soft); color: var(--amber); }
.badge.ended { background: #ebe7f1; color: var(--muted); }
.chip { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 0.1rem 0.65rem; font-size: 0.84rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.muted { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; color: var(--muted); font-size: 0.88rem; }
.empty { color: var(--muted); padding: 0.5rem 0; }

.flash { border-radius: var(--r-control); padding: 0.7rem 0.9rem; margin-bottom: 1rem; background: var(--good-soft); color: var(--good-strong); font-weight: 500; }
.flash.warning { background: var(--amber-soft); color: var(--amber); }
.flash.error { background: var(--rose-soft); color: var(--rose); }

/* Kennzahlen */

.kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; margin-bottom: 1.25rem; }
.kpi { padding: 0.9rem 1rem; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi span { display: block; color: var(--muted); font-size: 0.8rem; }
.kpi b { font: 650 1.3rem var(--display); font-variant-numeric: tabular-nums; }

.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 0.5rem; }
.chart i { flex: 1; min-height: 2px; background: var(--signal); border-radius: 3px 3px 0 0; opacity: 0.85; }
.chart i.zero { background: var(--line); }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; margin-top: 0.35rem; }

/* Marken-Grid */

.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.brandcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.brandcard:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.frame { background: #ebe7f1; border-bottom: 1px solid var(--line); padding: 0.45rem 0.7rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--muted); }
.frame::before { content: ""; width: 34px; height: 8px; flex: none; background: radial-gradient(circle 4px at 4px 4px, #cbc3d8 98%, transparent) 0 0 / 13px 8px repeat-x; }
.frame span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot { position: relative; aspect-ratio: 16 / 10; background: var(--brand, var(--signal)); display: grid; place-items: center; overflow: hidden; }
.shot b { font: 700 3.2rem var(--display); color: rgba(255, 255, 255, 0.9); letter-spacing: -0.03em; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.brandcard .body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.brandcard .title { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.brandcard .title h3 { font-size: 1.05rem; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.65rem; margin-top: auto; }
.mini span { display: block; color: var(--muted); font-size: 0.72rem; }
.mini b { font: 650 0.98rem var(--display); font-variant-numeric: tabular-nums; }
.brandcard .tail { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; }
.chip.hint { background: var(--signal-soft); border-color: transparent; color: var(--signal-strong); font-weight: 600; }

/* Markenkopf */

.brandhead { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-bottom: 1.25rem; }
.brandhead .preview { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.brandhead h1 { margin-bottom: 0.4rem; }
.brandhead .lede { color: var(--muted); margin-bottom: 0.8rem; max-width: 60ch; }
.tabs { display: flex; gap: 0.3rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tabs a { padding: 0.55rem 0.8rem; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--line-strong); }

/* Listen und Tabellen */

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows > li:last-child { padding-bottom: 0; }
.rows .name { font-weight: 600; color: var(--text); }
.rows form { margin: 0; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: right; padding: 0.55rem 0.6rem; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 500; border-top: 0; font-size: 0.82rem; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
td.left, th.left { text-align: left; }

/* Vorschläge */

.suggestions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.suggestion { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem; background: var(--surface); display: flex; flex-direction: column; gap: 0.7rem; }
.suggestion .top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.84rem; color: var(--muted); }
.suggestion .why { color: var(--text); font-size: 0.93rem; }
.suggestion dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; margin: 0; font-size: 0.88rem; }
.suggestion dt { color: var(--muted); }
.suggestion dd { margin: 0; }
.suggestion .actions { margin-top: auto; padding-top: 0.3rem; }
.channel { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--text); }
.channel::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--signal)); }
.channel.google_ads { --dot: #3b78e7; }
.channel.meta { --dot: #7a5af5; }
.channel.tiktok { --dot: #111; }
.channel.linkedin { --dot: #0a66c2; }
.channel.microsoft_ads { --dot: #1aa3a3; }
.channel.pinterest { --dot: #c8232c; }
.channel.reddit { --dot: #e2551d; }

.suggestion.rec { border-left: 4px solid var(--line-strong); }
.suggestion.rec.pause { border-left-color: var(--rose); }
.suggestion.rec.lower_budget { border-left-color: #d99a1c; }
.suggestion.rec.raise_budget { border-left-color: var(--good); }

/* Creatives */

.creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.creative { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.creative .art { background: #ebe7f1; display: grid; place-items: center; padding: 0.75rem; height: 230px; }
.creative .art img { display: block; width: auto; height: auto; max-width: 100%; max-height: 206px; border-radius: 6px; box-shadow: 0 6px 18px rgba(32, 21, 71, 0.18); }
.creative .copy { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.creative .copy .head { font-weight: 650; font-family: var(--display); font-size: 1.02rem; }
.creative .copy .text { font-size: 0.9rem; white-space: pre-line; }
.creative .foot { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 1rem; }
.creative .foot form { margin: 0; }
.adtext { background: var(--paper); border-radius: var(--r-control); padding: 0.8rem; margin: 0.9rem 1rem 0; }
.adtext small { color: var(--muted); display: block; margin-bottom: 0.2rem; }

.url { word-break: break-all; font-size: 0.86rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-control); padding: 0.6rem 0.75rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
.split > .panel { margin-bottom: 0; }
.stack-gap { margin-bottom: 1.25rem; }

dl.profile { display: grid; grid-template-columns: 150px 1fr; gap: 0.6rem 1rem; margin: 0; }
dl.profile dt { color: var(--muted); font-size: 0.9rem; }
dl.profile dd { margin: 0; }
.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin-bottom: 0.35rem; }

details.more > summary { cursor: pointer; font-weight: 600; color: var(--signal-strong); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; }
details.more[open] > summary::before { content: "− "; }
details.more[open] > summary { margin-bottom: 1rem; }

/* Formulare */

form.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
form.form > div:has(textarea), form.form > .full, form.form > .errorlist { grid-column: 1 / -1; }
form.form.inline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; }
form.form.inline > div:has(textarea) { grid-column: auto; }
form.form label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 0.3rem; }
form.form input, form.form select, form.form textarea {
  width: 100%; padding: 0.6rem 0.7rem; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  font: inherit; color: var(--text);
}
form.form input[type="color"] { padding: 0.2rem; height: 2.6rem; }
form.form input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin: 0 0.5rem 0 0; vertical-align: -0.15rem; accent-color: var(--signal); }
form.form div:has(> input[type="checkbox"]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; }
form.form div:has(> input[type="checkbox"]) label { margin: 0; }
form.form input:focus, form.form select:focus, form.form textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
form.form .helptext { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.25rem; }
.errorlist { color: var(--rose); margin: 0 0 0.3rem; padding: 0; list-style: none; font-size: 0.86rem; font-weight: 500; }

/* Alarme, Menü, Bericht */

.alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; background: #fdf3e2; border: 1px solid #f1d6a4; border-left: 4px solid #d99a1c; border-radius: var(--r-control); padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; }
.alert.site_down, .alert.spend_spike { background: var(--rose-soft); border-color: #eab8b3; border-left-color: var(--rose); }
.alert b { display: block; }
.alert form { margin: 0; }
.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.menu a { display: flex; flex-direction: column; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem; color: var(--text); font-weight: 600; }
.menu a:hover { border-color: var(--line-strong); text-decoration: none; }
.menu svg { width: 24px; height: 24px; color: var(--signal); }
.up { color: var(--rose); }
.down { color: var(--good-strong); }
.qr { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 0.5rem; width: 200px; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.4rem 1.5rem; font: 600 1rem ui-monospace, Menlo, monospace; margin: 0.8rem 0; }
textarea.code { width: 100%; min-height: 260px; font: 0.8rem/1.5 ui-monospace, Menlo, monospace; background: var(--ink); color: #e2d9f2; border: 0; border-radius: var(--r-control); padding: 0.9rem; }
.scorebox { display: flex; align-items: baseline; gap: 0.5rem; }
.scorebox b { font: 700 2rem var(--display); }
.post { align-items: flex-start !important; }
.post .thumb { width: 70px; border-radius: 8px; }
.checkrow { display: flex; align-items: center; gap: 0.6rem; }
table input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--signal); }

.tabs a.on { color: var(--text); border-bottom-color: var(--signal); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; max-height: 320px; overflow-y: auto; padding: 0.2rem; }
.pick { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; background: #ebe7f1; margin: 0 !important; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick .video { display: grid; place-items: center; height: 100%; font-size: 0.8rem; color: var(--muted); }
.pick input { position: absolute !important; top: 6px; left: 6px; width: 1.2rem !important; height: 1.2rem; z-index: 1; margin: 0 !important; }
.pick:has(input:checked) { outline: 3px solid var(--signal); outline-offset: -3px; }
form.form input[type="file"] { padding: 0.45rem; }

/* Anbindungen */

.state { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.state.on { color: var(--good-strong); }
.state.on::before { background: var(--good); }
.state.half { color: var(--amber); }
.state.half::before { background: #d99a1c; }
code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0.05rem 0.4rem; font-size: 0.86em; word-break: break-all; }
.panel .lede { color: var(--muted); margin-bottom: 0.9rem; max-width: 70ch; }
.note { background: var(--paper); border-radius: var(--r-control); padding: 0.7rem 0.9rem; font-size: 0.9rem; }

/* Anmeldung */

.loginpage { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 1.5rem; }
.logincard { width: 100%; max-width: 400px; background: var(--surface); border-radius: 18px; padding: 2rem; }
.logincard .wordmark { color: var(--ink); padding: 0; margin-bottom: 1.5rem; }
.logincard h1 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.logincard .lede { color: var(--muted); margin-bottom: 1.4rem; }
.logincard form.form { grid-template-columns: 1fr; }
.logincard .btn { justify-content: center; padding: 0.7rem; }

.tabbar { display: none; }

@media (max-width: 900px) {
  /* Die Kopfzeile bekommt nur ihre eigene Höhe, der Inhalt den Rest. Sonst teilen sich beide die Bildschirmhöhe. */
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 0.75rem 1rem; gap: 1rem; }
  .side nav, .side .foot .who { display: none; }
  .side .foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; gap: 1rem; }
  .side .foot a.linklike { margin: 0; }
  .side .foot form { margin: 0; }
  .main { padding: 1.1rem 1rem 6rem; }
  h1 { font-size: 1.45rem; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(-n + 2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .brandhead, .split { grid-template-columns: 1fr; }
  .split > .panel { margin-bottom: 1.25rem; }
  form.form { grid-template-columns: 1fr; }
  dl.profile { grid-template-columns: 1fr; gap: 0.1rem; }
  dl.profile dd { margin-bottom: 0.6rem; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--ink); padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; color: #b3a6c9; font-size: 0.72rem; font-weight: 600; padding: 0.35rem 0; border-radius: var(--r-control); position: relative; }
  .tabbar a.on { color: #fff; background: var(--ink-soft); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar .count { position: absolute; top: 2px; left: 54%; margin: 0; font-size: 0.68rem; padding: 0 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brandcard { transition: none; }
  .brandcard:hover { transform: none; }
}

/* Erscheinungsbild der Marke */
.identity { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: flex-start; }
.swatches { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.swatch { width: 84px; font-size: 0.78rem; color: var(--muted); }
.swatch i { display: block; height: 52px; border-radius: 10px; border: 1px solid var(--line-strong); margin-bottom: 0.3rem; }
.swatch b { display: block; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.identity .logo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem; }
.identity .logo.dark { background: var(--ink); }
.identity .logo img { display: block; max-height: 44px; max-width: 180px; }
.creative .credit { font-size: 0.78rem; color: var(--muted); }
button[disabled] { opacity: 0.6; cursor: progress; }

/* Marken sortieren */
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; }
.sortbar label { margin: 0; }
.sortbar label { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.sortbar select, .rows form input[name="value"] {
  font: inherit; color: var(--text); background-color: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 0.5rem 0.75rem;
}
.sortbar select {
  appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 600; width: auto; min-width: 13rem;
  padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23201547' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 0.95rem;
}
.sortbar select:hover { background-color: var(--paper); }
.sortbar select:focus, .rows form input[name="value"]:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.brandcell { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 5rem; }
.brandcell .brandcard { flex: 1; }
.movebar { display: flex; gap: 0.35rem; margin-top: 0.45rem; }
.movebar .btn { flex: 1; padding-left: 0.3rem; padding-right: 0.3rem; }
.movebar .btn[disabled] { cursor: default; opacity: 0.4; }
