/* Webvisionär Hub. Brand look: deep space background, glass panels, white logo (W, star and
   letters in one color like the original), brand blue (#3690BD from the Webvisionär offers) as the accent.
   Content-KI keeps its production-sheet structure: Niveau badges, status pills, shotlists. */

@font-face {
  font-family: "Inter Variable";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk Variable";
  src: url("/static/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070B;
  --bg-raise: #0A0F17;
  --surface: rgba(18, 26, 38, 0.62);
  --surface-solid: #0C121B;
  --surface-hover: rgba(28, 40, 58, 0.7);
  --sunken: rgba(255, 255, 255, 0.045);
  --field: rgba(4, 8, 14, 0.7);
  --ink: #E8F0F7;
  --ink-strong: #FFFFFF;
  --muted: #8494A8;
  --faint: #5B6A7E;
  --line: rgba(160, 200, 235, 0.10);
  --line-strong: rgba(160, 200, 235, 0.20);
  --brand-blue: #3690BD;
  --accent: #56B4E4;
  --accent-bright: #8FD3F5;
  --accent-ink: #021018;
  --accent-soft: rgba(86, 180, 228, 0.12);
  --accent-line: rgba(86, 180, 228, 0.45);
  --grad: linear-gradient(135deg, #9BDAF7 0%, #56B4E4 38%, #3690BD 72%, #2A6F96 100%);
  --grad-line: linear-gradient(90deg, rgba(86, 180, 228, 0), rgba(86, 180, 228, 0.7), rgba(86, 180, 228, 0));
  --glow: 0 0 0 1px rgba(86, 180, 228, 0.35), 0 8px 30px -6px rgba(54, 144, 189, 0.55);
  --ok: #3DDC97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --no: #FF7A7A;
  --no-soft: rgba(255, 122, 122, 0.12);
  --warn: #F6BD60;
  --warn-soft: rgba(246, 189, 96, 0.12);
  --focus: #8FD3F5;
  --font: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk Variable", "Inter Variable", -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --blur: saturate(140%) blur(18px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; background: var(--bg); }
body {
  min-height: 100%; margin: 0; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(54, 144, 189, 0.20), transparent 62%),
    radial-gradient(700px 480px at 12% 108%, rgba(143, 211, 245, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* Fine grid that fades out, like a HUD. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(160, 200, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 200, 235, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 20%, transparent 75%);
}
::selection { background: rgba(86, 180, 228, 0.35); color: #fff; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; font-family: var(--display); color: var(--ink-strong); }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.eyebrow, .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow { color: var(--accent); }
.label { display: block; margin-bottom: 4px; }
.num { font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 20px; height: 20px; flex: none; display: block; }
.icon-sm { width: 16px; height: 16px; }
* { scrollbar-width: thin; scrollbar-color: rgba(160, 200, 235, 0.22) transparent; }

/* Logo: W, star and letters in one color, like the original (white here, black on paper) */
.logo-w, .logo-word, .logo-star { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .logo-star { animation: twinkle 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  48% { opacity: 1; transform: scale(1); }
  54% { opacity: 0.75; transform: scale(0.86) rotate(12deg); }
  60% { opacity: 1; transform: scale(1.06); }
}

/* Shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.shell > * { position: relative; z-index: 1; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; overflow-y: auto;
  padding: 26px 14px 16px; padding-top: calc(26px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(10, 16, 25, 0.82), rgba(5, 8, 13, 0.88));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-right: 1px solid var(--line);
}
.sidebar::after { content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 40%; background: linear-gradient(180deg, transparent, rgba(86, 180, 228, 0.55), transparent); pointer-events: none; }
.brand { display: grid; justify-items: center; gap: 10px; color: var(--ink-strong); text-decoration: none; padding: 4px 8px 0; }
.brand:hover { color: var(--ink-strong); }
.brand-logo { width: 132px; height: auto; display: block; }
.brand-mark { display: none; width: 46px; height: auto; }
.brand-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
  padding: 3px 8px 3px 11px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft);
}
.nav { display: grid; gap: 3px; }
.nav-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); padding: 0 10px 6px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--sunken); color: var(--ink-strong); }
.nav-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, 0.02); transition: inherit; }
.nav-item:hover .nav-icon { color: var(--ink-strong); }
.nav-item[aria-current="page"] { background: linear-gradient(90deg, rgba(86, 180, 228, 0.16), rgba(86, 180, 228, 0.03)); border-color: rgba(86, 180, 228, 0.22); color: var(--ink-strong); }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px 1px rgba(86, 180, 228, 0.8); }
.nav-item[aria-current="page"] .nav-icon { color: var(--accent-ink); background: var(--grad); border-color: transparent; box-shadow: 0 0 18px -2px rgba(86, 180, 228, 0.7); }
.nav-item.is-locked { color: var(--faint); cursor: not-allowed; }
.nav-item.is-locked:hover { background: none; color: var(--faint); }
.nav-item.is-locked .nav-icon { color: var(--faint); border-style: dashed; border-color: var(--line-strong); background: none; }
.nav-lock { width: 14px; height: 14px; margin-left: auto; color: var(--faint); }
.sidebar-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.who { display: flex; align-items: center; gap: 10px; padding: 0 8px 10px; }
.who > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.who strong { font-size: 14px; color: var(--ink-strong); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); font-size: 12px; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-strong); background: linear-gradient(135deg, rgba(86, 180, 228, 0.35), rgba(54, 144, 189, 0.1)); border: 1px solid var(--accent-line); }
.nav-sub { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13.5px; background: none; border: 0; cursor: pointer; }
.nav-sub:hover, .nav-sub[aria-current="page"] { color: var(--ink-strong); background: var(--sunken); }
.sidebar-foot form { margin: 0; }
.main { min-width: 0; padding: 36px clamp(16px, 3.4vw, 48px) 64px; display: grid; gap: 26px; align-content: start; }
.main-flush { padding: 0; display: block; }
.main > * { min-width: 0; }
#users-app, #account-app, #kunden-app { display: grid; gap: 24px; align-content: start; }
.module-frame { display: block; width: 100%; height: 100vh; border: 0; background: var(--bg); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { position: sticky; z-index: 5; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar::after { display: none; }
  .brand { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 0; }
  .brand-logo { display: none; }
  .brand-mark { display: block; width: 42px; }
  .brand-tag { font-size: 9px; padding: 2px 6px 2px 8px; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; justify-content: flex-end; }
  .nav-label { display: none; }
  .nav-item { padding: 4px; gap: 0; }
  .nav-item > span:not(.nav-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-item[aria-current="page"]::before { display: none; }
  .nav-lock { display: none; }
  .nav-item.is-locked .nav-icon { opacity: 0.55; }
  .sidebar-foot { margin: 0; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; width: 100%; justify-content: flex-end; }
  .who { display: none; }
  .nav-sub { width: auto; padding: 5px 8px; font-size: 13px; }
  .module-frame { height: calc(100vh - 104px); }
  h1 { font-size: 26px; }
}

/* Generic pieces */
.page-head { display: grid; gap: 8px; max-width: 72ch; }
.hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 12px; min-width: 0;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.panel.narrow { max-width: 640px; }
.stack { display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="search"], input[type="file"], input[type="date"], input[type="time"], textarea, select {
  width: 100%; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); border-radius: var(--radius); padding: 9px 11px; min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input:hover, textarea:hover, select:hover { border-color: rgba(160, 200, 235, 0.32); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(86, 180, 228, 0.18); }
select option { background: var(--surface-solid); color: var(--ink); }
input[type="file"] { padding: 6px; }
input[type="file"]::file-selector-button { font: inherit; font-size: 13px; color: var(--ink); background: var(--sunken); border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 10px; margin-right: 10px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
label { font-weight: 550; font-size: 13.5px; color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  color: var(--ink); border-radius: var(--radius); padding: 8px 14px; font-weight: 550; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: var(--accent-ink); font-weight: 650; box-shadow: 0 6px 22px -8px rgba(54, 144, 189, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { background: var(--grad); color: var(--accent-ink); border-color: transparent; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); filter: brightness(1.06); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #03140C; font-weight: 650; }
.btn-ok:hover { background: var(--ok); border-color: var(--ok); color: #03140C; box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.4), 0 8px 26px -8px rgba(61, 220, 151, 0.7); }
.btn-no { border-color: rgba(255, 122, 122, 0.5); color: var(--no); }
.btn-no:hover { border-color: var(--no); background: var(--no-soft); color: var(--no); }
.btn-wide { width: 100%; padding: 11px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.btn-link:hover { color: var(--accent-bright); }
.pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; white-space: nowrap; border: 1px solid transparent; }
.pill-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, 0.25); }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(246, 189, 96, 0.25); }
.pill-no { background: var(--no-soft); color: var(--no); border-color: rgba(255, 122, 122, 0.25); }
.pill-neutral { background: var(--sunken); color: var(--muted); border-color: var(--line); }
.notice { border-radius: var(--radius); padding: 10px 12px; font-size: 14px; border: 1px solid transparent; }
.notice-error { background: var(--no-soft); color: var(--no); border-color: rgba(255, 122, 122, 0.25); }
.notice-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(246, 189, 96, 0.25); }
.notice-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, 0.25); }
.err { color: var(--no); font-size: 13.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 151, 0.8); }
.dot-warn { background: var(--warn); box-shadow: 0 0 10px rgba(246, 189, 96, 0.6); }

/* Login */
.login-body {
  display: grid; place-items: center; min-height: 100%; padding: 32px 16px;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 12%, rgba(143, 211, 245, 0.8), transparent 60%),
    radial-gradient(1px 1px at 63% 84%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 28%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 88% 62%, rgba(143, 211, 245, 0.6), transparent 60%),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.3px 1.3px at 92% 8%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(800px 520px at 50% 18%, rgba(54, 144, 189, 0.24), transparent 65%),
    radial-gradient(600px 400px at 50% 110%, rgba(54, 144, 189, 0.12), transparent 65%),
    var(--bg);
}
.login-body::before { -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 15%, transparent 75%); }
.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 410px; display: grid; gap: 26px; justify-items: center; }
.login-brand { display: grid; justify-items: center; gap: 14px; color: var(--ink-strong); }
.login-logo { width: 190px; height: auto; display: block; }
.login-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.login-card {
  width: 100%; border-radius: 20px; padding: 30px; display: grid; gap: 14px; position: relative;
  background: linear-gradient(180deg, rgba(20, 30, 44, 0.72), rgba(10, 15, 23, 0.78));
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(86, 180, 228, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.login-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: var(--grad-line); }
.login-card h1 { font-size: 26px; }
.login-card .btn-wide { margin-top: 10px; }
.login-foot { font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }

/* Password pages */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.small-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.small-link:hover { color: var(--accent-bright); text-decoration: underline; }
.small-link.center { justify-self: center; }
.login-card input[readonly] { color: var(--muted); border-style: dashed; }
.login-card .stack .btn-wide { margin-top: 2px; }

/* Home */
.module-grid .empty { grid-column: 1 / -1; }
.module-card.is-locked { cursor: not-allowed; background: rgba(10, 15, 23, 0.5); border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.module-card.is-locked:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.module-card.is-locked::after { display: none; }
.module-card.is-locked .module-icon { background: rgba(255, 255, 255, 0.03); color: var(--faint); border: 1px dashed var(--line-strong); box-shadow: none; }
.module-card.is-locked .module-text strong { color: var(--muted); }
.module-card.is-locked .module-text span { color: var(--faint); }
.pill-locked { display: inline-flex; align-items: center; gap: 5px; background: var(--sunken); color: var(--muted); border-color: var(--line-strong); }
.icon-xs { width: 12px; height: 12px; }
.module-locked-hint { font-size: 12.5px; color: var(--faint); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.module-card {
  position: relative; display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.module-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(86, 180, 228, 0.22), transparent 70%); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.module-card:hover { border-color: var(--accent-line); color: var(--ink); transform: translateY(-2px); box-shadow: var(--glow); }
.module-card:hover::after { opacity: 1; }
.module-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--accent-ink); background: var(--grad); box-shadow: 0 8px 26px -8px rgba(54, 144, 189, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.module-icon .icon { width: 24px; height: 24px; }
.module-text { display: grid; gap: 4px; }
.module-text strong { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.01em; }
.module-text span { color: var(--muted); font-size: 14px; }
.module-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.module-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; color: var(--accent); }
.module-card:hover .module-go .icon { transform: translateX(3px); }
.module-go .icon { transition: transform 0.2s; }
.status-panel { max-width: 780px; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.status-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-list .muted { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
@media (max-width: 560px) { .status-list li { grid-template-columns: auto 1fr; } .status-list .muted { grid-column: 2; text-align: left; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: rgba(255, 255, 255, 0.02); }
tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
tr:last-child td { border-bottom: 0; }
td.nowrap, .nowrap { white-space: nowrap; }

/* Content-KI */
.stack-lg { display: grid; gap: 22px; }
.ck-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; }
.ck-top select { width: auto; min-width: 240px; font-weight: 600; }
.ck-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: end; padding-bottom: 18px; }
.ck-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--accent-line), var(--line) 40%, transparent); }
.ck-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slot { width: 40px; height: 40px; border: 1.5px dashed var(--line-strong); border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--faint); }
.slot.on { border: 1px solid rgba(61, 220, 151, 0.5); background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 16px -4px rgba(61, 220, 151, 0.6); }
.slot.over { border: 1px solid rgba(246, 189, 96, 0.5); background: var(--warn-soft); color: var(--warn); }
.drehtag { display: grid; gap: 6px; justify-items: start; }
@media (max-width: 640px) { .ck-head { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.tab { border: 0; background: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 550; font-size: 14px; color: var(--muted); text-decoration: none; transition: background 0.15s, color 0.15s; }
.tab:hover { color: var(--ink-strong); background: var(--sunken); }
.tab[aria-selected="true"] { color: var(--ink-strong); background: linear-gradient(180deg, rgba(86, 180, 228, 0.22), rgba(86, 180, 228, 0.1)); box-shadow: inset 0 0 0 1px rgba(86, 180, 228, 0.35); }
.jobs { display: grid; gap: 6px; }
.job { display: flex; gap: 10px; align-items: center; font-size: 14px; background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 9px 12px; box-shadow: 0 0 24px -12px rgba(86, 180, 228, 0.8); }
.job-failed { border-color: rgba(255, 122, 122, 0.5); box-shadow: none; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(86, 180, 228, 0.2); border-top-color: var(--accent); flex: none; box-shadow: 0 0 10px rgba(86, 180, 228, 0.5); }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin 0.9s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-form { display: grid; grid-template-columns: repeat(3, minmax(0, 90px)) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.gen-form .field { display: grid; gap: 4px; min-width: 0; }
@media (max-width: 760px) { .gen-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gen-form .grow, .gen-form .gen-btn { grid-column: 1 / -1; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.chip:hover { border-color: var(--accent-line); }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink-strong); border-color: var(--accent); box-shadow: 0 0 14px -4px rgba(86, 180, 228, 0.7); }
.chip .n { font-family: var(--mono); font-size: 11px; opacity: 0.7; }
.group { display: grid; gap: 12px; }
.group-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.group-h p { color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; align-items: start; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 13px; min-width: 0;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--line-strong); }
.card[data-status="accepted"] { border-color: rgba(61, 220, 151, 0.45); box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.18), 0 0 34px -14px rgba(61, 220, 151, 0.7); }
.card[data-status="rejected"] { opacity: 0.62; }
.slate { display: flex; gap: 12px; align-items: center; }
.niv { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.niv-A { background: var(--grad); color: var(--accent-ink); box-shadow: 0 0 22px -4px rgba(86, 180, 228, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.niv-B { border: 1.5px solid var(--accent); color: var(--accent); background: var(--accent-soft); }
.niv-C { border: 1.5px dashed var(--line-strong); color: var(--muted); }
.slate-meta { display: grid; gap: 1px; min-width: 0; flex: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; border-radius: 6px; padding: 2px 8px; background: var(--sunken); border: 1px solid var(--line); color: var(--ink); }
.tag-ad { background: var(--accent-soft); color: var(--accent-bright); border-color: rgba(86, 180, 228, 0.3); }
.tag-new { background: var(--warn-soft); color: var(--warn); border-color: rgba(246, 189, 96, 0.3); }
.hook { margin: 0; border-left: 2px solid var(--accent); border-radius: 0; padding: 2px 0 2px 12px; font-weight: 500; color: var(--ink-strong); box-shadow: -6px 0 14px -10px rgba(86, 180, 228, 0.9); }
.card details > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-strong); }
.card details > summary::marker { color: var(--accent); }
.card ol, .card ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.card li::marker { color: var(--faint); }
.facts { margin: 0; display: grid; gap: 10px; }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.hinweis { background: var(--warn-soft); border: 1px solid rgba(246, 189, 96, 0.2); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.hinweis .label { color: var(--warn); }
.refs { display: grid; gap: 8px; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.rlist { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 10px; }
.rl { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line-strong); border-radius: 0; min-width: 0; }
.rl a { font-weight: 600; overflow-wrap: anywhere; }
.rl-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rl-why { font-size: 13.5px; }
.rl-has-thumb { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.rl-thumb img { width: 52px; height: 72px; object-fit: cover; border-radius: 7px; display: block; background: var(--sunken); border: 1px solid var(--line); }
.rl-body { display: grid; gap: 2px; min-width: 0; }
.kanal { display: grid; gap: 8px; background: rgba(86, 180, 228, 0.05); border: 1px solid rgba(86, 180, 228, 0.16); border-radius: var(--radius); padding: 10px 12px; }
.kanal p { font-size: 14px; }
.kposts { display: flex; flex-wrap: wrap; gap: 8px; }
.kpost { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink); text-decoration: none; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px 4px 4px; }
.kpost:hover { border-color: var(--accent-line); color: var(--ink-strong); }
.kpost img { width: 34px; height: 44px; object-fit: cover; border-radius: 5px; }
.bilder { display: grid; gap: 10px; }
.bilder .figs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fig { position: relative; }
.fig figcaption { display: grid; gap: 3px; }
.fig figcaption input { font-size: 13px; padding: 5px 7px; }
.fig-actions { gap: 10px; }
.fig-actions .btn-link { font-size: 12.5px; }
.alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
.alt { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--sunken); cursor: pointer; overflow: hidden; }
.alt:hover { border-color: var(--accent); box-shadow: 0 0 14px -4px rgba(86, 180, 228, 0.8); }
.alt img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 14px; }
.post { display: grid; gap: 6px; color: var(--ink); text-decoration: none; font-size: 12.5px; }
.post img, .post-noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--sunken); display: block; transition: border-color 0.2s, box-shadow 0.2s; }
.post:hover { color: var(--ink-strong); }
.post:hover img { border-color: var(--accent); box-shadow: 0 0 22px -6px rgba(86, 180, 228, 0.8); }
.post-meta { color: var(--muted); line-height: 1.35; }
.post-meta strong { color: var(--ink-strong); }
ul.plain { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.decide { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; }
.reasons legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.reasons label { position: relative; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 400; cursor: pointer; }
.reasons label:hover { border-color: rgba(255, 122, 122, 0.5); }
.reasons input { position: absolute; opacity: 0; pointer-events: none; }
.reasons label:has(input:checked) { background: var(--no-soft); border-color: var(--no); color: var(--no); }
.reasons label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; }
.who-line { font-size: 12.5px; color: var(--muted); }
.script { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 10px; }
.script > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.script-body { display: grid; gap: 12px; margin-top: 10px; }
.script p { font-size: 14px; }
.script table { font-size: 13.5px; }
.ref-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ref-row input { flex: 1 1 180px; width: auto; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 32px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 22px; }
.profile-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; min-width: 0; }
.nogos-box { background: var(--warn-soft); border: 1px solid rgba(246, 189, 96, 0.22); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; }
.nogos-box h2 { font-size: 15px; color: var(--warn); }
.nogos-box ul { margin: 0; padding-left: 18px; columns: 2 280px; column-gap: 24px; }
.nogos-box li { break-inside: avoid; margin-bottom: 3px; font-size: 14px; }
.new-client { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 18px; }
.new-client .full { grid-column: 1 / -1; }
.paket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }

