/* Erger Kundenportal: gleiche Farben und Schriften wie die Website, Schriften vom eigenen Server */
@font-face { font-family: "Archivo"; src: url("/wp-content/uploads/fonts/archivo-variable.woff2") format("woff2"); font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/wp-content/uploads/fonts/figtree-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/wp-content/uploads/fonts/jetbrains-mono-variable.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

body:has(.emp) { background: #1c1c1c; margin: 0; }
body:has(.emp) .wp-site-blocks, body:has(.emp) .wp-block-post-content, body:has(.emp) .entry-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body:has(.emp) .wp-site-blocks > *, body:has(.emp) .wp-block-post-content > * { max-width: none !important; margin-block: 0 !important; margin-inline: 0 !important; }
body:has(.emp) .has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }

.emp {
  --cosmic: #1c1c1c; --deep: #141414; --surface: #232323; --graphite: #4b4b4b; --line: #343434;
  --nebula: #1d3b5b; --glow: #8cc2f5; --fg: #f3f2ee; --muted: #a6acb3;
  --ok: #7cc39a; --warn: #f0b03c; --bad: #ec7a55;
  color-scheme: dark;
  background: var(--cosmic); color: var(--fg); min-height: 100vh;
  font-family: "Figtree", "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 48px;
}
.emp * { box-sizing: border-box; }
.emp h1, .emp h2, .emp h3, .emp h4 { color: var(--fg); font-family: "Archivo", "Arial Narrow", Arial, sans-serif; font-stretch: 112%; text-transform: uppercase; margin: 0; line-height: 1; letter-spacing: 0; }
.emp h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 850; }
.emp h2 { font-size: 18px; font-weight: 800; }
.emp h3, .emp h4 { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.emp p { margin: 0; }
.emp :where(a) { color: inherit; }
.emp [hidden] { display: none !important; }
.emp :focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.emp :where(button, input, select, textarea) { font: inherit; color: inherit; }
.emp-wrap { max-width: 1100px; margin: 0 auto; display: grid; gap: 22px; }
.emp-muted, .emp small { color: var(--muted); font-size: 13px; }
.emp-loading, .emp-error { padding: 40px 0; text-align: center; color: var(--muted); }
.emp-error { color: var(--bad); }

/* Kopf */
.emp-head { max-width: 1100px; margin: 0 auto 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.emp-logo { height: 40px; width: auto; display: block; }
.emp-head-right { display: flex; align-items: center; gap: 12px; }
.emp-who { font-size: 14px; color: var(--muted); }
.emp-home { display: block; }
.emp .emp-site-link { color: var(--glow); font-size: 14px; font-weight: 600; text-decoration: none; }
.emp .emp-site-link:hover { text-decoration: underline; }
.emp-login-box .emp-site-link { justify-self: start; }
.emp-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.emp-eyebrow { display: block; font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 8px; }
.emp-month { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; font-weight: 600; }
.emp-month span { min-width: 130px; text-align: center; }
.emp-icon { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.emp-icon:hover { background: var(--line); }
.emp-back { justify-self: start; background: none; border: 0; color: var(--glow); cursor: pointer; padding: 0; font-weight: 600; }

/* Knöpfe */
.emp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 11px 18px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid transparent; background: var(--fg); color: var(--cosmic); text-decoration: none; }
.emp-btn:hover { background: var(--glow); }
.emp-btn.small { padding: 7px 14px; font-size: 13px; }
.emp-btn.ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.emp-btn.ghost:hover { border-color: var(--fg); background: transparent; }
.emp-btn.ok { background: var(--ok); color: #10251a; }
.emp-btn.ok:hover { filter: brightness(1.08); }
.emp-btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: transparent; }
.emp-btn.small.danger:not(.ghost) { background: var(--bad); color: #2a0f06; }

/* Flächen */
.emp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 14px; }
.emp-empty { color: var(--muted); }
.emp-section { display: grid; gap: 12px; }
.emp-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.emp-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.emp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.emp-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.emp-tile span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.emp-tile b { font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 850; font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.emp-tile.hl b { color: var(--warn); }
.emp-tile.bad b { color: var(--bad); }
.emp-banner { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 12px; padding: 14px 16px; }

/* Kontingent */
.emp-quota { background: var(--nebula); border-radius: 12px; padding: 20px; display: grid; gap: 14px; }
.emp-quota-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.emp-quota .n { font-family: "Archivo", Arial, sans-serif; font-stretch: 118%; font-weight: 900; font-size: 54px; line-height: .9; color: var(--glow); }
.emp-quota.big .n { font-size: clamp(56px, 10vw, 84px); }
.emp-quota .of { font-size: 17px; color: color-mix(in srgb, var(--fg) 85%, transparent); }
.emp-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--cosmic) 55%, transparent); }
.emp-bar i { display: block; height: 100%; }
.emp-bar .done { background: var(--glow); }
.emp-bar .open { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--glow) 55%, transparent) 0 4px, color-mix(in srgb, var(--glow) 22%, transparent) 4px 8px); }
.emp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.emp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: color-mix(in srgb, var(--cosmic) 55%, transparent); }
.emp-legend i.done { background: var(--glow); }
.emp-legend i.open { background: color-mix(in srgb, var(--glow) 45%, transparent); }
.emp-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid color-mix(in srgb, var(--glow) 30%, transparent); padding-top: 12px; }
.emp-calc span { display: block; font-size: 12px; color: color-mix(in srgb, var(--fg) 70%, transparent); }
.emp-calc b { font-family: "JetBrains Mono", Consolas, monospace; font-weight: 500; font-size: 16px; }

