/* Popeyes Drucker-Verwaltung: gleiche Gestaltung wie die Menü-Verwaltung (Popeyes Brand Center) */
@font-face { font-family: "Chicken Sans"; src: url("fonts/chicken-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chicken Sans"; src: url("fonts/chicken-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --orange: #F27F09; --burnt: #E75D12; --cream: #FFF5E1; --peach: #FFE6BA; --teal: #00B0A9; --ink: #005260;
  --mint: #C9E5D6; --spicy: #D61416; --butter: #FFCE20; --butter-light: #FFED94; --spicy-dark: #800000;
  --aubergine: #4D004F; --lila: #992D87; --braun: #231815;
  --line: rgba(0, 82, 96, 0.2); --line-strong: rgba(0, 82, 96, 0.45); --soft: rgba(0, 82, 96, 0.06);
  --font: "Chicken Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: 20px; --radius: 16px; --hdr: 60px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Kopfzeile und Navigation */
.bar { position: sticky; top: 0; z-index: 20; height: var(--hdr); display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter); background: var(--ink); color: var(--cream); }
.bar__logo { width: 96px; flex: none; color: var(--cream); display: block; }
.bar__logo svg { display: block; width: 100%; height: auto; }
.bar__titel { font-weight: 700; font-size: 17px; white-space: nowrap; }
.bar__rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar select { background: rgba(255, 245, 225, 0.12); color: var(--cream); border: 1.5px solid rgba(255, 245, 225, 0.35); border-radius: 999px; padding: 6px 30px 6px 14px; font-weight: 700; max-width: 220px;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.bar select option { color: var(--ink); background: #fff; }
.bar__ich { background: none; border: 0; color: var(--cream); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px; cursor: pointer; }
.bar__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 14px; }
@media (max-width: 640px) { .bar__titel { display: none; } .bar__name { display: none; } .bar__logo { width: 78px; } }

.nav { position: sticky; top: var(--hdr); z-index: 15; background: var(--cream); border-bottom: 1px solid var(--line); }
.nav__liste { list-style: none; margin: 0 auto; max-width: 1280px; padding: 6px var(--gutter); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__liste::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.nav__zahl { background: var(--orange); color: #fff; border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }

/* ---------- Veröffentlichen-Leiste */
.pub { position: sticky; top: calc(var(--hdr) + 51px); z-index: 14; background: var(--butter-light); border-bottom: 1.5px solid var(--butter); }
.pub__in { max-width: 1280px; margin: 0 auto; padding: 10px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pub__text { font-weight: 700; flex: 1 1 260px; }
.pub__text small { display: block; font-weight: 400; font-size: 14px; }

/* ---------- Inhalt */
.inhalt { max-width: 1280px; margin: 0 auto; padding: 26px var(--gutter) 80px; }
.kopf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 18px; }
.kopf__text { flex: 1 1 320px; min-width: 0; }
.h1 { color: var(--burnt); font-size: clamp(36px, 7vw, 54px); line-height: 0.92; letter-spacing: -0.01em; }
.h2 { color: var(--burnt); font-size: 28px; line-height: 1; margin: 34px 0 12px; }
.h3 { font-size: 19px; line-height: 1.15; }
.unter { margin-top: 8px; max-width: 70ch; }
.leise { color: rgba(0, 82, 96, 0.72); }
.klein { font-size: 14px; }
.kopf__aktionen { display: flex; flex-wrap: wrap; gap: 8px; }

.box { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.box + .box { margin-top: 14px; }
.box__kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.box__kopf .h3 { flex: 1 1 auto; }
.raster { display: grid; gap: 14px; }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.raster--2 { align-items: start; }
.raster > .box + .box, .raster > .kachel + .kachel, .raster > .feld + .feld { margin-top: 0; }
.kachel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.kachel__wert { font-size: 34px; font-weight: 700; color: var(--burnt); line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kachel__label { font-size: 14px; font-weight: 700; }
.kachel__unter { font-size: 14px; margin-top: 6px; }

/* ---------- Knöpfe */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--cream); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--leise { background: transparent; border-color: transparent; color: var(--ink); padding: 0 12px; }
.btn--leise:hover { background: var(--soft); }
.btn--warn { background: #fff; color: var(--spicy); border-color: rgba(214, 20, 22, 0.45); }
.btn--klein { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--rund { width: 40px; min-height: 40px; padding: 0; }
.btn__zahl { background: rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0 8px; font-size: 13px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font-weight: 700; cursor: pointer; }

/* ---------- Formulare */
.feld { display: grid; gap: 6px; min-width: 0; }
.feld + .feld { margin-top: 14px; }
.feld > span, .feld > legend { font-weight: 700; font-size: 15px; }
.feld small { font-size: 13px; color: rgba(0, 82, 96, 0.72); font-weight: 400; }
.eingabe { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; }
.eingabe:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0, 82, 96, 0.15); }
textarea.eingabe { min-height: 90px; resize: vertical; }
select.eingabe { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.eingabe--klein { min-height: 38px; padding: 6px 10px; border-radius: 10px; }
.zeile { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); align-items: end; }
.zeile > .feld + .feld { margin-top: 0; }
.zeile + .zeile, .zeile + .feld, .feld + .zeile { margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check small { display: block; }
.segment { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segment button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; color: var(--ink); min-height: 38px; }
.segment button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.schalter { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.schalter input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: rgba(0, 82, 96, 0.25); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.schalter input:checked { background: var(--teal); }
.schalter input:checked::after { transform: translateX(20px); }
.fehler { color: var(--spicy); font-weight: 700; font-size: 14px; }
.hinweis { background: var(--peach); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.hinweis--teal { background: var(--mint); }
.hinweis--rot { background: #FFE3DF; color: var(--spicy-dark); }

/* ---------- Marken, Chips */
.marke { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--ink); }
.marke--gruen { background: #D7F2E9; color: #00634F; }
.marke--rot { background: #FFE3DF; color: var(--spicy-dark); }
.marke--orange { background: var(--peach); color: #9A3F00; }
.marke--gelb { background: var(--butter-light); color: #6B4E00; }
.marke--teal { background: var(--ink); color: var(--cream); }
.punkt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #9AA; }
.punkt--an { background: #13A36E; box-shadow: 0 0 0 3px rgba(19, 163, 110, 0.2); }
.punkt--aus { background: var(--spicy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip__farbe { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- Tabellen und Listen */
.tabelle-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.tabelle { border-collapse: collapse; width: 100%; font-size: 15px; }
.tabelle th { text-align: left; font-size: 13px; text-transform: none; padding: 10px 12px; background: #FBF7EF; border-bottom: 1.5px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tabelle td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: #FFFBF2; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle .aus td { opacity: 0.5; }
@media (max-width: 640px) {
  .tabelle--produkte th:nth-child(3), .tabelle--produkte td:nth-child(3), .tabelle--produkte th:nth-child(5), .tabelle--produkte td:nth-child(5), .tabelle--produkte th:nth-child(6), .tabelle--produkte td:nth-child(6) { display: none; }
  .tabelle td, .tabelle th { padding: 9px 10px; }
}
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.liste > li:first-child { border-top: 0; }
.liste__haupt { flex: 1 1 auto; min-width: 0; }
.liste__titel { font-weight: 700; }
.leer { text-align: center; padding: 34px 16px; color: rgba(0, 82, 96, 0.72); }

/* ---------- Werkzeugleiste (Suche, Filter) */
.werkzeuge { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.suche { flex: 1 1 240px; position: relative; }
.suche input { padding-left: 40px; }
.suche::before { content: ""; position: absolute; left: 15px; top: 50%; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; transform: translateY(-60%); }
.suche::after { content: ""; position: absolute; left: 28px; top: 58%; width: 7px; height: 2px; background: var(--ink); transform: rotate(45deg); }

/* ---------- Produkte und Studio */
.kat-kopf { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; }
.kat-kopf__farbe { width: 6px; height: 26px; border-radius: 3px; }
.kat-kopf h3 { font-size: 20px; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 22px; align-items: start; }
@media (max-width: 980px) { .studio { grid-template-columns: minmax(0, 1fr); } .studio__vorschau { order: -1; } }
.studio__vorschau { position: sticky; top: calc(var(--hdr) + 66px); display: grid; gap: 12px; }
.etikett { background: #fff; border-radius: 14px; padding: 14px; border: 1.5px solid var(--line); box-shadow: 0 14px 30px rgba(0, 82, 96, 0.12); }
.etikett canvas { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; outline: 1px dashed rgba(0, 82, 96, 0.25); }
.etikett__unter { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-top: 10px; }
.zeitleiste { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.zeitleiste__zeile { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.zeitleiste__zeile b { font-variant-numeric: tabular-nums; }

/* ---------- Kategorien-Kacheln (wie am Drucker) */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.katkachel { border-radius: 14px; padding: 14px 14px 12px; min-height: 108px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); position: relative; cursor: pointer; border: 0; text-align: left; }
.katkachel b { font-size: 20px; line-height: 1.05; }
.katkachel small { font-size: 13px; opacity: 0.92; margin-top: 4px; }
.katkachel__nr { position: absolute; top: 12px; left: 14px; font-size: 13px; font-weight: 700; opacity: .85; }
.katkachel__pfeile { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.katkachel__pfeile button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.katkachel__pfeile button:hover { background: #fff; }
.katkachel--dunkel { color: #800000; }

/* ---------- Tagesplan */
.tag { position: relative; height: 66px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; margin: 8px 0 18px; overflow: hidden; }
.tag__stunde { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); font-size: 11px; padding: 2px 4px; color: rgba(0, 82, 96, 0.6); }
.tag__auf { position: absolute; top: 0; bottom: 0; background: rgba(0, 176, 169, 0.08); }
.tag__stapel { position: absolute; top: 24px; width: 12px; height: 32px; margin-left: -6px; border-radius: 6px; background: var(--orange); cursor: pointer; border: 2px solid #fff; }
.tag__stapel:hover, .tag__stapel:focus-visible { background: var(--burnt); }
.stapel-items { display: grid; gap: 6px; }
.stapel-item { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; background: #FBF7EF; border-radius: 10px; padding: 6px 8px 6px 12px; }
.stapel-item small { display: block; font-size: 12.5px; }
.menge { display: inline-flex; align-items: center; gap: 4px; }
.menge input { width: 54px; text-align: center; }

/* ---------- Design-Studio */
.design { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .design { grid-template-columns: minmax(0, 1fr); } }
.design__buehne { position: relative; background: repeating-conic-gradient(#F3EDE2 0% 25%, #FBF7EF 0% 50%) 50% / 22px 22px; border-radius: var(--radius); padding: 22px; border: 1.5px solid var(--line); }
.design__buehne canvas { width: 100%; height: auto; display: block; background: #fff; box-shadow: 0 14px 30px rgba(0, 82, 96, 0.18); border-radius: 6px; cursor: crosshair; touch-action: none; }
.design__felder { display: grid; gap: 8px; }
.feldkarte { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.feldkarte[open] { border-color: var(--ink); }
.feldkarte summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; font-weight: 700; }
.feldkarte summary::-webkit-details-marker { display: none; }
.feldkarte__in { padding: 0 12px 12px; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feldkarte__in .voll { grid-column: 1 / -1; }

/* ---------- Drucker */
.druckerkarte { display: grid; gap: 10px; }
.druckerkarte__kopf { display: flex; align-items: center; gap: 10px; }
.druckerkarte__name { font-size: 20px; font-weight: 700; flex: 1; }
.werte { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 15px; }
.werte dt { font-weight: 700; }
.werte dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.code-eingabe { font-size: 34px; letter-spacing: 0.3em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; max-width: 300px; }
.log { font-size: 14px; max-height: 340px; overflow: auto; }
.log li { padding: 6px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.log li:first-child { border-top: 0; }
.log time { font-variant-numeric: tabular-nums; color: rgba(0, 82, 96, 0.72); }
.log .warn { color: #9A3F00; } .log .fehler { color: var(--spicy); font-weight: 700; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.live__punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--spicy); animation: puls 1.4s infinite; }
@keyframes puls { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .live__punkt { animation: none; } }

/* ---------- Statistik */
.diagramm { width: 100%; height: auto; display: block; }
.diagramm text { font-family: var(--font); fill: var(--ink); }
.balkenliste { display: grid; gap: 6px; }
.balkenliste__z { display: grid; grid-template-columns: minmax(0, 220px) 1fr 54px; gap: 10px; align-items: center; font-size: 14px; }
.balkenliste__balken { height: 14px; border-radius: 7px; background: var(--orange); min-width: 2px; }
.balkenliste__z span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; }
.heat div { aspect-ratio: 1; border-radius: 3px; }
.heat .lbl { aspect-ratio: auto; display: flex; align-items: center; font-weight: 700; }

/* ---------- Protokoll, Benutzer */
.prot li { align-items: flex-start; }
.prot__zeit { width: 128px; flex: none; font-size: 14px; color: rgba(0, 82, 96, 0.72); font-variant-numeric: tabular-nums; }
.prot__details { font-size: 14px; margin-top: 4px; }
.prot__details del { color: var(--spicy-dark); text-decoration: line-through; }
.prot__details ins { color: #00634F; text-decoration: none; font-weight: 700; }
.rechte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }

/* ---------- Dialog, Meldungen */
dialog.dlg { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
dialog.dlg--breit { width: min(980px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(0, 40, 48, 0.45); }
.dlg__kopf { padding: 18px 20px 6px; display: flex; gap: 12px; align-items: flex-start; }
.dlg__kopf h2 { color: var(--burnt); font-size: 28px; line-height: 1; flex: 1; }
.dlg__inhalt { padding: 10px 20px 4px; overflow: auto; max-height: calc(100vh - 200px); }
.dlg__fuss { padding: 14px 20px 20px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--cream); padding: 14px 20px; border-radius: 14px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); max-width: calc(100vw - 32px); }
.toast--fehler { background: var(--spicy-dark); }
.laden { padding: 60px 0; text-align: center; font-weight: 700; }

/* ---------- Anmelden */
.anmelden { max-width: 420px; margin: 40px auto; }
.anmelden .h1 { margin-bottom: 18px; }

/* ---------- Diff beim Veröffentlichen */
.diff li { display: block; }
.diff__art { display: inline-block; min-width: 82px; }
.diff__det { font-size: 13.5px; margin: 4px 0 0 0; }

/* ---------- Poster (A3 hoch, druckfertig) */
.poster-rahmen { overflow: auto; background: #E9E1D3; border-radius: var(--radius); padding: 20px; }
@media (max-width: 640px) { .poster-rahmen { padding: 8px; } }
.poster { width: 297mm; min-height: 420mm; margin: 0 auto; background: #fff; color: #231815; font-family: var(--font); box-shadow: 0 20px 50px rgba(0,0,0,.2); padding: 12mm 12mm 9mm; display: flex; flex-direction: column; font-size: 10.5pt; }
.poster__kopf { background: var(--orange); color: #fff; border-radius: 4mm; padding: 5mm 7mm; display: flex; align-items: center; gap: 6mm; }
.poster__uhr { width: 20mm; height: 20mm; background: #fff; border-radius: 50%; display: grid; place-items: center; flex: none; }
.poster__uhr img { width: 13mm; height: auto; }
.poster__titel { flex: 1; }
.poster__titel b { display: block; font-size: 36pt; line-height: .95; }
.poster__titel span { font-size: 13pt; }
.poster__logo { width: 52mm; color: #fff; }
.poster__logo svg { width: 100%; height: auto; display: block; }
.poster table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 4mm; font-size: 9.2pt; }
.poster th { font-size: 8.2pt; text-align: left; padding: 1.4mm 1.6mm; vertical-align: bottom; line-height: 1.1; }
.poster td { padding: 1.1mm 1.6mm; vertical-align: middle; border-bottom: .25mm solid #EADFCF; line-height: 1.15; }
.poster .grp th { font-size: 12pt; color: #fff; padding: 2mm 2.5mm; border-radius: 2mm 2mm 0 0; }
.poster .grp small { font-size: 8pt; font-weight: 400; margin-left: 2mm; }
.poster .grp .l { background: var(--teal); } .poster .grp .b { background: var(--orange); }
.poster .sp th.l { background: #DDF1EE; } .poster .sp th.b { background: #FFE6BA; }
.poster .kat td { font-weight: 700; font-size: 11pt; padding-top: 2mm; border-bottom: 0; }
.poster .p { font-weight: 700; border-left: 2mm solid var(--kf, #ccc); }
.poster .p small { display: block; font-weight: 400; font-size: 7.4pt; }
.poster .t { color: var(--teal); font-weight: 700; } .poster .t.w { color: var(--burnt); }
.poster .h { font-weight: 700; font-size: 10.5pt; white-space: nowrap; }
.poster .neu { background: #FFF3D1; }
.poster .lc { background: #F6FBFA; } .poster .bc { background: #FFFAF2; }
.poster .gap { width: 2mm; background: #fff !important; border: 0 !important; }
.poster__fuss { margin-top: auto; padding-top: 5mm; display: grid; grid-template-columns: 1.15fr 1fr; gap: 8mm; }
.poster__fuss h4 { color: var(--burnt); font-size: 13pt; margin-bottom: 2mm; }
.poster__labels { display: flex; gap: 4mm; }
.poster__labels figure { margin: 0; flex: 1; }
.poster__labels canvas { width: 100%; border: .3mm solid #ccc; border-radius: 2mm; }
.poster__labels figcaption { font-size: 8pt; font-weight: 700; margin-top: 1mm; }
.poster__legende { font-size: 8.6pt; display: grid; gap: 1.6mm; }
.poster__legende b { color: #231815; }
.poster__geplant { margin-top: 3mm; background: #FFF3D1; border-radius: 2mm; padding: 2mm 3mm; font-size: 8.6pt; }
.poster__klein { font-size: 7pt; color: #6A5D55; margin-top: 3mm; }
@media print {
  @page { size: A3 portrait; margin: 0; }
  body { background: #fff; }
  body > *:not(#druck) { display: none !important; }
  #druck { display: block !important; }
  #druck .poster { box-shadow: none; margin: 0; width: 297mm; min-height: 420mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#druck { display: none; }
