/* Motorgeeks - Wo sitzt was: Aussehen */

/* Ein durchgehend dunkles Haus-Design - das Logo ist fuer dunklen Grund gezeichnet. */
:root {
  --bg: #0B0E13;
  --surface: #141920;
  --surface-2: #1B212A;
  --surface-3: #242C37;
  --ink: #EDF1F6;
  --ink-2: #9EA9B6;
  --ink-3: #6B7684;
  --line: #262E39;
  --line-strong: #38434F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 20px rgba(0, 0, 0, .38);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 44px rgba(0, 0, 0, .55);

  /* Hausfarbe aus dem Logo-Umriss */
  --brand: #14B394;
  --brand-2: #8ED4C6;
  --brand-deep: #009078;
  --on-brand: #04211B;

  /* Bauteile - jedes mit eigener Kennfarbe */
  --adblue: #6FA8FF;
  --adblue-bg: #15213A;
  --agr: #A2C755;
  --agr-bg: #1E2A10;
  --dpf: #F2786B;
  --dpf-bg: #341A17;
  --ecu: #E8A044;
  --ecu-bg: #32230F;

  --danger: #F2857C;
  --danger-bg: #381917;
  --ok: #5FC28F;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

.mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-s); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.app { max-width: 720px; margin: 0 auto; min-height: 100vh; }
.screen { display: none; }
.screen.active { display: block; }

/* ---------- Anmeldung ---------- */

#screen-login {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 24px;
}

#screen-login.active { display: grid; }

.loginbox {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loginbox { border-top: 3px solid var(--brand); }
.loginbox .brand { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; margin-bottom: 4px; }
.loginbox .brand span { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-2); }
.loginbox .msg { font-size: 13.5px; color: var(--danger); display: none; }
.loginbox .msg.show { display: block; }

/* ---------- Kopf ---------- */

.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--brand-deep); }
.topbar-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.wordmark { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.wordmark b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.wordmark span { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }

.icon-btn {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-m); color: var(--ink-2);
}
.icon-btn:active { background: var(--surface-3); }
.icon-btn svg { width: 20px; height: 20px; display: block; }

.logo-head { display: block; align-self: flex-start; width: auto; height: 36px; max-width: 100%; margin-bottom: 4px; }
.logo-login { display: block; width: 100%; max-width: 210px; height: auto; margin: 0 auto 2px; }

.searchwrap { padding: 0 14px 12px; display: flex; gap: 8px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 10px; }
.search svg { width: 17px; height: 17px; flex: none; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; outline: none; }
.search input::placeholder { color: var(--ink-3); }
.search button { border: 0; background: transparent; color: var(--ink-3); padding: 4px; display: none; }
.search.filled button { display: block; }

/* ---------- Sync-Anzeige ---------- */

