/* Nachschub Portal – gleiche Gestaltungslinie wie nachschub.app (Gebäude-Beschilderung, Signalgrün). */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

[hidden] { display: none !important; }
/* Linie: Hausbeschilderung, frisch und hell. Helle Seitenleiste mit Leuchtpunkt,
   Inhalte als ruhige Listen auf Papier, Ortsangaben als kleine Raumschilder, Status als Leuchtpunkt. */
:root {
  --paper: #F5F6F8; --surface: #FFFFFF; --sunk: #EEF0F3; --ink: #111827; --ink-2: #374151; --ink-3: #6B7280;
  --line: #E4E8EC; --line-strong: #CBD2D9; --signal: #2F5BEA; --signal-dark: #1E40C2; --signal-soft: #E9EEFF;
  --board: #FFFFFF; --board-2: #E9EEFF; --board-ink: #111827; --board-mute: #5E6774;
  --lamp: #4D7BFF; --accent-light: #86A6FF; --accent-glow: rgba(47,91,234,.22); --accent-tint: #D9E3FF; --warn: #E8590C; --warn-soft: #FFEFE3; --blue: #7A4FD6; --blue-soft: #F1EBFC;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif; --body: "Instrument Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; font-feature-settings: "ss01"; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--signal); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; text-wrap: balance; }
p { margin: 0; }

/* ---------- Rahmen ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 26px 14px 20px; display: flex; flex-direction: column; gap: 28px; background: var(--board); color: var(--board-ink); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.025em; text-decoration: none; color: var(--ink); padding: 0 10px; }
.side .brand { color: var(--board-ink); }
.brand i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, var(--accent-light), var(--signal) 60%, var(--signal-dark)); box-shadow: 0 0 0 4px var(--signal-soft); }
.firma { padding: 14px 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.firma small { font-size: 12px; color: var(--board-mute); }
.firma select, .firma strong { font-weight: 600; background: transparent; border: none; padding: 0; font-size: 15px; color: var(--board-ink); }
.firma select option { color: var(--ink); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 26px; border-radius: 8px; color: var(--board-mute); text-decoration: none; font-weight: 500; transition: color .15s, background-color .15s; }
.nav a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-strong); transition: background-color .15s, box-shadow .15s; }
.nav a:hover { color: var(--board-ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--signal-dark); background: var(--board-2); font-weight: 600; }
.nav a[aria-current="page"]::before { background: var(--lamp); box-shadow: 0 0 0 3px var(--accent-glow), 0 0 8px var(--lamp); }
.nav .count { font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 999px; background: var(--signal); color: #fff; }
.nav .count:empty { display: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--board-ink); }
.side-foot .linkbtn { color: var(--board-mute); }
.linkbtn { background: none; border: none; padding: 0; color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-align: left; }

main.main { padding: 40px clamp(16px, 4.5vw, 56px) 96px; max-width: 1040px; width: 100%; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 20px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.head .datum { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.head h1 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 46px); font-weight: 650; letter-spacing: -0.035em; }
.head h1 + p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-3); }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--signal-dark); border-radius: 9px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; background: var(--signal); color: #fff; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(15,26,21,.18), 0 4px 12px -4px var(--accent-glow); transition: background-color .15s, transform .05s; }
.btn:hover { background: var(--signal-dark); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 0 rgba(18,21,18,.05); }
.btn.ghost:hover { background: var(--sunk); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn.danger { background: var(--surface); color: var(--warn); border-color: #E6C6B4; box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); font-size: 12px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--signal-soft); color: var(--signal-dark); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 12px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.section-title .n { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-top: 24px; }
.err { color: var(--warn); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 18px 11px 34px; font-size: 14px; font-weight: 500; z-index: 60; max-width: 90vw; box-shadow: 0 10px 30px rgba(15,26,21,.25); }
.toast::before { content: ""; position: absolute; left: 16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp); }

/* Raumschild: Etage auf Grün, Ort daneben */
.plate { display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); font-size: 13px; line-height: 1; background: var(--surface); white-space: nowrap; max-width: 100%; }
.plate b { display: inline-flex; align-items: center; padding: 5px 7px; background: linear-gradient(135deg, var(--signal), var(--signal-dark)); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.plate span { display: inline-flex; align-items: center; padding: 5px 8px; color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Formulare ---------- */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
label.f > span.hint { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=url], select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 12px; background: var(--surface); font-size: 16px; font-weight: 400; box-shadow: inset 0 1px 2px rgba(18,21,18,.05); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--signal-soft); outline-offset: 0; border-color: var(--signal); }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 500; }
.check:has(input:checked) { border-color: var(--signal); background: var(--signal-soft); }
.check input { margin-top: 3px; accent-color: var(--signal); width: 18px; height: 18px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--sunk); }
.seg button { border: none; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,21,18,.12); }

