/* sanaflair Kundencenter (/konto)
   Ruhig, ein Grün (Logo #A6CE38 für Flächen, #4E6B00 für grüne Schrift), große Schrift,
   große Klickflächen, sichtbarer Fokus. Erkennungszeichen: das Kalenderblatt für Termine
   und Lieferungen. Keine externen Quellen. */

@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/InterVariable.woff2") format("woff2")}
html{font-feature-settings:"cv05" 1;font-optical-sizing:auto} /* „l“ mit Schwung: I, l und 1 unterscheidbar */

:root {
  --ground: #F2F4EF;
  --surface: #FFFFFF;
  --surface-soft: #E8ECE2;
  --ink: #1A2215;
  --ink-soft: #414B3A;
  --muted: #545E4D;          /* 6,2:1 auf --ground */
  --lime: #A6CE38;           /* Flächen, Knöpfe – dunkle Schrift darauf */
  --lime-soft: #EDF4D7;
  --accent: #4E6B00;         /* grüne Schrift, Links */
  --line: #DDE2D6;
  --field: #737D6C;          /* Feldrahmen: 4,3:1 auf Weiß */
  --amber: #8A5100;
  --amber-soft: #FFF1DC;
  --red: #B3261E;
  --red-soft: #FCE9E7;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(26, 34, 21, .05), 0 6px 24px rgba(26, 34, 21, .05);
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;   /* 18 px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.4em; height: 1.4em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ── Kopfzeile ───────────────────────────────────────── */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand-label { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.topbar-user { display: none; align-items: center; gap: 14px; color: var(--muted); font-size: 1rem; }
.topbar-user strong { color: var(--ink); font-weight: 600; }

/* ── Grundgerüst ─────────────────────────────────────── */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 16px 64px; }
.main { min-width: 0; padding-top: 24px; }
.main > *:last-child { margin-bottom: 0; }

/* Navigation: mobil als aufklappbares Menü (ohne Skript), ab 960 px als Seitenleiste */
.menu { margin: 16px 0 0; }
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1.125rem;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .menu-current { display: flex; align-items: center; gap: 12px; }
.menu > summary .menu-toggle { color: var(--accent); font-weight: 600; font-size: 1rem; }
.menu[open] > summary .menu-toggle .when-closed, .menu:not([open]) > summary .menu-toggle .when-open { display: none; }
.menu[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.menu-panel { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 8px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-list a {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav-list a:hover { background: var(--surface-soft); color: var(--ink); }
.nav-list a[aria-current="page"] { background: var(--lime); color: var(--ink); }
.nav-list a[aria-current="page"] .icon { color: var(--ink); }
.nav-list .icon { color: var(--accent); }
.nav-count { margin-left: auto; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.nav-logout { width: 100%; }

@media (min-width: 960px) {
  .topbar-user { display: flex; }
  .shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; padding-top: 0; }
  .sidebar { position: sticky; top: 96px; align-self: start; padding-top: 28px; }
  .menu { margin: 0; }
  .menu > summary { display: none; }
  .menu-panel { border: 0; background: transparent; padding: 0; }
  .main { padding-top: 36px; max-width: 800px; }
  .nav-mobile-only { display: none; }
}

/* Ansicht für Angehörige */
.viewing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.viewing label { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.viewing .row { display: flex; gap: 8px; }
.viewing select { flex: 1; min-width: 0; }
.acting-banner { display: flex; gap: 14px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px; }
.acting-banner p { margin: 0; }
.acting-banner .icon { color: var(--lime); margin-top: 2px; }
.acting-banner form { margin-top: 10px; }
.acting-banner .btn-link { color: var(--lime); }

/* ── Seitenkopf ──────────────────────────────────────── */
.page-head { margin-bottom: 28px; }
.page-head p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; margin: 0; }
.page-head .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; min-height: 44px; }
.eyebrow { display: block; font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

/* ── Karten ──────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-top: 0; }
.card > *:last-child { margin-bottom: 0; }
.card-muted { background: var(--surface-soft); box-shadow: none; }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--accent); color: inherit; }
.stack { display: grid; gap: 16px; }
.stack > .card + .card { margin-top: 0; }
.split { display: grid; gap: 16px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }

.meta { color: var(--muted); font-size: 1rem; }
.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.meta-list li { display: flex; gap: 10px; align-items: flex-start; }
.meta-list .icon { color: var(--accent); margin-top: 3px; width: 1.2em; height: 1.2em; }
dl.facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ── Kalenderblatt (Erkennungszeichen) ───────────────── */
.dated { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.leaf {
  width: 78px; border-radius: 14px; overflow: hidden; text-align: center; background: var(--surface);
  border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.leaf-top { background: var(--lime); color: var(--ink); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 0; border-bottom: 1.5px solid var(--ink); }
.leaf-day { font-family: var(--display); font-weight: 700; font-size: 2.1rem; line-height: 1; padding-top: 8px; }
.leaf-month { font-size: .9rem; font-weight: 600; padding: 2px 0 8px; color: var(--ink-soft); }
.leaf-blank .leaf-day { font-size: 1.6rem; padding-top: 10px; color: var(--muted); }
.leaf-done { border-color: var(--muted); box-shadow: 0 3px 0 var(--muted); opacity: .85; }
.leaf-done .leaf-top { background: var(--surface-soft); border-color: var(--muted); }
.dated h3 { margin-bottom: 4px; }
.dated .when { font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
@media (max-width: 420px) {
  .dated { gap: 14px; }
  .leaf { width: 64px; }
  .leaf-day { font-size: 1.75rem; }
}

/* ── Als Nächstes ───────────────────────────────────── */
.greeting h1 { margin-bottom: 8px; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.next-kind { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.next-kind .icon { width: 1.15em; height: 1.15em; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.quick { display: grid; gap: 12px; }
@media (min-width: 600px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick a {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 120px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.125rem;
}
.quick a:hover { border-color: var(--accent); color: var(--ink); }
.quick a .icon { width: 2rem; height: 2rem; color: var(--accent); }
.quick a span { font-weight: 400; font-size: 1rem; color: var(--muted); }

.contact { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--lime-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.4rem; flex: none; border: 2px solid var(--lime); }
.contact-text { flex: 1; min-width: 200px; }
.contact-text p { margin: 0; }

/* ── Knöpfe ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px;
  border-radius: var(--radius-sm); border: 2px solid var(--lime); background: var(--lime); color: var(--ink);
  font: 700 1.125rem/1.2 var(--body); text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: #97BE2C; border-color: #97BE2C; color: var(--ink); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn-secondary { background: var(--surface); border-color: var(--field); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-soft); border-color: var(--ink); }
.btn-danger { background: var(--surface); border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-solid:hover { background: #8F1E18; border-color: #8F1E18; color: #fff; }
.btn-block { width: 100%; }
.btn-small { min-height: 46px; padding: 8px 16px; font-size: 1rem; }
.btn-link { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--accent); font: 600 1.05rem/1.3 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
form.inline { display: inline; }

/* ── Formulare ───────────────────────────────────────── */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label, fieldset > legend { font-weight: 600; font-size: 1.05rem; }
.hint { color: var(--muted); font-size: 1rem; margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink);
  font: 400 1.125rem/1.4 var(--body);
}
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231A2215' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); outline: 3px solid var(--lime); outline-offset: 1px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
input[type="file"] { font: inherit; font-size: 1rem; max-width: 100%; padding: 10px 0; }
input[type="file"]::file-selector-button { font: 600 1rem var(--body); min-height: 46px; padding: 8px 16px; margin-right: 14px; border-radius: 10px; border: 2px solid var(--field); background: #fff; color: var(--ink); cursor: pointer; }
.field-error { color: var(--red); font-weight: 600; font-size: 1rem; margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.field-error .icon { width: 1.15em; height: 1.15em; margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: 10px; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { width: 28px; height: 28px; margin: 1px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 120px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--accent); font: 600 1rem var(--body); cursor: pointer; border-radius: 8px; text-decoration: underline; text-underline-offset: 3px; }
.code-input { font-family: var(--display) !important; font-size: 1.8rem !important; letter-spacing: .4em; text-align: center; max-width: 280px; }

/* Freie Zeiten */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px solid var(--field); border-radius: 12px; background: #fff; font-weight: 700; font-size: 1.15rem; }
.slot input:checked + span { background: var(--lime); border-color: var(--ink); }
.slot input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.slot input:disabled + span { background: var(--surface-soft); color: var(--muted); border-style: dashed; text-decoration: line-through; cursor: not-allowed; }

/* ── Hinweise ────────────────────────────────────────── */
.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px; border: 1.5px solid; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.notice .icon { margin-top: 2px; }
.notice-success { background: var(--lime-soft); border-color: var(--lime); color: var(--ink); }
.notice-success .icon { color: var(--accent); }
.notice-error { background: var(--red-soft); border-color: var(--red); color: #5C120E; }
.notice-error .icon { color: var(--red); }
.notice-info { background: var(--surface); border-color: var(--line); color: var(--ink); }
.notice-info .icon { color: var(--accent); }
.notice-warn { background: var(--amber-soft); border-color: #E6B66B; color: #4A2C00; }
.notice-warn .icon { color: var(--amber); }
.notice form { margin-top: 10px; }

/* Status-Schild */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .95rem; font-weight: 700; background: var(--surface-soft); color: var(--ink-soft); white-space: nowrap; }
.badge-ok { background: var(--lime-soft); color: var(--accent); }
.badge-wait { background: var(--amber-soft); color: var(--amber); }
.badge-new { background: var(--ink); color: #fff; }
.badge-off { background: var(--surface-soft); color: var(--muted); }

/* ── Versorgungsweg (Pflegebox-Status, echte Reihenfolge) ── */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 52px; min-height: 40px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; background: #fff; border: 2px solid var(--field); color: var(--muted);
}
.steps li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li.done::before { content: "✓"; background: var(--lime); border-color: var(--lime); color: var(--ink); }
.steps li.done::after { background: var(--lime); }
.steps li.current::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.current { font-weight: 700; }
.steps li .step-note { display: block; font-weight: 400; color: var(--muted); font-size: 1rem; }

/* ── Listen & Tabellen ───────────────────────────────── */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; gap: 16px; align-items: center; padding: 18px 20px; color: var(--ink); text-decoration: none; min-height: 72px; }
.row-link:hover { background: #FAFBF8; color: var(--ink); }
.row-link .row-main { flex: 1; min-width: 0; }
.row-link .row-title { font-weight: 700; display: block; }
.row-link .row-sub { display: block; color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
.row-link > .icon:last-child { color: var(--accent); }
.row-static { display: flex; gap: 16px; align-items: center; padding: 18px 20px; flex-wrap: wrap; }
.row-static .row-main { flex: 1; min-width: 200px; }
.row-unread .row-title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.items li { display: flex; gap: 14px; align-items: center; }
.items img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--surface-soft); flex: none; }
.items .qty { font-weight: 700; min-width: 3ch; }

.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
table.simple th, table.simple td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { font-size: .95rem; color: var(--muted); font-weight: 600; }
table.simple td.num, table.simple th.num { text-align: right; white-space: nowrap; }
table.simple tfoot td { font-weight: 700; border-bottom: 0; }

/* ── Nachrichtenverlauf ──────────────────────────────── */
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.msg { max-width: 88%; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.msg-me { justify-self: end; background: var(--lime-soft); border-color: #D3E5A0; border-bottom-right-radius: 6px; }
.msg-team { justify-self: start; border-bottom-left-radius: 6px; }
.msg-head { display: flex; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: var(--muted); margin-bottom: 6px; }
.msg-head strong { color: var(--ink); }
.msg-body { white-space: pre-line; overflow-wrap: anywhere; }
.msg-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.msg-files a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; text-decoration: none; }

/* ── Anmeldeseiten ───────────────────────────────────── */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding: 20px; display: flex; justify-content: space-between; align-items: center; max-width: 1100px; width: 100%; margin: 0 auto; gap: 12px; flex-wrap: wrap; }
.auth-top a.back-site { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.auth-main { flex: 1; display: flex; justify-content: center; padding: 8px 16px 56px; }
.auth-card { width: 100%; max-width: 520px; }
.auth-card .card { padding: 32px 28px; }
@media (max-width: 480px) { .auth-card .card { padding: 24px 18px; } }
.auth-card h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.2rem); }
.auth-alt { text-align: center; margin-top: 22px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 1rem; padding: 20px; }
.auth-foot a { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 1rem; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Fußzeile ────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; color: var(--muted); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); }

/* ── Leerer Zustand ──────────────────────────────────── */
.empty { text-align: left; padding: 28px 24px; }
.empty p { color: var(--ink-soft); }

/* Bereich zum Aufklappen */
details.more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.more + details.more { margin-top: 16px; }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; min-height: 64px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin-top: -6px; flex: none; }
details.more[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; }
details.more > .more-body { padding: 0 24px 24px; }
details.more.danger > summary { color: var(--red); }

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

@media print {
  .topbar, .sidebar, .foot, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* Navigation doppelt: mobil im Aufklapp-Menü, ab 960 px fest in der Seitenleiste */
.desktop-nav { display: none; }
.nav-logout { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 8px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.125rem; }
.nav-logout .icon { color: var(--accent); }
.nav-logout:hover { background: var(--surface-soft); color: var(--ink); }
@media (min-width: 960px) {
  .desktop-nav { display: block; }
  .nav-mobile-only { display: none; }
}
.leaf > span { display: block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* Rechnung/Lieferschein (Blatt aus dem Admin-Center) */
.document-body { background: #eef2f5; }
.document-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; max-width: calc(210mm + 4rem); margin: 0 auto; padding: 16px 2rem 0; }

/* Feinschliff nach Sichtprüfung */
.form > *, .field, .split > * { min-width: 0; }
input[type="file"] { width: 100%; }
.row-title, .row-sub { display: block; }
.row-static .row-sub { color: var(--muted); font-size: 1rem; }
.row-static .row-title { font-weight: 700; }
.sidebar { padding-top: 16px; }
.viewing .row { flex-direction: column; }
.viewing .row .btn { width: 100%; }
@media (min-width: 960px) { .sidebar { padding-top: 28px; } }
@media (max-width: 599px) {
  .quick a { flex-direction: row; align-items: center; min-height: 0; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
  .quick a span { flex-basis: 100%; padding-left: calc(2rem + 16px); margin-top: -12px; }
}
.email-state { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.document-body { font-size: 16px; line-height: 1.45; }
.document-body h1 { font-size: 2rem; letter-spacing: 0; }
.document-body .admin-print-button { display: none; } /* Inline-Knopf des Admin-Blatts – hier gibt es den eigenen */

/* Spamschutz: unsichtbares Prüffeld (App\Core\FormGuard) */
.sf-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