.syncdot {
  position: relative;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--ok); flex: none;
}
.syncdot.busy { background: var(--ecu); animation: pulse 1s ease-in-out infinite; }
.syncdot.off { background: var(--ink-3); }
.syncdot.err { background: var(--danger); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.syncline { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Liste ---------- */

.list { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 108px; }

.card {
  display: flex; gap: 12px; align-items: stretch; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 12px; box-shadow: var(--shadow); transition: transform .12s ease;
}
.card:active { transform: scale(.99); }

.thumb { flex: none; width: 68px; height: 68px; border-radius: var(--r-m); background: var(--surface-3); overflow: hidden; display: grid; place-items: center; color: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb svg { width: 24px; height: 24px; }

.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.card-sub { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid transparent; }
.chip.off { color: var(--ink-3); border-color: var(--line-strong); background: transparent; font-weight: 600; }
.chip.adblue { color: var(--adblue); background: var(--adblue-bg); }
.chip.egr { color: var(--agr); background: var(--agr-bg); }
.chip.dpf { color: var(--dpf); background: var(--dpf-bg); }
.chip.ecu { color: var(--ecu); background: var(--ecu-bg); }

.empty { margin: 40px 14px; padding: 28px 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-l); text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.empty p { margin: 0; font-size: 14px; }

.fab {
  /* Über left/right + auto zentriert, nicht über left:50% — sonst stünde
     nur die halbe Bildschirmbreite zur Verfügung und der Text bräche um. */
  position: fixed; left: 0; right: 0; margin-left: auto; margin-right: auto;
  width: max-content; max-width: calc(100% - 32px);
  bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 32px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 17px;
  white-space: nowrap;
  /* Der weiche Ring hebt ihn vom dunklen Hintergrund ab */
  box-shadow: var(--shadow-lift), 0 0 0 5px rgba(20, 179, 148, .15);
}
.fab svg { width: 22px; height: 22px; flex: none; }
.fab:active { transform: scale(.97); }

/* ---------- Detail / Formular ---------- */

.subhead { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.subhead h1 { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.txt-btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: var(--r-m); padding: 9px 14px; font-size: 14px; font-weight: 600; flex: none; }
.txt-btn.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 700; }
.txt-btn.danger { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.txt-btn[disabled] { opacity: .5; cursor: default; }

.pad { padding: 14px 14px 120px; display: flex; flex-direction: column; gap: 14px; }

.vhead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.vhead h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.meta span { display: inline-flex; gap: 6px; align-items: baseline; }
.meta i { font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.note { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 8px; white-space: pre-wrap; }

.part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.part-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-left: 4px solid var(--part-color, var(--line-strong)); }
.part-head h3 { margin: 0; flex: 1; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--part-color, var(--ink)); }
.part-count { font-size: 12px; color: var(--ink-3); }
.part-body { padding: 0 14px 14px 18px; display: flex; flex-direction: column; gap: 12px; }

.field-out { display: flex; flex-direction: column; gap: 3px; }
.field-out i { font-style: normal; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.field-out p { margin: 0; font-size: 15px; white-space: pre-wrap; }

.missing { color: var(--ink-3); font-size: 14px; font-style: italic; }

.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery img { flex: none; width: 132px; height: 132px; object-fit: cover; border-radius: var(--r-m); background: var(--surface-3); border: 1px solid var(--line); scroll-snap-align: start; cursor: zoom-in; }

.shot { position: relative; flex: none; }
.shot img { width: 132px; height: 132px; }
.shot-del { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 999px; border: 0; background: rgba(12, 15, 20, .72); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.shot-del svg { width: 14px; height: 14px; }

.addshot { flex: none; width: 132px; height: 132px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: var(--surface-2); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; }
.addshot svg { width: 22px; height: 22px; }

/* ---------- Formular ---------- */

.fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.fieldset > h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--part-color, var(--ink-3)); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.waehler {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 12px;
}
.waehler > h4 {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-2);
  display: flex; align-items: center; gap: 7px;
}
.waehler > h4 svg { width: 14px; height: 14px; }
.waehler select {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 11px 12px; outline: none; color: var(--ink);
}
.waehler select:focus { border-color: var(--brand); }
.waehler select:disabled { opacity: .45; }
.waehler .hinweis { font-size: 11.5px; color: var(--ink-3); }
.trenner {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--line); }

label.f { display: flex; flex-direction: column; gap: 5px; }
label.f > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
label.f input, label.f textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 11px 12px; outline: none; }
label.f input:focus, label.f textarea:focus { border-color: var(--ink-2); background: var(--surface); }
label.f textarea { resize: vertical; min-height: 74px; line-height: 1.45; }

.formbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.formbar .txt-btn { flex: 1; padding: 13px; font-size: 15px; }
.app-wide { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; width: 100%; }

/* ---------- Overlays ---------- */

.sheet { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(8, 11, 15, .6); backdrop-filter: blur(3px); }
.sheet.open { display: flex; }
.sheet-box { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-lift); padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 88vh; overflow-y: auto; }
.sheet-box h4 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sheet-box p { margin: 0; font-size: 14px; color: var(--ink-2); }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .txt-btn { flex: 1; padding: 12px; }

.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 14px; font-size: 15px; }
.menu-item svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.menu-item small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.menu-item b { font-weight: 600; }

/* Markierung auf dem Foto — der Ring zeigt, wo das Teil sitzt.
   Das SVG liegt deckungsgleich über dem Bild: gleiche viewBox wie das Bild,
   "meet" verhält sich wie object-fit:contain, "slice" wie cover. */
.marklayer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Die Ringe dürfen den Finger nie selbst abfangen — sonst verliert das SVG
   beim Neuzeichnen die Berührung und das Loslassen kommt nicht an. */
.marklayer circle { fill: none; pointer-events: none; }
.marklayer .ring-schatten { stroke: rgba(6, 9, 13, .75); }
.marklayer .ring { stroke: var(--brand); }

.shot-view { position: relative; flex: none; display: block; line-height: 0; }
.shot-view img { display: block; }

.markview { position: fixed; inset: 0; z-index: 75; display: none; background: #07090C; flex-direction: column; }
.markview.open { display: flex; }
.mark-top { flex: none; padding: max(16px, env(safe-area-inset-top)) 16px 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-1); }
.mark-stage { flex: 1; position: relative; min-height: 0; margin: 0 8px; }
.mark-stage img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
/* touch-action: none — sonst scrollt das Handy beim Aufziehen des Rings */
.mark-stage .marklayer { pointer-events: auto; cursor: crosshair; touch-action: none; }
.mark-bar { flex: none; display: flex; gap: 8px; padding: 12px 14px max(14px, env(safe-area-inset-bottom)); }
.mark-bar button { flex: 1; }