/* Admin */
.users-table td .row { gap: 6px; }
.users-table tr.is-off td { opacity: 0.55; }
.users-table .btn { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.users-table .perm { font-size: 12.5px; padding: 3px 9px 3px 7px; }
.users-table td:first-child { min-width: 180px; }
.cell-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.invite-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.invite-perms { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.label-inline { font-weight: 550; font-size: 13.5px; padding: 0; margin-bottom: 6px; }
.invite-submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
@media (max-width: 760px) { .invite-form { grid-template-columns: 1fr; } }
.perms { display: flex; flex-wrap: wrap; gap: 6px; }
.perm {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px 4px 9px;
  font-size: 13px; font-weight: 500; cursor: pointer; background: rgba(255, 255, 255, 0.02); white-space: nowrap; color: var(--muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.perm input { margin: 0; width: 14px; height: 14px; }
.perm:hover { border-color: var(--accent-line); }
.perm:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-strong); box-shadow: 0 0 14px -6px rgba(86, 180, 228, 0.8); }
.perm:has(input:disabled) { opacity: 0.5; cursor: default; }
.perm:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.result-panel { border-color: var(--accent-line); box-shadow: var(--glow); }
.link-box { display: flex; gap: 8px; }
.link-box input { font-family: var(--mono); font-size: 12.5px; color: var(--accent-bright); }
@media (max-width: 560px) { .link-box { flex-direction: column; } }
.secret { font-family: var(--mono); font-size: 15px; background: var(--field); border: 1px solid var(--accent-line); color: var(--accent-bright); border-radius: 8px; padding: 9px 11px; user-select: all; overflow-wrap: anywhere; }

/* Print (Drehplan): a light paper document with the original black logo, it goes to clients. */
/* The page itself light too, else the PDF margins come out dark (the app is dark by default). */
html:has(> .print-body) { color-scheme: light; background: #EEF1F4; }
.print-body {
  --bg: #EEF1F4; --surface: #FFFFFF; --surface-solid: #FFFFFF; --sunken: #F1F3F6; --field: #FFFFFF;
  --ink: #12161C; --ink-strong: #000000; --muted: #5A6472; --faint: #8A939F;
  --line: #DCE1E7; --line-strong: #C3CBD4; --accent: #2B7AA3; --accent-soft: #E3F0F7; --accent-line: #9CC6DD;
  color-scheme: light;
  background: var(--bg); padding: 28px 16px 56px;
}
.print-body::before { display: none; }
.print-body .btn { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.print-body .btn-primary { background: #12161C; color: #fff; border-color: #12161C; box-shadow: none; }
.print-body .btn-primary:hover { filter: none; background: #000; color: #fff; }
.print-actions { max-width: 860px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 8px; }
.print-doc { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 36px; display: grid; gap: 26px; box-shadow: 0 20px 50px -30px rgba(18, 22, 28, 0.35); }
.print-doc h1, .print-doc h2 { color: var(--ink-strong); }
.print-doc .eyebrow { color: var(--muted); }
.doc-head { border-bottom: 2px solid var(--ink); padding-bottom: 16px; display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.doc-logo { width: 104px; height: auto; flex: none; color: #000; }
.doc-logo .logo-star { animation: none; }
.sheet { display: grid; gap: 10px; break-inside: avoid-page; }
.sheet h2 { font-size: 19px; }
.sheet ul { margin: 4px 0 0; padding-left: 20px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.meta-grid dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.meta-grid dd { margin: 0; font-size: 14px; }
.sheet table { border: 1px solid var(--line); }
.print-body th { background: var(--sunken); }
.url { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.figs figure { margin: 0; display: grid; gap: 6px; break-inside: avoid; }
.figs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sunken); }
.figs figcaption { font-size: 13px; line-height: 1.4; }
.figs .src { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media print {
  html, html:has(> .print-body) { background: #fff; }
  .print-body { --bg: #fff; --ink: #000; --muted: #444; --line: #bbb; padding: 0; background: #fff; }
  .print-actions { display: none; }
  .print-doc { border: 0; padding: 0; max-width: none; box-shadow: none; }
  .sheet { break-inside: auto; }
}

/* Kundenakte */
.page-head.row-between { max-width: none; align-items: flex-end; }
.page-head.page-wide { max-width: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.form-grid > h2, .field-wide { grid-column: 1 / -1; }
.form-grid > h2 { margin-top: 8px; font-size: 16px; }
.form-grid > h2:first-child { margin-top: 0; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.filters .search { width: min(100%, 260px); }
.click-row { cursor: pointer; }
.click-row:hover td { background: var(--accent-soft) !important; }
.kunden-table td { vertical-align: middle; }
@media (max-width: 720px) {
  .kunden-table thead { display: none; }
  .kunden-table, .kunden-table tbody { display: block; }
  .kunden-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .kunden-table tr:last-child { border-bottom: 0; }
  .kunden-table td { display: block; padding: 0; border: 0; min-width: 0 !important; background: none !important; }
  .kunden-table .click-row:hover { background: var(--accent-soft); }
  .kunden-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .kunden-table td:nth-child(n+3) { grid-column: 1 / -1; }
  .kunden-table td:empty { display: none; }
  .kunden-table td[colspan] { grid-column: 1 / -1; }
  .filters .search { width: 100%; }
}
.cell-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.detail-grid .panel { display: grid; gap: 12px; }
.facts-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; }
.pre { white-space: pre-wrap; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact { display: grid; gap: 4px; justify-items: start; }
.contact-name { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.contacts-edit { display: grid; gap: 8px; }
.contact-row { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 860px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.push-right { margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.kpi { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.kpi-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kpi strong { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink-strong); }
.kpi small { color: var(--muted); font-size: 12.5px; min-height: 1em; }
.upload-row { align-items: center; }
.upload-row input[type="file"] { width: auto; max-width: 100%; }
.upload-row select { width: auto; }
.partner-table select, .partner-table input { min-width: 140px; }
.form-actions { margin-top: 12px; }
.vault-bar { padding: 12px 16px; border-radius: var(--radius-lg); background: var(--ok-soft); border: 1px solid rgba(61, 220, 151, 0.25); }
.vault-unlock .row input { width: 160px; }
.mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.masked { color: var(--faint); letter-spacing: 0.1em; white-space: nowrap; }
@media (max-width: 720px) {
  .vault-table thead, .files-table thead, .partner-table thead { display: none; }
  .vault-table, .vault-table tbody, .vault-table tr, .vault-table td,
  .files-table, .files-table tbody, .files-table tr, .files-table td,
  .partner-table, .partner-table tbody, .partner-table tr, .partner-table td { display: block; }
  .vault-table tr, .files-table tr, .partner-table tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .vault-table tr:last-child, .files-table tr:last-child, .partner-table tr:last-child { border-bottom: 0; }
  .vault-table td, .files-table td, .partner-table td { padding: 4px 0; border: 0; min-width: 0 !important; background: none !important; }
  .vault-table td[data-label]::before, .partner-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .vault-table td:last-child .row { margin-top: 6px; }
  .partner-table select, .partner-table input { min-width: 0; width: 100%; }
  .files-table td.file-cell { display: flex; }
}
.vault-table td { vertical-align: middle; }
.entry-edit { padding: 6px 0; }
.file-cell { display: flex; gap: 12px; align-items: center; }
.file-thumb { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex: none; }
.file-ext { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: var(--sunken); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }
.tab-body { display: grid; gap: 22px; }

/* Two-factor login */
.code-input { font-family: var(--mono); font-size: 20px; letter-spacing: 0.25em; text-align: center; }
.qr-box { width: 200px; padding: 10px; background: #fff; border-radius: 12px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.secret-key { display: inline-block; max-width: 100%; font-family: var(--mono); font-size: 13px; background: var(--sunken); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.codes { font-family: var(--mono); font-size: 16px; line-height: 1.8; padding: 14px 18px; background: var(--sunken); border: 1px dashed var(--line-strong); border-radius: var(--radius); columns: 2 200px; margin: 0; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
#mfa-panel { display: grid; gap: 14px; }

/* Public onboarding form */
.public-body { min-height: 100%; padding: 32px 16px 48px; }
.public-wrap { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; display: grid; gap: 26px; }
.public-head { display: flex; justify-content: center; color: var(--ink-strong); }
.public-logo { width: 150px; height: auto; display: block; }
.public-main { display: grid; gap: 22px; }
.public-hero { display: grid; gap: 10px; text-align: center; justify-items: center; }
.public-hero h1 { font-size: clamp(28px, 5vw, 40px); }
.public-hero .muted { max-width: 60ch; }
.public-main .panel { display: grid; gap: 14px; }
.center-panel { text-align: center; justify-items: center; margin: 0 auto; }
.ob-num { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--grad); color: var(--accent-ink); font-size: 14px; font-weight: 700; vertical-align: 2px; }
.ob-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ob-row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .ob-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ob-row { grid-template-columns: 1fr; } }
.pw-wrap { display: flex; gap: 8px; align-items: center; }
.pw-wrap input { flex: 1; min-width: 0; }
.ob-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.ob-files li { display: flex; justify-content: space-between; gap: 12px; }
.ob-steps { display: grid; gap: 14px; }
.ob-step { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--sunken); }
.ob-step ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ob-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-answer { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 13.5px; }
.ob-answer:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-strong); }
.ob-submit { justify-items: stretch; }
.hint.center { text-align: center; }
.ob-done { padding: 40px 24px; }

/* Confirmation dialog (fresh 2FA code) */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 10, 0.72); backdrop-filter: blur(4px); }
.modal { width: min(100%, 420px); display: grid; gap: 12px; }
.narrow-notice { max-width: 640px; }
.warn-text { color: var(--warn); }
.channel-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.channel-line > a:not(.pill), .channel-line > span:not(.pill) { overflow-wrap: anywhere; min-width: 0; }
.app-login { text-decoration: none; }
.ob-app.is-off .form-grid { opacity: 0.45; }
.ob-app h3 { margin: 0; }

/* Storyboard (Content-KI) */
.sb-top { align-items: flex-end; }
.sb-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; align-items: start; }
.sb-card { display: grid; gap: 10px; padding: 10px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.sb-pic { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); display: grid; place-items: center; }
.sb-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-empty span, .sb-wait span { color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.sb-wait { gap: 8px; align-content: center; }
.sb-src { position: absolute; left: 8px; bottom: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(5, 8, 12, 0.72); color: #fff; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-body { display: grid; gap: 6px; font-size: 14px; min-width: 0; }
.sb-body p { margin: 0; overflow-wrap: anywhere; }
.sb-head { color: var(--ink-strong); }
.sb-cam { color: var(--accent); font-size: 13px; }
.sb-line .label { display: block; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 4px; border-top: 1px solid var(--line); font-size: 13px; }
.sb-actions label.btn-link { cursor: pointer; }
.sb-form textarea { min-height: 70px; }
.sb-card .alts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sb-card .alt img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sb-list .click-row td { vertical-align: middle; }

/* Storyboard print page */
.sb-doc .sb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
@media (max-width: 720px) { .sb-doc .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sb-frame { margin: 0; display: grid; gap: 6px; break-inside: avoid; align-content: start; }
.sb-frame .sb-pic { aspect-ratio: 9 / 16; border-radius: 8px; background: #f1f3f5; border: 1px solid var(--line); }
.sb-frame .sb-pic span { color: #888; font-size: 12px; }
.sb-frame figcaption { display: grid; gap: 3px; font-size: 12.5px; line-height: 1.4; }
.sb-frame figcaption p { margin: 0; }
.sb-frame .sb-head { font-size: 13px; }
.sb-frame .sb-cam { color: #2b7aa3; font-size: 12px; }
.sb-k { font-weight: 600; }
.sb-frame .src { color: #777; font-size: 11px; }
.small { font-size: 12px; }
@media print { .sb-doc .sb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sb-top .btn-link, .sb-back { justify-self: start; }
.sb-actions label.btn-link { font-weight: inherit; }
@media (max-width: 560px) {
  .sb-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sb-card { padding: 8px; gap: 8px; }
  .sb-body { font-size: 13px; }
  .sb-actions { gap: 2px 10px; font-size: 12.5px; }
  .sb-src { font-size: 9px; left: 6px; bottom: 6px; }
}

/* Contentplan (Content-KI tab and print page). Colors per format, same look in the dark app and on paper. */
.pill-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.f-video { --c: #56B4E4; } .f-karussell { --c: #3DDC97; } .f-foto { --c: #F6BD60; } .f-story { --c: #B79CF2; } .f-evt { --c: #FF8A7A; } .f-dreh { --c: var(--ink-strong); }
.print-body .f-video { --c: #2B7AA3; } .print-body .f-karussell { --c: #23845A; } .print-body .f-foto { --c: #B87A0E; } .print-body .f-story { --c: #6F4CC4; } .print-body .f-evt { --c: #D23F33; }
.cp-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); display: inline-block; flex: none; margin-right: 6px; vertical-align: 0; }
.cp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.cp-legend span { display: inline-flex; align-items: center; }
.cp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.cp-hd { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 7px 8px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.cp-day { min-height: 116px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cp-hd + .cp-day, .cp-cal > :nth-child(-n+14) { border-top: 0; }
.cp-cal > :nth-child(7n+1) { border-left: 0; }
.cp-day.we { background: rgba(255, 255, 255, 0.018); }
.cp-day.out { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--sunken) 6px 12px); }
.cp-day.pre .cp-dn { opacity: 0.45; }
.cp-day.today { box-shadow: inset 0 0 0 1px var(--accent-line); }
.cp-dh { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.cp-dn { font-weight: 650; font-size: 13px; color: var(--ink-strong); }
.cp-dn.hol { color: var(--no); }
.cp-plus { border: 0; background: none; color: var(--muted); width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1; opacity: 0; transition: opacity 0.15s, background 0.15s; }
.cp-day:hover .cp-plus, .cp-plus:focus-visible { opacity: 1; }
.cp-plus:hover { background: var(--accent-soft); color: var(--accent-bright); }
.cp-chip { font-size: 11px; line-height: 1.35; border-radius: 4px; padding: 1px 6px; align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.cp-chip.ki { border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); }
.cp-chip.dreh { color: var(--bg); background: var(--ink-strong); }
.cp-post { all: unset; box-sizing: border-box; display: grid; gap: 1px; width: 100%; padding: 3px 6px 4px; border-left: 3px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 13%, transparent); font-size: 12px; line-height: 1.3; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.cp-post:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
.cp-post:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cp-post b { color: var(--c); font-size: 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.cp-post .cp-st { font-size: 10.5px; color: var(--muted); }
.cp-post.done { opacity: 0.6; }
.cp-top { align-items: center; }
.cp-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-nav h2 { font-size: 22px; min-width: 9ch; text-align: center; }
.btn-icon { padding: 6px 11px; font-size: 18px; line-height: 1; }
.cp-months { margin: -8px 0 0; }
.cp-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cp-lines, .cp-events { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
.cp-events { list-style: none; padding: 0; }
.cp-events li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.cp-termin-add { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; }
.cp-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cp-form .cp-wide { grid-column: span 2; }
.cp-material { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.cp-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cp-note { background: var(--sunken); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; }
.cp-note p { margin: 2px 0 0; white-space: pre-line; }
.cp-table td { vertical-align: top; }
.cp-table .cp-status { width: auto; min-width: 140px; padding: 5px 8px; font-size: 13px; }
.cp-table .cell-sub .btn-link { font-size: inherit; }
/* No box of its own: the dialog sits above the sidebar and is no extra grid cell of the shell. */
.modal-host, .shell > .modal-host { display: contents; }
.cp-modal { width: min(100%, 560px); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface-solid); }
.cp-modal .cp-form { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 900px) {
  .cp-summary { grid-template-columns: 1fr; }
}
/* Screen only: a printed A4 page is narrower than 720px and must keep the full calendar and table. */
@media screen and (max-width: 720px) {
  .cp-day { min-height: 62px; padding: 4px 3px; gap: 3px; }
  .cp-hd { padding: 6px 4px; font-size: 9.5px; letter-spacing: 0.06em; }
  .cp-plus { display: none; }
  .cp-dn { font-size: 12px; }
  .cp-chip { font-size: 0; height: 4px; padding: 0; width: 100%; border: 0; background: var(--c); }
  .cp-chip.dreh { height: 4px; }
  .cp-post { padding: 2px 3px; border-left-width: 2px; }
  .cp-post .cp-t, .cp-post .cp-st { display: none; }
  .cp-post b { font-size: 8.5px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cp-termin-add { grid-template-columns: 1fr; }
  .cp-form .cp-wide { grid-column: auto; }
  .cp-nav h2 { font-size: 19px; }
  .cp-top > .row { width: 100%; }
  .cp-table thead { display: none; }
  .cp-table, .cp-table tbody, .cp-table tr, .cp-table td { display: block; width: 100%; }
  .cp-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .cp-table td { border: 0; padding: 2px 0; }
  .cp-table td[data-label="Datum"], .cp-table td[data-label="Format"] { display: inline-block; width: auto; margin-right: 10px; color: var(--muted); font-size: 13px; }
}

/* Contentplan print page */
.cp-doc { gap: 16px; }
.cp-doc .doc-head h1 { font-size: 28px; }
.cp-boxes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.cp-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.cp-box h2 { font-size: 15px; }
.cp-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.cp-count { margin: 0; font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.cp-count .ok { color: #23845A; } .cp-count .warn { color: #B87A0E; }
.cp-doc .cp-cal { border-radius: 8px; background: #fff; }
.cp-doc .cp-day { min-height: 98px; }
.cp-doc .cp-day.we { background: #FAFBFC; }
.cp-doc .cp-post { cursor: default; }
.cp-doc .cp-note { background: var(--sunken); font-size: 13px; }
.cp-doc .cp-note strong { font-family: var(--display); }
.cp-table { width: 100%; }
.cp-doc .cp-table td, .cp-doc .cp-table th { font-size: 13px; }
@media (max-width: 720px) { .cp-boxes { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 12mm; }
  .cp-doc { gap: 10px; }
  .cp-doc .doc-head h1 { font-size: 22px; }
  .cp-doc .cp-day { min-height: 23mm; padding: 3px 4px; }
  .cp-doc .cp-post { font-size: 9.5px; padding: 2px 4px; }
  .cp-doc .cp-post b { font-size: 8px; }
  .cp-doc .cp-chip { font-size: 8.5px; }
  .cp-doc .cp-cal, .cp-boxes { break-inside: avoid; }
  .cp-doc .cp-table td, .cp-doc .cp-table th { font-size: 10.5px; padding: 4px 6px; }
  .cp-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Contentplan: ready to post (works as the iPhone view) */
.cp-ready-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.cp-ready { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); min-width: 0; }
.cp-ready-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.cp-ready-head strong { color: var(--ink-strong); }
.cp-ready-title { margin: 0; font-weight: 650; color: var(--ink-strong); }
.cp-caption { margin: 0; font-size: 14px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cp-tags { margin: 0; font-size: 12.5px; color: var(--accent); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-ready-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.cp-flags { display: flex; gap: 6px; margin-top: 4px; }
.cp-flags .pill { font-size: 9.5px; padding: 2px 7px; }
.cp-text { gap: 6px; }
.cp-text textarea { min-height: 150px; }
@media (max-width: 720px) {
  .cp-ready-actions .btn { flex: 1 1 calc(50% - 8px); padding: 11px 10px; }
  .cp-ready-actions .btn-link { flex: 1 1 100%; text-align: center; padding: 4px 0; }
}

/* Kundenakte: scope of the contract (decides what the onboarding asks) */
.umfang-edit { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.umfang-group { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.umfang-group > .hint { flex-basis: 100%; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.umfang-list { gap: 6px; }
/* Kundenakte: import of prepared clients */
.import-table td { vertical-align: top; }
.import-table select { min-width: 170px; max-width: 260px; }
.import-table td[data-label="Status"] .cell-sub { max-width: 260px; }
@media (max-width: 720px) {
  .import-table thead { display: none; }
  .import-table, .import-table tbody, .import-table tr, .import-table td { display: block; }
  .import-table tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .import-table tr:last-child { border-bottom: 0; }
  .import-table td { padding: 4px 0; border: 0; min-width: 0 !important; background: none !important; }
  .import-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .import-table td:empty { display: none; }
  .import-table select { min-width: 0; max-width: none; width: 100%; }
}
/* Kunden: revenue and renewals. Two steps of the brand blue (validated on the dark surface). */
.rv-kpis { margin-bottom: 4px; }
.rv-kpis .kpi strong { font-variant-numeric: normal; }
.rv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.rv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rv-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.rv-key-fest, .rv-tip-key.rv-key-fest { background: #56B4E4; }
.rv-key-verl, .rv-tip-key.rv-key-verl { background: #2E6E93; }
.rv-chart { position: relative; width: 100%; min-height: 272px; }
.rv-chart svg { display: block; overflow: visible; }
.rv-grid { stroke: var(--line); stroke-width: 1; }
.rv-axis { stroke: var(--line-strong); stroke-width: 1; }
.rv-tick { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.rv-cap { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--font); }
.rv-fest { fill: #56B4E4; }
.rv-verl { fill: #2E6E93; }
.rv-col .rv-fest, .rv-col .rv-verl { transition: filter 0.12s; }
.rv-col.is-hover .rv-fest, .rv-col.is-hover .rv-verl { filter: brightness(1.18); }
.rv-hit { fill: transparent; cursor: default; outline: none; }
.rv-hit:focus-visible { stroke: var(--focus); stroke-width: 1; }
.rv-tip { position: absolute; z-index: 2; pointer-events: none; min-width: 190px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); font-size: 12.5px; }
.rv-tip-title { color: var(--muted); margin-bottom: 6px; }
.rv-tip-row { display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 8px; }
.rv-tip-row:last-child { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); grid-template-columns: 12px auto 1fr; }
.rv-tip-row strong { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.rv-tip-row span { color: var(--muted); }
.rv-tip-key { display: inline-block; width: 12px; height: 2px; border-radius: 1px; grid-column: 1; }
.rv-tip-row:last-child strong { grid-column: 2; }
.rv-details summary { cursor: pointer; color: var(--accent); font-size: 13.5px; }
.rv-details table { margin-top: 10px; }
.rv-table td { vertical-align: top; }
.rv-table .num { text-align: right; }
.rv-quiet td { opacity: 0.6; }
.rv-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-edit select { width: auto; min-width: 130px; }
.rv-edit input { width: 180px; flex: 1 1 140px; }
.rv-table td[data-label="Stand"] { min-width: 320px; }
@media (max-width: 720px) {
  .rv-table thead { display: none; }
  .rv-table, .rv-table tbody, .rv-table tr, .rv-table td { display: block; }
  .rv-table tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .rv-table tr:last-child { border-bottom: 0; }
  .rv-table td { padding: 4px 0; border: 0; min-width: 0 !important; background: none !important; }
  .rv-table td.num { text-align: left; }
  .rv-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .rv-table td:empty { display: none; }
  .rv-table td[data-label="Stand"] { min-width: 0; }
  /* Short facts side by side, so a contract is a compact card. */
  .rv-table td:is([data-label="Status"], [data-label="Pro Monat"], [data-label="Einmalig"], [data-label="Beginn"], [data-label="Ende"], [data-label="Vertragsende"], [data-label="Kündigung bis"]) { display: inline-block; vertical-align: top; margin-right: 18px; }
  .rv-edit select, .rv-edit input { width: 100%; flex: 1 1 100%; }
}
/* Content-KI: wishes of the team on an idea or a script */
.wish { display: grid; gap: 4px; justify-items: start; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; margin: 0; }
.wish .label { color: var(--accent); }
.revise textarea { min-height: 84px; }
/* Content-KI: speaking instead of typing, own ideas */
.label-row { align-items: center; flex-wrap: wrap; }
.btn-mic { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--ink); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.btn-mic:hover { border-color: var(--accent-line); }
.btn-mic svg { flex: none; }
.btn-mic.is-live { border-color: rgba(255, 122, 122, 0.6); background: var(--no-soft); color: var(--no); font-variant-numeric: tabular-nums; }
.btn-mic.is-live svg { animation: mic-pulse 1.2s ease-in-out infinite; }
.btn-mic.is-busy { opacity: 0.75; cursor: progress; }
@keyframes mic-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .btn-mic.is-live svg { animation: none; } }
.mic-msg { font-size: 12.5px; color: var(--warn); flex-basis: 100%; text-align: right; }
.own-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.own-row .grow { flex: 1 1 260px; }
.own-row select { min-width: 140px; }
.tag-team { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, 0.3); }
/* Aufgaben: bell in the menu and the task list */
.nav-icon { position: relative; }
.bell-badge { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 10.5px/17px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; }
.bell-badge.is-late { background: var(--no); color: #1a0606; }
.bell-badge[hidden] { display: none; }
.task-scope { margin: 4px 0 8px; }
.task-groups { display: grid; gap: 22px; margin-top: 16px; }
.task-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.task-group-head h2 { margin: 0; font-size: 17px; }
.task-group.wann-ueberfaellig h2 { color: var(--no); }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.task-item.wann-ueberfaellig { border-color: rgba(255, 122, 122, 0.45); background: linear-gradient(90deg, var(--no-soft), transparent 60%), var(--surface); }
.task-item.done { opacity: 0.6; }
.task-item.done .task-title { text-decoration: line-through; }
.task-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); background: transparent; color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-top: 1px; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.task-check:hover { border-color: var(--ok); background: var(--ok-soft); }
.task-check.is-done { background: var(--ok); border-color: var(--ok); }
.task-check.is-link { color: var(--accent); border-color: var(--accent-line); }
.task-title { font-weight: 600; color: var(--ink-strong); overflow-wrap: anywhere; }
.task-title a { color: inherit; text-decoration: none; }
.task-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 3px; font-size: 13px; color: var(--muted); }
.task-when { color: var(--ink); font-weight: 500; }
.wann-ueberfaellig .task-when { color: var(--no); }
.task-typ { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.task-note { margin: 6px 0 0; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; }
.task-tools { display: flex; gap: 12px; }
.task-empty { margin: 0; }
.task-done summary { cursor: pointer; color: var(--muted); margin: 8px 0; }
.task-form { display: grid; gap: 12px; width: 100%; }
.task-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.task-item:has(.task-form) { grid-template-columns: 1fr; }
/* Aufgaben: open invoices from HubSpot */
.inv-card { margin: 16px 0 4px; gap: 12px; }
.inv-head h2 { margin: 0; font-size: 17px; }
.inv-head .hint { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.inv-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-kpis .kpi { padding: 12px 14px; background: var(--sunken); min-width: 0; }
.inv-kpis .kpi strong { font-size: 19px; overflow-wrap: anywhere; }
.inv-kpis .kpi.is-late strong { color: var(--no); }
.inv-head .pill { vertical-align: 2px; margin-left: 6px; }
.inv-team-line { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; }
.inv-team { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--sunken); }
.inv-team .hint { margin: 0; }
.inv-team-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.inv-cleanup summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.inv-cleanup .hint { margin: 8px 0; }
.inv-cleanup-row { align-items: center; }
.inv-cleanup-row input[type="date"] { width: auto; }
.task-check.is-fixed { cursor: default; }
.rv-mail { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius); background: var(--sunken); }
.rv-mail .hint { margin: 0; flex: 1 1 320px; }
.rv-mail-note { flex-basis: 100%; margin: 0; font-size: 13.5px; }
.rv-mail-note.is-ok { color: var(--ok); }
.rv-mail-note.is-err { color: var(--no); }
.ob-mail { margin-top: 18px; display: grid; gap: 10px; }
.ob-mail h2, .ob-mail p { margin: 0; }
.ob-mail-test { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.ob-mail-test .field { flex: 0 1 340px; margin: 0; }
.tasks-push { margin-top: 26px; }
.tasks-push.is-first { margin: 16px 0 12px; border-color: var(--accent-line); }
.task-new { margin: 16px 0 12px; }
.tasks-push .steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 720px) {
  .task-item { grid-template-columns: auto 1fr; }
  .task-tools { grid-column: 2; }
}
/* Kunden: team per client (main person and areas) */
.team-table td { vertical-align: top; }
.team-table select { min-width: 140px; max-width: 200px; }
.team-table select.is-changed { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(86, 180, 228, 0.15); }
.team-table .team-all td { background: var(--sunken); }
.team-table .team-all select { color: var(--muted); }
.team-save { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 12px 0; margin-top: 8px; }
/* Only while something is not saved yet, the button stays in view. */
.team-save.is-dirty { position: sticky; bottom: 0; z-index: 2; background: linear-gradient(transparent, var(--bg) 30%); }
@media (max-width: 720px) {
  .team-table thead { display: none; }
  .team-table, .team-table tbody { display: block; }
  .team-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 14px; border-bottom: 1px solid var(--line); }
  .team-table tr:last-child { border-bottom: 0; }
  .team-table td { display: block; padding: 0; border: 0; min-width: 0; background: none !important; }
  .team-table td:first-child { grid-column: 1 / -1; }
  .team-table .team-all { background: var(--sunken); }
  .team-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .team-table select { min-width: 0; max-width: none; width: 100%; }
}
/* Monthly report (light, for the client) */
.rp-doc .doc-head h1 { font-size: 30px; }
.rp-intro p { font-size: 16px; line-height: 1.6; margin: 0 0 8px; color: var(--ink); }
.rp-platform { display: grid; gap: 8px; break-inside: avoid; }
.rp-platform + .rp-platform { margin-top: 10px; }
.rp-platform h3 { margin: 0; font-size: 15px; color: var(--ink-strong); }
.rp-platform h3 span { color: var(--muted); font-weight: 500; }
.rp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rp-tiles.rp-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-web-table th.num, .rp-web-table td.num { text-align: right; }
.rp-tile { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rp-label { font-size: 12px; color: var(--muted); }
.rp-num { font-size: 22px; font-weight: 600; color: var(--ink-strong); line-height: 1.2; }
.rp-delta { font-size: 11.5px; color: var(--muted); }
.rp-delta.up { color: #1B7F4C; }
.rp-delta.down { color: #B42318; }
.rp-note { font-size: 12px; color: var(--muted); margin: 0; }
.rp-charts { gap: 14px; }
.rp-chart { margin: 0; display: grid; gap: 4px; break-inside: avoid; }
.rp-chart figcaption { font-size: 13px; font-weight: 600; color: var(--ink-strong); }
.rp-chart svg { width: 100%; height: auto; overflow: visible; }
.rp-chart .rp-grid { stroke: var(--line); stroke-width: 1; }
.rp-chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.rp-chart .rp-val { fill: var(--ink-strong); font-weight: 600; }
.rp-chart .rp-hit { fill: transparent; }
.rp-chart g:hover path { opacity: 0.85; }
.rp-tops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-top { display: grid; gap: 8px; align-content: start; break-inside: avoid; }
.rp-top img, .rp-noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sunken); }
.rp-top-body { display: grid; gap: 3px; }
.rp-top-body p { margin: 0; }
.rp-top-nums { font-size: 13px; }
.rp-caption { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.rp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.rp-cols .sheet { align-content: start; }
.rp-link { font-size: 12.5px; color: var(--accent); }
.rp-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin: 0; }
.rp-more dt { font-size: 12px; color: var(--muted); }
.rp-more dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink-strong); }
.rp-foot { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; color: var(--muted); }
@media screen and (max-width: 720px) {
  .rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-tops { grid-template-columns: 1fr; }
}
@media print {
  html { background: #fff; }
  .rp-doc { gap: 18px; }
  .rp-doc h2 { break-after: avoid; }
  .rp-doc .sheet:has(.rp-tops), .rp-platform, .rp-chart, .rp-cols { break-inside: avoid; }
  .rp-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Content-KI: report tab (dark app) */
.rpi-platform { display: grid; gap: 8px; }
.rpi-platform h3 { margin: 0; font-size: 15px; }
.rpi-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rpi-tile { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); }
.rpi-tile strong { font-size: 20px; color: var(--ink-strong); font-weight: 600; }
.rp-d { font-size: 12px; color: var(--muted); }
.rp-d.up { color: var(--ok); }
.rp-d.down { color: var(--no); }
.rpi-tops { grid-template-columns: repeat(3, minmax(0, 160px)); }
.rp-zrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; margin-top: 6px; }
@media (max-width: 720px) {
  .rpi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpi-tops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Content-KI: website tab (pixel) */
.web-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.web-tiles .hint { font-size: 11.5px; }
.web-chart { margin: 0; display: grid; gap: 6px; }
.web-chart figcaption { font-size: 13px; font-weight: 600; color: var(--ink-strong); }
.wc-wrap { position: relative; }
.wc-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.wc-grid { stroke: var(--line); stroke-width: 1; }
.wc-wrap text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.wc-wrap .wc-val { fill: var(--ink-strong); font-weight: 600; }
.wc-hit { fill: transparent; }
.wc-bar { outline: none; cursor: default; }
.wc-bar.is-on path, .wc-bar:focus-visible path { filter: brightness(1.25); }
.wc-bar:focus-visible .wc-hit { fill: rgba(255, 255, 255, 0.04); }
.wc-tip { position: absolute; top: 0; transform: translate(-50%, -100%); display: grid; gap: 1px; padding: 7px 10px; border-radius: 8px; background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); pointer-events: none; white-space: nowrap; font-size: 12.5px; z-index: 3; }
.wc-tip strong { color: var(--ink-strong); font-size: 14px; }
.wc-tip span { color: var(--muted); }
.web-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.web-grid h3 { margin: 0; font-size: 15px; }
.web-grid > .stack { align-content: start; }
.web-table td.num, .web-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.web-steps li { margin-bottom: 4px; }
.web-privacy { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); font-size: 13.5px; }
.web-builder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
@media screen and (max-width: 720px) {
  .web-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Rechnungen: tabs, invoice plan, the tool below */
.rx-app { display: flex; flex-direction: column; min-height: 100vh; }
.rx-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3.4vw, 48px) 14px; border-bottom: 1px solid var(--line); }
.rx-head .eyebrow { margin: 0; }
.rx-tabs .chip[aria-selected="true"] { background: var(--accent-soft); color: var(--ink-strong); border-color: var(--accent); box-shadow: 0 0 14px -4px rgba(86, 180, 228, 0.7); }
.rx-body { padding: 26px clamp(16px, 3.4vw, 48px) 64px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.rx-body[hidden], .rx-tool[hidden] { display: none; }
.rx-body .page-head h1 .pill { vertical-align: 6px; margin-left: 6px; }
.rx-tool { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.rx-frame { flex: 1 1 auto; width: 100%; min-height: calc(100vh - 72px); border: 0; background: var(--bg); display: block; }
.rx-setup { margin: 26px clamp(16px, 3.4vw, 48px); }
.rx-kpis .kpi.is-late strong, .inv-kpis .kpi.is-late strong { color: var(--no); }
.rx-table td { vertical-align: top; }
.rx-table .num { text-align: right; }
.rx-table .rx-toggle { text-align: right; width: 1%; white-space: nowrap; }
.rx-row.is-open td { background: var(--sunken); }
.rx-detail-row > td { background: var(--sunken); padding: 0 16px 18px; }
.rx-dots { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.rx-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.rx-dot.st-gesendet { background: var(--ok); border-color: var(--ok); }
.rx-dot.st-erstellt { border-color: var(--accent); background: rgba(86, 180, 228, 0.25); }
.rx-dot.st-ueberfaellig, .rx-dot.st-heute { border-color: var(--no); background: var(--no-soft); }
.rx-dot.st-bald { border-color: var(--warn); }
.rx-detail { display: grid; gap: 16px; padding-top: 4px; }
.rx-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-entry { display: grid; grid-template-columns: 28px 170px 150px minmax(0, 1fr) 180px; gap: 6px 14px; align-items: center; padding: 8px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.rx-entry.st-ueberfaellig, .rx-entry.st-heute { border-color: rgba(255, 122, 122, 0.45); }
.rx-entry.st-gesendet { opacity: 0.8; }
.rx-nr { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rx-amount { font-variant-numeric: tabular-nums; }
.rx-state { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.rx-action { text-align: right; }
.rx-settings { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.rx-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rx-settings .field { align-content: start; }
.rx-settings .field .hint { display: block; margin-top: 4px; }
@media (max-width: 860px) {
  .rx-app { min-height: 0; }
  .rx-frame { min-height: calc(100dvh - 200px); }
}
@media (max-width: 720px) {
  .rx-table thead { display: none; }
  .rx-table, .rx-table tbody, .rx-table tr, .rx-table td { display: block; }
  .rx-table tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .rx-table tr:last-child { border-bottom: 0; }
  .rx-table td { padding: 4px 0; border: 0; }
  .rx-table td.num, .rx-table .rx-toggle { text-align: left; width: auto; }
  .rx-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .rx-detail-row > td { padding: 0 14px 16px; }
  .rx-entry { grid-template-columns: 24px 1fr auto; }
  .rx-state, .rx-action { grid-column: 2 / -1; text-align: left; }
}
/* Content-KI, tab Drehplan: feedback after the shooting day */
.dr-form { display: grid; gap: 14px; }
.dr-form-top { align-items: end; justify-content: space-between; }
.dr-form-top .field { margin: 0; }
.dr-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dr-item { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); }
.dr-item-head { display: grid; gap: 2px; min-width: 0; }
.dr-item-head strong { overflow-wrap: anywhere; }
.dr-last-time { color: var(--warn); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg-opt { position: relative; display: inline-flex; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { padding: 6px 12px; font-size: 13px; color: var(--muted); white-space: nowrap; border-left: 1px solid var(--line); }
.seg-opt:first-child span { border-left: 0; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg-gedreht input:checked + span { background: var(--ok-soft); color: var(--ok); }
.seg-teilweise input:checked + span { background: rgba(246, 189, 96, 0.14); color: var(--warn); }
.seg-offen input:checked + span { background: var(--no-soft); color: var(--no); }
.dr-note-input { min-width: 0; }
.dr-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dr-reports { display: grid; gap: 8px; }
.dr-reports h3 { margin: 6px 0 2px; font-size: 15px; }
.dr-report { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--sunken); }
.dr-report summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.dr-report-items { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.dr-report p { margin: 6px 0; font-size: 14px; }
.dr-pending { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.print-body .dr-note { margin: 4px 0 10px; padding: 8px 12px; border-radius: 8px; background: #FFF4E0; color: #6B4A00; border: 1px solid #F1D29A; font-size: 14px; }
.print-body .dr-last { padding: 14px 18px; border: 1px solid #F1D29A; border-radius: 10px; background: #FFFBF3; }
.print-body .dr-last h2 { margin-top: 0; }
@media (max-width: 860px) {
  .dr-item { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg-opt { flex: 1 1 0; }
  .seg-opt span { flex: 1; justify-content: center; text-align: center; padding: 8px 6px; }
}
.print-actions { flex-wrap: wrap; }

/* Zeiterfassung (public/zeit.js): stamp clock, month as a list of days, team, settings */
#zeit-app { display: grid; gap: 22px; }
.zt-person { width: min(100%, 260px); }
.zt-clock { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 22px; }
.zt-clock.is-on { border-color: rgba(61, 220, 151, 0.4); box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.12), 0 20px 40px -24px rgba(0, 0, 0, 0.8); }
.zt-clock.is-pause { border-color: rgba(246, 189, 96, 0.4); }
.zt-clock.is-warn { border-color: rgba(255, 122, 122, 0.45); display: grid; justify-content: stretch; }
.zt-clock-text { display: grid; gap: 6px; min-width: 0; }
.zt-clock h2 { font-size: clamp(20px, 3vw, 26px); }
.zt-today { font-size: 15px; }
.zt-today strong { font-family: var(--display); font-size: 19px; color: var(--ink-strong); }
.zt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zt-btn { min-width: 132px; padding: 13px 20px; font-size: 16px; border-radius: 12px; }
.zt-fix { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.zt-fix .field { flex: 0 1 170px; }
.zt-fix .zt-grow { flex: 1 1 260px; }
.zt-neg { color: var(--no); }
.zt-pos { color: var(--ok); }
.zt-month { display: grid; gap: 14px; }
.zt-month-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.zt-nav { display: flex; gap: 10px; align-items: center; }
.zt-nav h2 { font-size: 20px; min-width: 9.5em; text-align: center; }
.zt-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); margin: 0; }
.zt-sum strong { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.zt-days { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.zt-day { display: grid; grid-template-columns: 82px minmax(0, 1.6fr) 76px 60px 64px minmax(0, 1.4fr) 84px; gap: 4px 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.zt-day:last-child { border-bottom: 0; }
.zt-head { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.02); padding-top: 8px; padding-bottom: 8px; }
.zt-day.is-off { color: var(--faint); }
.zt-day.is-off .zt-date { color: var(--faint); }
.zt-day.is-today { background: linear-gradient(90deg, rgba(86, 180, 228, 0.12), transparent 60%); box-shadow: inset 3px 0 0 var(--accent); }
.zt-day.is-editing { background: var(--sunken); }
.zt-date { font-weight: 600; white-space: nowrap; }
.zt-times { font-variant-numeric: tabular-nums; min-width: 0; }
.zt-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zt-head .zt-num { text-align: right; }
.zt-soll { color: var(--muted); }
.zt-notes { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 13px; min-width: 0; }
.zt-edit { text-align: right; }
.zt-editor { display: grid; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.zt-editor-head { margin: 0; font-size: 14px; }
.zt-er { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.zt-er .field { flex: 0 1 150px; }
.zt-er-del { margin-bottom: 9px; }
.zt-absence { display: grid; gap: 12px; }
.zt-absence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px 16px; }
.zt-absence-grid .zt-wide { grid-column: 1 / -1; }
.zt-log { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.zt-log summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.zt-log ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.zt-log .muted { display: block; font-size: 12.5px; }
.zt-team .num { text-align: right; }
.zt-name { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-strong); }
.zt-name:hover { text-decoration: underline; }
.zt-hints { font-size: 13px; color: var(--muted); }
.zt-settings { max-width: 640px; }
.zt-settings .field { max-width: 280px; }
.zt-people { list-style: none; margin: 0; padding: 0; display: grid; }
.zt-person-row { border-bottom: 1px solid var(--line); padding: 10px 0; display: grid; gap: 12px; }
.zt-person-row:last-child { border-bottom: 0; }
.zt-person-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.zt-person-line .btn { margin-left: auto; padding: 5px 12px; font-size: 13px; }
.zt-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px 16px; padding: 14px; border-radius: var(--radius); background: var(--sunken); }
.zt-profile .field-wide { grid-column: 1 / -1; }
.zt-profile h3 { font-size: 14px; margin: 6px 0 0; }
.zt-tage { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 0; padding: 0; margin: 0; }
.zt-tage legend { font-weight: 550; font-size: 13.5px; padding: 0; margin-bottom: 6px; }
@media (max-width: 860px) {
  .zt-head { display: none; }
  .zt-day { grid-template-columns: 70px minmax(0, 1fr) auto; grid-template-areas: "date times worked" "notes notes saldo" "edit edit edit"; row-gap: 2px; }
  .zt-date { grid-area: date; }
  .zt-times { grid-area: times; }
  .zt-day > .zt-num:nth-child(3) { grid-area: worked; }
  .zt-soll { display: none; }
  .zt-day > .zt-num:nth-child(5) { grid-area: saldo; }
  .zt-notes { grid-area: notes; }
  .zt-notes:empty, .zt-edit:empty { display: none; }
  .zt-edit { grid-area: edit; text-align: left; }
  .zt-day.is-off .zt-edit { display: none; }
  .zt-btn { flex: 1 1 140px; }
  .zt-actions { width: 100%; }
}

/* Monthly report to print */
.zr-doc + .zr-doc { margin-top: 28px; }
.zr-sum { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.zr-table { font-size: 12.5px; }
.zr-table th, .zr-table td { padding: 5px 8px; }
.zr-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zr-table tr.zr-off td { color: #8A939F; }
.zr-table tfoot th { font-size: 11px; background: var(--sunken); }
.zr-note { color: var(--muted); }
.zr-log { font-size: 13px; }
.zr-sign { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.zr-sign span { display: block; border-bottom: 1px solid var(--ink); height: 40px; }
.zr-sign p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
@media print {
  .zr-doc { break-after: page; }
  .zr-doc:last-of-type { break-after: auto; }
  .zr-doc + .zr-doc { margin-top: 0; }
  .zr-table { font-size: 9.5px; line-height: 1.25; }
  .zr-table th, .zr-table td { padding: 2px 6px; }
  .zr-sign { break-inside: avoid; }
  .zr-corr h2 { font-size: 14px; }
  .zr-log { font-size: 11px; }
  .zr-doc { gap: 16px; }
  .zr-doc .doc-head { padding-bottom: 10px; }
  .zr-sum { gap: 4px 16px; }
  .zr-sum dd { font-size: 12.5px; }
  .zr-sign { margin-top: 14px; }
}
.stempel-card { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.stempel-card[hidden] { display: none; }
.stempel-card.is-on { border-color: rgba(61, 220, 151, 0.4); }
.stempel-card.is-pause { border-color: rgba(246, 189, 96, 0.4); }
.stempel-card.is-warn { border-color: rgba(255, 122, 122, 0.45); }
.stempel-text { display: grid; gap: 4px; }
.stempel-text h2 { font-size: 19px; }
.stempel-text .eyebrow a { color: inherit; text-decoration: none; }
.stempel-card .zt-actions { align-items: center; }
