@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --mint:        #16c8ae;
  --mint-dark:   #0a8574;   /* ~4.5:1 auf Weiß, WCAG-AA für Links (vorher #12b29b ~2.9:1) */
  --mint-soft:   #6dd9ca;
  --off-white:   #f0f8f7;
  --petrol-deep: #09242b;
  --petrol:      #0d3d48;
  --petrol-light:#154f5e;
  --border:      #dbe7e6;
  --text:        #0d3d48;
  --text-muted:  #3f7275;   /* ~5.4:1 auf Weiß (vorher #5a9ea0 ~3:1, unter AA) */
  --white:       #ffffff;
  --radius:      8px;

  /* Typo-Skala (verbindlich — keine neuen Zwischengrößen erfinden) */
  --fs-xs:   0.75rem;    /* Badges, Mikro-Tags */
  --fs-sm:   0.8125rem;  /* Tabellenköpfe, Hilfstexte, kompakte Buttons */
  --fs-base: 0.9375rem;  /* Fließ-/Formulartext */
  --fs-md:   1.0625rem;  /* Karten-Titel, App-Namen */
  --fs-lg:   1.25rem;    /* Sektions-Überschriften */
  --fs-xl:   1.5rem;     /* Seiten-Titel (H1) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;               /* vorher Browser-Default ~1.2 */
  -webkit-font-smoothing: antialiased;
}

/* Sichtbarer Tastatur-Fokus überall (nur bei Keyboard, nicht bei Maus-Klick) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Geldbeträge/Ziffern fluchten sauber untereinander */
.tnum, td.num, .sums, .prev td.v { font-variant-numeric: tabular-nums; }

/* Zentraler Seitenkopf — löst die je-Template duplizierten .head-row-Blöcke ab */
/* Zentrale Seitenkopfzeile — .head-row ist der bestehende Markup-Name, .page-head der neue;
   BEIDE hier EINMAL definiert, damit kein Template den Kopf mehr selbst stylt. */
.page-head, .head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.page-head h1, .head-row h1 { font-size: var(--fs-xl); color: var(--petrol-deep); font-weight: 700; line-height: 1.2; }
.page-head p, .head-row p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .3rem; max-width: 70ch; }
/* Aktionsleiste rechts im Kopf: Buttons immer gleich hoch, vertikal zentriert */
.page-head .actions, .head-row .actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ===== Datentabellen (interaktiv: Rechnungen/Mandanten/Vorlagen) =====================
   EIN zentrales Aussehen für alle .ftab-Listen. Diese Templates definieren die Regeln
   NICHT mehr selbst (Duplikate entfernt) -> alle drei Listen sind identisch. */