.lightbox { position: fixed; inset: 0; z-index: 70; display: none; background: #07090C; }
.lightbox.open { display: block; }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.lightbox-close svg { width: 20px; height: 20px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 80; background: var(--brand); color: var(--on-brand); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 28px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.storagenote { font-size: 12px; color: var(--ink-3); text-align: center; padding: 0 14px; }
.konto {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 12px 14px; box-shadow: var(--shadow);
}
.konto-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.konto-mail { font-size: 15px; font-weight: 600; word-break: break-all; }
.konto-meta { font-size: 11.5px; color: var(--ink-3); }
.konto-offen { font-size: 11.5px; color: var(--dpf); font-weight: 600; }
.konto-tools button.ok { color: var(--brand); border-color: var(--brand); }
.konto-ich { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.konto-tools { display: flex; gap: 6px; flex: none; }

/* Wartet auf Freigabe */
.wartebox { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 15px 16px; margin-bottom: 14px; }
.wartebox h2 { font-size: 16px; margin: 0 0 7px; }
.wartebox p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.warte-mail { margin-top: 9px !important; font-size: 12px !important; color: var(--ink-3) !important; }

/* Startseite mit den Bereichen */
.kacheln { display: flex; flex-direction: column; gap: 12px; }
.kachel { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-l, 16px);
  padding: 18px 16px; color: var(--ink-1); font: inherit; }
.kachel:active { transform: scale(.99); }
.kachel-symbol { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(20, 179, 148, .13); color: var(--brand); }
.kachel-symbol svg { width: 24px; height: 24px; }
.kachel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kachel-titel { font-size: 16.5px; font-weight: 700; }
.kachel-unter { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.kachel-pfeil { flex: none; color: var(--ink-3); }
.kachel-pfeil svg { width: 18px; height: 18px; }
.kachel-bau { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dpf); }

/* Marken zum Antippen — erscheint erst, wenn der Bestand es hergibt */
.markenzeile { display: flex; gap: 7px; overflow-x: auto; padding: 0 14px 11px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.markenzeile::-webkit-scrollbar { display: none; }
.marke-chip { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.marke-chip.an { background: var(--brand); border-color: var(--brand); color: #08110F; }
.marke-chip em { font-style: normal; opacity: .6; margin-left: 5px; font-weight: 500; }
.marke-chip.an em { opacity: .75; }

/* Neuigkeiten */
.newsstreifen { display: flex; align-items: center; gap: 9px; width: calc(100% - 28px); margin: 0 14px 10px; padding: 11px 12px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--brand); border-radius: var(--r-m); color: var(--ink-1); font: inherit; }
.newsstreifen svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); margin-left: auto; }
.news-punkt { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); flex: none; }
.news-streifen-text { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.news-eintrag { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 14px; }
.news-eintrag.wichtig { border-color: var(--dpf); }
.news-kopf { display: flex; align-items: flex-start; gap: 8px; }
.news-titel { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.news-datum { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.news-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-top: 8px; white-space: pre-wrap; word-break: break-word; }
.news-marke { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dpf); }
.news-tools { display: flex; gap: 6px; flex: none; }
.news-tools button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.news-tools button svg { width: 15px; height: 15px; }
.news-tools button.del { color: var(--dpf); }
.news-neu { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

.schalter { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); margin: 2px 0 12px; }
.schalter input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Roter Punkt, wenn Anmeldungen warten */
.hat-neu { position: relative; }
.hat-neu::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 999px; background: var(--dpf); border: 2px solid var(--surface-1); }
.hat-news { position: relative; }
.hat-news::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 999px; background: var(--brand); border: 2px solid var(--surface-1);
  animation: pochen 1.6s ease-out 4; }

/* Pocht ein paar Mal und ist dann still — dauerndes Blinken nervt nur. */
@keyframes pochen {
  0%   { box-shadow: 0 0 0 0 rgba(20, 179, 148, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(20, 179, 148, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 179, 148, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hat-news::after { animation: none; }
}
.konto-wartet { font-size: 11.5px; color: var(--dpf); font-weight: 600; }
.konto-tools button.sperr { color: var(--ink-3); }

/* Änderungsprotokoll (nur Besitzerkonto) */
.log-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 2px; }
.log-eintrag { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 11px 12px; }
.log-punkt { width: 8px; height: 8px; border-radius: 999px; flex: none; margin-top: 6px; background: var(--ink-3); }
.log-punkt.neu { background: var(--brand); }
.log-punkt.geloescht { background: var(--dpf); }
.log-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.log-titel { font-size: 14.5px; font-weight: 600; }
.log-wer { font-size: 11.5px; color: var(--ink-3); }
.log-felder { font-size: 12px; color: var(--ink-2); word-break: break-word; }
.konto-tools button {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  border-radius: var(--r-m); width: 38px; height: 38px; display: grid; place-items: center;
}
.konto-tools button svg { width: 17px; height: 17px; }
.konto-tools button.del { color: var(--danger); }

.zaehler { font-size: 12px; color: var(--ink-3); text-align: center; }

.hidden-input { display: none; }