/* ---------- Anmelden ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(1200px 420px at 50% -120px, var(--accent-tint), var(--paper) 70%); }
.auth .box { width: min(100%, 430px); display: flex; flex-direction: column; gap: 16px; }
.auth .box > .brand { color: var(--ink); padding: 0 4px 10px; }
.auth .card { padding: 26px 26px 24px; box-shadow: 0 20px 50px rgba(15,26,21,.10); }
.auth h1 { font-family: var(--display); font-size: 30px; letter-spacing: -0.03em; }

/* ---------- Aufgaben ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 2px rgba(15,26,21,.04), 0 8px 24px -12px rgba(15,26,21,.10); }
.task { display: grid; grid-template-columns: 14px minmax(0, 1fr) 64px auto; gap: 4px 18px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.list > .task:last-child { border-bottom: none; }
.lamp { width: 12px; height: 12px; border-radius: 50%; align-self: start; margin-top: 6px; background: var(--surface); border: 2px solid var(--signal); }
.task.late .lamp { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.task.wip .lamp { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.task.done .lamp { background: var(--line-strong); border-color: var(--line-strong); }
.task-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.task h3 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.task-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.zust { font-size: 13px; color: var(--ink-3); }
.zust::before { content: "f\00FC r "; }
.task .meta { font-size: 13px; color: var(--ink-3); }
.task-time { text-align: right; line-height: 1; font-variant-numeric: tabular-nums; }
.task-time strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.task-time span { font-size: 12px; color: var(--ink-3); }
.task-time.late strong, .task-time.late span { color: var(--warn); }
.task .acts { display: flex; gap: 8px; justify-content: flex-end; }
.task.done h3, .task.done .task-sub { opacity: .55; }
.task.done h3 { text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- Einkauf ---------- */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--surface), #F9FAFC); }
.group-head h3 { font-family: var(--display); font-size: 18px; letter-spacing: -0.015em; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item strong { font-weight: 600; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; padding: 0; transition: border-color .15s, background-color .15s; }
.tick:hover { border-color: var(--signal); }
.tick svg { width: 14px; height: 14px; stroke: transparent; stroke-width: 3; fill: none; }
.tick:hover svg { stroke: var(--signal); }
.tick.on { background: var(--signal); border-color: var(--signal); }
.tick.on svg { stroke: #fff; }

/* ---------- Orte ---------- */
.ort { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ort-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ort-head h3 { min-width: 0; }
.ort-head .plate { font-size: 15px; }
.ort-head .plate b, .ort-head .plate span { padding: 7px 10px; }
.ort-head .plate span { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }
.ort-body { display: grid; grid-template-columns: 1fr 1fr; }
.ort-col { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ort-col + .ort-col { border-left: 1px solid var(--line); }
.ort-col > .eyebrow { margin-bottom: 4px; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.line:last-of-type { border-bottom: none; }
.icon-btn { background: none; border: none; padding: 4px 8px; border-radius: 6px; color: var(--ink-3); font-size: 13.5px; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: inline-block; vertical-align: 1px; }
.dot.on { background: var(--lamp); box-shadow: 0 0 6px var(--lamp); }
.dot.off { background: var(--warn); }

/* ---------- Überblick ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.kpis .card { border: none; border-radius: 0; background: transparent; padding: 20px 22px; }
.kpis .card + .card { border-left: 1px solid var(--line); }
.kpi strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 42px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 14px; }
.bar-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--sunk); }
.bar-row .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-light), var(--signal)); }
.bar-row span:last-child { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Dialog ---------- */
dialog { border: none; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(15,26,21,.35); }
dialog::backdrop { background: rgba(15,26,21,.45); backdrop-filter: blur(2px); }
dialog form, dialog .dlg { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
dialog h2 { font-family: var(--display); font-size: 25px; letter-spacing: -0.025em; }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }

/* QR zum Ausdrucken */
.qr-sheet { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px; border: 2px solid var(--ink); border-radius: 18px; text-align: center; background: #fff; }
.qr-sheet svg { width: 220px; height: 220px; }
.qr-sheet .qr-ort { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.qr-sheet .qr-hint { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.addr { font-family: var(--mono); font-size: 12px; word-break: break-all; background: var(--sunk); border-radius: 8px; padding: 9px 11px; }

/* ---------- Mobil ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 14px 16px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .side .nav, .side .side-foot { display: none; }
  .firma { text-align: right; padding: 0; border-top: none; }
  main.main { padding: 24px 16px 110px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); z-index: 20; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--signal); }
  .tabbar .count { position: absolute; top: 2px; right: 20%; font-family: var(--mono); font-size: 10px; background: var(--warn); color: #fff; border-radius: 8px; padding: 0 5px; }
  .tabbar .count:empty { display: none; }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ort-body, .two, .kpis { grid-template-columns: 1fr; }
  .kpis .card + .card { border-left: none; border-top: 1px solid var(--line); }
  .ort-col + .ort-col { border-left: none; border-top: 1px solid var(--line); }
  .task { grid-template-columns: 12px minmax(0, 1fr) auto; padding: 14px; gap: 6px 12px; }
  .task .acts { grid-column: 2 / -1; justify-content: flex-start; margin-top: 6px; }
  .task-time strong { font-size: 24px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .head { padding-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  body * { visibility: hidden; }
  dialog[open], dialog[open] * { visibility: visible; }
  dialog[open] { position: absolute; inset: 0; box-shadow: none; width: 100%; max-height: none; }
  .no-print { display: none !important; }
}
.group, .ort, .kpis, .empty { box-shadow: 0 1px 2px rgba(15,26,21,.04), 0 8px 24px -12px rgba(15,26,21,.10); }
/* Hinweis: Benachrichtigungen einschalten */
.hint-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; padding: 12px 12px 12px 18px; border-radius: var(--r); background: var(--signal-soft); color: var(--signal-dark); font-weight: 500; }
.hint-bar .icon-btn { color: var(--signal-dark); }

/* ---------- Ausbau: Lager, Freigabe, Einstellungen, Kosten, Abo, Druckbogen ---------- */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.oben { margin-top: 12px; }
.row.oben { align-items: center; }
.group-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.group.freigabe { border-color: #F6C9A6; }
.group.freigabe .group-head { background: var(--warn-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
button.badge { border: none; cursor: pointer; font-family: inherit; }
button.badge:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.hint-bar.warn { background: var(--warn-soft); color: #9A3B07; }
main.main > .hint-bar:first-child { margin: 0 0 22px; }
.section-title.mit-wahl { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.section-title .seg { font-family: var(--body, inherit); }
.tage { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { position: relative; }
.tag input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tag span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-3); background: var(--surface); }
.tag input:checked + span { border-color: var(--signal); background: var(--signal-soft); color: var(--signal-dark); }
.tag input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.pakete { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.paket { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.paket.aktiv { border-color: var(--signal); background: var(--signal-soft); }
.paket .preis strong { font-family: var(--display); font-size: 28px; letter-spacing: -0.03em; }
.paket .preis span { color: var(--ink-3); font-size: 13.5px; }
.paket > :last-child { margin-top: auto; }
dialog.breit { width: min(900px, calc(100vw - 24px)); }
.qr-bogen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qr-bogen .qr-sheet { padding: 20px 14px; }
.qr-bogen .qr-sheet svg { width: 180px; height: 180px; }
.qr-bogen .qr-ort { font-size: 22px; }
.qr-sheet .qr-hint.leise { color: var(--ink-3); font-weight: 500; font-size: 12px; }
@media (max-width: 860px) {
  .three, .pakete { grid-template-columns: 1fr; }
  .qr-bogen { grid-template-columns: 1fr; }
}
@media print {
  dialog.breit { width: 100%; margin: 0; height: auto; }
  .bogen-dlg { padding: 0 !important; gap: 0 !important; }
  .qr-bogen { grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .qr-bogen .qr-sheet { break-inside: avoid; height: 128mm; justify-content: center; }
  .qr-bogen .qr-sheet:nth-child(4n) { break-after: page; }
  .qr-bogen .qr-sheet svg { width: 62mm; height: 62mm; }
}