/* Status */
.emp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.emp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-idee { color: var(--muted); }
.st-produktion { color: var(--glow); }
.st-freigabe { color: var(--warn); }
.st-nachbearbeitung { color: var(--bad); }
.st-freigegeben { color: var(--ok); }
.st-geplant { color: var(--fg); }
.st-online { color: var(--ok); }

/* Kundenliste */
.emp-clients { display: grid; gap: 8px; }
.emp-client { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1.3fr); gap: 16px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.emp-client:hover { border-color: var(--glow); }
.emp-client-name { display: grid; min-width: 0; }
.emp-client-name b { font-size: 16px; }
.emp-client-bar { display: grid; gap: 6px; }
.emp-client-flags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Beiträge (Admin) */
.emp-items { display: grid; gap: 8px; }
.emp-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.emp-item.open { border-color: color-mix(in srgb, var(--glow) 50%, var(--line)); }
.emp-item-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; background: none; border: 0; padding: 12px 16px; text-align: left; cursor: pointer; }
.emp-item-row .t { display: grid; min-width: 0; }
.emp-item-row .t b { overflow-wrap: anywhere; }
.emp .nr { font-family: "JetBrains Mono", Consolas, monospace; font-size: 15px; color: var(--muted); text-align: center; }
.emp-item-body { border-top: 1px solid var(--line); padding: 16px; display: grid; gap: 16px; }

/* Formulare */
.emp-form { display: grid; gap: 12px; }
.emp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.emp-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.emp-field { display: grid; gap: 4px; min-width: 0; }
.emp-field.wide { grid-column: span 2; }
.emp label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.emp input, .emp select, .emp textarea { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; min-width: 0; }
.emp textarea { resize: vertical; }
.emp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.emp-confirm { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.emp .emp-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--fg); cursor: pointer; }
.emp .emp-check input { width: auto; }
.emp-invite { display: grid; gap: 8px; justify-items: start; border-top: 1px solid var(--line); padding-top: 14px; }
.emp-invite textarea { font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; }
.emp-users { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.emp-users li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

/* Vorschau und Upload */
.emp-upload { display: grid; gap: 10px; position: relative; }
.emp-upload-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; }
.emp .emp-file { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.emp-upload label.emp-btn { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--cosmic); }
.emp-preview { max-width: 360px; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.emp-preview img, .emp-preview video { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #000; }
.emp-progress { position: relative; height: 26px; border-radius: 99px; background: var(--deep); border: 1px solid var(--line); overflow: hidden; max-width: 360px; }
.emp-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--nebula); transition: width .2s; }
.emp-progress span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 24px; }

