/* Southlane Media – ein Stylesheet für Website, Portal und Team-Bereich.
   Farben seit 15.11.2026: Weiß, tiefes Petrol (#0f2e33) und Aqua (#2fa3a0); Bricolage Grotesque für Überschriften, Inter für Text,
   gestricheltes Linien-Raster, Pillen-Buttons, eine Akzentfarbe. Schriften: fonts.css. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --sand: #eef4f4;
  --sand-2: #e2ecec;
  --line: #dde8e8;
  --line-strong: #c3d5d5;
  --ink: #0f2e33;
  --ink-2: #3d5a5e;
  --ink-3: #6f8a8d;
  --accent: #2fa3a0;        /* Aqua (Palette 8, 15.11.2026) */
  --accent-ink: #13615f;
  --accent-soft: #d8f0ee;
  --accent-2: #9fdcd9;
  --sage: #2fa3a0;   --sage-soft: #d8f0ee;
  --rose: #b06d5f;   --rose-soft: #f5e5e0;
  --amber: #a07d3e;  --amber-soft: #f3ead6;
  --blue: #557089;   --blue-soft: #e2e9ef;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15,46,51,.04), 0 24px 50px -30px rgba(15,46,51,.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 14.5px/1 var(--font);
  padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { background: #18434a; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding-left: 10px; padding-right: 10px; }
.btn-quiet:hover { background: var(--sand); color: var(--ink); }
.btn-danger { background: var(--surface); border-color: #e3c4bc; color: var(--rose); }
.btn-danger:hover { background: var(--rose-soft); color: #8e4c3f; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Formulare ── */
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel],
input[type=search], select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; }
textarea { min-height: 120px; resize: vertical; }
textarea.tall { min-height: 360px; font-size: 14.5px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=file] { font: 14px var(--font); }
.field { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); margin: 0; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ── Hinweise ── */
.flash { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14.5px; border: 1px solid; }
.flash-success { background: var(--sage-soft); border-color: #cddbcb; color: #3f5a43; }
.flash-error { background: var(--rose-soft); border-color: #ebcdc5; color: #8a4537; }
.flash-info { background: var(--blue-soft); border-color: #cfdae5; color: #3f5670; }
.note { background: var(--sand); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; color: var(--ink-2); }

/* ── Status-Etiketten ── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.b-paid, .b-active, .b-approved, .b-answered { background: var(--sage-soft); color: #4d6a51; }
.b-open, .b-sent, .b-onboarding, .b-new { background: var(--blue-soft); color: #4a6178; }
.b-overdue, .b-void { background: var(--rose-soft); color: #94503f; }
.b-draft, .b-paused, .b-archived, .b-closed, .b-ended { background: var(--sand); color: var(--ink-3); }
.b-in_use { background: var(--amber-soft); color: #82652f; }

/* ── Karten & Tabellen ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 16px; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-head { padding: 18px 22px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: #ffffff; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #ffffff; }
td a.row-link { color: var(--ink); font-weight: 600; text-decoration: none; }
td a.row-link:hover { text-decoration: underline; }
.empty { padding: 34px 22px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list-plain li:last-child { border-bottom: 0; }

/* ── App-Gerüst (Portal & Team) ── */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: #ffffff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { padding: 4px 10px 18px; }
.side-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 16px 10px 6px; }
.side nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.side nav a:hover { background: var(--sand-2); color: var(--ink); }
.side nav a.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side .count { font-size: 12px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.side-foot .who { font-weight: 600; color: var(--ink); }
.side-foot form { display: inline; }
.main { min-width: 0; padding: 30px 38px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); }
.crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 6px; }
.crumb a { color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.stat .v small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cols-even { grid-template-columns: 1fr 1fr; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters form { display: flex; gap: 8px; margin-left: auto; }
.filters input[type=search] { width: 220px; padding: 7px 11px; font-size: 14px; }
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(15,46,51,.35); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #ffffff; position: sticky; top: 0; z-index: 40; }
  .main { padding: 22px 18px 50px; }
  .cols, .cols-even { grid-template-columns: minmax(0, 1fr); }   /* minmax: breite Tabellen dürfen die Seite nicht verbreitern (Klick-Test 18.11.2026) */
}

/* ── Marke ── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 650; font-size: 16.5px; letter-spacing: -0.02em; line-height: 1; }
.brand-name span { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); margin-top: 3px; }

/* ── Content Hub ── */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.file { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.file .thumb { aspect-ratio: 4 / 3; background: var(--sand); display: grid; place-items: center; color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; overflow: hidden; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .meta { padding: 11px 13px 13px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.file .meta strong { font-size: 14px; word-break: break-word; }
.file .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; background: #ffffff; }

/* ── Nachrichten (Anfragen) ── */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.msg.team { background: var(--accent-soft); border-color: #e5d7c6; margin-left: auto; }
.msg .from { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.msg .from strong { color: var(--ink); }
.msg .body { white-space: pre-wrap; }

/* ── Artikel ── */
.prose { max-width: 720px; font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 20px; margin: 30px 0 10px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.article-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.article-card:hover { border-color: var(--line-strong); color: var(--ink); }
.article-card h3 { font-size: 16px; }
.article-card p { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }
.group-title { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 28px 0 12px; }

/* ── Rechte-Matrix ── */

.perm-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.perm-row:last-child { border-bottom: 0; }
.perm-row .key { font-size: 12px; color: var(--ink-3); font-family: ui-monospace, Menlo, monospace; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg label { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 6px 11px; cursor: pointer; border-left: 1px solid var(--line); }
.seg label:first-of-type { border-left: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--ink); font-weight: 650; }
.seg label:has(input:checked) { background: var(--accent-soft); }
.seg label:has(input[value="1"]:checked) { background: var(--sage-soft); }
.seg label:has(input[value="0"]:checked) { background: var(--rose-soft); }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 18px; background: var(--sand); padding: 12px 14px; border-radius: 8px; letter-spacing: .04em; user-select: all; }

/* ── Rechnung (Dokument) ── */
.doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 860px; margin: 24px auto 0; padding: 0 20px; }
.doc { max-width: 860px; margin: 16px auto 40px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 56px 60px; font-size: 14.5px; }
.doc-top { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.doc h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.doc .addr { white-space: pre-line; color: var(--ink-2); }
.doc-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.doc-meta div span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.doc table th { background: none; }
.doc .total td { font-weight: 650; font-size: 16px; border-top: 2px solid var(--ink); }
.doc-foot { margin-top: 44px; font-size: 13px; color: var(--ink-3); }
@media print {
  body { background: #fff; }
  .doc-bar { display: none; }
  .doc { border: 0; margin: 0; padding: 0; max-width: none; }
}
@media (max-width: 700px) { .doc { padding: 28px 22px; } .doc-top { flex-direction: column; } .doc-meta { grid-template-columns: 1fr 1fr; }
  .doc table { font-size: 13.5px; } .doc th, .doc td { padding: 9px 6px; } }   /* Rechnung auf dem Handy: Spalte Amount blieb abgeschnitten (Klick-Test 18.11.2026) */

/* ═════════════ Öffentliche Website ═════════════ */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 7px; }
.site-nav a:hover, .site-nav a.on { color: var(--ink); background: var(--sand); }
.site-nav .btn { margin-left: 10px; color: #ffffff; }
.site-nav .btn:hover { color: #fff; background: #18434a; }

@media (max-width: 820px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 10px 24px 20px; border-bottom: 1px solid var(--line); }
  body.nav-open .site-nav { display: flex; }
  .site-nav .btn { margin: 8px 0 0; }
}

.eyebrow { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); margin-bottom: 18px; display: block; }

/* Portal-Vorschau im Hero: echtes UI, kein Bild */
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px; }

.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.025em; }
.section-head p { font-size: 17px; color: var(--ink-2); margin-top: 14px; }
.rows { border-top: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { list-style: none; padding: 20px 22px 0 0; counter-increment: s; }
.steps li::before { content: "Step " counter(s); display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 10px; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.steps ol, ol.steps { padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 10px 20px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.portal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.portal-list div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal-list div:nth-child(3n) { border-right: 0; }
.portal-list div:nth-last-child(-n+3) { border-bottom: 0; }
.portal-list h3 { font-size: 16px; margin-bottom: 6px; }
.portal-list p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) { .portal-list { grid-template-columns: minmax(0, 1fr); } .portal-list div { border-right: 0; border-bottom: 1px solid var(--line) !important; } .portal-list div:last-child { border-bottom: 0 !important; } }

.page-hero { padding: 64px 0 36px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.03em; }
.page-hero p { font-size: 18px; color: var(--ink-2); max-width: 36em; margin-top: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 3px 0 0; font-weight: 600; }
.legal { max-width: 760px; padding-bottom: 80px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.placeholder { background: var(--amber-soft); color: #7b5f2c; padding: 1px 5px; border-radius: 4px; }

/* Login */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: #eef4f4; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.auth-side blockquote { margin: 0; font-size: 22px; line-height: 1.4; letter-spacing: -0.015em; max-width: 22em; color: var(--ink); }
.auth-side .muted { margin-top: 14px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 26px; margin-bottom: 6px; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.error-page .code { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.error-page h1 { font-size: 30px; margin: 10px 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
td a.row-link { white-space: nowrap; }
@media (max-width: 600px) {
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .v { font-size: 21px; }
  .page-head h1 { font-size: 23px; }
}
/* 2FA */
.code-input { font-size: 22px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.setup-steps { margin: 0; padding-left: 20px; }
.setup-steps li { margin-bottom: 22px; padding-left: 4px; }
.setup-steps li:last-child { margin-bottom: 0; }
.qr { margin: 14px 0 10px; width: 160px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.codes li { font-family: ui-monospace, Menlo, monospace; font-size: 16px; background: var(--sand); border-radius: 6px; padding: 8px 12px; text-align: center; }
details summary { cursor: pointer; color: var(--accent-ink); }
.secret-link { font-size: 13.5px; word-break: break-all; letter-spacing: 0; }

/* ═════════════ Studio-Stil (Salbei) ═════════════ */
h1, h2, h3, .display, .stat .v, .brand-name, .page-head h1 { font-family: var(--display); letter-spacing: -0.03em; }
h1, h2 { font-weight: 500; }
h3 { font-weight: 600; letter-spacing: -0.02em; }
body { font-size: 15px; }

/* Buttons: Pillen */
.btn { border-radius: 999px; font-weight: 600; padding: 10px 18px; }
.btn-lg { padding: 13px 22px; }
.btn-sm { padding: 7px 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }

.btn-ghost { background: var(--surface); border-color: var(--line-strong); }

/* Marke */
.brand-name { font-weight: 700; font-size: 18px; }
.brand-name span { font-family: var(--font); font-weight: 500; letter-spacing: 0; }

/* Karten, Tabellen, Badges etwas weicher */
.card, .stat, .file, .article-card { border-radius: var(--radius); }
th { background: transparent; }
.badge { font-weight: 600; }
.stat .v { font-weight: 500; font-size: 30px; }
@media (max-width: 600px) { .stat .v { font-size: 21px; } }   /* sonst gewinnt die 30px-Regel oben auch auf dem Handy (Klick-Test 18.11.2026) */
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.side { background: #e6eeee; }
.side nav a.on { background: var(--surface); }
.side .count { background: var(--accent); }
.filters a.on { background: var(--accent); border-color: var(--accent); }
.tabs a.on { border-bottom-color: var(--accent); }
.msg.team { background: var(--accent-soft); border-color: #c4e6e4; }

/* ── Öffentliche Seiten ── */
.site-head { background: transparent; border: 0; position: sticky; top: 14px; padding: 0 16px; }
.site-head.scrolled { border: 0; }
.site-head .wrap { height: auto; max-width: 1080px; padding: 8px 8px 8px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -22px rgba(8,30,34,.4); }
.site-nav a { border-radius: 999px; }
.site-nav .btn { margin-left: 4px; }
.site-nav .btn-ghost { color: var(--ink); }
@media (max-width: 820px) { .site-nav { top: 64px; border-radius: 18px; border: 1px solid var(--line); left: 16px; right: 16px; } .site-head .wrap { position: relative; } }

.pad { padding-left: 56px; padding-right: 56px; }
@media (max-width: 760px) { .pad { padding-left: 20px; padding-right: 20px; } }

.page-hero h1 em { font-style: normal; color: var(--accent); }

.s-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.s-row .num { font-family: var(--display); font-size: 15px; color: var(--accent); padding-top: 4px; }
.s-row h3 { font-size: 21px; font-weight: 500; }
.s-row p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .s-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Unterseiten im Raster */
.page-hero { padding: 74px 56px 40px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: .98; letter-spacing: -0.04em; }
.page-hero .eyebrow { color: var(--accent); }
.section { padding: 64px 56px; }
.section-alt { background: transparent; border: 0; }
.two-col { gap: 56px; }
.facts div { border-color: var(--line); }
.legal { padding: 0 56px 80px; }
.rows { border-color: var(--line); }

.portal-list { border-radius: 16px; }

@media (max-width: 760px) { .page-hero, .section, .legal { padding-left: 20px; padding-right: 20px; } }

/* Login-Seite */
.auth-side { background: linear-gradient(170deg, #dfe8e1 0%, #c9d9cf 100%); }
.auth-side blockquote { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }

/* Hero ohne Foto: Chat-Fenster + zwei kleine Karten */

/* Anordnung: Chat oben, Schicht-Karte rechts unten, Rechnungs-Hinweis links unten */

/* ═════════════ Portal-Erweiterungen ═════════════ */
[hidden] { display: none !important; }

.acc-av { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; margin-bottom: 8px; }
.acc-av.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; background: var(--surface); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.acc-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-cover { height: 78px; background: linear-gradient(135deg, #c4e6e4, #7fbfbc); display: flex; align-items: flex-end; padding: 0 16px; }
.acc-cover .acc-av { transform: translateY(26px); box-shadow: 0 0 0 4px var(--surface); margin: 0; }
.acc-body { padding: 34px 16px 16px; }
.acc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }

.stat .v small { font-size: 12.5px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bar-fill { width: 100%; max-width: 38px; background: var(--accent-2); border-radius: 6px 6px 2px 2px; transition: background .15s; }
.bar:hover .bar-fill { background: var(--accent); }
.bar small { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.line { width: 100%; height: 150px; color: var(--accent); display: block; margin: 6px 0 10px; }
.share-cell { white-space: nowrap; }
.share { display: inline-block; width: 90px; height: 6px; background: var(--sand); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.share-fill { display: block; height: 100%; background: var(--accent); }
.perf-filter { padding: 14px 16px; }
.chip { display: inline-flex; margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.promo { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--accent-soft); border-color: #c4e6e4; }
.remember { background: var(--accent-soft); border-color: #c4e6e4; }

/* Onboarding */
.onboard { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.ob-side { position: sticky; top: 20px; }
.ob-progress { height: 6px; background: var(--sand-2); border-radius: 99px; overflow: hidden; }
.ob-fill { display: block; height: 100%; background: var(--accent); }
.ob-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: ob; }
.ob-steps li { counter-increment: ob; display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; color: var(--ink-3); }
.ob-steps li::before { content: counter(ob); width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.ob-steps li.ok::before { content: "✓"; background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent-ink); }
.ob-steps li.on { color: var(--ink); font-weight: 600; }
.ob-steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.ob-steps a { color: inherit; text-decoration: none; } .ob-steps a:hover { text-decoration: underline; }
.ob-title { font-size: 28px; }
.ob-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 20px; }
.ob-fields .field { grid-column: span 2; }
.ob-fields .field.half { grid-column: span 1; }
.ob-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.check.confirm { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 500; line-height: 1.45; }
.check.confirm input { margin-top: 2px; flex: none; }
.seg-wide label { padding: 8px 18px; }
.steps-mini { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.onboard-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.kv-review { grid-template-columns: minmax(160px, 34%) 1fr; }
.kv-review dd, .pre { white-space: pre-wrap; }
.done-card { text-align: center; max-width: 620px; margin: 40px auto; padding: 44px 36px; }
.done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; margin: 0 auto 16px; }
.done-card .btn-row { justify-content: center; }
@media (max-width: 900px) { .onboard, .onboard-intro { grid-template-columns: minmax(0, 1fr); } .ob-side { position: static; } .ob-fields { grid-template-columns: minmax(0, 1fr); } .ob-fields .field.half { grid-column: span 2; } }

/* NPS */
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps label { margin: 0; cursor: pointer; }
.nps input { position: absolute; opacity: 0; }
.nps span { display: grid; place-items: center; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.nps input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.nps-scale { display: flex; justify-content: space-between; margin-top: 6px; }

/* Login-Extras */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: 600 12.5px var(--font); color: var(--accent-ink); cursor: pointer; padding: 6px 8px; }
.magic summary { font-size: 14px; }

/* Website-Erweiterungen */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq .num { font-size: 13px; color: var(--accent); width: 26px; flex: none; }
.faq .pm { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; flex: none; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq p { margin: 0 0 18px 42px; color: var(--ink-2); max-width: 62ch; }

.mono { font-family: ui-monospace, Menlo, monospace; }
form.inline { display: inline; }
.list-dots { padding-left: 18px; margin: 0 0 14px; } .list-dots li { margin-bottom: 7px; }
.reveal-box { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px 14px; align-items: center; }
.reveal-box .val { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: var(--sand); border-radius: 8px; padding: 9px 12px; word-break: break-all; user-select: all; }
.reveal-timer { font-variant-numeric: tabular-nums; }

/* ═════════════ Bewegung & Dynamik (Website) ═════════════ */
/* Einblenden beim Laden und beim Scrollen */
.js .fx-load { opacity: 0; transform: translateY(18px); }
.js .fx-load.in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .fx { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .fx.in { opacity: 1; transform: none; }

/* Live-Uhr in der Überschrift (Idee von Cal.com: kleine Elemente im Text) */

.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: relative; display: inline-block; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: pulse 2s infinite; }
.pulse::after { color: var(--accent); }

@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* Chat im Hero: Nachrichten kommen nacheinander */

/* Wechselnde Hinweise */

/* Laufband */

/* Band-Kacheln: kleine Bewegung beim Hover */

/* Klebende Überschrift + aktive Zeile */

.js [data-spy] .s-row { opacity: .35; }
.js [data-spy] .s-row.active { opacity: 1; }
.s-row .num { transition: color .3s, transform .3s; }
.s-row.active .num { transform: translateX(4px); }
@media (max-width: 860px) { .js [data-spy] .s-row { opacity: 1; } }

/* Große Aussage: Wörter färben sich beim Scrollen */
[data-words] .w { color: var(--line-strong); transition: color .25s; }
[data-words] .w.lit { color: var(--ink); }
[data-words] em .w.lit { color: var(--accent); }

/* Interaktive Portal-Vorschau */
.s-portal-live .ps button { all: unset; display: block; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.s-portal-live .ps button:hover { background: var(--sand); }
.s-portal-live .ps button.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.s-portal-live .ps button:focus-visible { outline: 2px solid var(--accent); }

.s-portal-live .ps div { opacity: .55; }
.s-portal-live .pm { min-height: 300px; }
[data-ppanel] { display: none; animation: panelIn .45s cubic-bezier(.2,.7,.2,1); }
[data-ppanel].on { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.feed { list-style: none; margin: 14px 0 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-8px); }
.feed li.show { opacity: 1; transform: none; transition: opacity .4s, transform .4s; }
.feed .fi { width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.feed small { display: block; color: var(--ink-3); } .feed time { font-size: 12.5px; color: var(--ink-3); }

/* Zahlenleiste */
.s-numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed var(--line-strong); }
.s-numbers > div { padding: 40px 36px; border-right: 1px dashed var(--line-strong); }
.s-numbers > div:last-child { border-right: 0; }
.s-numbers b { display: block; font-family: var(--display); font-size: clamp(54px, 6vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.s-numbers span { display: block; margin-top: 10px; color: var(--ink-2); max-width: 18ch; }
@media (max-width: 860px) { .s-numbers { grid-template-columns: 1fr 1fr; } .s-numbers > div { padding: 28px 20px; border-bottom: 1px dashed var(--line-strong); } .s-numbers > div:nth-child(2n) { border-right: 0; } }

/* Fortschrittslinie über den Schritten */

[data-steps] li::before { transition: color .3s; }

/* FAQ sanft öffnen */
.faq[open] p { animation: panelIn .35s ease; }
.faq summary:hover .pm { background: var(--accent-soft); border-color: var(--accent-2); }

/* Buttons mit Pfeil */

.btn { transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: scale(.98); }

/* CTA: Licht folgt der Maus */

/* Navigation: beim Runterscrollen weg, beim Hochscrollen wieder da */
.site-head { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.site-head.hide { transform: translateY(-140%); }
body.nav-open .site-head.hide { transform: none; }

/* Unterseiten: Kopf und Inhalte gleiten herein */
.js .page-hero > div { animation: panelIn .8s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  .js .fx, .js .fx-load, .feed li { opacity: 1 !important; transform: none !important; transition: none !important; }

  .pulse::after { animation: none; }
  [data-words] .w { color: inherit !important; }
  .js .page-hero > div, [data-ppanel], .faq[open] p { animation: none; }
  .site-head { transition: none; }
}

/* ═════════════ Live-Support ═════════════ */
.chatw { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-size: 14.5px; }
.chatw-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px 10px 10px; cursor: pointer; font: 600 14px var(--font); box-shadow: 0 14px 34px -14px rgba(8,30,34,.55); transition: transform .2s; }
.chatw-btn:hover { transform: translateY(-2px); }
.chatw-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; position: relative; }
.chatw.is-online .chatw-ic::after { content: ""; position: absolute; right: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #7fe3a6; box-shadow: 0 0 0 2px var(--ink); }
.chatw-badge { background: #e46d5c; color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 7px; }
.chatw.open .chatw-btn { display: none; }
.chatw-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(8,30,34,.5); display: flex; flex-direction: column; overflow: hidden; animation: panelIn .3s cubic-bezier(.2,.7,.2,1); }
.chatw-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--accent); color: #fff; }
.chatw-head b { display: block; font-family: var(--display); font-size: 16px; }
.chatw-head small { display: block; font-size: 12px; opacity: .85; }
.chatw-avatars { display: flex; } .chatw-avatars span { width: 30px; height: 30px; border-radius: 50%; background: #eef7f6; color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; margin-left: -8px; box-shadow: 0 0 0 2px var(--accent); }
.chatw-avatars span:first-child { margin-left: 0; }
.chatw-close { margin-left: auto; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.chatw-body, .chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chatw-msg { max-width: 82%; display: flex; flex-direction: column; gap: 2px; }
.chatw-msg span { padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.chatw-msg time { font-size: 11px; color: var(--ink-3); padding: 0 4px; }
.chatw-msg.me { align-self: flex-end; align-items: flex-end; }
.chatw-msg.me span { background: var(--accent); color: #fff; border-color: var(--accent); }
.chatw-msg.system { align-self: center; max-width: 92%; text-align: center; }
.chatw-msg.system span { background: transparent; border: 0; color: var(--ink-3); font-size: 12.5px; padding: 2px; }
.chatw-form { border-top: 1px solid var(--line); padding: 10px 12px 8px; background: var(--surface); }
.chatw-who { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.chatw-who input { padding: 8px 10px; font-size: 13.5px; }
.chatw-input { display: flex; gap: 8px; align-items: flex-end; }
.chatw-input textarea { min-height: 40px; resize: none; padding: 9px 12px; font-size: 14px; border-radius: 12px; }
.chatw-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chatw-err { color: #a3483b; font-size: 12.5px; margin: 6px 2px 0; }
.chatw-legal { font-size: 11px; color: var(--ink-3); margin: 6px 2px 0; }
@media (max-width: 520px) { .chatw { right: 12px; bottom: 12px; } .chatw-label { display: none; } .chatw-btn { padding: 8px; } }
@media print { .chatw { display: none; } }
.app .chatw { right: 24px; bottom: 24px; }

/* Team-Posteingang */
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.inbox li a:hover { background: #f3f7f7; }
.inbox li.unread b { color: var(--accent-ink); }
.ib-av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.ib-main small { color: var(--ink-3); }
.ib-last { display: block; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60ch; }
.ib-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--ink-3); }
.ib-meta .count, .side .count[data-support-count] { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 600; }
.chat-team { display: flex; flex-direction: column; gap: 12px; }
.chat-team .chat-body { height: 52vh; border-radius: 12px; border: 1px solid var(--line); }
.chatw-msg.them { align-self: flex-start; }
.snippets { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font: 500 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--ink); }
.team-input textarea { min-height: 60px; }

/* ═════════════ Mehr Charakter (nach Disturb, Clay, Ramp) ═════════════ */
/* Akzentwörter mit Marker-Strich */
.page-hero h1 em {
  background: linear-gradient(transparent 64%, rgba(159,220,217,.55) 64%, rgba(159,220,217,.55) 92%, transparent 92%);
  padding: 0 .06em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Bento mit Farbflächen und kleinen Einblicken */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bt { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 300px; overflow: hidden; position: relative;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.bt:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(8,30,34,.45); }
.bt:nth-child(1), .bt:nth-child(2) { grid-column: span 3; }
.bt:nth-child(n+3) { grid-column: span 2; }

.bt h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; margin: 8px 0 8px; line-height: 1.08; }
.bt p { margin: 0; opacity: .78; max-width: 36ch; }

.voice { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }

.day { background: rgba(255,255,255,.12); }

.vault { background: var(--bg); display: grid; grid-template-columns: 44px 1fr; gap: 8px 12px; align-items: center; }

.spark { background: rgba(255,255,255,.45); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; color: #7a5f43; }
.spark svg { grid-column: 1 / -1; width: 100%; height: 70px; }
.spark b { font-family: var(--display); font-size: 26px; font-weight: 600; color: #18434a; } .spark small { color: #7d6d5a; text-align: right; }
.draw { stroke-dasharray: 400; stroke-dashoffset: 400; }
.in .draw { animation: draw 1.6s .2s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.person { background: var(--bg); display: flex; align-items: center; gap: 12px; }
.pa { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.person b { display: block; } .person small { color: var(--ink-3); }
.person .online { margin-left: auto; color: var(--accent); font-size: 12px; font-weight: 600; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .bt:nth-child(n) { grid-column: span 1; } .bt:nth-child(1) { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } .bt:nth-child(n) { grid-column: span 1; } .bt { min-height: 0; } }

/* Großes wechselndes Wort (Leistungen) */
.stage-word { position: relative; height: clamp(70px, 9vw, 120px); margin-top: 40px; overflow: hidden; }
.stage-word span { position: absolute; left: 0; top: 0; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 8.5vw, 116px); letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent-2); transform: translateY(105%); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.stage-word span.on { transform: none; }
.stage-word span.up { transform: translateY(-105%); }
@media (max-width: 860px) { .stage-word { display: none; } }

/* Dunkler Abschnitt Creator / Agenturen */
.aud { padding-top: 20px; padding-bottom: 70px; }

[data-aud-word] { color: #9fdcd9; display: inline-block; transition: opacity .25s, transform .25s; }
[data-aud-word].swap { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) { .stage-word span { transition: none; } .in .draw { animation: none; stroke-dashoffset: 0; } .bt:hover { transform: none; } }

/* ═════════════ Dashboard-Feinschliff ═════════════ */
.side nav a { justify-content: flex-start; gap: 10px; }
.side nav a .ico { flex: none; opacity: .75; }
.side nav a.on .ico { opacity: 1; color: var(--accent); }
.side nav a .count { margin-left: auto; }
.side .brand-name { font-size: 17px; }
.welcome { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; color: #eef7f6;
  background: linear-gradient(135deg, #3f6152 0%, #2fa3a0 45%, #4e8e8b 100%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: end; margin-bottom: 22px; }
.welcome::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); }
.welcome .wd { font-size: 13px; opacity: .8; }
.welcome h1 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 6px 0 8px; }
.welcome p { margin: 0; opacity: .85; }

.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; }
.delta.up { background: rgba(111,208,204,.2); color: #c9f5d8; } .delta.down { background: rgba(240,150,130,.2); color: #ffd3c8; }
.stat .delta.up { background: var(--sage-soft); color: #3f6a4c; } .stat .delta.down { background: var(--rose-soft); color: #94503f; }
@media (max-width: 860px) { .welcome { grid-template-columns: minmax(0, 1fr); } }
.stat { position: relative; }

.card-head h2 { display: flex; align-items: center; gap: 8px; }

/* overflow: clip verhindert, dass Fokus/Klick den Kasten seitlich verschiebt */
.bt, .welcome { overflow: clip; }

/* Who sees what (Zugriff je Rolle) */
.ra-roles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ra-roles a { display: flex; flex-direction: column; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; min-width: 120px; }
.ra-roles a span { font-size: 12px; color: var(--ink-3); }
.ra-roles a:hover { border-color: var(--accent); }
.ra-roles a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ra-roles a.on span { color: rgba(255,255,255,.8); }
.ra-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.ra-main { display: flex; flex-direction: column; gap: 14px; }
.ra-intro p + p { margin-top: 6px; }
.ra-group { padding: 0; }
.ra-group-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px 8px; }
.ra-group-head h2 { font-size: 16px; margin: 0; }
.ra-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); margin: 0; }
.ra-what { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ra-what .ico { flex: none; margin-top: 2px; color: var(--ink-3); }
.ra-what strong { display: block; font-weight: 600; }
.ra-what span { display: block; font-size: 13px; color: var(--ink-3); }
.ra-seg { display: inline-flex; flex: none; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: var(--surface); }
.ra-seg button { border: 0; border-left: 1px solid var(--line); background: none; padding: 7px 14px; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; min-width: 58px; }
.ra-seg button:first-child { border-left: 0; }
.ra-seg button:hover { background: var(--sand-2); }
.ra-seg button[aria-pressed=true] { background: var(--sand-2); color: var(--ink); font-weight: 600; }
.ra-seg button.see[aria-pressed=true] { background: var(--accent); color: #fff; }
.ra-seg button.edit[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.ra-pill { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--sand-2); font-weight: 600; font-size: 12px; }
.ra-pill.see { background: var(--accent); color: #fff; }
.ra-pill.edit { background: var(--ink); color: var(--bg); }
.ra-preview { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; }
.ra-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ra-preview-head h2 { font-size: 15px; margin: 0; }
.ra-saved { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.ra-saved.bad { color: #8a2f2f; background: #f6dede; }
.ra-pv-group .side-label { padding: 12px 0 4px; }
.ra-pv-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.ra-pv-item .ico { opacity: .7; }
@media (max-width: 900px) { .ra-layout { grid-template-columns: minmax(0, 1fr); } .ra-preview { position: static; max-height: none; } }
@media (max-width: 560px) { .ra-row { flex-direction: column; align-items: stretch; } .ra-seg { align-self: flex-start; } }

/* Menügruppen zum Auf- und Zuklappen */
.side-group { margin-top: 6px; }
.side-group > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 9px 10px; border-radius: 7px; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s ease; }
.side-group[open] > summary::after { transform: rotate(45deg); }
.side-group > summary:hover { background: var(--sand-2); color: var(--ink); }
.side-group > summary .count { letter-spacing: 0; }
.side-group[open] > summary .count { display: none; }
.side-group > a { margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .side-group > summary::after { transition: none; } }

/* Rollen-Seite: Rollen links, Rechte rechts */
.rl-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.rl-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; }
.rl-list { display: flex; flex-direction: column; gap: 6px; }
.rl-list a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rl-list a span { font-size: 12.5px; color: var(--ink-3); }
.rl-list a:hover { border-color: var(--accent); color: var(--ink); }
.rl-list a.on { background: var(--accent-soft); border-color: var(--accent); }
.rl-new { padding: 0; }
.rl-new > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; }
.rl-new > summary::-webkit-details-marker { display: none; }
.rl-new form { padding: 0 16px 16px; }
.rl-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rl-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.rl-head h2 { font-size: 20px; margin: 0 0 4px; }
.rl-head .btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-head form { margin: 0; }
@media (max-width: 860px) { .rl-layout { grid-template-columns: minmax(0, 1fr); } .rl-side { position: static; } }

/* Mitarbeiter-Onboarding /welcome (15.11.2026) */
.ob-top { border-bottom: 1px solid var(--line); background: var(--surface); }
.ob-top-in { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-top-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.ob-top-nav form { margin: 0; }
.ob-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; }
.ob-form .h4, .ob-form h2.h4 { font-size: 17px; margin: 22px 0 6px; }
.ob-tg { margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ob-tg h2 { margin-top: 0 !important; }
.ob-docbox { border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 8px; background: var(--surface); }
.ob-docbox > summary { cursor: pointer; padding: 12px 16px; }
.ob-docscroll { max-height: 360px; overflow-y: auto; padding: 4px 18px 16px; border-top: 1px solid var(--line); }
.ob-doc { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.ob-doc h3 { font-size: 15.5px; margin: 18px 0 6px; color: var(--ink); }
.ob-doc-note { font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); padding: 8px 12px; border-radius: 8px; margin: 12px 0; }
.ob-days { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ob-pay .ob-fields { margin: 4px 0 14px; padding-left: 30px; }
.ob-state { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--sand-2); color: var(--ink-2); white-space: nowrap; }
.ob-state-submitted { background: var(--accent); color: #fff; }
.ob-state-approved { background: var(--accent-soft); color: var(--accent-ink); }
.ob-state-returned { background: #fdecd8; color: #8a4b12; }

/* Hero: Content-Plan statt Chat (17.11.2026, Social-Media-Auftritt) */

/* Rechts-Links unter Login & Co. (16.11.2026), auch auf dem Handy sichtbar */
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 28px 0 0; font-size: 12.5px; }
.auth-legal a { color: var(--ink-3); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }

/* Cookie-Hinweis (partials/cookie_notice.html) */
.cookie-note { position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 430px; display: flex; align-items: center; gap: 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; font-size: 14px; line-height: 1.5; }
.cookie-note p { margin: 0; }
.cookie-note a { color: var(--accent-ink); text-decoration: underline; }
.cookie-note-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 600px) { .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; }
  .cookie-note-actions .btn { flex: 1; } }
@media print { .cookie-note { display: none; } }

/* ── Rechtsprüfung 17.11.2026: Rechts-Links für Mitarbeiter und Bewerber, Vertrag im Portal ── */
.team-legal { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 12.5px; }
.team-legal a { color: var(--ink-3); text-decoration: none; }
.team-legal a:hover { text-decoration: underline; }
.team-legal-foot { padding-top: 0; padding-bottom: 32px; }
.team-legal-foot .small { margin: 0 0 6px; }
.t-panel .team-legal { border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 10px 2px; font-size: 12px; }
.pre-line { white-space: pre-line; }
.key-terms { margin: 4px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.agreement-change .pre-line { margin-top: 0; }