table.ftab { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.ftab thead tr.htr th {
  text-align: left; padding: .35rem .5rem; color: var(--text-muted);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
  border-bottom: 1px solid #dfeeeb; cursor: pointer; user-select: none;
}
table.ftab thead tr.htr th.nosort { cursor: default; }
table.ftab td { padding: .5rem .5rem; border-top: 1px solid #eef3f2; vertical-align: middle; }
table.ftab td.num, table.ftab th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.ftab td.act, table.ftab td.vact { text-align: right; white-space: nowrap; }
table.ftab td.act form, table.ftab td.vact form { display: inline; }
/* Filterzeile: alle Filterfelder identisch hoch/kompakt, kein abgeschnittener Text */
table.ftab thead tr.frow th { padding: .25rem .4rem .55rem; }
table.ftab thead tr.frow input, table.ftab thead tr.frow select {
  width: 100%; box-sizing: border-box; min-height: 32px; padding: .3rem .55rem;
  font-size: var(--fs-sm); border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; color: var(--text); background: #fff; text-overflow: ellipsis;
}
.ftab .sarrow { color: var(--mint-dark); font-size: var(--fs-xs); }
.ftab-count, .dtab-count { font-size: var(--fs-sm); color: var(--text-muted); }

/* Status-Badges — zentral, überall gleich (Liste, Papierkorb, Detail) */
.stbadge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; border-radius: 6px;
  padding: .12rem .5rem; white-space: nowrap; border: 1px solid transparent; }
.stbadge.draft   { background: #fff4e5; color: #7a5200; border-color: #f0c98a; }
.stbadge.sent    { background: #eaf2fb; color: #1f5591; border-color: #bcd6f2; }
.stbadge.paid    { background: #e7f6ec; color: #1c7c3f; border-color: #b6e2c6; }
.stbadge.overdue { background: #fdecec; color: #b3261e; border-color: #f0c9c9; }
.stbadge.storno  { background: #f0f0f0; color: #666;    border-color: #ddd; }
.badge-draft { font-size: var(--fs-xs); background: #fff4e5; color: #7a5200; border: 1px solid #f0c98a;
  border-radius: 6px; padding: .05rem .3rem; vertical-align: middle; margin-left: .3rem; }

/* ---- Header / Navigation ---- */
header.hb {
  background: var(--petrol-deep);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.hb h1 { font-size: 1.1rem; font-weight: 700; letter-spacing: .3px; }
header.hb .brand-mint { color: var(--mint); }
header.hb .nav { display: flex; gap: 1.5rem; align-items: center; }
header.hb a { color: rgba(255,255,255,.7); font-size: 0.85rem; text-decoration: none; transition: color .15s; }
header.hb a:hover { color: var(--mint); }

main { max-width: 640px; margin: 3rem auto; padding: 0 1rem; }
main.wide { max-width: 880px; }
main.settings { max-width: 720px; margin: 2.5rem auto; display: flex; flex-direction: column; gap: 1.5rem; }

/* ---- Karten ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(9,36,43,.07);
  padding: 2.5rem;
}
.card.pad-sm { padding: 2rem; }
h2 { font-size: 1.2rem; color: var(--petrol-deep); margin-bottom: 0.5rem; font-weight: 700; }
h2.section { font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid #eef3f2; }
p.hint, .hint { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
p.hint { margin-bottom: 2rem; }

/* ---- Buttons ------------------------------------------------------------
   EIN Button-System. Alle Varianten haben eine feste Höhe (min-height) und
   sind vertikal zentriert, damit Buttons in einer Reihe sauber fluchten —
   egal ob Text oder Icon. Größen: Standard (.btn) und klein (.btn.mini/.compact).
   Varianten: (primär) · .ghost · .danger · .link. Nicht je Template neu definieren! */
.btn, button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px;                     /* = Höhe der Formularfelder -> Toolbars fluchten */
  padding: 0 1.15rem;
  background: var(--mint);
  color: var(--petrol-deep);
  border: 1px solid transparent;      /* gleiche Kastenmaße wie .ghost (Rahmen) */
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  /* line-height = Innenhöhe: zentriert die Schrift auch dann sauber, wenn ein
     anderes Blueprint-Stylesheet den Button auf display:inline-block zwingt. */
  line-height: 40px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn:hover, button[type=submit]:hover { background: var(--mint-dark); box-shadow: 0 3px 12px rgba(22,200,174,.28); }
.btn:disabled, button[type=submit]:disabled { background: #c8d8d6; color: #8aa6a3; cursor: not-allowed; box-shadow: none; }
.btn.block, button[type=submit].block { display: flex; width: 100%; min-height: 48px; line-height: 46px; font-size: 1rem; }
/* .compact = Standardgröße, nur automatische Breite (für Primär-CTAs in Kopfzeilen) */
.btn.compact { width: auto; }
/* WICHTIG: freistehende Buttons sind IMMER 42px (kein Größen-Mix). .mini wirkt nur noch
   in Tabellenzeilen (td/.rowact) als kompakte 34px-Variante — sonst identisch zu .btn. */
.btn.mini { min-height: 42px; line-height: 40px; padding: 0 1.05rem; font-size: .9rem; border-radius: 7px; width: auto; }
td .btn.mini, .rowact .btn.mini { min-height: 34px; line-height: 32px; padding: 0 .8rem; font-size: .8125rem; border-radius: 6px; }
.btn.ghost, button.ghost { background: #fff; border: 1px solid var(--mint-soft); color: var(--petrol); }
.btn.ghost:hover, button.ghost:hover { background: var(--off-white); border-color: var(--mint); box-shadow: none; color: var(--petrol-deep); }
.btn.danger { background: #fdecec; color: #b3261e; border-color: #f3cccc; }
.btn.danger:hover { background: #f7d4d4; box-shadow: none; color: #8f1d17; }
.btn.link { background: none; border-color: transparent; color: var(--mint-dark); min-height: 0; line-height: 1.4; padding: .3rem .3rem; text-decoration: underline; font-weight: 500; }
.btn.link:hover { background: none; box-shadow: none; color: var(--petrol-deep); }
/* Quadratischer Icon-Button (34px), ein einheitlicher Look für alle Icon-Aktionen */
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; padding: 0; line-height: 0;
  background: #fff; border: 1px solid var(--mint-soft); color: var(--petrol);
  border-radius: 6px; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.iconbtn:hover { background: var(--mint); border-color: var(--mint); color: var(--petrol-deep); }
.iconbtn:disabled { opacity: .4; cursor: default; }
.iconbtn.danger { background: #fdecec; border-color: #f3cccc; color: #b3261e; }
.iconbtn.danger:hover { background: #f7d4d4; color: #8f1d17; }
.iconbtn svg { display: block; }
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; }

/* Zurück-Link im Header */
.backlink { display: inline-flex; align-items: center; gap: .3rem; }

.linkbtn { display:inline-block; margin-top: 1rem; font-size:0.85rem; color: var(--mint-dark); background:none; border:none; cursor:pointer; text-decoration:underline; font-family: inherit; }

/* ---- Formulare ---- */
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--petrol); margin-bottom: 0.3rem; }
input[type=text], input[type=password], input[type=email], input[type=tel] {
  width: 100%; min-height: 42px; padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.92rem; color: var(--text);
}
input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(22,200,174,.18); }

/* Dropdowns + Datums-/Monatsfelder + Textareas einheitlich (gleiche Optik + Höhe wie Textfelder) */
select, input[type=date], input[type=month], input[type=number], textarea {
  width: 100%; min-height: 42px; padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 0.92rem; color: var(--text); background: var(--white);
}
textarea { min-height: 80px; }
/* Ausnahme: dichte Tabellen (Positionszeilen, Spaltenfilter) behalten kompakte Felder */
table.pos input, .ftab .frow input, .ftab .frow select { min-height: 0; }
select {
  padding-right: 2.1rem; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316c8ae' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 11px;
}
select:focus, input[type=date]:focus, input[type=month]:focus, input[type=number]:focus, textarea:focus {
  outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(22,200,174,.18);
}
input[type=date]::-webkit-calendar-picker-indicator,
input[type=month]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }

/* ---- Upload / Drop-Area ---- */
.drop-area { border: 2px dashed var(--mint-soft); border-radius: var(--radius); padding: 3rem; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: 1.5rem; }
.drop-area:hover, .drop-area.over { border-color: var(--mint); background: var(--off-white); }
.drop-area svg { width: 48px; height: 48px; color: var(--mint); margin-bottom: 1rem; }
.drop-area p { font-size: 0.95rem; color: var(--petrol); }
.drop-area span { font-size: 0.8rem; color: var(--text-muted); }
#file-name { margin-top: 0.75rem; font-size: 0.85rem; color: var(--mint-dark); font-weight: 600; min-height: 1.2em; }
input[type=file] { display: none; }

/* ---- Meldungen ---- */
.error, .flash-err { background: #fdecec; border: 1px solid #f5c6c6; color: #b3261e; border-radius: 6px; padding: 0.6rem 0.9rem; font-size: 0.85rem; margin-bottom: 1.2rem; }
.flash-ok { background: #e7f8f4; border: 1px solid #9fe0d3; color: #0a7a66; border-radius: 6px; padding: 0.6rem 0.9rem; font-size: 0.85rem; margin-bottom: 1rem; }
.info { font-size: 0.8rem; color: var(--text-muted); margin-top: 1.2rem; text-align: center; }
.spinner { display: none; text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--mint-dark); }

/* ---- Bestätigungs-Vorschau ---- */
.sheet-row { margin-bottom: 1.2rem; }
.sheet-row label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.sheet-row select { width: 100%; padding: 0.6rem; border:1px solid var(--mint-soft); border-radius:6px; font-family: inherit; font-size: 0.95rem; background: var(--white); color: var(--text); }
.prev { background: var(--off-white); border:1px solid #d4eae6; border-radius:6px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.prev table { width:100%; font-size:0.9rem; border-collapse:collapse; }
.prev td { padding: 0.25rem 0; vertical-align: top; }
.prev td.k { color: var(--text-muted); width: 42%; }
.prev td.v { color: var(--petrol-deep); font-weight:600; }

/* ---- Dashboard-Kacheln ---- */
.greet { font-size: var(--fs-xl); color: var(--petrol-deep); margin-bottom: 0.3rem; font-weight: 700; }
.sub { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 2.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.app-card { background: var(--white); border-radius: 10px; box-shadow: 0 2px 14px rgba(9,36,43,.07); padding: 1.6rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .12s, box-shadow .18s, border-color .15s; border: 1px solid transparent; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(22,200,174,.18); border-color: var(--mint-soft); }
.app-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.app-name { font-size: 1.05rem; font-weight: 700; color: var(--petrol-deep); margin-bottom: 0.4rem; }
.app-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
.empty { background: var(--white); border-radius:10px; padding:2rem; color: var(--text-muted); font-size:0.9rem; text-align:center; box-shadow: 0 2px 14px rgba(9,36,43,.07); }

/* ---- Logs ---- */
.log-box { background: var(--petrol-deep); color: var(--mint-soft); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.78rem; padding: 1rem; border-radius: 6px; max-height: 280px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.log-empty { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.two-col label { margin-top: 0.9rem; }
.two-col > div:first-child label, .two-col > div:nth-child(2) label { margin-top: 0; }

/* ---- Login ---- */
body.login-page { display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--white); border-radius: var(--radius); box-shadow: 0 6px 28px rgba(9,36,43,.12); padding: 2.5rem; width: 360px; }
.login-card h1 { font-size: 1.4rem; color: var(--petrol-deep); margin-bottom: 0.25rem; font-weight: 700; }
.login-card .brand-mint { color: var(--mint); }
.login-card .subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.login-card label { margin-bottom: 0.35rem; margin-top: 1rem; }
.login-card label:first-of-type { margin-top: 0; }
.login-card input { margin-bottom: 0.4rem; }
.login-card button { margin-top: 1.5rem; }

/* ---- Logo / Brand ---- */
header.hb .brand { display:flex; align-items:center; gap:.6rem; text-decoration:none; }
header.hb .brand > span { color: var(--white); font-size:1.1rem; font-weight:700; letter-spacing:.3px; }
header.hb .brand:hover > span { color: var(--white); }
.logo-mark { width:30px; height:30px; display:block; }
.login-badge { width:56px; height:56px; display:block; margin:0 auto 1.1rem; }

/* Kompakte/sekundäre Buttons: automatische Breite (nicht 100%) */
.btn.compact, .btn.mini, .btn.ghost { width: auto; }

/* Sichtbarer Zurück-Button im Header */
header.hb a.navback { border: 1px solid rgba(255,255,255,.28); padding: .32rem .75rem; border-radius: 6px; color: #fff; }
header.hb a.navback:hover { border-color: var(--mint); color: var(--mint); }

/* ===== App-Shell mit kollabierbarer Hover-/Burger-Sidebar ===== */
.shell { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 64px; height: 100vh;
  overflow-x: hidden; overflow-y: auto;
  background: var(--petrol-deep); color: #fff;
  display: flex; flex-direction: column; padding: .8rem .7rem;
  white-space: nowrap;
  transition: width .18s ease, box-shadow .18s ease;
}
.sidebar:hover, .sidebar.open { width: 248px; box-shadow: 6px 0 30px rgba(9,36,43,.30); }

/* Burger-Schalter */
.side-burger {
  background: none; border: none; color: #fff; cursor: pointer;
  width: 100%; display: flex; align-items: center; gap: .8rem;
  padding: .5rem .55rem; border-radius: 8px; margin-bottom: .5rem;
  font-family: inherit; font-weight: 600; box-shadow: none;
}
.side-burger:hover { background: rgba(255,255,255,.1); box-shadow: none; }

.side-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; padding: .2rem .55rem 1.2rem; }
.side-brand img { width: 30px; height: 30px; flex-shrink: 0; }
.side-brand span { color: #fff; font-weight: 700; font-size: 1.18rem; letter-spacing: .2px; }
.side-brand .brand-mint { color: var(--mint); }

.side-nav { display: flex; flex-direction: column; gap: .18rem; flex: 1; }
.side-foot { display: flex; flex-direction: column; gap: .18rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: .7rem; margin-top: .7rem; }
.side-link { display: flex; align-items: center; gap: .8rem; padding: .58rem .6rem; border-radius: 8px;
  color: rgba(255,255,255,.74); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: background .15s, color .15s; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-link.active { background: var(--mint); color: var(--petrol-deep); font-weight: 700; }
.side-link .ic, .side-burger .ic { width: 1.5rem; flex-shrink: 0; text-align: center; font-size: 1.05rem; }
.side-sub { display: block; padding: .42rem .75rem .42rem 2.85rem; border-radius: 7px; font-size: .85rem;
  color: rgba(255,255,255,.6); text-decoration: none; transition: background .15s, color .15s; }
.side-sub:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-sub.active { color: var(--mint); font-weight: 600; }

/* Labels nur sichtbar wenn ausgeklappt (Hover oder gepinnt) */
.side-label { opacity: 0; transition: opacity .12s ease; }
.sidebar:hover .side-label, .sidebar.open .side-label { opacity: 1; }
.sidebar:not(:hover):not(.open):not(:focus-within) .side-sub { display: none; }
/* Tastatur: Sidebar klappt auf, sobald ein Link fokussiert wird */
.sidebar:focus-within { width: 248px; box-shadow: 6px 0 30px rgba(9,36,43,.30); }
.sidebar:focus-within .side-label { opacity: 1; }

/* Aktiver Menüpunkt auch im kollabierten Zustand erkennbar (mint-Balken links) */
.side-link.active { position: relative; }
.side-link.active::before {
  content: ""; position: absolute; left: -.7rem; top: .35rem; bottom: .35rem;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--mint);
}
/* Burger-Icon nur auf Touch/schmal sichtbar; am Desktop reicht Hover */
.side-burger { display: none; }

.content { flex: 1; min-width: 0; margin-left: 64px; }
main.page { max-width: 1080px; margin: 0 auto; padding: 2.4rem 2.6rem; }

/* Karten im Shell stapeln mit Abstand */
main.page .card { margin-bottom: 1.5rem; }
main.page .card:last-child { margin-bottom: 0; }

/* etwas luftigere Formulare */
main.page label { margin-bottom: .4rem; }
main.page .card.pad-sm { padding: 1.8rem 2rem; }

@media (max-width: 820px) {
  main.page { padding: 1.5rem 1.1rem 1.5rem 1.3rem; }

  /* Sidebar wird zum Off-Canvas-Drawer: Hover greift auf Touch nicht */
  .side-burger { display: flex; }
  .sidebar { width: 0; padding-left: 0; padding-right: 0; }
  .sidebar:hover { width: 0; box-shadow: none; }        /* Hover deaktivieren */
  .sidebar.open { width: 248px; padding: .8rem .7rem; }
  .sidebar.open .side-label { opacity: 1; }
  .sidebar:not(.open) .side-sub { display: none; }
  .content { margin-left: 0; }

  /* Floating-Burger, um den Drawer zu öffnen (liegt über dem Content) */
  .nav-toggle {
    position: fixed; top: .7rem; left: .7rem; z-index: 70;
    width: 42px; height: 42px; border-radius: 9px; border: none;
    background: var(--petrol-deep); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(9,36,43,.25);
  }
  .sidebar.open ~ .nav-scrim {
    position: fixed; inset: 0; z-index: 55; background: rgba(9,36,43,.35); border: none;
  }
}
@media (min-width: 821px) { .nav-toggle, .nav-scrim { display: none; } }