/* Verlauf */
.emp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.emp-notes li { background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; border-left: 3px solid var(--graphite); }
.emp-notes li.k { border-left-color: var(--glow); }
.emp-notes li.t-approve { border-left-color: var(--ok); }
.emp-notes li.t-revision { border-left-color: var(--bad); }
.emp-note-meta { font-size: 12px; color: var(--muted); }
.emp-note-meta b { color: var(--fg); }
.emp-note-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.emp-note-form { display: grid; gap: 6px; justify-items: start; }

/* Kundenansicht */
.emp-kitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; align-items: start; }
.emp-kitem { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.emp-kitem.wait { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
.emp-kitem .emp-preview { max-width: none; }
.emp-kitem-head { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.emp-kitem-head .t { display: grid; min-width: 0; }
.emp-kitem-head .emp-pill { grid-column: 2; justify-self: start; }
.emp-decide { display: flex; gap: 10px; flex-wrap: wrap; }
.emp-decide .emp-btn { flex: 1; }
.emp-details summary { cursor: pointer; color: var(--glow); font-weight: 600; font-size: 14px; }
.emp-details[open] summary { margin-bottom: 10px; }

/* Anmeldung */
.emp-login { display: grid; place-items: center; min-height: 100vh; padding-block: 40px; }
.emp-login-box { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.emp-login-box > * { min-width: 0; }
.emp-login-box h1 { font-size: clamp(26px, 7vw, 34px); overflow-wrap: break-word; }
.emp-login form, .emp-login form p { grid-template-columns: minmax(0, 1fr); }
.emp-login-box .emp-logo { height: 52px; margin-bottom: 6px; }
.emp-login-box p { color: var(--muted); }
.emp-login form { display: grid; gap: 12px; margin: 0; }
.emp-login form p { margin: 0; display: grid; gap: 4px; }
.emp-login .login-remember label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--fg); }
.emp-login .login-remember input { width: auto; }
.emp-login input[type="submit"] { background: var(--fg); color: var(--cosmic); border: 0; border-radius: 99px; padding: 12px 18px; font-weight: 700; cursor: pointer; }
.emp-login input[type="submit"]:hover { background: var(--glow); }
.emp .emp-login-error { background: color-mix(in srgb, var(--bad) 16%, var(--deep)); border: 1px solid color-mix(in srgb, var(--bad) 55%, transparent); color: var(--fg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.emp-forgot { font-size: 14px; }
.emp-forgot summary { color: var(--glow); cursor: pointer; text-decoration: underline; }
.emp-forgot[open] { background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.emp-forgot[open] summary { margin-bottom: 8px; }
.emp-forgot p { color: var(--fg); margin-top: 6px; }
.emp-forgot a { color: var(--glow); }

.emp-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #f3f2ee; color: #1c1c1c; padding: 10px 16px; border-radius: 10px; font: 600 14px/1.4 "Figtree", system-ui, sans-serif; z-index: 99999; max-width: calc(100vw - 32px); }
.emp-toast.bad { background: #ec7a55; color: #2a0f06; }

@media (max-width: 860px) {
  .emp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emp-two { grid-template-columns: minmax(0, 1fr); }
  .emp-client { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .emp-client-flags { justify-content: flex-start; }
  .emp-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .emp-grid3, .emp-grid4 { grid-template-columns: minmax(0, 1fr); }
  .emp-field.wide { grid-column: auto; }
  .emp-who { display: none; }
  .emp-logo { height: 32px; }
  .emp-item-row { grid-template-columns: 28px minmax(0, 1fr); }
  .emp-item-row .emp-pill { grid-column: 2; justify-self: start; }
  .emp-month span { min-width: 110px; }
}

/* Demnächst geplant */
.emp-plan { list-style: none; margin: 0; padding: 0; display: grid; }
.emp-plan li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.emp-plan li:first-child { border-top: 0; }
.emp-plan-date { font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; color: var(--muted); }
.emp-plan-t { display: grid; min-width: 0; }
.emp-plan-t b { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .emp-plan li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .emp-plan li .emp-pill { justify-self: start; }
}

/* Kalender */
.emp-legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.emp-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.emp-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.emp-cal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.emp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.emp-wd { font-family: "JetBrains Mono", Consolas, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--deep); }
.emp-day { min-height: 104px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.emp-day:nth-child(7n) { border-right: 0; }
.emp-day.weekend { background: color-mix(in srgb, var(--deep) 55%, var(--surface)); }
.emp-day.out { background: var(--deep); }
.emp-dn { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; color: var(--muted); align-self: flex-start; padding: 1px 6px; border-radius: 5px; }
.emp-day.today .emp-dn { background: var(--glow); color: var(--cosmic); font-weight: 500; }
.emp-ev { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid currentColor; background: color-mix(in srgb, currentColor 14%, transparent); border-radius: 6px; padding: 5px 7px; font-size: 12px; line-height: 1.25; cursor: pointer; }
.emp-ev span { color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.emp-ev:hover { background: color-mix(in srgb, currentColor 26%, transparent); }
.emp-item.flash, .emp-kitem.flash { box-shadow: 0 0 0 2px var(--glow); transition: box-shadow .3s; }
@media (max-width: 700px) {
  .emp-day { min-height: 58px; padding: 5px; gap: 3px; }
  .emp-wd { padding: 8px 4px; text-align: center; }
  .emp-ev { height: 8px; padding: 0; border-left: 0; background: currentColor; border-radius: 4px; }
  .emp-ev span { display: none; }
}

/* Lange Kundennamen dürfen auf dem Handy umbrechen, statt die Seite zu verbreitern */
.emp-wrap { grid-template-columns: minmax(0, 1fr); }
.emp-title > div { min-width: 0; }
.emp h1 { overflow-wrap: anywhere; hyphens: auto; }

/* Monatswechsel am Kalender */
.emp-cal-head { align-items: center; }
.emp-cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.emp-cal-head .emp-legend-row { flex-basis: 100%; }

/* Feste Breiten, damit die Schaltflächen beim Monatswechsel nicht springen */
.emp-month span { min-width: 150px; font-variant-numeric: tabular-nums; }
.emp .emp-today[disabled] { visibility: hidden; }

/* Zugänge bearbeiten und löschen */
.emp-users li { flex-wrap: wrap; }
.emp-users li.editing { background: color-mix(in srgb, var(--nebula) 45%, transparent); border-radius: 8px; padding: 8px 10px; }
.emp-user-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.emp-users .emp-confirm { flex-basis: 100%; flex-wrap: wrap; gap: 8px; font-size: 14px; }

/* Zusätzliche Status und Admin-Liste */
.st-aufgenommen { color: #7fd1c7; }
.st-bearbeitung { color: #c4a7ff; }
.emp .emp-plan-link { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.emp .emp-plan-link:hover b { text-decoration: underline; }
.emp-quota-month { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 75%, transparent); margin-bottom: -6px; }

/* Kundenübersicht */
.emp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.emp-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.emp-table th { text-align: left; font-family: "JetBrains Mono", Consolas, monospace; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--deep); white-space: nowrap; }
.emp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.emp-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.emp-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.emp-table tbody tr { cursor: pointer; }
.emp-table tbody tr:hover, .emp-table tbody tr:focus-visible { background: color-mix(in srgb, var(--nebula) 35%, transparent); outline: none; }
.emp-table td .emp-bar { min-width: 140px; height: 8px; }
.emp-table .flags { display: flex; flex-wrap: wrap; gap: 4px; }
.emp-table tfoot td { border-bottom: 0; background: var(--deep); }
.emp-package { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.emp-package h3 { color: var(--fg); font-size: 22px; margin: 4px 0 6px; }
.emp-package-price { text-align: right; }
.emp-package-price b { display: block; font-family: "Archivo", Arial, sans-serif; font-stretch: 112%; font-weight: 850; font-size: 30px; }
@media (max-width: 520px) { .emp-package { grid-template-columns: minmax(0, 1fr); } .emp-package-price { text-align: left; } }
.emp-quota-note { font-size: 13px; color: color-mix(in srgb, var(--fg) 78%, transparent); margin: 0; }

/* Marken */
.emp-brand { display: inline-block; vertical-align: middle; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; margin-right: 8px; width: 34px; height: 34px; }
.emp-brand.sm { width: 26px; height: 26px; }
.emp-brand.xs { width: 18px; height: 18px; margin-right: 5px; border-radius: 4px; padding: 1px; }
.emp-brand-txt { font-size: 11px; font-weight: 600; background: var(--deep); border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; margin-right: 6px; }
.emp-brands { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.emp-brand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.emp-brand-list li { display: flex; align-items: center; gap: 10px; }
.emp-brand-list li span { flex: 1; font-weight: 600; }
.emp .emp-brand-form input[type="file"] { padding: 6px; }

/* Kundenkarten mit Hinweisen */
.emp-ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.emp-ccard { display: grid; grid-template-rows: auto 22px auto; gap: 10px; align-content: start; min-height: 132px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; }
.emp-ccard:hover, .emp-ccard:focus-visible { border-color: var(--glow); }
.emp-ccard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.emp-ccard-top b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.emp-ccard-logos { display: flex; gap: 4px; }
.emp-ccard-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.emp-bubble { flex: none; min-width: 24px; height: 24px; border-radius: 99px; background: var(--bad); color: #2a0f06; font-weight: 700; font-size: 13px; display: grid; place-items: center; padding: 0 7px; }
.emp-hint { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.emp-hint.new { color: var(--bad); border-color: currentColor; }
.emp-hint.bad { color: var(--bad); border-color: currentColor; }
.emp-hint.wait { color: var(--warn); border-color: currentColor; }
.emp-hint.ok { color: var(--ok); border-color: currentColor; }
.emp-revenue { gap: 0; padding: 4px 18px; }
.emp-rev-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.emp-rev-row:first-child { border-top: 0; }
.emp-rev-row small { display: block; color: var(--muted); font-size: 12px; }
.emp-rev-row .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) { .emp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .emp-tiles { grid-template-columns: minmax(0, 1fr); } .emp-tile b { font-size: 28px; } }

/* Anfragen & Ideen */
.emp-reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.emp-req { gap: 12px; }
.emp-req.st-req-neu { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.emp-req-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.emp-req-head h3 { color: var(--fg); font-size: 17px; text-transform: none; letter-spacing: 0; font-family: "Figtree", system-ui, sans-serif; font-weight: 700; margin: 4px 0 2px; }
.emp-req-type { font-family: "JetBrains Mono", Consolas, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--glow); }
.emp-req-text { white-space: pre-wrap; overflow-wrap: anywhere; color: color-mix(in srgb, var(--fg) 88%, transparent); }
.emp-req-admin { display: grid; gap: 8px; justify-items: start; border-top: 1px solid var(--line); padding-top: 10px; }
.emp-req-status { display: flex; flex-wrap: wrap; gap: 6px; }
.emp-pill.req-neu { color: var(--bad); }
.emp-pill.req-pruefung { color: var(--warn); }
.emp-pill.req-angenommen { color: var(--glow); }
.emp-pill.req-erledigt { color: var(--ok); }
.emp-pill.req-abgelehnt { color: var(--muted); }

/* Reiter in der Kundenansicht */
.emp-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; overflow-x: auto; position: sticky; top: 8px; z-index: 5; }
.emp-tabs button { flex: 1; border: 0; background: transparent; border-radius: 99px; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.emp-tabs button[aria-selected="true"] { background: var(--fg); color: var(--cosmic); }
.emp-tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--warn); color: #1c1c1c; font-size: 12px; padding: 0 6px; margin-left: 4px; }

/* Bildreihe (Karussell) */
.emp-gallery { display: grid; gap: 6px; }
.emp-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.emp-gallery-slide { scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.emp-gallery-slide img, .emp-gallery-slide video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.emp-gallery-count { font-size: 12px; color: var(--muted); }
.emp-item-body .emp-gallery-track { grid-auto-columns: minmax(200px, 260px); }
.emp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.emp-thumb { position: relative; width: 64px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--deep); border: 1px solid var(--line); display: grid; place-items: center; }
.emp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.emp-thumb small { position: absolute; left: 4px; bottom: 2px; color: #fff; font-weight: 700; text-shadow: 0 1px 2px #000; }
.emp .emp-thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer; }

/* Großansicht (Lightbox) */
.emp .emp-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.emp-noscroll, .emp-noscroll body { overflow: hidden; }
.emp-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(10,10,10,.94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.emp-lightbox[hidden] { display: none !important; }
.emp-lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; grid-column: 2; min-width: 0; }
.emp-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; }
.emp-lightbox figcaption { color: #f3f2ee; font: 600 14px/1.4 "Figtree", system-ui, sans-serif; }
.emp-lightbox button { border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; border-radius: 50%; }
.emp-lightbox button:hover { background: rgba(255,255,255,.24); }
.emp-lightbox button:focus-visible { outline: 2px solid #8cc2f5; outline-offset: 2px; }
.emp-lb-prev, .emp-lb-next { width: 48px; height: 48px; font-size: 30px; line-height: 1; justify-self: center; }
.emp-lb-prev { grid-column: 1; grid-row: 1; }
.emp-lb-next { grid-column: 3; grid-row: 1; }
.emp-lb-close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; font-size: 28px; line-height: 1; }
@media (max-width: 600px) {
  .emp-lightbox { grid-template-columns: minmax(0, 1fr); }
  .emp-lightbox figure { grid-column: 1; }
  .emp-lb-prev, .emp-lb-next { position: absolute; bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
  .emp-lb-prev { left: 24px; }
  .emp-lb-next { right: 24px; }
  .emp-lightbox img { max-height: calc(100vh - 150px); }
}

/* Kundenlogo */
.emp-title-name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.emp .emp-clogo { display: block; height: 56px; width: auto; max-width: 200px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; }
.emp .emp-clogo.xs { height: 34px; max-width: 140px; padding: 4px 8px; border-radius: 8px; }

/* Freigabe-Vermerk */
.emp .emp-decision { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; }
.emp .emp-decision.ok { color: #7fd6a2; }
.emp .emp-decision.bad { color: #f2a07b; }

/* Aufgaben des Kunden ganz oben */
.emp-todo { margin: 18px 0 8px; padding: 18px; border-radius: 16px; border: 2px solid #f0b429; background: rgba(240,180,41,.08); }
.emp-todo.done { border-color: rgba(127,214,162,.5); background: rgba(127,214,162,.07); }
.emp-todo.done p { margin: 0; }
.emp-todo h2 { display: flex; align-items: center; gap: 8px; }
.emp-todo-lead { margin: 0 0 14px; }
.emp-due { margin: 6px 0 -4px; font-weight: 700; font-size: 14px; color: #f0b429; }
.emp-due.urgent { color: #ff7a59; }
.emp .emp-banner-btn { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.emp-todo-item { display: grid; gap: 8px; align-content: start; min-width: 0; }
.emp-todo-item .emp-due { margin: 0; }

/* Download in der Großansicht */
.emp-lb-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.emp-lightbox .emp-lb-dl, .emp-lightbox .emp-lb-all { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #f3f2ee; color: #1c1c1c; font: 700 14px/1 "Figtree", system-ui, sans-serif; text-decoration: none; }
.emp-lightbox .emp-lb-all { background: rgba(255,255,255,.14); color: #fff; }
.emp-lightbox .emp-lb-dl:hover { background: #fff; }
.emp-lightbox .emp-lb-all[hidden] { display: none; }
.emp-lightbox img { max-height: calc(100vh - 160px); }
@media (max-width: 600px) { .emp-lightbox img { max-height: calc(100vh - 210px); } .emp-lb-bar { margin-bottom: 64px; } }

/* Korrektur-Vorschau */
.emp .emp-adjust-prev { margin: 4px 0 10px; font-size: 14px; }
.emp .emp-adjust-prev b { color: #f0b429; }
/* Als Nächstes kompakt */
.emp-next .emp-plan li { padding-top: 8px; padding-bottom: 8px; }
.emp-more summary { cursor: pointer; padding: 10px 0 2px; font-weight: 700; color: #f0b429; list-style: none; }
.emp-more summary::-webkit-details-marker { display: none; }
.emp-more summary::after { content: " ▾"; }
.emp-more[open] summary::after { content: " ▴"; }
.emp-more[open] summary { margin-bottom: 6px; }

/* Kontingent als Rechenzeile */
.emp .emp-calc-line { margin: 12px 0 0; font-size: 14px; opacity: .85; }
.emp .emp-calc-line b { font-weight: 800; }
/* Braucht deine Aufmerksamkeit */
.emp-attn { margin: 18px 0 8px; padding: 18px; border-radius: 16px; border: 2px solid #ff7a59; background: rgba(255,122,89,.07); }
.emp-attn.ok { border-color: rgba(127,214,162,.45); background: rgba(127,214,162,.06); padding: 12px 18px; }
.emp-attn h2 { display: flex; align-items: center; gap: 8px; }
.emp-attn-msgs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.emp-attn-msgs .emp-hint { cursor: pointer; border: 0; font: inherit; }
.emp .emp-why { color: #ff7a59; font-weight: 700; }
/* Als Nächstes nach Wochen */
.emp-week + .emp-week { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.emp-week h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* Mehrere Profile pro Zugang */
.emp-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.emp .emp-profile { display: grid; gap: 10px; justify-items: start; text-align: left; padding: 22px; border-radius: 18px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--prof) 45%, var(--line)); border-top: 6px solid var(--prof);
  background: linear-gradient(160deg, color-mix(in srgb, var(--prof) 16%, var(--surface)), var(--surface) 70%); transition: transform .15s, box-shadow .15s; }
.emp .emp-profile:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--prof) 25%, transparent); }
.emp-profile-logo { height: 64px; min-width: 64px; display: grid; place-items: center; border-radius: 14px; background: #fff; padding: 6px 12px; }
.emp-profile-logo img { height: 52px; max-width: 180px; object-fit: contain; display: block; }
.emp-profile-logo span { font: 850 30px "Archivo", Arial, sans-serif; color: #141414; }
.emp-profile-name { font: 850 22px/1.1 "Archivo", Arial, sans-serif; font-stretch: 112%; text-transform: uppercase; color: var(--fg); }
.emp-profile-info { font-size: 14px; color: var(--muted); }
.emp-profile-info b { color: var(--warn); }
.emp-profile-go { font-weight: 700; color: var(--prof); }
.emp-switch { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.emp-switch button { cursor: pointer; border: 1px solid color-mix(in srgb, var(--prof) 50%, var(--line)); background: transparent; color: var(--fg); border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.emp-switch button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--prof); }
.emp-switch button[aria-current="true"] { background: var(--prof); color: #141414; border-color: var(--prof); }
.emp-switch button[aria-current="true"]::before { background: #141414; }
.emp-switch .emp-switch-all { --prof: var(--graphite); color: var(--muted); }
.emp-switch .emp-switch-all::before { display: none; }
.emp-prof .emp-title { border-left: 6px solid var(--prof); padding-left: 16px; }
.emp-prof .emp-eyebrow { color: var(--prof); }
.emp-prof .emp-tabs [aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--prof); }

/* Kalender: Tage nach Stand eingefärbt */
.emp-day.has { --dc: var(--glow); background: color-mix(in srgb, var(--dc) 10%, var(--surface)); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--dc) 70%, transparent); }
.emp-day.day-online { --dc: var(--ok); background: color-mix(in srgb, var(--ok) 40%, var(--surface)); box-shadow: inset 0 0 0 2px var(--ok); }
.emp-day.day-ready { --dc: var(--ok); background: color-mix(in srgb, var(--ok) 16%, var(--surface)); }
.emp-day.day-warn { --dc: var(--warn); background: color-mix(in srgb, var(--warn) 16%, var(--surface)); }
.emp-day.day-bad { --dc: var(--bad); background: color-mix(in srgb, var(--bad) 18%, var(--surface)); }
.emp-day.day-online .emp-dn { color: var(--ok); font-weight: 700; }
.emp-day-badge { font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--ok); }
.emp-day.day-online .emp-ev.st-online { background: var(--ok); }
.emp-day.day-online .emp-ev.st-online span { color: #10251a; font-weight: 600; }
@media (max-width: 700px) {
  .emp-day-badge { font-size: 0; }
  .emp-day-badge::before { content: "✓"; font-size: 12px; }
}

/* Erst online ist fertig: freigegeben/geplant = nächster Schritt Hochladen */
.emp { --up: #b79cff; }
.st-freigegeben { color: var(--up); }
.st-geplant { color: var(--glow); }
.st-online { color: var(--ok); }
.emp-pill.st-online { background: var(--ok); color: #10251a; border-color: var(--ok); }
.emp-pill.st-online::before { display: none; }
.emp-upload { margin: 0 0 8px; padding: 18px; border-radius: 16px; border: 2px solid var(--up); background: color-mix(in srgb, var(--up) 8%, transparent); }
.emp-upload h2 { display: flex; align-items: center; gap: 8px; }
.emp-upload .emp-plan li { display: flex; align-items: center; gap: 12px; }
.emp-upload .emp-plan li .emp-plan-t { flex: 1; min-width: 0; }
.emp-upload .emp-plan li.late .emp-why-up { color: var(--bad); }
.emp .emp-why-up { color: var(--up); font-weight: 700; }
.emp .emp-online-btn { background: var(--ok); color: #10251a; border-color: var(--ok); white-space: nowrap; }
.emp-day.day-upload { --dc: var(--up); background: color-mix(in srgb, var(--up) 16%, var(--surface)); }
.emp-day.day-online { --dc: var(--ok); background: color-mix(in srgb, var(--ok) 45%, var(--surface)); box-shadow: inset 0 0 0 2px var(--ok); }
.emp-day.day-late { outline: 2px dashed var(--bad); outline-offset: -4px; }
.emp-day-badge.up { color: var(--up); }
.emp-ev.st-freigegeben { border-left-style: dashed; }
@media (max-width: 700px) {
  .emp-day-badge.up::before { content: "⬆"; }
  .emp-upload .emp-plan li { flex-wrap: wrap; }
}

/* Hockey-Bereich */
.emp .emp-hockey-entry { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer; padding: 20px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, #e2262d 45%, var(--line)); border-left: 6px solid #e2262d; background: linear-gradient(120deg, color-mix(in srgb, #e2262d 12%, var(--surface)), var(--surface) 65%); }
.emp .emp-hockey-entry:hover { border-color: #e2262d; }
.emp .emp-hockey-entry b { display: block; font: 850 20px/1.1 "Archivo", Arial, sans-serif; font-stretch: 112%; text-transform: uppercase; }
.emp .emp-hockey-entry > span:nth-child(2) { flex: 1; }
.emp-hockey-ico { font-size: 30px; line-height: 1; }
.emp-hockey-go { font-weight: 700; color: #ff6b70; }
.emp-hockey .emp-eyebrow { color: #ff6b70; }
.emp-teams { display: grid; gap: 12px; }
.emp-team { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #e2262d; }
.emp .emp-team-main { flex: 1; display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: 0; cursor: pointer; padding: 0; }
.emp .emp-team-main b { display: block; font-size: 17px; }
@media (max-width: 600px) { .emp-team { flex-wrap: wrap; } }

/* Offen aus Vormonaten */
.emp-carry { padding: 18px; border-radius: 16px; border: 2px dashed #f0b429; background: color-mix(in srgb, #f0b429 7%, transparent); }
.emp-carry .emp-item .nr { font-size: 11px; text-transform: uppercase; }
.emp-due.carry { color: #f0b429; }

/* Noch zu planen */
.emp-toplan-list { display: grid; gap: 10px; }
.emp .emp-toplan-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid #4aa3ff; color: inherit; font: inherit; }
.emp .emp-toplan-row.catch { border-left-color: #f0b429; }
.emp .emp-toplan-row:hover { border-color: #4aa3ff; }
.emp-toplan-name { flex: 1; min-width: 0; }
.emp-toplan-name b { display: block; font-size: 16px; }
.emp-toplan-name small b { color: #f0b429; }
.emp-toplan-n { text-align: center; min-width: 70px; }
.emp-toplan-n b { display: block; font-size: 26px; line-height: 1; }
.emp-toplan-n small, .emp-toplan-name small { opacity: .75; }
.emp-toplan-tip { font-weight: 700; color: #4aa3ff; font-size: 13px; white-space: nowrap; }
.emp-plan-ok { color: #3ecf8e; font-weight: 600; }
@media (max-width: 600px) { .emp .emp-toplan-row { flex-wrap: wrap; } .emp-toplan-tip { width: 100%; } }

.emp-toplan-later { display: block; margin-top: 2px; font-size: 12px; opacity: .6; }
.emp-toplan-name small { display: block; }
.emp .emp-toplan-name small b { display: inline; font-size: inherit; }
