/* ============================================================================
 *  Agentur-Cockpit
 *
 *  Gleiche Haltung wie das Büro: dunkle Arbeitsfläche, Bildkopf mit einer
 *  tragenden Zahl, darunter dichte Zeilen statt gleichförmiger Kacheln.
 *  Farbwelt hier: Code Geass – Schwarz, Violett, kaiserliches Gold.
 * ========================================================================== */

@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('fonts/geist-400-latin.woff2') format('woff2'), url('fonts/geist-400-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url('fonts/geist-500-latin.woff2') format('woff2'), url('fonts/geist-500-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('fonts/geist-600-latin.woff2') format('woff2'), url('fonts/geist-600-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 700; font-display: swap; src: url('fonts/geist-700-latin.woff2') format('woff2'), url('fonts/geist-700-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage'; font-weight: 400 800; font-display: swap; src: url('fonts/bricolage-400-800-latin.woff2') format('woff2'), url('fonts/bricolage-400-800-latin-ext.woff2') format('woff2'); }

:root {
  --bg: #08070c;
  --fl-1: #100e16;
  --fl-2: #17141f;
  --fl-3: #201b2b;
  --linie: #2d2640;
  --linie-fein: #1e1929;

  --text: #f0edf5;
  --text-2: #a49cb4;
  --text-3: #6e6682;

  --akzent: #8b5cf6;
  --akzent-hell: #a78bfa;
  --akzent-tief: #6d28d9;
  --akzent-weich: rgba(139, 92, 246, 0.15);
  --akzent-linie: rgba(139, 92, 246, 0.34);

  --gold: #d4af37;
  --gold-weich: rgba(212, 175, 55, 0.14);

  --gut: #4fb07a;
  --gut-weich: rgba(79, 176, 122, 0.14);
  --info: #6a9bd2;
  --info-weich: rgba(106, 155, 210, 0.14);
  --warn: #d9a441;
  --warn-weich: rgba(217, 164, 65, 0.14);
  --gefahr: #f0554f;
  --gefahr-weich: rgba(240, 85, 79, 0.14);

  --r-gross: 16px;
  --r: 11px;
  --r-klein: 8px;

  --e-aus: cubic-bezier(0.16, 1, 0.3, 1);
  --e-beides: cubic-bezier(0.65, 0, 0.35, 1);

  --font: 'Geist', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-anzeige: 'Bricolage', 'Geist', ui-sans-serif, system-ui, sans-serif;

  /* Knopf-Flächen: bewusst deutlich heller als der Untergrund. Ein Knopf muss
     man sehen können, bevor man mit der Maus darüberfährt. */
  --knopf: #241f31;
  --knopf-tief: #1b1725;
  --knopf-rand: #423961;
  --knopf-hover: #2f2743;
  --knopf-rand-hover: #55497a;

  --z-kopf: 20;
  --z-meldung: 40;

  /* --- Altnamen -------------------------------------------------------------
     akquise.css wurde nicht mit umbenannt und benutzt noch diese Namen.
     Nicht entfernen, ohne dort umzustellen – sonst verliert die Akquise-Seite
     Rahmen, Flächen und Farben (genau das ist schon einmal passiert). */
  --surface: var(--fl-1);
  --surface-2: var(--fl-2);
  --surface-3: var(--fl-3);
  --border: var(--linie);
  --border-soft: var(--linie-fein);
  --text-dim: var(--text-2);
  --text-mut: var(--text-3);
  --accent-soft: var(--akzent-weich);
  --accent-linie: var(--akzent-linie);
  --danger: var(--gefahr);
  --danger-soft: var(--gefahr-weich);
  --good: var(--gut);
  --radius: var(--r-gross);
  --radius-sm: var(--r);
  --ring: 0 0 0 3px var(--akzent-weich);
  --ease: var(--e-aus);
}
:root { --accent: #8b5cf6; --accent-hell: #a78bfa; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--akzent-weich); color: var(--text); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.ic {
  display: inline-block; width: 1.1em; height: 1.1em; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--i) no-repeat center / contain;
  mask: var(--i) no-repeat center / contain;
  vertical-align: -0.18em;
}
.ic.riesig { width: 38px; height: 38px; }

/* --- Kopfzeile ---------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-kopf);
  display: flex; align-items: center; gap: 24px; padding: 13px 30px; flex-wrap: wrap;
  background: rgba(8, 7, 12, 0.82);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--linie-fein);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-anzeige); font-weight: 700; font-size: 16px;
  letter-spacing: -0.025em; text-decoration: none; white-space: nowrap;
}
/* Das echte Geass-Sigill, per Maske violett eingefärbt. */
.brand .geass {
  width: 28px; height: 24px; flex: none; display: block;
  background-color: var(--akzent-hell);
  -webkit-mask: url('bilder/geass-sigill.png') no-repeat center / contain;
  mask: url('bilder/geass-sigill.png') no-repeat center / contain;
  filter: drop-shadow(0 0 9px rgba(167, 139, 250, 0.6));
  transition: filter 320ms var(--e-aus), transform 420ms var(--e-aus);
}
.brand:hover .geass { filter: drop-shadow(0 0 16px rgba(167, 139, 250, 1)); transform: scale(1.08); }

.nav { display: flex; gap: 1px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--text-3);
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  padding: 7px 12px; border-radius: var(--r-klein);
  transition: color 200ms var(--e-aus), background 200ms var(--e-aus);
}
.nav a .ic { opacity: 0.65; transition: opacity 200ms var(--e-aus); }
.nav a:hover { color: var(--text); background: var(--fl-2); }
.nav a:hover .ic { opacity: 1; }
.nav a.an { color: var(--text); }
.nav a.an .ic { opacity: 1; color: var(--akzent-hell); }
.nav a.an::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 1.5px;
  border-radius: 2px; background: var(--akzent); animation: strich 320ms var(--e-aus);
}
@keyframes strich { from { transform: scaleX(0); } }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* --- Bildkopf ------------------------------------------------------------------ */
.hero {
  position: relative; margin-bottom: 22px;
  width: 100vw; margin-left: 50%; transform: translateX(-50%);
}
.hero-bild {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: #000 url('bilder/cockpit-hero.jpg') no-repeat center right / cover;
}
.hero-bild::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 4%, rgba(8, 7, 12, 0.94) 40%, rgba(8, 7, 12, 0.5) 70%, rgba(8, 7, 12, 0.12) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(8, 7, 12, 0.35) 34%, transparent 70%);
}
.hero-inhalt { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 40px 30px 38px; }
.hero-block { max-width: 620px; }
.hero-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; max-width: 1120px; }
.hero-kopf h1 { margin: 0; font-family: var(--font-anzeige); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.035em; }
.hero-uhr { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.hero-uhr::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gut); animation: atmen 3.4s var(--e-beides) infinite; }
@keyframes atmen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 176, 122, 0.5); }
  55% { box-shadow: 0 0 0 6px rgba(79, 176, 122, 0); }
}
.hero-marke { font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.betrag {
  font-family: var(--font-anzeige); font-weight: 700;
  font-size: clamp(42px, 5.6vw, 72px); letter-spacing: -0.045em; line-height: 0.92;
  display: flex; align-items: baseline; gap: 3px;
}
.betrag .g { font-size: 1em; }
.betrag .w { font-size: 0.3em; color: var(--text-3); margin-left: 0.4em; font-weight: 500; letter-spacing: 0; }
.hero-unter { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.hero-unter b { color: var(--text); font-weight: 600; }
.hero-unter .trenn { color: var(--text-3); margin: 0 9px; }

.ring-block { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.ring { position: relative; width: 122px; height: 122px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .spur { fill: none; stroke: var(--fl-3); stroke-width: 7; }
.ring .fuellung { fill: none; stroke-width: 7; stroke-linecap: round; stroke: var(--akzent-hell); transition: stroke-dashoffset 1100ms var(--e-aus); }
.ring.gruen .fuellung { stroke: var(--gut); }
.ring.gelb .fuellung { stroke: var(--warn); }
.ring.rot .fuellung { stroke: var(--gefahr); }
.ring .mitte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .prozent { font-family: var(--font-anzeige); font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.ring .prozent span { font-size: 0.5em; color: var(--text-3); margin-left: 1px; }
.ring-text { max-width: 250px; }
.ring-text .t { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.ring-text .u { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* --- Hauptbereich --------------------------------------------------------------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 30px 110px; }
.sekt { display: flex; align-items: baseline; gap: 16px; margin: 44px 0 14px; }
.sekt:first-child { margin-top: 30px; }
.sekt h2 { margin: 0; font-family: var(--font-anzeige); font-size: 17px; font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; }
.sekt .linie { flex: 1; height: 1px; background: var(--linie-fein); }
.sekt .meta { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.sekt .meta a { color: var(--akzent-hell); text-decoration: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 32px 0 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-family: var(--font-anzeige); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.035em; }
.page-head .sub { color: var(--text-2); font-size: 13px; }
.crumb { color: var(--text-3); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; transition: color 200ms var(--e-aus); }
.crumb:hover { color: var(--akzent-hell); }

/* --- Schaltflächen -------------------------------------------------------------- */
/* Ein Knopf muss erhaben wirken: hellere Fläche als der Untergrund, sichtbarer
   Rand, feine Lichtkante oben, weicher Schatten darunter. Beim Drücken kehrt
   sich das um – die Fläche sinkt ein. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-klein);
  border: 1px solid var(--knopf-rand);
  background: linear-gradient(180deg, var(--knopf), var(--knopf-tief));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset, 0 1px 2px rgba(0, 0, 0, 0.5);
  color: var(--text);
  cursor: pointer; text-decoration: none; font-weight: 550; font-size: 13px;
  letter-spacing: -0.005em; white-space: nowrap; user-select: none;
  transition: background 160ms var(--e-aus), border-color 160ms var(--e-aus),
              box-shadow 160ms var(--e-aus), transform 90ms var(--e-aus);
}
.btn:hover { background: linear-gradient(180deg, var(--knopf-hover), var(--knopf)); border-color: var(--knopf-rand-hover); }
.btn:active {
  transform: translateY(1px);
  background: var(--knopf-tief);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) inset;
}
.btn:focus-visible { outline: 2px solid var(--akzent-hell); outline-offset: 2px; }
.btn.primary {
  background: var(--akzent); border-color: var(--akzent); color: #fff; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 8px 22px -12px rgba(139, 92, 246, 0.95);
}
.btn.primary:hover { background: var(--akzent-hell); border-color: var(--akzent-hell); }
.btn.primary:active { background: var(--akzent-tief); }
.btn.big { padding: 11px 22px; font-size: 14px; border-radius: var(--r); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; }
/* Auch der zurückhaltende Knopf behält einen Rand – ganz ohne Kante erkennt
   man nicht, dass man darauf drücken kann. */
.btn.ghost { background: var(--fl-2); border-color: var(--linie); box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--fl-3); border-color: var(--knopf-rand); }
.btn.ghost:active { background: var(--fl-2); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) inset; }
.btn.danger { color: var(--gefahr); }
.btn.danger:hover { background: var(--gefahr-weich); border-color: rgba(240, 85, 79, 0.45); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.action-bar { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 18px; }

/* --- Kundenzeilen (statt Kachelraster) ------------------------------------------ */
.zeilen { border-top: 1px solid var(--linie-fein); }
.kunde {
  display: grid; grid-template-columns: 8px minmax(0, 1.5fr) minmax(0, 1fr) 190px auto;
  align-items: center; gap: 16px;
  padding: 16px 12px 16px 4px; border-bottom: 1px solid var(--linie-fein);
  text-decoration: none; position: relative;
  transition: background 180ms var(--e-aus);
  animation: rein 460ms var(--e-aus) backwards; animation-delay: calc(var(--n, 0) * 45ms);
}
@keyframes rein { from { opacity: 0; transform: translateY(8px); } }
.kunde:hover { background: var(--fl-1); }
.kunde:hover .pfeil { transform: translateX(3px); color: var(--akzent-hell); }
.kunde:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; border-radius: var(--r-klein); }
.kunde .puls { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.kunde .puls.live { background: var(--gut); box-shadow: 0 0 0 4px var(--gut-weich); }
.kunde .puls.arbeit { background: var(--akzent-hell); box-shadow: 0 0 0 4px var(--akzent-weich); }
.kunde .puls.warten { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-weich); }
/* display:block ist nötig – bei inline-Elementen greift overflow/ellipsis nicht. */
.kunde .name { display: block; font-family: var(--font-anzeige); font-size: 16px; font-weight: 600; letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kunde .unter { font-size: 12.5px; color: var(--text-3); margin-top: 3px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.kunde .fort { display: flex; align-items: center; gap: 10px; }
.kunde .pct { font-size: 12.5px; color: var(--text-3); white-space: nowrap; min-width: 46px; text-align: right; }
.kunde .pfeil { color: var(--text-3); transition: transform 220ms var(--e-aus), color 220ms var(--e-aus); }
.kunde.uninit .name { color: var(--text-2); }
@media (max-width: 860px) {
  .kunde { grid-template-columns: 8px 1fr auto; }
  .kunde .spalte-fort, .kunde .spalte-phase { display: none; }
}

.progress { height: 4px; border-radius: 999px; background: var(--fl-3); overflow: hidden; flex: 1; min-width: 60px; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--akzent); transition: width 900ms var(--e-aus); }
.progress.done > i { background: var(--gut); }

/* Alte Kartenklassen – falls irgendwo noch verwendet */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.card { display: block; background: var(--fl-1); border: 1px solid var(--linie-fein); border-radius: var(--r-gross); padding: 19px; text-decoration: none; transition: border-color 180ms var(--e-aus), transform 220ms var(--e-aus); }
.card:hover { border-color: var(--akzent-linie); transform: translateY(-2px); }
.card h3 { margin: 0 0 3px; font-family: var(--font-anzeige); font-size: 16px; font-weight: 600; letter-spacing: -0.025em; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .meta-line { color: var(--text-3); font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.card .pct { color: var(--text-3); font-size: 12px; }

.empty { border: 1px dashed var(--linie); border-radius: var(--r-gross); padding: 52px 24px; text-align: center; color: var(--text-2); }
.empty strong { color: var(--text); }
.empty .ic.riesig { color: var(--text-3); opacity: 0.5; margin-bottom: 14px; }

/* --- Abzeichen ------------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 3px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.phase-intake { background: var(--fl-3); color: var(--text-2); }
.badge.phase-bauen { background: var(--akzent-weich); color: var(--akzent-hell); }
.badge.phase-recht-seo { background: var(--info-weich); color: var(--info); }
.badge.phase-qualitaet { background: var(--warn-weich); color: var(--warn); }
.badge.phase-deploy { background: var(--gold-weich); color: var(--gold); }
.badge.phase-live { background: var(--gut-weich); color: var(--gut); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); border: 1px solid var(--linie); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.chip .hdot { width: 7px; height: 7px; border-radius: 50%; }
.hdot.cloudflare { background: #f6821f; }
.hdot.vercel { background: #f0edf5; }

/* --- Detailseite ---------------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--fl-1); border: 1px solid var(--linie-fein); border-radius: var(--r-gross); padding: 22px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { margin: 0 0 16px; font-family: var(--font-anzeige); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; }
.panel h2 .r { margin-left: auto; font-family: var(--font); font-size: 12.5px; color: var(--text-3); font-weight: 400; }

/* --- Formulare ------------------------------------------------------------------ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--fl-2); border: 1px solid var(--linie);
  border-radius: var(--r-klein); color: var(--text); padding: 10px 12px; font: inherit;
  transition: border-color 180ms var(--e-aus), background 180ms var(--e-aus), box-shadow 180ms var(--e-aus);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3d3355; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--akzent); background: var(--fl-3); box-shadow: 0 0 0 3px var(--akzent-weich); }
.field textarea { resize: vertical; min-height: 76px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; line-height: 1.55; max-width: 68ch; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.hosting-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .hosting-pick { grid-template-columns: 1fr; } }
.hosting-pick label { position: relative; display: block; border: 1px solid var(--linie); border-radius: var(--r); padding: 13px 15px; cursor: pointer; background: var(--fl-2); transition: border-color 180ms var(--e-aus), background 180ms var(--e-aus), transform 120ms var(--e-aus); }
.hosting-pick label:hover { border-color: #3d3355; }
.hosting-pick label:active { transform: scale(0.99); }
/* Winzig statt nur durchsichtig – sonst zieht die Breite aus .field input das
   absolut gesetzte Feld über den Bildschirmrand hinaus. */
.hosting-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hosting-pick label.on { border-color: var(--akzent); background: var(--akzent-weich); }
.hosting-pick .h-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.hosting-pick .h-note { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.check-group { margin-bottom: 18px; }
.check-group h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 6px 7px; border-radius: var(--r-klein); cursor: pointer; transition: background 140ms var(--e-aus); font-size: 13px; }
.check-item:hover { background: var(--fl-2); }
.check-item input { accent-color: var(--akzent); width: 15px; height: 15px; cursor: pointer; flex: none; }
.check-item.on { color: var(--text-3); text-decoration: line-through; }

.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie-fein); font-size: 12.5px; }
.log li:last-child { border-bottom: none; }
.log .ts { color: var(--text-3); white-space: nowrap; }
.log .txt { color: var(--text-2); line-height: 1.65; }
.log-empty { color: var(--text-3); font-size: 12.5px; }

.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 12px; }
.foto-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-klein); border: 1px solid var(--linie); background: var(--fl-3); transition: transform 220ms var(--e-aus), border-color 220ms var(--e-aus); }
.foto-grid img:hover { transform: scale(1.04); border-color: var(--akzent); }
.dropzone {
  display: block; border: 1.5px dashed var(--knopf-rand); border-radius: var(--r);
  background: var(--fl-2);
  padding: 26px 20px; text-align: center; color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: border-color 200ms var(--e-aus), background 200ms var(--e-aus), color 200ms var(--e-aus);
}
.dropzone:hover, .dropzone.drag { border-color: var(--akzent); background: var(--akzent-weich); color: var(--text); }
.dropzone:hover .btn { background: linear-gradient(180deg, var(--knopf-hover), var(--knopf)); border-color: var(--knopf-rand-hover); }
/* Der Knopf gehört auf eine eigene Zeile; pointer-events:none, damit der
   Klick am Knopf vorbei ans umschließende <label> geht. */
.dropzone small { display: block; margin-top: 4px; }
.dropzone .btn { margin-top: 16px; pointer-events: none; }
.dropzone input { display: none; }
.dropzone .ic.riesig { opacity: 0.45; margin-bottom: 8px; }

.note { background: var(--akzent-weich); border: 1px solid var(--akzent-linie); border-radius: var(--r); padding: 13px 15px; font-size: 13px; margin: 12px 0; }
.note code { background: var(--fl-3); border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-all; }
.kv a { color: var(--akzent-hell); text-decoration: none; }
.kv a:hover { text-decoration: underline; }

/* --- Meldung -------------------------------------------------------------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: var(--z-meldung);
  transform: translateX(-50%) translateY(14px) scale(0.97);
  background: var(--fl-3); border: 1px solid var(--linie); color: var(--text);
  border-radius: var(--r); padding: 13px 20px; font-size: 13.5px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
  opacity: 0; pointer-events: none; max-width: min(90vw, 500px);
  transition: opacity 280ms var(--e-aus), transform 280ms var(--e-aus);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.toast.error { border-color: rgba(240, 85, 79, 0.4); color: #ffd0cc; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .kunde { animation: none; opacity: 1; transform: none; }
}

/* Hinweis in der Cloud-Fassung: Funktion braucht den PC */
.empty.nur-pc {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(157, 92, 255, .3);
  background: rgba(157, 92, 255, .07);
  border-radius: 14px;
  line-height: 1.65;
}
.empty.nur-pc b { display: block; margin-bottom: 8px; font-size: 15px; }
.empty.nur-pc p { margin: 0; opacity: .85; font-size: 13.5px; }
