/* Elektro Schneider Crew – design tokens taken from elektroschneiderguben.de (Tailwind values in comments). */
:root {
  --bg: #0a0b0d;              /* page background */
  --bg-deep: #07080a;         /* footer */
  --surface: #14161b;         /* cards */
  --line: rgba(180, 180, 179, .15);   /* border-[#B4B4B3]/15 */
  --line-soft: rgba(180, 180, 179, .1);
  --line-strong: rgba(180, 180, 179, .25);
  --text: #f3f4f6;
  --muted: #a1a5b7;
  --accent: #fff101;          /* Elektro Schneider yellow */
  --accent-hover: #fffa66;
  --accent-ink: #0a0b0d;
  --accent-10: rgba(255, 241, 1, .1);
  --accent-30: rgba(255, 241, 1, .3);
  --accent-35: rgba(255, 241, 1, .35);
  --glow: 0 0 15px rgba(255, 241, 1, .15);
  --green: #22c55e;
  --wa: #25d366;
  --red: #f87171;
  --blue: #60a5fa;
  --orange: #fb923c;
  --r-card: 16px;             /* rounded-2xl */
  --r-ctl: 12px;              /* rounded-xl */
  --r-tag: 6px;               /* rounded-md */
  --tap: 52px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
#app { flex: 1; display: flex; flex-direction: column; }
body.no-scroll { overflow: hidden; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.ico { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.loading { padding: 64px 0; text-align: center; color: var(--muted); }

/* eyebrow label – "UNSERE KERNKOMPETENZEN" on the main site */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 12px; margin-bottom: 12px;
  background: var(--accent-10); border: 1px solid var(--accent-30); border-radius: var(--r-tag);
  color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.eyebrow .ico { width: 14px; height: 14px; }

/* ---------- dev bar ---------- */
.devbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px;
  background: repeating-linear-gradient(-45deg, #141300 0 12px, #1a1800 12px 24px);
  border-bottom: 1px solid var(--accent-35);
}
.devbar__tag {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  background: var(--accent); color: var(--accent-ink); padding: 3px 8px; border-radius: var(--r-tag);
}
.devbar__roles { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 12px;
  background: rgba(180, 180, 179, .1); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.chip .ico { width: 16px; height: 16px; }
.chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip:disabled { opacity: .5; }

/* ---------- header (sticky, 80px, blurred like the main site) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 13, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar__inner {
  max-width: 1240px; margin: 0 auto; height: 80px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand:hover { color: inherit; }
.brand__logo { height: 44px; width: auto; display: block; filter: drop-shadow(0 0 15px rgba(255, 241, 1, .2)); }
.brand__crew {
  padding: 3px 9px; border-radius: var(--r-tag);
  background: var(--accent-10); border: 1px solid var(--accent-30); color: var(--accent);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.topbar__right { display: flex; align-items: center; gap: 8px; }

.lang { display: inline-flex; padding: 3px; background: rgba(180, 180, 179, .1); border: 1px solid var(--line); border-radius: 999px; }
.lang__btn {
  min-width: 42px; min-height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.lang__btn.is-on { background: var(--accent); color: var(--accent-ink); }

/* yellow outline pill – phone button in the main site header */
.pillbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: var(--accent-10); border: 1px solid var(--accent-35); border-radius: 999px;
  color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer;
}
.pillbtn:hover { background: rgba(255, 241, 1, .2); }
.pillbtn .ico { width: 16px; height: 16px; }

/* ---------- layout ---------- */
.main {
  width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 64px;
  display: flex; flex-direction: column; gap: 20px;
}
.main--wide { max-width: 1240px; gap: 28px; padding-top: 32px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px;
  transition: border-color .3s;
}
.card--flush { padding: 0; overflow: hidden; }
.card__title, .section__title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-size: 20px; font-weight: 700;
}
/* icon tile – w-14 h-14 bg-[#0A0B0D] border-[#FFF101]/30 rounded-xl with glow */
.card__title > .ico, .section__title > .ico {
  width: 44px; height: 44px; padding: 11px; color: var(--accent);
  background: var(--bg); border: 1px solid var(--accent-30); border-radius: var(--r-ctl); box-shadow: var(--glow);
}
.card__title .pill { margin-left: auto; }
.card__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: auto; padding-top: 16px; }
@media (min-width: 640px) { .card { padding: 32px; } .card--flush { padding: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background-color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .ico { width: 18px; height: 18px; }
.btn--xl { width: 100%; min-height: 56px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 18px rgba(255, 241, 1, .25); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--secondary, .btn--ghost {
  background: rgba(180, 180, 179, .1); border-color: rgba(180, 180, 179, .2); color: var(--text); font-weight: 600;
}
.btn--secondary:hover, .btn--ghost:hover { background: rgba(180, 180, 179, .2); border-color: var(--line-strong); color: var(--text); }
.btn--call { background: var(--green); color: #04150b; }
.btn--wa { background: var(--wa); color: #04150b; }
.btn--call:hover, .btn--wa:hover { color: #04150b; filter: brightness(1.08); }
.btn--copy {
  flex: none; min-height: 48px; padding: 8px 16px;
  background: rgba(180, 180, 179, .1); border-color: rgba(180, 180, 179, .2); color: var(--text); font-weight: 600;
}
.btn--copy.is-copied { background: var(--green); border-color: var(--green); color: #04150b; }
.btnrow { display: flex; gap: 10px; }
.btnrow > .btn { flex: 1; }
.btnrow--tight { gap: 6px; flex-wrap: wrap; }
.btnrow--tight > .btn { flex: none; }

.iconbtn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-ctl);
  background: rgba(180, 180, 179, .1); border: 1px solid rgba(180, 180, 179, .2); color: var(--text); cursor: pointer;
}
.iconbtn:hover { border-color: var(--accent-35); color: var(--accent); }
.iconbtn--call { color: var(--green); }
.iconbtn--wa { color: var(--wa); }
.iconbtn--danger { color: var(--red); }
.iconbtn--danger:hover { border-color: rgba(248, 113, 113, .5); color: var(--red); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.field > span b {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: var(--r-tag);
  background: var(--accent-10); border: 1px solid var(--accent-30); color: var(--accent); font-size: 11px;
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: var(--bg); border: 1px solid rgba(180, 180, 179, .2); border-radius: var(--r-ctl); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 241, 1, .15); }
.input--pin { font: 700 24px var(--font-mono); letter-spacing: .4em; }
.inputrow { display: flex; gap: 8px; }
.inputrow input { flex: 1; }
.form__error { color: var(--red); font-weight: 600; }
.hint { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.hint .ico { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-ctl); font-weight: 600; font-size: 15px; }
.alert--warn { background: rgba(251, 146, 60, .1); border: 1px solid rgba(251, 146, 60, .4); color: #fed7aa; }
.alert--warn .ico { color: var(--orange); }

/* ---------- login (hero of the main site) ---------- */
.login { display: flex; flex-direction: column; gap: 20px; padding-top: 16px; }
.login__hero { display: flex; flex-direction: column; padding: 8px 0 4px; }
.login h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.025em; }
.login h1 .accent { display: block; }
.lead { margin-top: 14px; color: var(--muted); font-size: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px; }
.seg__btn { min-height: 46px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg__btn.is-on { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 640px) { .login h1 { font-size: 44px; } }

/* ---------- worker view ---------- */
.hello { padding: 4px 0; }
.hello h1 { font-size: 36px; letter-spacing: -.025em; }
.hello__trip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 6px 14px; background: var(--accent-10); border: 1px solid var(--accent-35); border-radius: 8px;
  color: var(--accent); font-size: 14px; font-weight: 700;
}
.hello__trip .ico { width: 16px; height: 16px; }
.section { display: flex; flex-direction: column; gap: 16px; }
.section .section__title { margin-bottom: 4px; }
.place__name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.place__addr { font-size: 17px; color: var(--muted); margin-top: -10px; }

.codes { display: grid; gap: 12px; margin-top: 4px; }
.code {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.code--accent { border-color: var(--accent-35); background: linear-gradient(180deg, var(--accent-10), transparent 75%), var(--bg); box-shadow: var(--glow); }
.code__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.code__head .ico { width: 18px; height: 18px; color: var(--accent); }
.code__sub { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .85; }
.code__sub::before { content: '· '; }
.code__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code__value { font: 700 clamp(20px, 6vw, 28px)/1.15 var(--font-mono); letter-spacing: .03em; word-break: break-all; }
.code--accent .code__value { color: var(--accent); font-size: 38px; }

.sub { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 17px; font-weight: 700; }
.sub .ico { align-self: center; color: var(--accent); width: 18px; height: 18px; }
.sub small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: auto; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery__item { padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; background: var(--bg); aspect-ratio: 4 / 3; cursor: zoom-in; transition: border-color .3s; }
.gallery__item:hover { border-color: var(--accent-35); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info { display: flex; gap: 14px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.info .ico { color: var(--accent); margin-top: 2px; }
.info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.info p { color: #d4d6de; font-size: 15px; }

.manager { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.manager__who { display: flex; flex-direction: column; min-width: 0; }
.manager__who small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.manager__who strong { font-size: 18px; }
.manager__who span { color: var(--muted); }
.manager--sm { padding: 12px 0; }
.manager--sm .manager__who strong { font-size: 16px; }

.avatar {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-ctl);
  background: var(--bg); border: 1px solid var(--accent-30); color: var(--accent);
  font-size: 14px; font-weight: 800;
}
.avatar--lg { width: 56px; height: 56px; font-size: 18px; box-shadow: var(--glow); }

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.person__who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.person__who a { font-size: 16px; font-weight: 600; color: var(--accent); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 24px; }
.empty .ico { width: 56px; height: 56px; padding: 14px; color: var(--accent); border: 1px solid var(--accent-30); border-radius: var(--r-ctl); box-shadow: var(--glow); }
.empty p { color: var(--muted); }

/* ---------- admin ---------- */
.tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px;
}
.tabs__btn {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 16px; border: 0; border-radius: var(--r-ctl); background: transparent;
  color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
@media (max-width: 599px) {
  .tabs__btn { flex: 1 1 0; flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 12px; }
}

.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toolbar > div { display: flex; flex-direction: column; }
.toolbar h1 { font-size: 30px; letter-spacing: -.02em; }
@media (min-width: 640px) { .toolbar h1 { font-size: 36px; } }

/* stats – "15+ Jahre Branchenerfahrung" */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.kpi__num { font-size: 36px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.kpi__label { color: var(--text); font-size: 13px; font-weight: 600; }
.kpi--warn { border-color: rgba(251, 146, 60, .45); }
.kpi--warn .kpi__num { color: var(--orange); }
@media (max-width: 599px) { .kpis { gap: 10px; } .kpi { padding: 14px; } .kpi__num { font-size: 28px; } .kpi__label { font-size: 13px; line-height: 1.3; } }
/* phone numbers in lists are tap targets on mobile */
.manager__who a, .table td a[href^="tel:"], .asg__who a { display: inline-block; padding: 8px 0; margin: -8px 0; }
@media (max-width: 899px) { .table td a[href^="tel:"] { padding: 12px 0; margin: -12px 0; } }

.assign { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .assign { grid-template-columns: repeat(3, 1fr); } .assign__submit { grid-column: 3; align-self: end; min-height: 52px; } }
@media (min-width: 720px) { .assign .field:nth-child(4) { grid-column: 1; } }

/* group assignment */
.bulk { display: flex; flex-direction: column; gap: 24px; }
.bulk .card__title { margin-bottom: 0; }
.bulk-step { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.bulk-step__head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.bulk-step__head b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-10); border: 1px solid var(--accent-30); color: var(--accent); font-size: 13px;
}
.bulk-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bulk-row { grid-template-columns: 2fr 1fr 1fr; } }
.bulk-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bulk-search {
  flex: 1 1 220px; min-height: 48px; padding: 12px 16px; font-size: 16px;
  background: var(--bg); border: 1px solid rgba(180, 180, 179, .2); border-radius: var(--r-ctl);
}
.bulk-search:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 241, 1, .15); }
.bulk-workers { display: grid; gap: 8px; grid-template-columns: 1fr; max-height: 460px; overflow-y: auto; padding-right: 2px; }
@media (min-width: 720px) { .bulk-workers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .bulk-workers { grid-template-columns: 1fr 1fr 1fr; } }
.bulk-worker {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl); transition: border-color .2s, background-color .2s;
}
.bulk-worker:hover { border-color: var(--accent-30); }
.bulk-worker.is-on { border-color: var(--accent-35); background: linear-gradient(90deg, var(--accent-10), transparent 70%), var(--bg); }
.bulk-worker input, .bulk-acc input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.bulk-worker .avatar { width: 36px; height: 36px; font-size: 12px; }
.bulk-worker__name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.bulk-worker__state { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--green); text-align: right; }
.bulk-worker.is-busy { cursor: not-allowed; opacity: .6; }
.bulk-worker.is-busy .bulk-worker__state { color: var(--orange); }
.bulk-worker__state .ico { width: 14px; height: 14px; }
.bulk-accs { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-acc {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.bulk-acc.is-on { border-color: var(--accent-35); background: var(--accent-10); }
.bulk-acc.is-full .bulk-acc__beds { color: var(--red); }
.bulk-acc__name { font-weight: 600; }
.bulk-acc__beds { font-size: 13px; color: var(--muted); }
.bulk-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bulk-plan { grid-template-columns: 1fr 1fr; } }
.bulk-plan__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-ctl);
}
.bulk-plan__row span { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.bulk-plan__row.is-missing { border-color: rgba(251, 146, 60, .5); }
.bulk-plan__row select {
  flex: 0 1 60%; min-height: 44px; padding: 8px 12px; font-size: 15px;
  background: var(--surface); border: 1px solid rgba(180, 180, 179, .2); border-radius: 10px;
}
@media (max-width: 599px) {
  .bulk-plan__row { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  .bulk-plan__row select { flex: none; width: 100%; }
}
.bulk-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
@media (min-width: 720px) { .bulk-foot .btn--xl { width: auto; min-width: 280px; } }
.msg__to { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lang--inline .lang__btn { min-height: 32px; }

.asg-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .asg-list { grid-template-columns: 1fr 1fr; } }
.asg {
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .3s;
}
.asg:hover { border-color: var(--accent-30); }
.asg--completed { opacity: .55; }
.asg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.asg__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.asg__who > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.asg__who strong { font-size: 16px; }
.asg__who a { color: var(--muted); font-size: 14px; }
.asg__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.asg__meta li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; font-size: 14px; color: #d4d6de;
}
.asg__meta .ico { width: 15px; height: 15px; color: var(--muted); }
.asg__notify { display: flex; align-items: center; gap: 8px; color: var(--orange); font-size: 13px; font-weight: 600; }
.asg__notify .ico { width: 16px; height: 16px; }
.asg__notify.is-sent { color: var(--green); }
.asg__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.asg__icons { display: inline-flex; gap: 6px; margin-left: auto; }

.badge { display: inline-block; flex: none; padding: 4px 10px; border-radius: var(--r-tag); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; }
.badge--active { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: var(--green); }
.badge--planned { background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .35); color: var(--blue); }
.badge--completed { background: rgba(180, 180, 179, .1); border-color: var(--line); color: var(--muted); }
.pill { display: inline-block; padding: 4px 10px; border-radius: var(--r-tag); background: var(--bg); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.grid > .card { display: flex; flex-direction: column; gap: 10px; }
.grid > .card:hover { border-color: rgba(255, 241, 1, .4); }

.acc__photos { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 80px; gap: 8px; margin-bottom: 8px; }
.acc__photo { padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; background: var(--bg); cursor: zoom-in; }
.acc__photo:first-child { grid-row: span 2; }
.acc__photo:only-child { grid-column: span 2; }
.acc__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc__nophoto { grid-column: span 2; grid-row: span 2; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: var(--bg); border-radius: var(--r-ctl); border: 1px dashed var(--line-strong); }
.acc__name { font-size: 21px; font-weight: 700; }
.acc__residents { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #d4d6de; }
.acc__residents .ico { width: 16px; height: 16px; color: var(--muted); }

.beds { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; margin-top: 4px; }
.beds__bar { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); overflow: hidden; }
.beds__bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.beds--high .beds__bar span { background: var(--accent); }
.beds--full .beds__bar span { background: var(--red); }
.beds--full { color: var(--red); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 8px 0 0; padding: 16px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-ctl); font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--font-mono); font-weight: 700; word-break: break-all; }
.kv dd.kv--accent { color: var(--accent); }

.site__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.site__head h3 { font-size: 21px; font-weight: 700; }
.site--done { opacity: .65; }
.site__notes { font-size: 14px; color: #d4d6de; background: var(--bg); border: 1px solid var(--line-soft); padding: 12px 14px; border-radius: var(--r-ctl); }
.site__crew { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.site__crew .ico { width: 16px; height: 16px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.table td { padding: 16px 20px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover { background: rgba(255, 241, 1, .02); }
.pin { font: 700 18px var(--font-mono); letter-spacing: .15em; color: var(--accent); }
@media (max-width: 899px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 16px 20px; border-top: 1px solid var(--line); }
  .table tr:first-child { border-top: 0; }
  .table td { border: 0; padding: 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .table td[data-label]::before { content: attr(data-label); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
  .table td:first-child::before { display: none; }
  .td--actions { justify-content: flex-end !important; }
}

/* ---------- modal ---------- */
.modal {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); color: var(--text);
}
.modal::backdrop { background: rgba(5, 6, 8, .8); backdrop-filter: blur(4px); }
.modal__box { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 22px; font-weight: 700; }
.modal__body { padding: 24px; overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.msg__to { margin-bottom: 14px; }
.msg__to span { color: var(--muted); }
.msg__bubble {
  background: var(--bg); border: 1px solid var(--accent-30); border-radius: 16px 16px 16px 4px; padding: 16px 18px;
  font-size: 15px; line-height: 1.55; word-break: break-word; white-space: pre-wrap;
}
.msg__meta { margin-top: 10px; font-size: 13px; }

.photo-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-edit__item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-ctl); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.photo-edit__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-edit__remove {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: rgba(0, 0, 0, .75); color: #fff; cursor: pointer;
}
.photo-edit__remove .ico { width: 16px; height: 16px; }
.photo-edit__add {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-10); border: 1px dashed var(--accent-35); border-radius: var(--r-ctl); cursor: pointer;
}
.photo-edit__add.is-busy { opacity: .6; pointer-events: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .94); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; background: rgba(20, 22, 27, .8); color: #fff; cursor: pointer;
}
.lightbox__btn .ico { width: 26px; height: 26px; }
.lightbox__close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-weight: 700; color: #fff; background: rgba(20, 22, 27, .8); padding: 4px 12px; border-radius: 999px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  padding: 14px 18px; border-radius: var(--r-ctl); font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  background: var(--accent); color: var(--accent-ink); animation: toast-in .2s ease-out; transition: opacity .3s, transform .3s;
}
.toast--warn { background: var(--orange); color: #1e0f00; }
.toast--error { background: var(--red); color: #1a0505; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- privacy page ---------- */
.legal { line-height: 1.65; color: #d4d6de; }
.legal h1 { font-size: 30px; color: var(--text); margin-bottom: 6px; }
.legal h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }
.legal__meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.legal__note {
  margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r-ctl);
  background: var(--accent-10); border: 1px solid var(--accent-30); color: var(--accent); font-size: 14px; font-weight: 600;
}
.legal-hint { text-align: center; color: var(--muted); font-size: 13px; }
.legal-hint a { display: inline-block; padding: 12px 4px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer (#07080A like the main site) ---------- */
.foot {
  background: var(--bg-deep); border-top: 1px solid var(--line);
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 13px; color: var(--muted);
}
.foot a { display: inline-block; padding: 10px 2px; color: var(--muted); }
.foot a:hover { color: var(--accent); }

@media (max-width: 420px) {
  .brand__logo { height: 36px; }
  .brand__crew { font-size: 10px; letter-spacing: .1em; padding: 2px 7px; }
  .pillbtn span { display: none; }
}

/* ---------- motion – keyframes and timings from elektroschneiderguben.de ---------- */
@keyframes heroSlideUp {
  0% { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(4px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.es-enter { animation: heroSlideUp .7s cubic-bezier(.22, 1, .36, 1) var(--enter-delay, 0s) both; }
.es-reveal-pending {
  opacity: 0; transform: translateY(28px) scale(.98);
  transition: opacity .68s cubic-bezier(.22, 1, .36, 1) var(--stagger-delay, 0s),
    transform .68s cubic-bezier(.22, 1, .36, 1) var(--stagger-delay, 0s), border-color .3s;
}
.es-reveal-pending.es-revealed { opacity: 1; transform: none; }

@keyframes textElectricShimmer { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.shimmer {
  background: linear-gradient(90deg, #fff101, #fff 25%, #fff101 50%, #fffa66 75%, #fff101) 0 0 / 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent);
  animation: textElectricShimmer 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(255, 241, 1, .32));
}

@keyframes buttonBeam { 0% { transform: translateX(-140%) skewX(-22deg); } 35%, 100% { transform: translateX(260%) skewX(-22deg); } }
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-140%) skewX(-22deg); animation: buttonBeam 4.2s ease-in-out infinite;
}

.bg-grid { position: relative; isolation: isolate; }
.bg-grid::before {
  content: ''; position: absolute; inset: -24px 0; z-index: -1; pointer-events: none;
  background-size: 48px 48px;
  background-image: linear-gradient(90deg, rgba(255, 241, 1, .05) 1px, transparent 0), linear-gradient(rgba(255, 241, 1, .05) 1px, transparent 0);
  -webkit-mask-image: radial-gradient(at 65% 35%, #000 15%, transparent 75%); mask-image: radial-gradient(at 65% 35%, #000 15%, transparent 75%);
}

@keyframes floatSpark {
  0%, 100% { transform: translate(0, 0) scale(.85); opacity: .2; }
  50% { transform: translate(-10px, -28px) scale(1.25); opacity: .85; }
}
.spark {
  position: absolute; z-index: -1; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 16px 4px rgba(255, 241, 1, .65);
  animation: floatSpark 5.5s ease-in-out infinite;
}
.spark-1 { top: 8%; right: 14%; }
.spark-2 { top: 52%; right: 6%; width: 4px; height: 4px; animation-duration: 7s; animation-delay: 1.2s; }
.spark-3 { top: 28%; right: 34%; width: 5px; height: 5px; animation-duration: 6.2s; animation-delay: 2.5s; }

@keyframes pingSlow { 0% { transform: scale(1); opacity: .85; } 75%, 100% { transform: scale(2.8); opacity: 0; } }
.live-dot { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pingSlow 3s cubic-bezier(0, 0, .2, 1) infinite; }
.badge .live-dot { width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; }

@media (hover: hover) {
  .grid > .card, .asg, .kpi { transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s; }
  .grid > .card:hover, .asg:hover, .kpi:hover { transform: translateY(-4px); }
  .btn--primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 10px 35px -4px rgba(255, 241, 1, .58), 0 0 18px rgba(255, 241, 1, .4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
