@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+2010-2027; }

:root {
  --magenta: #E6007E;
  --accent: #CC0070;
  --accent-dark: #A8005C;
  --accent-soft: #FDF0F7;
  --bg: #F6F4F5;
  --card: #FFFFFF;
  --ink: #211A1F;
  --muted: #6D6369;
  --line: #E7E2E5;
  --line-strong: #CFC8CC;
  --rail: #2B1621;
  --error: #B00020;
  --error-soft: #FDEEF0;
  --ok: #17754A;
  --ok-soft: #E8F5EE;
  --warn: #805400;
  --warn-soft: #FDF3DC;
  --radius: 10px;
  --radius-small: 7px;
  --control: 38px;
  --text: 14px;
}
@media (max-width: 760px) { :root { --control: 46px; --text: 16px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text)/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

/* Schrift */
h1 { font-size: 21px; font-weight: 650; letter-spacing: -.012em; line-height: 1.25; margin: 0 0 14px; }
h2 { font-size: 15px; font-weight: 650; margin: 22px 0 8px; }
h3 { font-size: 13px; font-weight: 650; margin: 14px 0 4px; color: var(--muted); grid-column: 1 / -1; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
p { margin: 0 0 10px; }
small { font-size: .87em; }
.muted { color: var(--muted); font-size: 13px; }
.help { color: var(--muted); font-size: 12.5px; margin: 2px 0 6px; font-weight: 400; }
.hash { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.reading { line-height: 1.65; max-width: 72ch; }

/* Gerüst: Kopfzeile mit Suche in der Mitte, Menüleiste links */
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; align-items: center; gap: 12px; height: 52px; padding: 0 12px 0 8px; background: var(--magenta); color: #fff; }
.top a { color: #fff; text-decoration: none; }
.top-left { display: flex; align-items: center; gap: 8px; }
.icon-button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: var(--radius-small); background: transparent; color: #fff; }
.icon-button:hover { background: rgba(255, 255, 255, .16); }
.brand { display: block; width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 2px; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.top-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--radius-small); background: #fff; color: var(--muted); }
.top-search input { flex: 1; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; box-shadow: none; }
.top-search kbd { font: inherit; font-size: 11px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.top-search:focus-within { outline: 3px solid rgba(255, 255, 255, .55); }
.who { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 13px; font-weight: 500; margin: 0; }
.who .link { color: #fff; padding: 4px 0; font-size: 13px; }
.shell { display: flex; align-items: stretch; min-height: calc(100vh - 52px); }
.rail { flex: none; display: flex; flex-direction: column; gap: 1px; width: 54px; padding: 8px; background: var(--rail); position: sticky; top: 52px; height: calc(100vh - 52px); overflow: hidden auto; scrollbar-width: none; }
.rail a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: var(--radius-small); color: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.rail a svg { flex: none; width: 18px; height: 18px; }
.rail a span { display: none; }
.rail a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.rail a.active { background: var(--magenta); color: #fff; font-weight: 600; }
.rail-open .rail { width: 214px; }
.rail-open .rail a span { display: inline; }
.content { flex: 1; min-width: 0; padding: 20px 24px 40px; }
.content > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.content.standalone { max-width: 1100px; margin: 0 auto; }

.page-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Flächen */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card > h2:first-child { margin-top: 0; }
.flash { background: var(--ok-soft); color: var(--ok); padding: 9px 12px; border-radius: var(--radius-small); font-weight: 500; margin-bottom: 14px; }
.error-box { background: var(--error-soft); color: var(--error); padding: 9px 12px; border-radius: var(--radius-small); font-weight: 500; margin-bottom: 14px; }
.fixed { background: var(--accent-soft); padding: 10px 12px; border-radius: var(--radius-small); font-size: 13px; margin-bottom: 10px; }
.login { max-width: 360px; margin: 56px auto; text-align: center; }
.login form { text-align: left; }
.login-logo { height: 92px; margin-bottom: 8px; }

/* Bedienelemente */
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; height: var(--control); font: inherit; font-size: var(--text); font-weight: 400; padding: 0 10px; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; padding: 8px 10px; line-height: 1.4; }
select { padding-right: 6px; }
input:hover, select:hover, textarea:hover { border-color: #A99FA5; }
input[readonly] { background: var(--bg); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
input[type=file] { height: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 0, 126, .16); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; font-size: var(--text); font-weight: 600; cursor: pointer; border: 0; border-radius: var(--radius-small); min-height: var(--control); padding: 0 14px; transition: background .12s, border-color .12s; }
.button, .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control); padding: 0 14px; border-radius: var(--radius-small); font-size: var(--text); font-weight: 600; text-decoration: none; }
.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.secondary:hover { background: var(--bg); }
.link { background: none; min-height: 0; padding: 4px 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; border-radius: 4px; }
.big { width: 100%; min-height: 60px; font-size: 18px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.check { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 28px; font-weight: 500; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: 6px; }
.option { display: flex; align-items: center; gap: 9px; margin: 0; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); font-weight: 400; min-height: var(--control); cursor: pointer; }
.option:hover { background: var(--bg); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.out-of-range { border-color: var(--error); }
.range-hint { color: var(--error); font-size: 12.5px; font-weight: 500; margin: 4px 0 0; }

/* Formulare */
.section { font-size: 14px; font-weight: 650; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.field { background: var(--card); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.field.has-error { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { color: var(--error); font-size: 12.5px; font-weight: 500; margin: 6px 0 0; }
.field > label:last-child { margin-bottom: 0; }
.caption { font-size: 13px; font-weight: 550; margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; align-items: start; max-width: 900px; }
.span-2 { grid-column: 1 / -1; }
#entry-form { max-width: 1040px; }
.actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 14px -24px -40px; padding: 10px 24px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.actions button { min-width: 140px; }
.decision { display: flex; flex-wrap: wrap; gap: 8px; }
.user-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr 1fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.user-form input, .user-form select { margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; }
.filter > input, .filter > select { flex: 1 1 160px; width: auto; margin: 0; }
.filter > input[type=search] { flex: 3 1 240px; }
.filter .check { margin: 0 6px; }

/* Fotos und Unterschrift */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.thumb { position: relative; display: inline-block; }
.thumb img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-small); border: 1px solid var(--line); }
.remove { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; background: var(--ink); color: #fff; }
.photo-button { display: inline-flex; align-items: center; min-height: var(--control); margin: 4px 0 0; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); cursor: pointer; font-weight: 600; font-size: var(--text); }
.photo-button:hover { background: var(--bg); }
.photo-button input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; padding: 0; }
.photo-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload-state { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; min-height: 1em; }
.upload-state.bad { color: var(--error); font-weight: 500; }
canvas { display: block; width: 100%; max-width: 560px; height: 160px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: #fff; touch-action: none; cursor: crosshair; }
.signature-saved { display: block; max-width: 280px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; }

/* Listen und Tabellen */
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
/* Vorgabe: kein Zeilenumbruch und kein seitliches Schieben. Passt eine Tabelle nicht, verkleinert app.js die Schrift bis zur Lesegrenze. */
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table th { font-size: .89em; }
table.is-tight th, table.is-tight td { padding: 6px 4px; }
th { position: sticky; top: 0; background: #FBFAFA; font-size: 12px; font-weight: 600; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FBF8FA; }
td a { font-weight: 500; text-decoration: none; }
td a:hover { text-decoration: underline; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge.offen { background: var(--warn-soft); color: var(--warn); }
.badge.abgeschlossen { background: var(--ok-soft); color: var(--ok); }
.badge.gesperrt { background: var(--error-soft); color: var(--error); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; text-align: center; }
.list { display: grid; }
.row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 8px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #FBF8FA; }
.row strong { font-weight: 550; }
.todo .row { padding-left: 10px; border-left: 3px solid var(--magenta); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.values { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 16px; margin: 0; }
.values dt { color: var(--muted); }
.values dd { margin: 0; font-weight: 500; }
.task-due { border-left: 3px solid var(--magenta); }

/* Startseite */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat { display: block; padding: 11px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .12s; }
.stat:hover { border-color: var(--line-strong); }
.stat strong { display: block; font-size: 22px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--muted); }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat-open strong { color: var(--accent); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 14px; align-items: start; }
.home-grid > * > .card:last-child { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.tile { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.25; text-decoration: none; gap: 2px; flex-wrap: wrap; transition: border-color .12s, background .12s; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.tile-inline { display: inline-flex; min-height: 44px; padding: 8px 18px; background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.tile-inline:hover { background: var(--accent-dark); color: #fff; }

/* Temperatur-Schnellerfassung */
#entry-form.temp-sheet { display: block; max-width: 760px; }
.temp-list { padding: 0; }
.temp-row { display: grid; grid-template-columns: minmax(0, 1fr) 156px 22px; gap: 4px 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.temp-row:last-child { border-bottom: 0; }
.temp-row:focus-within { background: var(--accent-soft); }
.temp-row.is-bad { background: var(--error-soft); }
.temp-name { margin: 0; font-size: 14px; }
.temp-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.temp-input { display: flex; align-items: center; gap: 6px; }
.temp-input input { flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0 8px; text-align: right; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.temp-input span { color: var(--muted); font-size: 13px; }
.temp-sign { flex: none; width: 34px; height: 42px; min-height: 0; padding: 0; background: #fff; border: 1px solid var(--line-strong); color: var(--muted); font-size: 16px; }
.temp-state { width: 20px; height: 20px; border-radius: 50%; }
.is-ok .temp-state { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.is-bad .temp-state { background: var(--error) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 18v.1'/%3E%3C/svg%3E") center/14px no-repeat; }
.temp-action { grid-column: 1 / -1; margin: 4px 0 2px; color: var(--error); }
.temp-action input { color: var(--ink); }
.temp-progress { margin-right: auto; color: var(--muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Reiter und Kundenprofil */
.crumb { margin: 0 0 2px; }
.crumb a { text-decoration: none; }
.tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 550; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.contact-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.contact-form { margin: 0; }
.contact-form h2 { margin: 0 0 2px; }
.contact-form label { margin-bottom: 8px; }
.zip-city { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.contact-rows { display: grid; gap: 6px; }
.contact-row { display: grid; grid-template-columns: 96px 1fr; gap: 6px; }
.contact-row input, .contact-row select { margin: 0; }
.form-buttons { margin-top: 12px; }
.form-check { align-self: end; margin-bottom: 12px; min-height: var(--control); }
.choice-group { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.choice-group legend { padding: 0; font-size: 13px; font-weight: 550; margin-bottom: 4px; }
.price-add { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.price-add select, .price-add input:not([type=checkbox]) { margin: 0; }

.later { margin: 0 0 14px; }
.later summary { cursor: pointer; padding: 8px 0; color: var(--muted); font-weight: 550; }
.later[open] summary { margin-bottom: 6px; }

.dictate-wrap { display: block; position: relative; flex: inherit; width: 100%; margin-top: 4px; }
.dictate-wrap input, .dictate-wrap textarea { margin-top: 0; }
.filter .dictate-wrap, .tool-filters .dictate-wrap, .contact-row .dictate-wrap, .cart-entry .dictate-wrap, .picker .dictate-wrap, .row-form .dictate-wrap, .cancel-form .dictate-wrap { margin-top: 0; }
.filter .dictate-wrap { flex: 1 1 200px; width: auto; }
.tool-filters .dictate-wrap { width: auto; }
.cancel-form .dictate-wrap { flex: 1; }
.dictate-wrap input, .dictate-wrap textarea { padding-right: 38px; }
.dictate { position: absolute; right: 4px; bottom: 50%; transform: translateY(50%); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; min-height: 0; padding: 0; background: transparent; color: var(--muted); border-radius: 6px; }
.dictate:hover { background: var(--bg); color: var(--ink); }
.dictate.is-on { background: var(--accent); color: #fff; animation: dictate-pulse 1.2s ease-in-out infinite; }
textarea + .dictate { bottom: 4px; transform: none; }
@keyframes dictate-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .dictate.is-on { animation: none; } }

/* Eingabemasken wie in Frachtpilot: Raster mit vier Spalten, Fußleiste unten rechts */
.mask { max-width: 1120px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 0; margin-bottom: 0; }
.mask-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 14px; align-items: start; }
.mask-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-2 { grid-column: span 2; }
.col-4 { grid-column: 1 / -1; }
.mask-section { margin: 14px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--accent-dark); }
.mask .actions { margin: 16px -20px 0; padding: 10px 20px; border-radius: 0 0 var(--radius) var(--radius); }
.mask .tabs { margin: -6px 0 16px; }
.pane { padding-bottom: 4px; }
.unit { position: relative; display: block; }
.unit input { padding-right: 28px; }
.unit em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 400; pointer-events: none; }
.contact-rows.wide { max-width: 560px; }
.batch-rows { display: grid; gap: 4px; margin-bottom: 8px; }
.batch-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 110px 150px; gap: 10px; }
.batch-row label { margin-bottom: 6px; }

/* Listen */
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.negative { color: var(--error); font-weight: 600; }
.row-actions { display: flex; gap: 12px; }
.row-actions a { font-size: 12.5px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.pager .muted { margin-right: auto; }
.filter .inline { flex: 0 1 auto; font-size: 12.5px; color: var(--muted); }
.filter .inline input { margin: 0; width: auto; }
.top-order { padding: 6px 10px; background: rgba(255, 255, 255, .18); border-radius: var(--radius-small); font-weight: 600; white-space: nowrap; }
.top-order:hover { background: rgba(255, 255, 255, .28); }
.rail-group { display: none; margin: 12px 10px 4px; color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rail-open .rail-group { display: block; }
.values.four { grid-template-columns: minmax(110px, auto) 1fr minmax(110px, auto) 1fr; }
.cancel-form { display: flex; gap: 8px; }
.cancel-form input { margin: 0; flex: 1; }

/* Warenkorb der Bestellung */
.picker { position: relative; display: block; }
.picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 2px; display: block; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-small); box-shadow: 0 8px 24px rgba(30, 15, 25, .14); }
.picker-list button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 5px 10px; background: none; border-radius: 0; font-size: 13.5px; font-weight: 400; color: var(--ink); text-align: left; }
.picker-list button span { flex: 1; min-width: 0; }
.picker-list button em { font-style: normal; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.picker-list button.is-active, .picker-list button:hover { background: var(--accent-soft); }
.customer-hint { background: var(--warn-soft); color: var(--warn); padding: 7px 10px; border-radius: var(--radius-small); font-size: 13px; font-weight: 500; }
.cart { margin-top: 10px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cart-head h2 { margin: 0; color: var(--accent-dark); }
.cart-head select { width: auto; margin: 0; }
.cart-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px 64px; gap: 6px; margin-bottom: 8px; padding: 8px; background: var(--bg); border-radius: var(--radius-small); }
.cart-entry input { margin: 0; }
.cart-entry button { padding: 0; }
#entry-direction.is-back { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.cart-table .cell { height: 30px; width: 84px; margin: 0 0 0 auto; padding: 0 6px; text-align: right; font-size: 13.5px; }
.cart-table td { padding: 4px 12px; }
.cart-sum { display: grid; grid-template-columns: 1fr 120px; gap: 2px 14px; margin: 10px 0 4px; text-align: right; font-variant-numeric: tabular-nums; }
.cart-sum dt { color: var(--muted); }
.cart-sum dd { margin: 0; font-weight: 600; }
.cart-sum dd:last-child { font-size: 15px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.admin-grid .card { margin: 0; }
.admin-grid a { text-decoration: none; font-weight: 500; }
.admin-grid a:hover { text-decoration: underline; }
.row-form { display: grid; grid-template-columns: minmax(0, 1fr) 110px 70px 110px; gap: 8px; align-items: center; }
.row-form input { margin: 0; }

/* Kommissionierung */
.pick-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pick-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.pick-need { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.pick-rows { display: grid; gap: 6px; }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
.pick-row select, .pick-row input { margin: 0; }
.pick-row input { text-align: right; font-weight: 600; }
#pick-form .form-check { margin-top: 12px; }
.end-form { max-width: 1120px; margin-top: 14px; align-items: center; justify-content: space-between; }

/* Touren und Fahrer */
.stops-card { max-width: 1320px; margin-top: 14px; }
.stops-add { margin: 12px 0 0; grid-template-columns: minmax(0, 1fr) auto; }
.trip-facts { margin-top: 14px; }
.row-actions .inline-form { gap: 10px; }
.reference-picker { max-width: 480px; margin-bottom: 10px; }
.reference-picker input { margin: 0; }
.reference-list { margin: 0 0 8px; padding: 0 0 0 26px; }
.reference-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.reference-list li span { display: inline-block; min-width: 60%; }
.reference-list button { margin-left: 10px; font-size: 15px; text-decoration: none; }
.driver-trip { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--ink); text-decoration: none; }
.driver-trip .badge { margin-left: auto; }
.driver-stop h2 { font-size: 19px; margin: 2px 0 4px; }
.driver-actions { margin-bottom: 14px; }
.driver-actions form { flex: 1; min-width: 220px; }
.driver-note { margin-bottom: 14px; }
.driver-note .field { padding: 0; border: 0; }
.driver-overview li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.driver-overview li.is-done { color: var(--muted); }

.payment-form { padding: 12px 0 0; }
.payment-form .inline input { max-width: 150px; }
input.doit { max-width: 150px; }

/* Listen wie in Frachtpilot: Werkzeugzeile, Filter-Chips, Sortierung, Symbol-Knöpfe */
.list-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.show-size { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--muted); }
.show-size select { width: auto; margin: 0; height: 32px; }
.tool-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.tool-filters select, .tool-filters input { width: auto; max-width: 180px; height: 32px; margin: 0; font-size: 13px; }
.tool-filters input[type=search] { width: 180px; }
.tool-filters .inline { color: var(--muted); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: #D9EDF9; color: #0B4F79; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.chip:hover { background: #C4E2F5; }
.chip-clear { display: inline-flex; padding: 3px; border-radius: 50%; background: var(--error); color: #fff; }
.data-table table { font-size: 13.5px; }
.data-table td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
.data-table tbody tr:nth-child(even) { background: #FAF9FA; }
.data-table tbody tr:hover { background: #F5F0F3; }
.data-table tr.is-canceled td { color: var(--muted); }
.sort { color: inherit; text-decoration: none; white-space: nowrap; }
.sort span { font-size: 9px; opacity: .45; }
.sort.is-on { color: var(--ink); }
.sort.is-on span { opacity: 1; color: var(--accent); }
th { position: static; }
.customer-cell { min-width: 120px; }
.customer-cell small { overflow: hidden; text-overflow: ellipsis; }
.customer-cell > a { font-weight: 550; font-size: 14px; }
.customer-cell small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 1px; }
.date-cell span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.date-cell svg { color: var(--muted); flex: none; }
.badge.info { background: #D9EDF9; color: #0B4F79; }
.badge.neutral { background: #EFECEE; color: var(--ink); }
.lines summary { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-dark); cursor: pointer; font-variant-numeric: tabular-nums; list-style: none; white-space: nowrap; }
.lines summary::-webkit-details-marker { display: none; }
.lines-box { margin-top: 5px; min-width: 240px; max-width: 340px; white-space: normal; font-size: 12.5px; }
.lines-box .line { padding: 2px 0; border-top: 1px solid var(--line); }
.lines-box small { color: var(--muted); }
.actions-head { text-align: right; }
.icon-actions { display: flex; flex-wrap: nowrap; gap: 4px; justify-content: flex-end; align-items: flex-start; }
.icon-actions form { margin: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 6px; color: #fff; cursor: pointer; list-style: none; transition: filter .12s; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { filter: brightness(.92); }
.icon-btn.dark { background: #3B2533; }
.icon-btn.info { background: #2E9BD6; }
.icon-btn.warn { background: #F5B301; color: #2A2230; }
.icon-btn.ok { background: #5FA60A; }
.icon-btn.danger { background: #D2323C; }
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-primary > summary { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; height: 32px; }
.menu-list { z-index: 60; min-width: 230px; padding: 4px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 10px 28px rgba(30, 15, 25, .18); text-align: left; }
.menu-list a, .menu-list button { display: block; width: 100%; min-height: 0; padding: 7px 10px; background: none; border: 0; border-radius: 5px; color: var(--ink); font-size: 13px; font-weight: 450; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--accent-soft); }
.menu-list form { margin: 0; }

.icon-btn.neutral { background: #6D6369; }
/* Aktionsspalte bleibt immer sichtbar, auch wenn die Tabelle breiter ist als der Bildschirm. */
.data-table th:last-child, .data-table td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 8px -8px rgba(30, 15, 25, .12); }
.data-table th:last-child { background: #FBFAFA; }
.data-table tbody tr:nth-child(even) td:last-child { background: #FAF9FA; }
.data-table tbody tr:hover td:last-child { background: #F5F0F3; }
.data-table td, .data-table th { padding-left: 9px; padding-right: 9px; }
.photos .photo-button { margin-right: 6px; }

.profile-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.profile-facts strong { color: var(--ink); font-weight: 600; margin-left: 3px; }
.profile-facts .customer-hint { margin: 0; }
strong.negative, td.negative, .negative { color: var(--error); }
.note.is-done { opacity: .6; }
.vacation-form { margin-top: 10px; }
.availability { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.availability-tile { display: block; color: var(--ink); text-decoration: none; margin: 0; }
.availability-tile > strong { display: block; text-align: center; font-size: 22px; font-weight: 500; margin: 2px 0 8px; }
.availability-tile strong.good { color: var(--ok); }
.availability-tile strong.warn-text { color: var(--warn); }
.availability-tile td { white-space: normal; }
@media (max-width: 760px) { .availability { grid-template-columns: 1fr; } }

.thumb-pdf { display: inline-flex; align-items: center; padding: 10px 26px 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--bg); font-size: 13px; max-width: 280px; }
.thumb-pdf a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kommissioniermaske wie in Frachtpilot */
/* Kommissionieren am Tablet, Gestaltung aus der Vorschau: Karten, große Flächen, Kisten mit Gitter und Logo */
.pick-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.pick-title { flex: 1 1 320px; min-width: 0; }
.pick-title h1 { margin: 1px 0; font-size: 24px; font-weight: 700; }
.pick-title small { color: #6E5563; font-size: 13px; font-weight: 500; }
.pick-rooms { display: flex; gap: 8px; }
.pick-rooms a { display: flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 16px; background: #fff; color: #2B1621; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 22px rgba(122, 0, 68, .10); }
.pick-rooms a.is-on { background: #2B1621; color: #fff; box-shadow: 0 12px 22px rgba(43, 22, 33, .26); }
.pick-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pick-bar a { flex: 0 1 auto; max-width: 220px; padding: 4px 10px; border-radius: 10px; background: #fff; color: #2B1621; text-decoration: none; border: 1px solid var(--line); }
.pick-bar a strong { display: block; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pick-bar a small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.pick-bar a.is-here { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-bar a.is-here small { color: #fff; }
.pick-choose { margin-bottom: 8px; }
.pick-top { scroll-margin-top: 60px; }
.pick-bar a.is-done:not(.is-here) { background: #F1F8E6; }
.pick-others { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #fff; color: #7E1650; font-size: 14px; font-weight: 600; box-shadow: 0 10px 24px rgba(122, 0, 68, .10); }
.pick-screen { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pick-card { padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 2px 4px rgba(122, 0, 68, .06), 0 26px 54px rgba(122, 0, 68, .16); }
.pick-room-row { display: grid; grid-template-columns: minmax(0, 1fr) 106px minmax(0, 1.5fr) 30px 30px 52px; gap: 8px; align-items: end; margin: 4px 12px 6px; color: #6E5563; font-size: 11.5px; font-weight: 600; }
.pick-room-head { margin: 0; color: #2B1621; font-size: 16px; font-weight: 700; }
.batch-facts { display: flex; flex: 1; gap: 8px; min-width: 0; white-space: nowrap; }
.batch-facts .batch-stock { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.batch-choice.is-oldest { box-shadow: inset 3px 0 0 var(--accent); }
.pick-item { margin-bottom: 8px; padding: 10px 12px; border-radius: 14px; background: #FFF7FB; transition: background-color .15s; }
.pick-item.is-done { background: #F1F8E6; }
.pick-item.is-done .stepper, .pick-item.is-done .pick-mini, .pick-item.is-done .batch-choice:not(.is-on) { opacity: .4; pointer-events: none; }
.pick-line { display: flex; gap: 10px; align-items: center; }
.pick-item .pick-line + .pick-line { margin-top: 8px; }
.pick-check, .pick-check-gap { flex: none; width: 52px; height: 52px; }
.pick-check { min-height: 0; padding: 0; border: 3px solid #5FA60A; border-radius: 50%; background: #fff; color: #fff; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; touch-action: manipulation; }
.pick-check.is-done { background: #5FA60A; }
.pick-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 106px minmax(0, 1.5fr) 30px 30px; gap: 8px; align-items: center; }
.pick-head { display: contents; }
.pick-head .pick-name { order: 1; }
.pick-head .stepper { order: 2; }
.pick-body .batch-choices { order: 3; }
.pick-head .pick-split { order: 4; }
.pick-head .pick-remove { order: 5; }
.pick-body .pick-note { order: 6; grid-column: 1 / -1; }
.pick-name { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.pick-no { color: #6E5563; font-size: 12px; font-weight: 500; }
.pick-by { display: block; color: #3E7A00; font-size: 12.5px; font-weight: 500; }
.pick-line.is-removed .pick-name { text-decoration: line-through; opacity: .5; }
.stepper { display: grid; grid-template-columns: 32px 42px 32px; align-items: center; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(122, 0, 68, .16); }
.stepper input { margin: 0; height: 38px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; font-size: 16px; font-weight: 700; text-align: center; }
.step { min-height: 38px; height: 38px; padding: 0; border: 0; background: none; color: #7E1650; font-size: 20px; font-weight: 600; touch-action: manipulation; }
.step:hover { background: #FFF0F7; }
.pick-mini { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: #fff; color: #6E5563; box-shadow: 0 1px 3px rgba(122, 0, 68, .16); cursor: pointer; }
.pick-remove:hover { background: #FBE9EA; color: #D2323C; }
.pick-diff, .pick-note { margin: 4px 0 0; color: var(--warn); font-size: 12.5px; font-weight: 500; }
.batch-choices { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.batch-choice { display: flex; align-items: center; gap: 6px; margin: 0; padding: 5px 8px; border: 1px solid transparent; border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 400; cursor: pointer; }
.batch-choice:hover { border-color: var(--line-strong); }
.batch-choice.is-on { border-color: #5FA60A; background: #F7FBEF; }
.batch-choice input { flex: none; margin: 0; accent-color: #5FA60A; }
.batch-choice > span { flex: 1; min-width: 0; }
.batch-empty, .batch-undo { flex: none; width: auto; min-width: 0; min-height: 0; height: 26px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: #6E5563; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.batch-choice[hidden] { display: none; }
.batch-more { justify-self: start; width: auto; min-width: 0; min-height: 0; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #7E1650; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pick-line.is-extra { padding: 8px; border-radius: 10px; background: var(--error-soft); }
.pick-override { margin-top: 10px; }
.pick-empty { padding: 40px 0; font-size: 15px; text-align: center; }
.pick-side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 10px; }
.pick-side h2 { margin: 0; font-size: 16px; font-weight: 700; }
.pick-side > p { margin: 0; font-size: 13px; font-weight: 500; }
.crate-row { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crate-tap { display: flex; align-items: center; gap: 6px; min-width: 0; height: 88px; min-height: 0; padding: 8px 10px; border: 0; border-radius: 16px; background: #fff; color: #2B1621; box-shadow: 0 2px 4px rgba(122, 0, 68, .06), 0 14px 26px rgba(122, 0, 68, .14); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-touch-callout: none; transition: transform .1s, background-color .15s; }
.crate-tap:active { transform: scale(.97); }
.crate-tap.is-flash { background: #F1F8E6; }
.crate-tap.is-minus { background: #FBE9EA; }
.crate-slot { display: flex; flex: none; align-items: flex-end; width: 66px; height: 60px; }
.crate-box { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 66px; border-top: 4px solid; border-radius: 4px; }
.crate-box.braun { border-color: #3A241A; background-color: #54362A; background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .30) 0 2px, transparent 2px 8px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, .30) 0 2px, transparent 2px 8px); }
.crate-box.grau { border-color: #8F959B; background-color: #B7BBC0; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .65) 0 2px, transparent 2px 8px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .65) 0 2px, transparent 2px 8px); }
.crate-plate { display: flex; align-items: center; justify-content: center; width: 28px; height: 20px; border-radius: 3px; }
.crate-plate img { width: 20px; height: 18px; object-fit: contain; }
.braun .crate-plate { background: #4F3226; }
.braun .crate-plate img { filter: brightness(0) invert(1); }
.grau .crate-plate { background: #D4D7DA; }
.crate-text { flex: 1; min-width: 0; text-align: left; }
.crate-text small { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.2; }
.crate-text strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.pick-side-gap { height: 4px; }
.pick-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick-next form:only-child { grid-column: 1 / -1; }
.pick-skip, .pick-finish { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 60px; padding: 6px 10px; border-radius: 16px; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.pick-skip { background: #fff; color: #7E1650; box-shadow: 0 0 0 2px var(--accent), 0 12px 22px rgba(122, 0, 68, .12); }
.pick-finish { border: 0; background: var(--accent); color: #fff; box-shadow: 0 16px 30px rgba(230, 0, 126, .36); cursor: pointer; }
button.pick-finish:disabled { background: #E9DDE3; color: #6E5563; box-shadow: none; cursor: not-allowed; }
.pick-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.pick-start { flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
@media (max-width: 1080px) { .pick-screen { grid-template-columns: minmax(0, 1fr); } .pick-side { position: static; } }
@media (max-width: 760px) {
  .pick-room-row span { display: none; }
  .pick-body { grid-template-columns: minmax(0, 1fr) 106px 30px 30px; }
  .pick-body .batch-choices { grid-column: 1 / -1; order: 6; }
}
@media (max-width: 560px) {
  .crate-tap { flex-direction: column; align-items: stretch; height: auto; }
  .crate-slot { width: 100%; justify-content: center; }
  .pick-card { padding: 12px; border-radius: 18px; }
  .pick-rooms a { flex: 1; justify-content: center; padding: 0 8px; font-size: 14px; }
  .pick-rooms { width: 100%; }
  .batch-choice { padding: 11px; font-size: 14px; }
  .batch-choice input { width: 22px; height: 22px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }

/* Protokoll-Assistent */
.assist { grid-column: 1 / -1; border-color: var(--accent); }
.assist h2 { margin-top: 0; }
.assist-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
#assist-talk.is-on { background: var(--error); border-color: var(--error); }
.field.is-auto { border-color: #5FA60A; background: #F7FBEF; }

/* Inventur */
.count-mask { max-width: 1120px; }
.count-table .cell { width: 96px; height: 36px; margin: 0 0 0 auto; font-size: 15px; font-weight: 600; }
.count-table td { white-space: normal; padding-top: 5px; padding-bottom: 5px; vertical-align: middle; }
.count-table tr:focus-within { background: var(--accent-soft); }
.count-diff { font-weight: 600; white-space: nowrap; }
.count-history summary { cursor: pointer; }
.count-history .table-wrap { margin-top: 10px; }
@media (max-width: 760px) {
  .pick-facts { grid-template-columns: 1fr 1fr; }
  .pick-head-row { display: none; }
  .pick-line { grid-template-columns: 26px minmax(0, 1fr) 128px; }
  .pick-no { display: none; }
  .pick-line select, .pick-line .icon-actions { grid-column: 1 / -1; }
  .pick-line .icon-actions { justify-content: flex-end; }
}

/* Restliche Verwaltung */
.vehicle-form { grid-template-columns: minmax(0, 1fr) 160px 90px 110px; margin-bottom: 8px; }
.withdrawal-form, .parcel-form { grid-template-columns: minmax(0, 1.4fr) 150px minmax(0, 1fr) 110px; }
.parcel-form { grid-template-columns: minmax(0, 1.4fr) 120px 90px minmax(0, 1fr) 100px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.po-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 100px; gap: 6px; }
.po-row input { margin: 0; }
.docs-table { margin-top: 14px; }
.matrix th { white-space: normal; min-width: 90px; font-size: 11.5px; vertical-align: bottom; }
.matrix .cell { width: 62px; height: 30px; padding: 0 5px; text-align: right; display: inline-block; margin: 0; }
.matrix-sum th { background: var(--accent-soft); }
.matrix-sum .cell { width: 50px; }
/* Bestellportal */
.shop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.shop-brand { cursor: pointer; }
.shop-brand img { display: block; height: 48px; cursor: pointer; }
.shop-home { font-weight: 600; }
.shop-head nav { display: flex; gap: 14px; flex: 1; }
.shop-head nav a { font-weight: 600; text-decoration: none; }
.shop-foot { display: flex; gap: 16px; justify-content: center; margin-top: 24px; font-size: 13px; }
.shop-line { display: grid; grid-template-columns: minmax(0, 1fr) 80px 74px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.shop-line strong { text-align: right; font-variant-numeric: tabular-nums; }
.shop-line .cell { width: 70px; height: 34px; margin: 0; text-align: right; }
.shop-sum { text-align: right; margin: 10px 0; }
@media (max-width: 760px) { .vehicle-form, .withdrawal-form, .parcel-form { grid-template-columns: 1fr; } }

.time-account p { margin-bottom: 6px; }
.time-account summary { cursor: pointer; color: var(--accent-dark); font-weight: 550; margin-bottom: 8px; }

/* Zeiterfassung am Terminal */
.clock-state { font-size: 20px; font-weight: 650; margin: 0 0 12px; }
.clock-state.eingestempelt { color: var(--ok); }
.clock-state.pause { color: var(--warn); }
.terminal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.terminal-head img { height: 48px; }
.terminal-head span { margin-left: auto; font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.terminal-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.terminal-column { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 60vh; align-content: start; display: grid; gap: 6px; }
.terminal-column h2 { margin: 0 0 4px; }
.terminal-column.eingestempelt h2 { color: var(--ok); }
.terminal-column.pause h2 { color: var(--warn); }
.terminal-name { display: block; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.terminal-name:hover { border-color: var(--accent); background: var(--accent-soft); }
.terminal-person { max-width: 520px; margin: 32px auto; }

@media (min-width: 1000px) {
  /* Felder zweispaltig: Am Desktop ist mehr auf einen Blick. */
  #entry-form:not(.temp-sheet) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; align-items: start; }
  #entry-form > .section, #entry-form > h1, #entry-form > h2, #entry-form > .fixed, #entry-form > .actions, #entry-form > .options, #entry-form > .card, #entry-form > #receipt-items, #entry-form > #add-item, #entry-form > [data-type="photo"], #entry-form > [data-type="signature"], #entry-form > [data-type="select"], #entry-form > [data-type="choice"], #entry-form > [data-type="textarea"] { grid-column: 1 / -1; }
}

@media (max-width: 1100px) { .contact-columns { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  h1 { font-size: 20px; }
  .top { grid-template-columns: auto 1fr; height: 54px; padding: 0 10px 0 6px; gap: 6px; }
  .who { display: none; }
  .top-search { height: 38px; }
  .top-search input { font-size: 16px; }
  .top-search kbd { display: none; }
  .shell { display: block; min-height: 0; }
  .rail { display: none; position: static; width: auto; height: auto; padding: 8px; }
  .rail a span { display: inline; }
  .rail a { height: 44px; font-size: 14px; }
  .rail-open .rail { display: grid; grid-template-columns: 1fr 1fr; width: auto; }
  /* Menü klappt unter der Kopfleiste auf, egal wie weit unten man auf der Seite ist. */
  .rail-open .rail { position: fixed; top: 54px; left: 0; right: 0; z-index: 19; max-height: calc(100dvh - 54px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
  .content { padding: 14px 14px 28px; }
  .actions { margin: 14px -14px -28px; padding: 10px 14px; }
  .actions button { flex: 1; min-width: 0; white-space: nowrap; }
  .temp-progress { flex: none; }
  .mask { padding: 14px 14px 0; }
  .mask .actions { margin: 14px -14px 0; padding: 10px 14px; }
  .mask-grid, .mask-grid.two, .batch-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mask-grid > label, .mask-grid input, .mask-grid select { min-width: 0; max-width: 100%; }
  .col-2 { grid-column: 1 / -1; }
  .batch-row label:first-child { grid-column: 1 / -1; }
  .cart-entry { grid-template-columns: 70px minmax(0, 1fr) 44px 58px; }
  .values.four { grid-template-columns: 1fr 1.4fr; }
  .top-order { display: none; }
  .price-add { grid-template-columns: 1fr; }
  .row, .user-form, .form-grid { grid-template-columns: 1fr; }
  .row { gap: 1px; }
  .values { grid-template-columns: 1fr 1.4fr; }
  .terminal-column { min-height: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 9px 10px; }
  .stat span { font-size: 11.5px; line-height: 1.25; display: block; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 48px; font-size: 15px; }
  .card { padding: 14px; }
  .temp-list { padding: 0; }
  .temp-row { grid-template-columns: minmax(0, 1fr) 138px 20px; padding: 10px 12px; gap: 4px 8px; }
  .temp-input input { height: 50px; font-size: 20px; }
  .temp-sign { height: 50px; width: 32px; }
  .temp-input span { display: none; }
  th, td { padding: 8px; }
}

/* KI-Knopf in der Kopfzeile */
.top-ai { display: inline-flex; align-items: center; gap: 6px; min-height: 0; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--accent-dark); font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.ai-panel { position: fixed; z-index: 90; top: 60px; right: 16px; width: min(460px, calc(100vw - 24px)); padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 2px 6px rgba(122, 0, 68, .1), 0 30px 60px rgba(122, 0, 68, .28); }
.ai-panel[hidden] { display: none; }
.ai-modes { display: flex; gap: 6px; margin-bottom: 10px; }
.ai-modes button { flex: 1; min-width: 0; min-height: 40px; padding: 0 6px; border: 0; border-radius: 12px; background: #FFF0F7; color: #7E1650; font-weight: 650; cursor: pointer; }
.ai-modes button.is-on { background: var(--accent); color: #fff; }
.ai-panel textarea { width: 100%; min-height: 110px; margin: 0 0 8px; }
.ai-row { display: flex; gap: 8px; align-items: center; }
.ai-row .ai-go { flex: 1; }
.ai-state { margin: 8px 0 0; font-size: 13px; color: #6E5563; }
.ai-questions { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #FFF4D6; color: #6B4E00; font-size: 13.5px; font-weight: 550; }
.ai-questions[hidden] { display: none; }
.cell-locked { background: transparent; border-color: transparent; cursor: pointer; }

/* Tourplanung: Karte und Ziehen */
.trip-map-card { max-width: 1320px; height: 380px; margin-top: 14px; padding: 0; overflow: hidden; }
.trip-map-card > div { height: 100%; }
.drag-handle { width: 22px; color: var(--muted); font-size: 16px; }
tr.is-draggable { cursor: grab; }
tr.is-dragging { opacity: .4; }
tr.is-target td { border-top: 2px solid var(--accent); }
.stop-pin { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
/* Übergabe beim Kunden */
.deliver-qty { width: 64px; text-align: right; }
.deliver-check input { position: absolute; opacity: 0; }
.deliver-check span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 3px solid #D2323C; border-radius: 50%; background: #fff; color: #D2323C; font-size: 22px; font-weight: 700; cursor: pointer; }
.deliver-check span::before { content: '?'; }
.deliver-check input:checked + span { border-color: #5FA60A; background: #5FA60A; color: #fff; }
.deliver-check input:checked + span::before { content: '✓'; }
.deliver-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
td.is-clipped { overflow: hidden; text-overflow: ellipsis; }
td.is-clipped > * { overflow: hidden; text-overflow: ellipsis; }
.top-ai svg { flex: none; }
table.is-tight .icon-actions { gap: 2px; }
table.is-tight .icon-btn { width: 24px; height: 24px; }
table.is-tight .icon-btn svg { width: 13px; height: 13px; }

.error-text { color: var(--error); font-weight: 500; }
.danger-menu { position: relative; }
.danger-menu[open] > form, .danger-menu[open] > p { background: var(--card); padding: 8px 12px; }

.auto-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.auto-list input[type=search] { width: auto; flex: 0 1 240px; }
.auto-pager { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable[aria-sort=ascending]::after { content: ' ▲'; }
th.sortable[aria-sort=descending]::after { content: ' ▼'; }
tr[hidden] { display: none; }
.kv-row { display: flex; gap: 8px; margin-bottom: 6px; }
.kv-row input:first-child { flex: 0 0 240px; }
.kv-row input:last-child { flex: 1; }
.line-more { display: inline-block; margin-left: 6px; }
.line-more summary { cursor: pointer; list-style: none; color: var(--muted, #777); font-weight: 600; }
.line-more[open] summary { transform: rotate(90deg); display: inline-block; }
.line-more .line-note { width: 240px; margin-top: 4px; }
.line-more .line-vat { width: 70px; margin-top: 4px; margin-left: 4px; }
.thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; display: block; }
.product-images { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; margin-right: 8px; }
.report-tabs a.is-active { font-weight: 700; }
.tour-progress { width: 100%; height: 10px; margin-bottom: 8px; }
.scan-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
#scan-video { width: 100%; max-width: 360px; }

/* Am Handy mit dem Finger treffbar: Kommissionieren und Sprachknopf. */
@media (max-width: 760px) {
  .pick-mini, .batch-empty, .batch-more, .dictate { min-height: 44px; min-width: 44px; }
}

/* Geöffnetes Menü liegt über allen Zeilen, auch über der festen Aktionsspalte. */
.data-table th:has(details[open]), .data-table td:has(details[open]) { z-index: 70; }

/* Zeiterfassung und Urlaubsplaner */
.time-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vac-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.vac-legend { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.vac-grid { width: 100%; table-layout: fixed; font-size: 11px; }
.vac-grid th, .vac-grid td { padding: 3px 0; text-align: center; border-left: 1px solid var(--line); }
.vac-grid .vac-name { width: 130px; padding: 3px 6px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vac-off { background: #F4F2F3; }
.vac-cell { display: inline-block; width: 12px; height: 14px; border-radius: 3px; vertical-align: middle; }
.vac-urlaub { background: #4C9BD6; } .vac-krank { background: #D9568F; } .vac-freizeitausgleich { background: #7DB46C; } .vac-weiterbildung { background: #E0A83C; } .vac-sonstige { background: #8E7CC3; } .vac-anonym { background: #A9A3A7; }
.vac-cell.is-open { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .65) 0 2px, transparent 2px 4px); }
.vac-cell.is-half { height: 7px; }
.vac-chart { width: 100%; max-width: 620px; height: auto; display: block; }
.vac-bar { fill: var(--accent); } .vac-axis { font-size: 11px; fill: var(--muted); }
.report-chart { width: 100%; height: auto; display: block; } .report-target { fill: #2B1B24; }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.live-table { width: 100%; table-layout: fixed; } .live-table th:first-child { width: 160px; } .live-table th:nth-child(2) { width: 230px; } .live-table th:last-child { width: 90px; }
.live-bar { width: 100%; height: 26px; display: block; }
.live-empty { fill: #F1EEF0; } .live-work { fill: #2BA59A; } .live-break { fill: #E8C33E; } .live-urlaub { fill: #A9CFEA; } .live-krank { fill: #EDB0CB; }
.live-state { font-weight: 600; } .live-state.live-eingestempelt { color: #1E8279; } .live-state.live-pause { color: #A98708; }
.live-map { height: 260px; padding: 0; overflow: hidden; }
.live-pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; background: #2B1B24; }
.live-pin.live-eingestempelt { background: #2BA59A; } .live-pin.live-pause { background: #E8C33E; color: #2B1B24; }
@media (max-width: 760px) { .vac-grid .vac-name { width: 80px; } .vac-cell { width: 8px; } .live-table th:nth-child(2) { width: 120px; } .live-table th:first-child { width: 90px; } }

/* Schichtplaner */
.shift-grid { width: 100%; table-layout: fixed; font-size: 12px; }
.shift-grid th, .shift-grid td { padding: 4px; vertical-align: top; border-left: 1px solid var(--line); }
.shift-name { width: 130px; }
.shift-card { display: block; margin-bottom: 3px; padding: 3px 5px; border-radius: 6px; background: #E4F2F1; color: var(--ink); text-decoration: none; }
.shift-card.is-draft { background: #FBEBD3; }
.shift-card.is-offer { outline: 1px dashed var(--accent); }
.shift-add { display: inline-block; color: var(--muted); text-decoration: none; padding: 0 6px; }
.shift-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #FBEBD3; }

/* Einstellungen: links die Bereiche, rechts die Abschnitte */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.settings-nav { position: sticky; top: 64px; }
.settings-nav nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav nav a { padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 550; }
.settings-nav nav a:hover { background: var(--accent-soft); }
.settings-nav nav a.is-active { background: var(--accent); color: #fff; }
.settings-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.settings-main section.card { margin: 0; }
.settings-main h3 { margin: 12px 0 4px; font-size: 13px; }
.rule-table { max-width: 420px; }
@media (max-width: 760px) { .settings-layout { grid-template-columns: minmax(0, 1fr); } .settings-nav { position: static; } .settings-nav nav { flex-direction: row; flex-wrap: wrap; } }

/* Auswahlzeile wie Crewmeister */
.sel-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.sel-left { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sel-center { display: flex; gap: 6px; align-items: center; justify-content: center; }
.sel-right { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sel-multi { position: relative; }
.sel-multi > summary { list-style: none; cursor: pointer; font-weight: 550; white-space: nowrap; }
.sel-multi > summary::-webkit-details-marker { display: none; }
.sel-multi > summary.is-set { color: var(--accent-dark); }
.sel-pop { position: absolute; z-index: 40; top: 100%; left: 0; margin-top: 6px; width: 250px; max-width: calc(100vw - 16px); padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 10px 28px rgba(30, 15, 25, .18); }
.sel-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sel-list label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 4px 2px; font-weight: 400; }
.sel-list label[hidden] { display: none; }
.sel-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.sel-seg a { padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); text-decoration: none; background: #fff; }
.sel-seg a + a { border-left: 1px solid var(--line-strong); }
.sel-seg a.is-active { background: var(--accent); color: #fff; }
@media (max-width: 1000px) { .sel-bar { grid-template-columns: minmax(0, 1fr); } .sel-center, .sel-right { justify-content: flex-start; } }

/* Feinschliff Zeiterfassung */
.time-tabs { flex-wrap: nowrap; gap: 4px; }
.time-tabs .button { padding: 0 9px; font-size: 12.5px; min-height: 32px; height: 32px; white-space: nowrap; }
.sel-bar { display: flex; flex-wrap: wrap; justify-content: space-between; }
.sel-center input[type=date] { width: 150px; }
.sel-center strong { white-space: nowrap; }
.sel-right { flex-wrap: nowrap; }
.settings-main .actions { position: static; margin: 10px 0 0; padding: 0; background: none; border: 0; }
.settings-main .mask { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.rule-table td { padding-top: 3px; padding-bottom: 3px; }
.rule-table input { display: inline-block; width: 80px; min-height: 32px; height: 32px; }
.settings-main > section details > summary.button { display: inline-flex; list-style: none; margin-bottom: 8px; }
@media (max-width: 1100px) { .time-tabs { flex-wrap: wrap; } .sel-right { flex-wrap: wrap; } }
@media (max-width: 760px) { .opt-col { display: none; } }
/* Handy: Raster dürfen hier seitlich laufen, damit Tage und Namen lesbar bleiben. */
@media (max-width: 760px) {
  .vac-grid { min-width: 720px; }
  .shift-grid { min-width: 760px; }
  .vac-grid .vac-name, .shift-name { position: sticky; left: 0; z-index: 1; background: var(--card); }
}
.warn-note { border-left: 4px solid var(--warn); }
.rail-account { display: none; }
@media (max-width: 760px) {
  .rail-account { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid rgba(255, 255, 255, .15); }
  .rail-account a, .rail-account .link { color: #fff; }
  .rail-account form { margin: 0; }
}
.shift-mine li { padding: 4px 0; }
.shift-issue { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.shift-issue form { margin: 0; padding: 0; }
.shift-away { display: block; color: var(--muted); font-style: italic; }
#regel .col-2 .inline { display: inline-flex; margin-right: 10px; }
.reference-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.reference-map { position: sticky; top: 64px; height: 520px; border: 1px solid var(--line); border-radius: 8px; z-index: 0; }
.reference-stats { font-weight: 600; margin: 0 0 4px; }
.reference-list li { display: flex; align-items: center; gap: 4px; cursor: grab; list-style-position: inside; }
.reference-list li span { flex: 1; min-width: 0; }
.reference-list li.is-dragging { opacity: .4; }
.reference-list li.is-marked { background: var(--accent-soft); }
.stop-depot { background: var(--ink); }
@media (max-width: 760px) { .reference-work { grid-template-columns: 1fr; } .reference-map { position: static; height: 300px; order: -1; } }
.drag-grip { padding: 4px 6px; color: var(--muted); cursor: grab; touch-action: none; user-select: none; }
.reference-list { user-select: none; }
.reference-map { height: min(520px, 60vh); }
.reference-list li span.drag-grip { flex: none; min-width: 0; }
.needs-input { border-color: var(--warn); background: #FFF8E6; }
@media (max-width: 760px) { .shift-grid { min-width: 900px; } }
.help-open { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; line-height: 1; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-weight: 700; font-size: 16px; }
.help-panel { position: fixed; top: 56px; right: 0; bottom: 0; z-index: 30; width: min(380px, 100vw); padding: 16px; overflow-y: auto; background: var(--card); border-left: 1px solid var(--line-strong); box-shadow: -4px 0 16px rgba(0, 0, 0, .12); font-size: 14px; }
.help-panel[hidden], .help-tip[hidden] { display: none; }
.help-head { display: flex; justify-content: space-between; align-items: center; }
.help-head h2 { margin: 0; }
.help-head .link { font-size: 22px; text-decoration: none; }
.help-panel h3 { margin: 14px 0 4px; font-size: 14px; }
.help-panel ol { margin: 0; padding-left: 20px; }
.help-panel li { padding: 2px 0; }
.help-panel dt { margin-top: 8px; font-weight: 600; }
.help-panel dd { margin: 0; color: var(--muted); }
.help-tip { position: fixed; z-index: 40; max-width: min(300px, calc(100vw - 16px)); padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; pointer-events: none; }
.help-feedback { margin-top: 8px; }
.help-feedback button.primary { width: 100%; }
.help-mine li { padding: 4px 0; border-top: 1px solid var(--line); }
.feedback-message { font-size: 15px; }
.feedback-row .actions { position: static; justify-content: flex-end; margin: 8px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.lab-soll { width: 64px; text-align: right; margin: 0; }
.lab-result td { background: var(--bg); }
.warn-row td { background: var(--error-soft); }

/* Umsatz-Cockpit */
.ck-sub { margin: 2px 0 0; }
.ck-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px; }
.ck-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.ck-presets a { padding: 7px 11px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; border-radius: var(--radius-small); }
.ck-presets a:hover { background: var(--bg); }
.ck-presets a.is-active { color: #fff; background: var(--accent); }
.ck-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ck-range label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ck-range input, .ck-range select { width: auto; margin: 0; }
.ck-hints h2 { margin: 0 0 6px; font-size: 15px; }
.ck-hints ul { margin: 0; padding: 0; list-style: none; }
.ck-hints li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ck-hints li:first-child { border-top: 0; }
.ck-warn { color: var(--warn); }
.ck-kpis { display: grid; grid-template-columns: 1.7fr repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ck-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 11px 13px; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
a.ck-kpi:hover { border-color: var(--line-strong); }
.ck-kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ck-kpi strong { font-size: 19px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-kpi .muted { font-size: 12px; }
.ck-hero strong { font-size: 30px; }
.ck-delta { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-delta.is-up { color: var(--ok); }
.ck-delta.is-down { color: var(--error); }
.ck-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
.ck-head h2 { margin: 0; }
.ck-legend { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; }
.ck-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ck-key { width: 12px; height: 12px; background: var(--accent); border-radius: 3px; }
.ck-key.is-line { height: 2px; background: #6D6369; border-radius: 0; }
.ck-chart { height: 280px; margin-top: 8px; }
.ck-chart.is-small { height: 190px; }
.ck-chart svg { display: block; }
.ck-grid-line { stroke: var(--line); stroke-width: 1; }
.ck-base-line { stroke: var(--line-strong); stroke-width: 1; }
.ck-axis { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ck-bar-v { fill: var(--accent); }
.ck-bar-v.is-partial { fill: #E58CBC; }
.ck-line { fill: none; stroke: #6D6369; stroke-width: 2; stroke-linejoin: round; }
.ck-dot { fill: #6D6369; stroke: var(--card); stroke-width: 2; }
.ck-cross { stroke: var(--line-strong); stroke-width: 1; }
.ck-hit { fill: transparent; }
.ck-table { margin-top: 8px; font-size: 12.5px; }
.ck-table summary { color: var(--muted); cursor: pointer; }
.ck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
.ck-grid-wide { grid-template-columns: 2fr 1fr; }
.ck-grid .card h2 { margin: 0 0 8px; font-size: 15px; }
.ck-grid h2 .muted { font-weight: 400; font-size: 12.5px; }
.ck-note { margin: 2px 0 10px; font-size: 12.5px; }
.ck-bars { display: grid; gap: 3px; }
.ck-bar-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(40px, 1fr) 76px 76px; align-items: center; gap: 10px; padding: 2px 0; font-size: 13px; }
.ck-bar-row.is-3 { grid-template-columns: minmax(0, 150px) minmax(40px, 1fr) 76px; }
.ck-bar-row:hover { background: var(--bg); }
.ck-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-bar-plot { display: block; width: 100%; height: 18px; overflow: visible; }
.ck-bar { fill: var(--accent); }
.ck-bar.is-rest { fill: #CFC8CC; }
.ck-bar-prev { fill: #6D6369; }
.ck-bar.age-0 { fill: #F2BEDB; }
.ck-bar.age-1 { fill: #E58CBC; }
.ck-bar.age-2 { fill: #D94E9B; }
.ck-bar.age-3 { fill: #CC0070; }
.ck-bar.age-4 { fill: #8A004C; }
.ck-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.ck-num { text-align: right; }
.ck-list table { table-layout: auto; }
.ck-list .ck-name { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-list > .muted { margin: 0 0 6px; font-size: 12.5px; }
.ck-tip { position: fixed; z-index: 60; max-width: 300px; padding: 7px 10px; color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-small); box-shadow: 0 4px 14px rgba(33, 26, 31, .16); pointer-events: none; }
.ck-tip-title { font-weight: 650; }
@media (max-width: 1280px) { .ck-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ck-hero { grid-column: span 2; } }
@media (max-width: 760px) {
  .ck-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-grid, .ck-grid-wide { grid-template-columns: minmax(0, 1fr); }
  .ck-range { margin-left: 0; }
  .ck-bar-row { grid-template-columns: minmax(0, 110px) minmax(30px, 1fr) 68px; }
  .ck-bar-row > :last-child:not(:nth-child(3)) { display: none; }
}
/* Maschinenliste */
.machine-form h2 { margin-top: 0; }
.machine-form .grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px 12px; }
.row-muted { color: var(--muted); }
@media (max-width: 900px) { .machine-form .grid { grid-template-columns: 1fr; } }
.test-banner { padding: 4px 12px; color: #fff; background: var(--warn); font-size: 12.5px; font-weight: 600; text-align: center; }
.cost-input { width: 90px; text-align: right; }
.cost-head { align-items: end; }
.parcel-weight { width: 64px; }
.parcel-actions { display: flex; flex-wrap: nowrap; gap: 4px; }
.parcel-actions form { margin: 0; }

/* Piktogramme */
.pikto { flex: none; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pikto .p-a { fill: var(--magenta); stroke: none; }
.pikto .p-b { fill: var(--accent-soft); stroke: none; }
.tile-pikto { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; text-align: center; }
/* Reinigung */
.clean-rooms, .clean-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.clean-room, .clean-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 130px; padding: 14px 10px; color: var(--ink); text-align: center; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; }
.clean-room:hover, .clean-tile:hover { border-color: var(--line-strong); }
.clean-room-name, .clean-name { font-weight: 650; font-size: 14px; line-height: 1.2; }
.clean-with, .clean-interval { color: var(--muted); font-size: 12px; line-height: 1.2; }
.clean-due { color: var(--warn); font-size: 12px; font-weight: 600; }
.clean-count { position: absolute; top: 8px; right: 8px; min-width: 24px; padding: 2px 7px; color: #fff; background: var(--ok); border-radius: 999px; font-size: 13px; font-weight: 700; }
.clean-tile input { position: absolute; opacity: 0; pointer-events: none; }
.clean-check { position: absolute; top: 8px; right: 8px; display: none; width: 26px; height: 26px; line-height: 26px; color: #fff; background: var(--ok); border-radius: 50%; font-weight: 700; }
.clean-tile:has(input:checked) { background: var(--ok-soft); border-color: var(--ok); }
.clean-tile:has(input:checked) .clean-check { display: block; }
.clean-tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.clean-objects-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.clean-objects-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
/* Kürzelsuche in Produktauswahlen */
.pick-input { max-width: 200px; margin-bottom: 4px; }
.pick-state { display: block; color: var(--muted); font-size: 12px; }

/* RosaKUH Academy */
.ac-welcome { display: flex; align-items: center; gap: 18px; padding: 16px; margin-bottom: 14px; background: linear-gradient(120deg, var(--accent-soft), #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.ac-welcome img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 3px solid var(--magenta); }
.ac-welcome h1 { margin: 0 0 4px; }
.ac-welcome p { margin: 0 0 8px; }
.ac-progress { width: min(420px, 100%); height: 12px; overflow: hidden; background: var(--line); border-radius: 999px; }
.ac-progress-bar { display: block; height: 100%; width: 0; background: var(--magenta); border-radius: 999px; }
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ac-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 10px; overflow: hidden; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ac-tile:hover { border-color: var(--magenta); }
.ac-tile > strong, .ac-tile > .badge { margin: 0 12px; }
.ac-tile > .badge { align-self: flex-start; }
.ac-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--accent-soft); }
.ac-tile-pikto { position: absolute; top: 8px; left: 8px; display: flex; padding: 5px; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(33, 26, 31, .25); }
.ac-tile.is-done .ac-thumb { opacity: .55; }
.ac-hero { display: flex; align-items: center; gap: 16px; padding: 16px; margin-bottom: 14px; background: var(--accent-soft); border-radius: var(--radius); }
.ac-hero h1 { margin: 0 0 4px; }
.ac-hero p { margin: 0; font-size: 15px; }
.ac-slides h2 { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0; }
.ac-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #000; border-radius: var(--radius-small); }
.ac-track figure { flex: 0 0 100%; margin: 0; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; }
.ac-track img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.ac-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ac-spot img { display: block; width: 100%; max-width: 780px; margin: 8px auto; border-radius: var(--radius-small); }
.ac-spot summary { display: inline-flex; cursor: pointer; }
.ac-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ac-card { padding: 14px 16px; border-radius: var(--radius); border: 2px solid; }
.ac-card h2 { margin: 0 0 6px; font-size: 16px; }
.ac-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.ac-card li { margin-bottom: 5px; }
.ac-card.is-good { background: var(--ok-soft); border-color: var(--ok); }
.ac-card.is-bad { background: var(--error-soft); border-color: var(--error); }
.ac-motto { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 12px 16px; background: var(--card); border: 2px solid var(--magenta); border-radius: var(--radius); }
.ac-motto img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.ac-motto blockquote { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; }
.ac-motto span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ac-quiz h2 { margin-top: 0; }
.ac-question { margin: 0 0 14px; padding: 0; border: 0; }
.ac-question legend { margin-bottom: 6px; padding: 0; font-weight: 650; }
.ac-answer { display: block; width: 100%; margin-bottom: 6px; padding: 10px 12px; color: var(--ink); text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius-small); font-weight: 500; }
.ac-answer.is-right { background: var(--ok-soft); border-color: var(--ok); }
.ac-answer.is-wrong { background: var(--error-soft); border-color: var(--error); }
.ac-feedback { margin: 4px 0 0; color: var(--error); font-weight: 600; }
.ac-feedback.is-ok { color: var(--ok); }
@media (max-width: 760px) { .ac-cards { grid-template-columns: 1fr; } .ac-welcome img, .ac-motto img { width: 72px; height: 72px; } .ac-motto blockquote { font-size: 16px; } }

/* Fotos im Kreis, Schnellanmeldung */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-letters { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--accent); font-weight: 700; border-radius: 50%; }
.avatar-big { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; font-size: 30px; }
.account-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.terminal-name { display: flex; align-items: center; gap: 10px; }
.user-code { width: 76px; text-transform: uppercase; }
.user-code.is-taken { border-color: var(--error); background: var(--error-soft); }
.quick-title { text-align: center; }
.quick-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding: 12px; }
.quick-person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.quick-person img, .quick-person .avatar-letters { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; font-size: 24px; }
.quick-pin { max-width: 320px; margin: 0 auto; padding: 16px; text-align: center; }
.quick-pin input[name=pin] { text-align: center; font-size: 30px; letter-spacing: 8px; margin-bottom: 10px; }
.quick-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.quick-keys button { min-height: 62px; font-size: 22px; }
.quick-keys button[data-key] { color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
.quick-keys button[data-key=clear] { font-size: 14px; }

/* Leergut aus der Bestellung: nur Anzeige */
.cart-empties-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-small); font-size: 13px; }
.empty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 13px; }
.empty-chips > .muted { flex-basis: 100%; }
.empty-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: default; user-select: none; }
#cart-empties { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.clean-room-name, .clean-name { overflow-wrap: anywhere; max-width: 100%; }
.list-pikto { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.row-pikto { display: flex; align-items: center; gap: 10px; }

.clean-rooms { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.clean-area { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.clean-area .clean-room { flex: 1; width: 100%; border: 0; background: none; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; }
.clean-area.is-all { background: var(--ok-soft); border-color: var(--ok); }
.clean-area.is-all .clean-check { display: block; }
.clean-area.is-some { background: var(--warn-soft); border-color: var(--warn); }
.clean-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.clean-chip { position: static; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; }
.clean-chip input { position: absolute; opacity: 0; pointer-events: none; }
.clean-chip.is-due { border-color: var(--warn); }
.clean-chip:has(input:checked) { background: var(--ok); border-color: var(--ok); }
.clean-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.clean-tip { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; display: none; flex-direction: column; gap: 3px; margin-top: 4px; padding: 10px 12px; color: #fff; background: #26312b; border-radius: 10px; font-size: 13px; font-weight: 400; line-height: 1.3; text-align: left; pointer-events: none; }
.clean-chip.show-tip .clean-tip, .clean-room.show-tip + .clean-tip { display: flex; }
.clean-room + .clean-tip { display: none; }
.clean-room.show-tip + .clean-tip { display: block; }
@media (hover: hover) {
  .clean-chip:hover .clean-tip { display: flex; }
  .clean-room:hover + .clean-tip { display: block; }
}
.clean-sum { min-height: 22px; font-weight: 650; text-align: center; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; padding: 10px 0; background: var(--card); border-top: 1px solid var(--line); }
.task-tile { min-width: 0; }
.task-tile > summary { height: 100%; }
.task-tile[open] { grid-column: 1 / -1; }
.task-tile[open] > summary { height: auto; margin-bottom: 6px; }
.task-tile > summary { list-style: none; cursor: pointer; }
.task-tile > summary::-webkit-details-marker { display: none; }
.task-tile.is-due > summary { border-color: var(--warn); }
.task-tile[open] > summary { border-color: var(--accent); background: var(--accent-soft); }
.task-done { padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-small); }
#entry-form > .clean-rooms, #entry-form > .clean-sum { grid-column: 1 / -1; }

.role-chip { display: inline-block; padding: 1px 8px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.role-chip.role-release { color: #fff; background: var(--ok); }
.user-table .row-actions { text-align: right; white-space: nowrap; }
.user-edit h2 { margin: 16px 0 8px; }
.user-edit h2:first-of-type { margin-top: 0; }
.user-edit .user-code { width: 100%; }
@media (max-width: 760px) {
  .user-table th:nth-child(2), .user-table td:nth-child(2), .user-table th:nth-child(4), .user-table td:nth-child(4), .user-table th:nth-child(5), .user-table td:nth-child(5), .user-table th:nth-child(6), .user-table td:nth-child(6) { display: none; }
  .user-table .button.small { min-width: 44px; min-height: 44px; }
  .user-edit .mask-grid.two { grid-template-columns: 1fr; }
}
.terminal-head { flex-wrap: wrap; }
.terminal-link { font-size: 13px; color: var(--muted); }
.terminal-hint { margin: 0 0 10px; }
.terminal-name { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.terminal-name img { -webkit-user-drag: none; pointer-events: none; }
.terminal-name.is-dragging { position: relative; z-index: 50; background: var(--card); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: grabbing; }
.terminal-column.is-target { border-color: var(--accent); background: var(--accent-soft); }
.content > .mask ~ * { max-width: 1120px; }
.catalog-table a { white-space: normal; }
.catalog-table td:first-child { min-width: 180px; }
#branch-search { width: 100%; }
.branch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.branch-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-small); }
.branch-remove { min-width: 32px; font-size: 18px; }
@media (max-width: 760px) {
  .catalog-table th:nth-child(n+3):not(:last-child), .catalog-table td:nth-child(n+3):not(:last-child) { display: none; }
  .catalog-table td:first-child { min-width: 0; }
}

.empties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin-bottom: 8px; }
.empties-grid label { font-size: 13px; }
.empties-grid input { width: 100%; }
.driver-more { margin: 6px 0 10px; }
.driver-more > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.fold-phone > summary { cursor: pointer; font-weight: 600; padding: 4px 0 8px; }
.empties-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 1px solid var(--border, #ddd); border-radius: 12px; padding: 10px 8px; min-width: 0; }
.empties-tile img { width: 100%; height: 110px; object-fit: contain; }
.empties-tile strong { font-size: 13px; line-height: 1.2; }
.empties-tile small { font-size: 11px; }
@media (max-width: 767px) { .deliver-row td:first-child { white-space: normal; overflow-wrap: anywhere; max-width: none; min-width: 110px; } .deliver-row td:nth-child(2) { font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; } }
.empties-tap { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-height: 96px; padding: 6px 2px; background: none; border: 0; border-radius: 8px; color: inherit; cursor: pointer; touch-action: manipulation; }
.empties-tap:active { background: var(--line, #eee); }
.empties-tile > input { width: 100%; text-align: center; font-weight: 600; }
.weight-dialog { border: 0; border-radius: 14px; padding: 18px; max-width: 460px; width: calc(100% - 32px); }
.weight-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.keep-message { margin-bottom: 12px; }
@media (max-width: 767px) { .filter input, .filter select { max-width: 100%; min-width: 0; } .page-head h1, h1 { overflow-wrap: anywhere; } }
.time-terminal { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.empties-tile > input { margin-top: auto; }
.batch-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.batch-quick button { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; text-align: left; border: 1px solid var(--line, #ddd); border-radius: 10px; background: var(--card, #fff); color: inherit; cursor: pointer; }
.batch-quick button.is-old { border-color: var(--error, #b00); }
.batch-quick small { color: var(--muted); }
#form-picks { grid-column: 1 / -1; }
.train-sentence { font-size: 26px; font-weight: 650; line-height: 1.3; margin: 16px 0; }
.reorder-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.reorder-row > label { flex: 1 1 130px; min-width: 0; }
.reorder-row .reorder-what { flex: 3 1 240px; }
.reorder-row > .check { flex: 0 0 auto; }
.train-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.train-actions .primary { flex: 1; }
.ac-diagram { margin: 0 0 14px; padding: 0; overflow: hidden; }
.ac-diagram img { display: block; width: 100%; height: auto; }
.ac-film { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent); color: #fff; text-decoration: none; }
.ac-film:hover { color: #fff; filter: brightness(1.08); }
.ac-film-play { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 22px; }
.ac-film small { display: block; font-size: 12.5px; opacity: .92; margin-top: 2px; }
.ac-film strong { font-size: 17px; }
.ac-more > summary { cursor: pointer; font-weight: 600; }
.ac-more .ac-slides { padding: 0; border: 0; box-shadow: none; margin-top: 10px; }
.ac-score { font-size: 18px; font-weight: 700; color: var(--accent); }
.ac-diagram { max-width: 860px; margin-left: auto; margin-right: auto; }


/* Handprüfung 01.11.2026: Handy */
select { max-width: 100%; }
.weight-dialog { box-sizing: border-box; }
.field { scroll-margin-top: 70px; }
.error-box ul { margin: 6px 0 0; padding-left: 18px; }
.error-box li { margin: 2px 0; }
.batch-again { width: 100%; margin-top: 8px; white-space: normal; text-align: left; }
.stock-note { color: var(--error, #b00); font-weight: 600; margin: 6px 0 0; }
.ac-retries { margin-bottom: 14px; }
.ac-diagram picture { display: block; }
.ac-diagram img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .who { display: flex; }
  .who > a, .who > .link { display: none; }
  .actions button { padding-inline: 8px; }
  .actions { flex-wrap: wrap; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-grid > * { min-width: 0; }
  .availability-tile { min-width: 0; overflow: hidden; }
  .availability-tile table { width: 100%; font-size: 12px; }
  .availability-tile th, .availability-tile td { padding: 6px 4px; white-space: normal; }
  .rail-open .rail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rail a { white-space: normal; line-height: 1.15; min-width: 0; }
  .rail-group { grid-column: 1 / -1; }
  .rail-account { min-width: 0; }
  .values { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .values dd { overflow-wrap: anywhere; min-width: 0; }
  .values dd img { max-width: 100%; height: auto; }
  .clean-rooms, .clean-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clean-room, .clean-tile { min-height: 110px; padding: 10px 8px; }
  .weight-dialog { left: 12px; right: 12px; width: auto; max-width: none; margin: auto 0; padding: 14px; }
  .weight-dialog .mask { padding: 0; }
  .weight-dialog .mask-grid.two { grid-template-columns: minmax(0, 1fr); }
  .weight-dialog .actions { margin: 12px 0 0; padding: 0; position: static; }
  .pick-body { grid-template-columns: auto auto auto minmax(0, 1fr); }
  .pick-head .pick-name { grid-column: 1 / -1; }
  .pick-head .stepper { justify-self: start; }
  .pick-body .batch-choices { grid-column: 1 / -1; }
  table.is-stacked, table.is-stacked tbody { display: block; width: 100%; }
  table.is-stacked thead { display: none; }
  table.is-stacked tr { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  table.is-stacked td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 0; border: 0; min-height: 0; height: auto; white-space: normal; overflow-wrap: anywhere; text-align: right; }
  table.is-stacked td:first-child { font-weight: 600; }
  table.is-stacked td.is-blank { display: none; }
  table.is-stacked td[data-label]::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; }
  table.is-stacked td .icon-actions, table.is-stacked td form { justify-content: flex-end; }
}

.empties-step { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 4px; width: 100%; margin-top: auto; align-items: center; }
.empties-step input { min-width: 0; text-align: center; font-weight: 600; margin: 0; }
.empties-step button { min-height: 40px; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; touch-action: manipulation; }

/* Dashboard: Wege oben, drei Spalten nach Thema */
.dash-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; margin-bottom: 14px; }
.dash-quick a { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; padding: 10px 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; overflow-wrap: anywhere; hyphens: auto; }
.dash-quick a:hover { border-color: var(--accent); background: var(--accent-soft); }
.dash-quick a.is-main { background: var(--accent); border-color: var(--accent); color: #fff; }
.dash-quick a.is-main:hover { background: var(--accent-dark); }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.dash-col { min-width: 0; }
.dash-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dash-line { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; margin-bottom: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-small); color: var(--ink); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.dash-line:hover { border-color: var(--line-strong); }
.dash-line span { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; line-height: 1.2; }
.dash-line strong { flex: none; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dash-line.stat-open { background: var(--accent-soft); border-color: var(--accent); }
.dash-line.stat-open strong { color: var(--accent); }
.dash-line.is-bad { background: var(--error-soft); border-color: var(--error, #b00); }
.dash-line.is-bad strong { color: var(--error, #b00); }
/* Erledigtes verschwindet von der Startseite, eine leere Spalte gleich mit. */
.dash-line.is-zero { display: none; }
.dash-col:not(:has(.dash-line:not(.is-zero))) { display: none; }

/* Text bleibt in seinem Feld: umbrechen statt überlaufen */
.tile, .tile span, .tile-pikto span, .stat span, .ac-tile strong, .clean-tile, .clean-room, .empties-tile strong, .batch-quick strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.pikto { object-fit: contain; }
.home-grid.is-single { grid-template-columns: minmax(0, 1fr); }

/* Handy: quer statt lang, Bild links, Text rechts, weniger scrollen */
@media (max-width: 760px) {
  .dash-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .dash-quick a { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 6px 8px; text-align: left; font-size: 13px; }
  .dash-quick .pikto { width: 32px; height: 32px; }
  .dash-line { min-height: 40px; padding: 4px 10px; margin-bottom: 4px; }
  .dash-line .pikto { width: 26px; height: 26px; }
  .dash-cols { gap: 10px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-pikto { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 6px 8px; text-align: left; font-size: 13px; line-height: 1.2; }
  .tile-pikto .pikto { width: 34px; height: 34px; }
  .tile-pikto { flex-wrap: nowrap; }
  .tile-pikto span { flex: 1 1 auto; min-width: 0; width: auto; }
  .ac-diagram + * { margin-top: 10px; }
}

/* Bestellung aus Text */
.order-text-input textarea { width: 100%; font-size: 14px; }
.order-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-bottom: 10px; }
.order-fact { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-small); }
.order-fact small, .order-fact em { display: block; color: var(--muted); font-size: 11.5px; font-style: normal; }
.order-fact b { overflow-wrap: anywhere; }
.order-fact select, .order-fact input { width: 100%; margin: 2px 0; }
.order-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: var(--radius-small); }
.order-line.is-check { background: var(--warn-soft, #FFFCF0); border-color: var(--warn, #8C6A10); }
.order-line > input { width: 100%; text-align: center; font-weight: 700; margin: 0; }
.order-line-name { min-width: 0; }
.order-line-name select { width: 100%; margin: 0 0 2px; }
.order-line-name small { display: block; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.order-ignored { font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .order-line { grid-template-columns: 56px minmax(0, 1fr); } .order-line .badge { grid-column: 2; justify-self: start; } }

@media (max-width: 760px) {
  .actions button, .actions .button { white-space: normal; line-height: 1.15; }
  .order-line-name select { font-size: 13.5px; }
}

/* Gemeinsames Protokoll und Chargenauswahl */
fieldset.taken { border: 0; padding: 0; margin: 0; min-width: 0; }
.field.is-taken { background: var(--bg, #f6f4f5); }
.field.is-taken .photo-button, .field.is-taken .signature-clear, .field.is-taken .remove { display: none; }
.field-owner { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.charge-pick { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.charge-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; }
.charge-row small { display: block; color: var(--muted); }
.charge-row em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.charge-row.is-old small { color: var(--error); }
.charge-amount { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.charge-amount input { width: 84px; text-align: right; }
.charge-left.is-bad { color: var(--error); }
.working-list { display: grid; gap: 6px; }
.working-row { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.working-row small { display: block; color: var(--muted); }
.working-row em { font-style: normal; font-weight: 700; color: var(--accent); }
.photo-note { margin: 0 0 6px; font-size: 13px; color: var(--ok, #1e8a55); font-weight: 600; }
@media (max-width: 400px) { #entry-form .actions button { font-size: 13px; padding-inline: 8px; min-width: 0; } }
.receipt-care { border-left: 4px solid var(--accent); }
.receipt-care h2 { font-size: 15px; margin: 0 0 4px; }
.receipt-care p { margin: 0 0 8px; }

/* Gelernte Bestelltexte beim Kunden: Vergessen steht in der Zeile. */
.learned-forget { display: inline; }
.learned-forget .button-link { min-height: 0; padding: 0 6px; font-weight: 500; }

/* IBAN-Prüfung unter dem Feld. */
.iban-note { display: block; font-size: var(--text-small, 13px); color: var(--ok, #2e7d32); }
.iban-note.is-bad { color: var(--danger, #b3261e); }

/* Kommissionieren: Fertige Kunden verschwinden aus der Leiste, auf Wunsch wieder sichtbar. */
.pick-bar.hide-done a.is-done:not(.is-here) { display: none; }
.pick-done-toggle { border: 1px dashed var(--line-strong); background: transparent; border-radius: var(--radius-small); padding: 6px 10px; color: var(--muted); font-weight: 600; }

/* Versandpakete: ein Knopf sichtbar, der Rest im Menü, nichts wird abgeschnitten. */
td.parcel-actions { display: table-cell; white-space: nowrap; }
.parcel-actions > form { display: inline-block; margin: 0 4px 0 0; }
.parcel-more { display: inline-block; position: relative; }
.parcel-more > summary { list-style: none; }
.parcel-more > summary::-webkit-details-marker { display: none; }
.parcel-more > div { position: absolute; right: 0; z-index: 30; margin-top: 4px; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 8px 22px rgba(30, 15, 25, .16); }
.parcel-more > div form { margin: 0; }
.parcel-more > div .button, .parcel-more > div button { width: 100%; justify-content: flex-start; }

/* Rechnungen: Sammelaktionen in drei klaren Zeilen, Status nie umbrochen. */
.bulk-grid { display: grid; gap: 10px; margin-top: 10px; }
.bulk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bulk-row:first-child { border-top: 0; padding-top: 0; }
.bulk-label { width: 92px; font-weight: 650; color: var(--muted); }
.bulk-row input[name=reason] { flex: 1 1 260px; }
.bulk-row input[name=confirm] { width: 170px; }
.bulk-danger .bulk-label { color: var(--danger, #b3261e); }
.data-table .badge { white-space: nowrap; }

/* Paketmarke: fehlende Gewichte direkt eintragen. */
.weight-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.weight-quick .customer-hint { flex-basis: 100%; margin: 0; }
.weight-quick input { width: 90px; }
.bulk-row select { width: auto; flex: 0 1 220px; }
.bulk-row label.inline { white-space: nowrap; }
.bulk-row input[type=date] { width: 150px; }
.bulk-row .dictate-wrap { flex: 1 1 260px; width: auto; margin-top: 0; }

/* Stand des Frachtpilot-Spiegels über Bestellungen und Kommissionierung. */
.fp-stand { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 10px; font-size: var(--text-small, 13px); }
.drop-zone { display: block; border: 2px dashed var(--line, #ccc); border-radius: 10px; padding: 18px; text-align: center; cursor: pointer; }
.drop-zone.is-drop { border-color: var(--accent); background: rgba(230, 0, 126, .06); }
.drop-zone input[type=file] { display: block; margin: 8px auto 0; }
.filling-bar { align-items: center; margin-bottom: 8px; }
.filling-entry { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.filling-entry input[name=value] { width: 120px; font-size: 20px; }
.filling-entry .filling-action { flex-basis: 100%; }
.filling-check { margin: 8px 0; }
.filling-check .check { margin: 4px 0; }
.filling tr.is-bad td { color: var(--danger, #B3261E); font-weight: 600; }
.filling-dialog { max-width: 420px; width: calc(100% - 32px); border: 0; border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.filling-dialog::backdrop { background: rgba(43, 22, 33, .35); }
.filling-dialog input[name=value] { font-size: 28px; text-align: center; }

.upload-state { white-space: pre-line; }
.library-button { background: transparent; }
.photo-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.library-item { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); text-align: left; font-size: 13px; cursor: pointer; }
.library-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.library-item:disabled { opacity: .45; cursor: default; }
.icon-btn[data-tip] { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn[data-tip]:hover::after, .icon-btn[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 30; padding: 4px 8px; border-radius: 6px; background: var(--ink, #2B1621); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
}

.filling-pieces { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 8px 0; }
.filling-pieces input { width: 120px; }

.manual-charge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.manual-charge input { width: auto; min-width: 0; flex: 1 1 120px; }
.manual-charge span { font-size: 13px; font-weight: 600; flex-basis: 100%; }

.filling-cow { display: block; width: 160px; height: auto; margin: -8px auto 4px; animation: cow-pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes cow-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .filling-cow { animation: none; } }
.filling-dialog h2 { text-align: center; }

.is-busy { cursor: progress; position: relative; }
.is-busy::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fahrer-App: Leergut kompakt, drei nebeneinander, nur die Zahl. Kisten wie beim Kommissionieren, kleiner. */
.empties-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.empties-compact .empties-tile { padding: 6px 4px; border-radius: 10px; gap: 2px; }
.empties-compact .empties-tap { min-height: 0; padding: 2px; gap: 2px; }
.empties-compact .empties-tile img { height: 54px; }
.empties-compact .empties-tile strong { font-size: 12px; }
.empties-compact .empties-tile small { font-size: 10px; }
.empties-compact .empties-tile > input { min-height: 40px; padding: 4px; font-size: 18px; }
.crate-row-small { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.crate-row-small .crate-tap { flex-direction: column; align-items: stretch; height: auto; padding: 6px; gap: 2px; border-radius: 12px; }
.crate-row-small .crate-slot { width: 100%; height: 40px; justify-content: center; }
.crate-row-small .crate-box { width: 48px; }
.crate-row-small .crate-plate { width: 20px; height: 14px; }
.crate-row-small .crate-plate img { width: 14px; height: 12px; }
.crate-row-small .crate-text { text-align: center; }
.crate-row-small .crate-text small { font-size: 10px; }
.crate-row-small .crate-text strong { font-size: 20px; }
.drop-photo-preview { display: block; max-width: 100%; max-height: 180px; margin-top: 8px; border-radius: 10px; object-fit: cover; }
.thumb .thumb-edit { display: block; max-width: 100%; margin-top: 2px; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; text-align: left; }
.photos .thumb { width: 84px; height: auto; }
/* Bestellportal: Liste für Großkunden, Kacheln für Endkunden */
.shop-sandbox { background: #FFF3C4; color: #4A3A00; padding: 8px 16px; font-size: 14px; text-align: center; }
.shop-sandbox a { color: inherit; font-weight: 700; }
.shop-hero { position: relative; border-radius: 16px; overflow: hidden; margin: 8px 0 16px; background: #1B0A12; }
.shop-hero img { display: block; width: 100%; height: clamp(160px, 28vw, 320px); object-fit: cover; object-position: center; }
.shop-hero div { position: absolute; left: 0; bottom: 0; padding: 18px 20px; color: #fff; max-width: 60%; }
.shop-hero h1 { margin: 0; color: #fff; font-size: clamp(22px, 4vw, 38px); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.shop-hero p { margin: 4px 0 0; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.shop-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 8px 0; }
.shop-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-views { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.shop-views a { padding: 6px 14px; text-decoration: none; color: inherit; font-weight: 600; }
.shop-views a[aria-current] { background: #E7276F; color: #fff; }
.shop-last { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.shop-news { background: #FBDEE9; border-radius: 14px; padding: 12px; margin-bottom: 14px; display: grid; gap: 8px; }
.shop-news h2 { margin: 0; font-size: 17px; color: #A3124A; }
.shop-news-banner { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; }
.shop-news-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.shop-news-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 10px; align-items: center; background: #fff; color: #261A20; border-radius: 10px; padding: 8px; }
.shop-news-card img, .shop-news-card .shop-noimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; grid-row: span 2; }
.shop-news-card b, .shop-news-card small { display: block; }
.shop-news-card button { justify-self: start; }
.shop-section h2 { font-size: 18px; margin: 18px 0 6px; }
.shop-items { display: grid; border-top: 1px solid var(--line); }
.shop-item { display: grid; grid-template-columns: 56px minmax(0, 2.4fr) repeat(2, minmax(60px, .8fr)) minmax(56px, .6fr) 128px; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.shop-item.head { font-size: 12px; font-weight: 700; color: var(--muted); padding-block: 6px; }
.shop-item > .shop-link > img, .shop-item > .shop-link > .shop-noimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #fff; }
.shop-noimg { display: grid; place-items: center; background: #FBF6F8; border-radius: 8px; }
.shop-item .name b { display: inline; }
.shop-item .name small { display: block; }
.shop-item .money { text-align: right; }
.shop-item .money small { display: none; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.shop-margin { color: #1E7F4F; font-weight: 700; }
.shop-item .lastq { text-align: right; color: var(--muted); font-size: 13px; }
.shop-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #E7276F; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; vertical-align: 2px; }
.shop-step { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card, #fff); }
.shop-step button { border: 0; background: #FBDEE9; color: #A3124A; font-size: 20px; font-weight: 800; min-height: 38px; cursor: pointer; padding: 0; }
.shop-step input { border: 0; text-align: center; font-weight: 800; min-width: 0; width: 100%; background: transparent; }
.shop-item.changed .shop-step { border-color: #E7276F; }
.shop-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.shop-tile { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card, #fff); min-width: 0; }
.shop-tile figure { position: relative; margin: 0; aspect-ratio: 1; background: #fff; display: grid; place-items: center; }
.shop-tile figure { overflow: hidden; }
.shop-tile figure > .shop-link > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-tile figure .shop-noimg { width: 60%; height: 60%; }
.shop-tile figure .shop-noimg img { width: 100%; height: 100%; }
.shop-tile figure .shop-badge { position: absolute; top: 10px; left: 4px; }
.shop-tile > div { padding: 10px 12px 12px; display: grid; gap: 6px; align-content: start; }
.shop-tile h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.shop-tile p { margin: 0; font-size: 13px; }
.shop-price { font-size: 20px; }
.shop-tile-buy { display: grid; gap: 6px; }
.shop-buy { width: 100%; }
.shop-news-card .shop-buy { width: auto; grid-column: 2; justify-self: start; }
.shop-only { color: var(--muted, #6b5b63); }
.shop-only a { font-weight: 600; }
.shop-dock { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: var(--card, #fff); border-top: 2px solid var(--fg, #261A20); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); margin-top: 12px; }
.shop-test-list { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) {
  .shop-item.head { display: none; }
  .shop-item { grid-template-columns: 56px repeat(3, minmax(0, 1fr)); grid-template-areas: "img name name name" "img ek uvp ." "last last step step"; gap: 6px 10px; padding: 12px 2px; }
  .shop-item > .shop-link > img, .shop-item > .shop-link > .shop-noimg { grid-area: img; align-self: start; }
  .shop-item .name { grid-area: name; } .shop-item .ekc { grid-area: ek; } .shop-item .uvpc { grid-area: uvp; } .shop-item .marginc { grid-area: margin; }
  .shop-item .lastq { grid-area: last; text-align: left; } .shop-item .shop-step { grid-area: step; }
  .shop-item .money { text-align: left; } .shop-item .money small { display: block; }
  .shop-hero div { max-width: 100%; }
}
.shop-dock .muted { font-size: 12px; max-width: 70ch; }
@media (max-width: 760px) { .shop-dock { padding-top: 8px; } .shop-dock .muted { display: none; } .shop-dock .primary { flex: 1; } }
@media (max-width: 520px) { .shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .shop-tile > div { padding: 8px; } .shop-tile h3 { font-size: 14px; } .shop-price { font-size: 17px; } .shop-hero div { top: 0; bottom: auto; } }
.shop-hero div { top: 0; bottom: auto; }
/* Öffentliche Verkaufsstellen-Karte */
.stk { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
.stk-head { display: flex; gap: 14px; align-items: center; }
.stk-head h1 { margin: 0; color: #E5007D; font-size: clamp(24px, 4vw, 36px); }
.stk-head p { margin: 2px 0 0; }
.stk-search { display: flex; flex-wrap: wrap; gap: 8px; }
.stk-search input { flex: 1 1 220px; min-width: 0; }
.stk-state { margin: 0; min-height: 1.4em; color: var(--muted); }
.stk-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stk-map { height: clamp(320px, 60vh, 620px); border-radius: 14px; border: 1px solid var(--line); }
.stk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: clamp(320px, 60vh, 620px); overflow-y: auto; }
.stk-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card, #fff); display: grid; gap: 4px; }
.stk-item.is-active { border-color: #E5007D; box-shadow: 0 0 0 2px #FBDEE9; }
.stk-item b { font-size: 16px; }
.stk-item .stk-dist { color: #E5007D; font-weight: 700; font-variant-numeric: tabular-nums; }
.stk-item .stk-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.stk-prods { display: flex; flex-wrap: wrap; gap: 4px; }
.stk-prods span { font-size: 12px; background: #FBF4F7; color: #6B1A44; border-radius: 999px; padding: 2px 8px; }
.stk-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.stk-form { display: grid; gap: 8px; }
.stk-form h2 { margin: 0; }
.stk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stk-foot { font-size: 13px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) { .stk-main { grid-template-columns: minmax(0, 1fr); } .stk-list { max-height: none; } .stk-map { height: 340px; } }
.stk-dealer { border: 2px solid #E5007D; }
.stk-share { display: flex; flex-wrap: wrap; gap: 8px; }
.stk-small { font-size: 13px; margin: 0; }
/* Erleben und buchen */
.exp { max-width: 1100px; margin: 0 auto; display: grid; gap: 16px; }
.exp-head { display: flex; gap: 14px; align-items: center; }
.exp-head h1 { margin: 0; color: #E5007D; font-size: clamp(24px, 4vw, 36px); }
.exp-head p { margin: 2px 0 0; }
.exp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: inherit; font-weight: 700; }
.exp-tabs a[aria-current] { background: #E5007D; border-color: #E5007D; color: #fff; }
.exp-thanks { background: #E8F5EC; color: #1E5E3A; border-radius: 12px; padding: 12px 14px; }
.exp-intro h2 { margin: 0 0 6px; }
.exp-intro p { margin: 0 0 6px; max-width: 70ch; }
.exp-price { font-weight: 700; color: #A3124A; }
.exp-cal { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card, #fff); }
.exp-cal-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; }
.exp-cal-head a { font-size: 26px; text-decoration: none; color: #E5007D; }
.exp-cal-head h3 { margin: 0; }
.exp-legend { font-size: 13px; text-align: center; }
.exp-legend span, .exp-slot { display: inline-block; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.exp-legend .free, .exp-slot.free { background: #E8F5EC; color: #1E5E3A; }
.exp-legend .held, .exp-slot.held { background: #FFF3C4; color: #6B5300; }
.exp-legend .busy, .exp-slot.busy { background: #F1E4EA; color: #8B6A79; text-decoration: line-through; }
.exp-slot.free { text-decoration: none; }
.exp-slot.free.on, .exp-slot.free:hover { background: #E5007D; color: #fff; }
.exp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.exp-wd { text-align: center; font-size: 12px; color: var(--muted); }
.exp-day { min-height: 86px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.exp-day.past { opacity: .4; }
.exp-day.chosen { border-color: #E5007D; }
.exp-num { font-weight: 700; font-size: 13px; }
.exp-events { display: grid; gap: 10px; }
.exp-event { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card, #fff); }
.exp-event > div:first-child { display: grid; }
.exp-event > div:first-child b { font-size: 20px; color: #E5007D; }
.exp-event h3 { margin: 0 0 4px; }
.exp-event p { margin: 0; }
.exp-empty { border: 1px dashed var(--line); border-radius: 14px; padding: 16px; }
.exp-form { display: grid; gap: 8px; scroll-margin-top: 16px; }
.exp-form h2 { margin: 0; }
.exp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.exp-small { font-size: 13px; margin: 0; }
.booking-actions input { min-width: 0; width: 180px; }
.booking-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
@media (max-width: 640px) {
  .exp-day { min-height: 64px; padding: 2px; }
  .exp-slot { font-size: 10px; padding: 1px 3px; }
  .exp-event { grid-template-columns: minmax(0, 1fr); }
  .exp-row { grid-template-columns: minmax(0, 1fr); }
}
.stamp-reminder p { text-align: center; }
.stamp-reminder input[type=time] { font-size: 28px; text-align: center; }
.exp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 12px 0; }
.exp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.quick-texts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 10px; }
.quick-texts .chip { border: 0; cursor: pointer; padding: 6px 10px; border-radius: 999px; background: #FBE3EF; color: #8A1450; font-size: 13px; }
.quick-texts .chip.on { background: #E5007D; color: #fff; }
/* Karte der Verkaufsstellen: Pins als Klassen, die Zentrale mit Logo. */
.stk-pin span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #E5007D; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.stk-pin-you span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #2E7DD1; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(46,125,209,.25); }
.stk-pin-home img { display: block; width: 52px; height: 52px; padding: 6px; border-radius: 50%; background: #fff; border: 3px solid #E5007D; box-shadow: 0 3px 10px rgba(0,0,0,.35); object-fit: contain; }
.exp-slot.whole { background: #FBE3EF; color: #8A1450; }
.exp-slots { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.exp-slots legend { font-weight: 600; margin-bottom: 4px; }
.exp-pick { font-weight: 700; color: #E5007D; min-height: 1.2em; margin: 4px 0 8px; }
.home-link { display: inline-block; margin: 0 0 8px; font-weight: 700; color: #E5007D; text-decoration: none; }
/* Seminarraum buchen: erst den Tag, dann große Zeit-Knöpfe, unten die Zusammenfassung. */
.room { background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 12px 0; }
.room-step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin: 6px 0 10px; }
.room-step span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E5007D; color: #fff; font-size: 15px; }
.room-step small { font-weight: 600; opacity: .6; font-size: 13px; }
.room-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.room-wd { text-align: center; font-size: 12px; opacity: .6; }
.room-day { display: grid; place-items: center; gap: 3px; aspect-ratio: 1; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.room-day i { width: 7px; height: 7px; border-radius: 50%; }
.room-day.free i, .room-legend .free { background: #2F9E5B; }
.room-day.part i, .room-legend .part { background: #E8A400; }
.room-day.full i, .room-legend .full { background: #C9B8C1; }
.room-day.past, .room-day.full { opacity: .4; }
.room-day.past i { display: none; }
a.room-day:hover { border-color: #E5007D; }
.room-day.on { background: #E5007D; color: #fff; border-color: #E5007D; }
.room-day.on i { background: #fff; }
.room-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin: 10px 0 4px; opacity: .8; }
.room-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.room-day-name { font-weight: 700; margin: 0 0 8px; }
.room-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.room-time { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
.room-time b { font-size: 16px; }
.room-time span { font-size: 13px; opacity: .7; }
.room-time.whole { border-style: dashed; }
.room-time.on { border-color: #E5007D; background: #FDEAF3; }
.room-time.on b::after { content: " ✓"; color: #E5007D; }
.room-time.off { opacity: .45; cursor: default; }
.room-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.room-summary p { margin: 0; font-weight: 700; }
#room-next:not(.is-ready) { opacity: .5; }
.room .exp-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.room .exp-cal-head h3 { margin: 0; font-size: 17px; }
.room .exp-cal-head a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; font-size: 22px; color: #E5007D; }
.room-fields[hidden] { display: none; }
.room-step-form { margin-top: 0; }
#buchen:has(.room-step-form) > h2 { display: none; }
.shop-new { max-width: 560px; }
.shop-new form { display: grid; gap: 10px; }
.shop-guest-next .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-new, .shop-new * { box-sizing: border-box; }
.shop-new { width: 100%; }
.shop-new label { min-width: 0; }
.shop-new input:not([type=checkbox]) { width: 100%; max-width: 100%; }
.shop-new .exp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.shop-new label.inline { display: flex; gap: 8px; align-items: flex-start; }
.shop-new label.inline input { width: auto; flex: none; margin-top: 3px; }
/* Karte: Empfehlung eines Ladens, zwei klare Wege nebeneinander. */
.stk-reco-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.stk-reco-head img { width: 96px; height: 96px; flex: none; object-fit: contain; }
.stk-reco-head h2 { margin: 0 0 4px; }
.stk-reco-head p { margin: 0; }
.stk-reco-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.stk-reco-way { display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #FFF8FB; }
.stk-reco-way b { font-size: 16px; }
.stk-reco-way p { margin: 0; }
.stk-reco-way .stk-share { display: flex; flex-wrap: wrap; gap: 8px; }
.stk-reco-head h2 { font-size: 21px; line-height: 1.2; }
@media (max-width: 480px) { .stk-reco-head img { width: 72px; height: 72px; } }
.stk-msg { margin: 0; padding: 10px 12px; border-left: 3px solid #E5007D; background: #fff; border-radius: 8px; font-style: italic; font-size: 14px; line-height: 1.45; }
/* Warenkorb: Paketversand mit Mindestmenge und Paketzahl. */
.shop-parcel { display: grid; gap: 4px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #FBF4F7; border: 1px solid #F3D9E6; }
.shop-parcel.is-warn { background: #FFF4E5; border-color: #F0C27A; }
/* Kundenprofil: Kontakt gleich unter dem Namen, Telefon zum Antippen. */
.customer-contact { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 4px 0 12px; }
.customer-contact .where { font-weight: 600; margin-right: 6px; }
.customer-contact .button { padding: 6px 12px; font-size: 14px; }
/* Warengutschrift: Artikel und Menge je Zeile. */
.credit-rows { display: grid; gap: 8px; margin: 12px 0; }
.credit-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
/* Nachbestellung: Zeile je Lieferant mit fertiger Bestell-E-Mail. */
.reorder-mail { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.reorder-mail .actions { display: flex; gap: 8px; margin: 0; }

/* Stempel-Terminal: Auch hochkant am Tablet bleiben die drei Spalten nebeneinander, erst am Handy untereinander.
   Senkrecht wischen scrollt, waagerecht ziehen stempelt. */
.terminal-name { touch-action: pan-y; }
@media (max-width: 599px) { .terminal-columns { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .terminal-name { font-size: 15px; padding: 11px 10px; } .terminal-column { padding: 8px; } }
/* Kommissionieren: Kiste fehlt noch, die Kistenreihe leuchtet. */
.crate-row.is-needed { outline: 3px solid #E5007D; outline-offset: 4px; border-radius: 12px; }
/* Shop: Artikelseiten. Bildlinks verschwinden aus dem Layout, Textlinks sehen aus wie der Name. */
.shop-link { color: inherit; text-decoration: none; }
.shop-link:has(> img), .shop-link:has(> .shop-noimg) { display: contents; }
h3 .shop-link:hover, b .shop-link:hover { color: #E5007D; text-decoration: underline; }
.shop-tile img, .shop-item img, .shop-news-card img { cursor: pointer; }
.shop-incart { position: absolute; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: #E5007D; color: #fff; font-size: 12px; font-weight: 700; }
.shop-tile, .shop-item { scroll-margin: 90px; transition: box-shadow .4s; }
.shop-tile.is-added, .shop-item.is-added { box-shadow: 0 0 0 3px #E5007D; }
.shop-back { margin: 8px 0 12px; }
.shop-back a { font-weight: 700; text-decoration: none; }
.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 32px; }
.shop-gallery-main { margin: 0; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.shop-gallery-main > img { width: 100%; height: 100%; object-fit: contain; }
.shop-gallery-main .shop-noimg { width: 60%; height: 60%; }
.shop-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shop-gallery-thumbs button { padding: 0; width: 64px; height: 64px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.shop-gallery-thumbs button[aria-current] { border-color: #E5007D; }
.shop-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-info { display: grid; gap: 10px; align-content: start; }
.shop-product-info h1 { margin: 0; line-height: 1.2; }
.shop-product-info p { margin: 0; }
.shop-product-group { color: #E5007D; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.shop-product-text { line-height: 1.55; }
.shop-product-price .shop-price { font-size: 28px; }
.shop-product-buy { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px; max-width: 460px; }
.shop-product-buy .shop-buy { grid-column: 1 / -1; }
.shop-incart-text { color: #A3124A; font-weight: 700; }
@media (max-width: 760px) { .shop-product { grid-template-columns: minmax(0, 1fr); gap: 16px; } .shop-product-buy { grid-template-columns: 120px minmax(0, 1fr); } }
.shop-gross { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #FBDEE9; color: #A3124A; } .shop-gross a { font-weight: 700; }
.shop-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; margin: 0 0 10px; background: var(--bg, #F7F2F4); scrollbar-width: none; } .shop-jump::-webkit-scrollbar { display: none; } .shop-jump a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #F3C3D6; color: #A3124A; font-weight: 700; text-decoration: none; font-size: 14px; } .shop-jump a:hover { background: #E5007D; color: #fff; } .shop-section { scroll-margin-top: 64px; }
/* Shop: Warenkorb mit Bild, Plus/Minus und Entfernen. */
.shop-cart-title { display: flex; align-items: center; gap: 10px; }
.shop-cart-title small { font-size: 15px; font-weight: 600; }
.shop-cart-empty { display: grid; justify-items: center; gap: 12px; padding: 28px; text-align: center; }
.shop-cart .shop-line { grid-template-columns: 56px minmax(0, 1fr) 120px 84px 32px; gap: 12px; padding: 10px 0; }
.shop-line-pic { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.shop-line-pic img:not(.pikto) { width: 100%; height: 100%; object-fit: cover; }
.shop-line-name { display: grid; gap: 2px; min-width: 0; }
.shop-line-name a { color: inherit; font-weight: 700; text-decoration: none; }
.shop-line-name a:hover { color: #E5007D; }
.shop-line-remove { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #6b5b63); cursor: pointer; font-size: 16px; }
.shop-line-remove:hover { background: #FBDEE9; color: #A3124A; }
.shop-enter { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; padding: 0; }
.shop-parcel b { display: flex; align-items: center; gap: 8px; }
.shop-cart-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 12px; }
.shop-head .shop-home { white-space: nowrap; }
@media (max-width: 560px) {
  .shop-cart .shop-line { grid-template-columns: 48px minmax(0, 1fr) 32px; grid-template-areas: "pic name x" "pic step sum"; }
  .shop-cart .shop-line-pic { grid-area: pic; width: 48px; height: 48px; } .shop-cart .shop-line-name { grid-area: name; } .shop-cart .shop-step { grid-area: step; max-width: 130px; } .shop-cart .shop-line strong { grid-area: sum; } .shop-cart .shop-line-remove { grid-area: x; }
}
.nutrition-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
/* Artikelseite: EAN, Zutaten, Allergene, Nährwerte. */
.shop-facts { display: grid; gap: 10px; margin-top: 6px; }
.shop-facts h2 { font-size: 16px; margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.shop-allergen b { color: #A3124A; }
.shop-nutrition { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 14px; }
.shop-nutrition th, .shop-nutrition td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.shop-nutrition td { text-align: right; font-variant-numeric: tabular-nums; }
.shop-nutrition .sub th { padding-left: 20px; color: var(--muted, #6b5b63); }
.shop-nutrition thead th { font-weight: 700; }
/* Kommissionieren: Kühlbox unten quer über die ganze Breite. */
.crate-row.crate-cool { display: block; margin-top: 10px; }
.crate-cool .crate-tap { width: 100%; flex-direction: row; align-items: center; height: 76px; gap: 14px; }
.crate-cool .cool-pic { width: 84px; height: 64px; flex: none; }
.crate-cool .crate-text { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.crate-cool .crate-text small { font-size: 16px; font-weight: 700; }
.crate-row-small .cool-pic { width: 52px; height: 40px; }
.pick-hint[open] { flex-basis: 100%; }
.pick-hint summary { cursor: pointer; font-weight: 700; color: var(--accent-dark, #A3124A); }
.pick-hint form { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.pick-hint textarea { width: 100%; }
.hint-chips { display: flex; flex-direction: column; gap: 6px; }
.hint-chip { text-align: left; padding: 8px 10px; border: 1px solid #F3C3D6; border-radius: 10px; background: #fff; color: #2B1621; font-size: 13px; line-height: 1.35; cursor: pointer; }
.hint-chip:hover { border-color: #E5007D; }
/* Protokoll: Zwischenspeichern und Abschließen immer sichtbar, auch ganz oben und nach einer Fehlermeldung. */
#entry-form > .actions.is-fixed { position: fixed; bottom: 0; left: var(--actions-left, 0); width: var(--actions-width, 100%); margin: 0; z-index: 30; }
#entry-form.has-fixed-actions { padding-bottom: 72px; }
/* Zahlungsart im Shop: Vorabüberweisung mit Rabatt oder online über Mollie. */
.shop-pay { border: 0; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.shop-pay legend { font-weight: 700; margin-bottom: 6px; }
.shop-pay-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line, #ddd); border-radius: 12px; cursor: pointer; }
.shop-pay-option:has(input:checked) { border-color: #E5007D; box-shadow: 0 0 0 1px #E5007D; }
.shop-pay-option input { margin-top: 3px; }
.shop-pay-option > span { display: grid; gap: 2px; }
.shop-pay-option small { color: var(--muted, #666); }
.shop-pay-badge { justify-self: start; display: inline-block; background: #E5007D; color: #fff; border-radius: 999px; padding: 0 8px; font-size: .85em; font-weight: 700; margin-left: 4px; }
.shop-prepaid td { background: #FBF4F7; font-size: .92em; }
/* Seminarraum: großes Foto vom gedeckten Tisch, daneben Raum und Gruppe. */
.seminar-fotos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 160px 160px; gap: 10px; margin: 14px 0; }
.seminar-fotos figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; }
.seminar-fotos .gross { grid-row: span 2; }
.seminar-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 140px; }
.seminar-fotos figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 640px) { .seminar-fotos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .seminar-fotos .gross { grid-column: span 2; grid-row: auto; } .seminar-fotos .gross img { aspect-ratio: 4 / 3; } .seminar-fotos img { aspect-ratio: 1; } }
.seminar-punkte { margin: 10px 0; padding-left: 20px; display: grid; gap: 4px; }
/* Seminarraum-Kalender so groß wie die Kalender von Slush und Eistruhe. */
.room-day { aspect-ratio: auto; min-height: 86px; }
/* Käseseminar: Foto neben dem Einleitungstext. */
.exp-intro-foto { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 18px; align-items: center; }
.exp-intro-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; display: block; }
@media (max-width: 560px) { .exp-intro-foto { grid-template-columns: minmax(0, 1fr); } .exp-intro-foto img { aspect-ratio: 4 / 3; } }
/* Coming soon: Artikel ohne Lebensmittelangaben leicht ausgegraut, mit Schild. */
.shop-tile.shop-soon figure { position: relative; }
.shop-tile.shop-soon figure img { filter: grayscale(1); opacity: .55; }
.shop-tile.shop-soon figure::after { content: "Coming soon"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); background: #E5007D; color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.shop-tile.shop-soon h3, .shop-tile.shop-soon .muted { opacity: .6; }
.shop-soon-note b { color: #E5007D; display: block; }
.shop-pay-soon { opacity: .5; cursor: not-allowed; }
/* Verwaltungsübersicht: Kacheln in Spalten ohne Lücken, klare Strich-Symbole in Rosa. */
.admin-grid { display: block; columns: 4 250px; column-gap: 14px; }
.admin-grid .card { break-inside: avoid; margin: 0 0 14px; display: inline-block; width: 100%; }
.admin-grid .admin-icon { color: #E5007D; flex: none; }
.admin-grid .row-pikto { padding: 3px 0; }
.shop-soon-hint { display: inline-block; background: #FDEAF3; color: #A3124A; font-weight: 700; border-radius: 999px; padding: 2px 10px; }

/* Saisonpause (z. B. Pina Colada im Winter): Wintermütze über dem Glas, Frost über dem Bild, nicht bestellbar. */
.shop-winter { position: relative; overflow: hidden; }
.shop-tile.shop-winter figure, .shop-gallery-main.shop-winter { position: relative; }
.shop-tile.shop-winter figure::before, .shop-gallery-main.shop-winter::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,.95), rgba(220,236,250,.6) 22%, transparent 45%), radial-gradient(circle at 100% 100%, rgba(255,255,255,.9), rgba(220,236,250,.55) 20%, transparent 42%), linear-gradient(rgba(225,240,255,.35), rgba(225,240,255,.35)); }
.shop-tile.shop-winter figure::after, .shop-gallery-main.shop-winter::after { content: ""; position: absolute; z-index: 2; pointer-events: none; left: 50%; top: -14%; width: 58%; aspect-ratio: 200 / 182; transform: translateX(-50%) rotate(-4deg);
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%20182%22%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2222%22%20r%3D%2220%22%20fill%3D%22%23fff%22%20stroke%3D%22%23E7E7EF%22%20stroke-width%3D%223%22/%3E%3Cpath%20d%3D%22M30%20120%20C30%2060%2060%2034%20100%2034%20C140%2034%20170%2060%20170%20120%20Z%22%20fill%3D%22%23E5007D%22/%3E%3Cpath%20d%3D%22M55%20118%20C55%2072%2072%2046%20100%2040%20M80%20118%20C80%2078%2088%2052%20100%2040%20M120%20118%20C120%2078%20112%2052%20100%2040%20M145%20118%20C145%2072%20128%2046%20100%2040%22%20stroke%3D%22%23B8005F%22%20stroke-width%3D%225%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22/%3E%3Crect%20x%3D%228%22%20y%3D%22108%22%20width%3D%22184%22%20height%3D%2264%22%20rx%3D%2218%22%20fill%3D%22%23FFF5FA%22%20stroke%3D%22%23F4C6DD%22%20stroke-width%3D%223%22/%3E%3Ctext%20x%3D%22100%22%20y%3D%22135%22%20text-anchor%3D%22middle%22%20font-family%3D%22Arial%20Rounded%20MT%20Bold%2C%20Arial%2C%20sans-serif%22%20font-weight%3D%22700%22%20font-size%3D%2221%22%20fill%3D%22%23E5007D%22%3EBin%20Skifahren%3C/text%3E%3Ctext%20x%3D%22100%22%20y%3D%22159%22%20text-anchor%3D%22middle%22%20font-family%3D%22Arial%20Rounded%20MT%20Bold%2C%20Arial%2C%20sans-serif%22%20font-weight%3D%22700%22%20font-size%3D%2216%22%20fill%3D%22%23B8005F%22%3Ehab%20Winterpause%3C/text%3E%3Cg%20fill%3D%22%23fff%22%20stroke%3D%22%23DCEBFA%22%20stroke-width%3D%221.5%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2270%22%20r%3D%225%22/%3E%3Ccircle%20cx%3D%22135%22%20cy%3D%2262%22%20r%3D%224%22/%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2292%22%20r%3D%224%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.shop-tile.shop-winter figure img, .shop-gallery-main.shop-winter img { filter: saturate(.75) brightness(1.04); }
.shop-pause-hint { display: inline-block; background: #E8F2FC; color: #1D4F86; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.shop-tile.shop-winter, .shop-tile.shop-winter figure, .shop-gallery-main.shop-winter { overflow: visible; } .shop-tile.shop-winter figure, .shop-gallery-main.shop-winter { margin-top: 28px; }
.home-shop-tile strong { font-size: 18px; } .home-new { display: inline-block; background: #E5007D; color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 0 7px; vertical-align: 1px; }
/* Startseite: Social-Media-Kachel zum direkten Eintragen. */
.home-social { margin-bottom: 14px; }
.home-social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.home-social-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.home-social-head { display: flex; gap: 10px; align-items: center; }
.home-social-head img, .home-social-leer { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.home-social-leer { display: grid; place-items: center; background: #F4F1F3; color: var(--muted); font-size: 11px; }
.home-social-head small { display: block; }
.home-social-form { display: flex; gap: 6px; } .home-social-form input { flex: 1; min-width: 0; }
/* Gutschein verschenken: Formular links, Vorschau (Entwurf C) rechts. */
.gs-intro h1 { color: #E5007D; margin-bottom: 4px; }
.gs-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.gs-form fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.gs-form legend { font-weight: 800; margin-bottom: 8px; }
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-chip input, .gs-motiv input { position: absolute; opacity: 0; pointer-events: none; }
.gs-chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; }
.gs-chip input:checked + span { background: #E5007D; border-color: #E5007D; color: #fff; }
.gs-chip input:focus-visible + span, .gs-motiv input:focus-visible + img { outline: 2px solid #E5007D; outline-offset: 2px; }
.gs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-motive { display: flex; gap: 12px; }
.gs-motiv { display: grid; gap: 4px; cursor: pointer; text-align: center; font-size: 13px; }
.gs-motiv img { width: 96px; height: 135px; object-fit: cover; border-radius: 10px; border: 3px solid transparent; }
.gs-motiv input:checked + img { border-color: #E5007D; }
.gs-pay { display: grid; gap: 8px; }
.gs-vorschau { position: sticky; top: 12px; }
.gs-karte { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 210 / 148; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.18); background: #fff; }
.gs-bild { width: 100%; height: 100%; object-fit: cover; }
.gs-rechts { padding: 6% 7%; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gs-logo { width: 34%; }
.gs-titel { color: #E5007D; font-size: clamp(18px, 3vw, 28px); }
.gs-wert { align-self: start; background: #E5007D; color: #fff; font-weight: 800; border-radius: 8px; padding: 3px 10px; font-size: clamp(15px, 2.4vw, 22px); }
.gs-text { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #333; display: grid; gap: 2px; overflow-wrap: anywhere; }
.gs-text i { color: #666; }
.gs-code { margin-top: auto; font-size: 10px; color: #777; }
.gs-bank { white-space: normal; padding: 14px; }
@media (max-width: 760px) { .gs-grid { grid-template-columns: minmax(0, 1fr); } .gs-vorschau { position: static; order: -1; } .gs-row { grid-template-columns: 1fr; } }
/* Gutschein-Verwaltung */
.gs-admin { font-size: 0.86rem; }
.gs-admin tr.is-warn td { background: var(--warn-bg, #fff6df); }
.gs-admin-actions { white-space: nowrap; }
.gs-admin-actions, .gs-admin-actions form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gs-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.gs-admin-grid textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 0.85rem; }
/* Kachelansicht: Preis und Knopf sitzen in jeder Reihe auf derselben Höhe, egal wie lang Name oder Beschreibung sind. */
.shop-tile > div { display: flex; flex-direction: column; }
.shop-tile > div > .shop-price { margin-top: auto; padding-top: 4px; }
.shop-tile-buy.is-placeholder { visibility: hidden; }
/* Shop: kleiner Pfeil nach oben, über der Leiste „Zur Kasse“. */
.nach-oben { position: fixed; right: 14px; bottom: 84px; z-index: 60; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #E5007D; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.22); opacity: .9; }
.nach-oben:hover, .nach-oben:focus-visible { opacity: 1; }
.nach-oben[hidden] { display: none; }
@media print { .nach-oben { display: none; } }
.shop-views .shop-pricelist { margin-left: auto; font-weight: 700; color: #E5007D; }
/* Besucher und Herkunft */
.vs-range { display: flex; gap: 6px; flex-wrap: wrap; }
.vs-range a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.vs-range a[aria-current] { background: #E5007D; color: #fff; border-color: #E5007D; }
.vs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.vs-kpis .card { display: grid; gap: 2px; }
.vs-kpis b { font-size: 1.8rem; color: #E5007D; }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.vs-table { font-size: 0.88rem; }
.vs-bar { width: 30%; min-width: 80px; }
.vs-bar progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 6px; background: #fde8f3; overflow: hidden; }
.vs-bar progress::-webkit-progress-bar { background: #fde8f3; border-radius: 6px; }
.vs-bar progress::-webkit-progress-value { background: #E5007D; border-radius: 6px; }
.vs-bar progress::-moz-progress-bar { background: #E5007D; border-radius: 6px; }
.shop-base { display: block; font-size: 12px; color: var(--muted, #7a6f75); font-weight: 400; }
.shop-product-price .shop-base { display: inline; margin-left: 6px; }
.wash-check { display: grid; gap: 8px; margin-top: 12px; }
.wash-check legend { font-weight: 700; font-size: 1.05rem; }
.wash-people { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; min-height: 44px; cursor: pointer; }
.chip-check:has(input:checked) { background: #FDE8F3; border-color: #E5007D; font-weight: 700; }
.wash-check .signature canvas { width: 100%; max-width: 600px; border: 1px solid var(--line); border-radius: 8px; touch-action: none; background: #fff; }
/* Aktionsseite (Livestream) */
.promo-head { text-align: center; }
.promo-head h1 { margin: 6px 0; }
.promo-live { display: inline-block; background: #E5007D; color: #fff; font-weight: 800; letter-spacing: .5px; padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 14px 0; }
.promo-item { display: grid; gap: 8px; align-content: start; text-align: center; }
.promo-item.is-gone { opacity: .75; }
.promo-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.promo-item h2 { font-size: 1.05rem; margin: 0; }
.promo-special { font-size: 1.8rem; color: #E5007D; }
.promo-left { display: grid; gap: 4px; font-size: 13px; }
.promo-left progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 6px; background: #fde8f3; overflow: hidden; }
.promo-left progress::-webkit-progress-bar { background: #fde8f3; border-radius: 6px; }
.promo-left progress::-webkit-progress-value { background: #E5007D; border-radius: 6px; }
.promo-left progress::-moz-progress-bar { background: #E5007D; }
.promo-buy { display: grid; gap: 8px; }
.promo-qty { display: flex; gap: 8px; align-items: center; justify-content: center; }
.promo-next { text-align: center; }
.promo-next .actions { justify-content: center; }
.shop-promo { display: block; color: #E5007D; font-weight: 700; font-size: 12px; }
.promo-admin.is-off { opacity: .7; }
.promo-admin-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.promo-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.promo-add { margin-top: 10px; }
.home-live { color: #E5007D; }
.batch-search { width: 100%; margin: 6px 0 8px; }
.folie-quick { margin-top: 8px; }
/* Bestellung: nicht verfügbare Artikel grau, auf 0 */
#cart-rows tr.is-unavailable td { background: #f0eff0; color: #8b858a; }
#cart-rows tr.is-unavailable input { color: #8b858a; }
/* Aufschnitt: Zeilen je Sorte */
.cut-row { border: 1px solid var(--line, #e3dde2); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.cut-row legend { font-weight: 600; padding: 0 4px; }
.cut-block { display: block; margin-bottom: 8px; }
.cut-block select { width: 100%; }
.cut-qtys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cut-qty { font-size: .9em; }
.cut-qty input { width: 100%; }
.cut-sum.negative { color: #b3261e; }
@media (max-width: 520px) { .cut-qtys { grid-template-columns: 1fr 1fr; } }
/* Cockpit: Chargenrechner */
.batch-calc { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 6px; padding: 10px 12px; margin-bottom: 14px; align-items: center; }
.batch-calc > div { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.batch-calc-today strong { font-size: 1.7em; color: var(--accent, #d6337a); letter-spacing: .04em; }
.batch-calc-day b { font-size: 1em; font-weight: 700; color: var(--accent, #d6337a); }
.batch-calc-day strong { font-size: 1.35em; font-weight: 800; white-space: nowrap; }
/* Spaltenbreite in em: bei normaler Schrift 3 Spalten wie bisher, bei großer Handyschrift automatisch weniger Spalten statt Überlauf. */
@media (max-width: 560px) { .batch-calc { grid-template-columns: repeat(auto-fit, minmax(6.3em, 1fr)); } .batch-calc-today { grid-column: 1 / -1; } }
/* Kommissionierung: wer ist gerade wo */
.pick-bar a .pick-who { display: block; font-style: normal; font-size: .75em; font-weight: 600; color: #fff; background: #d6337a; border-radius: 6px; padding: 1px 6px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-bar.hide-done a.is-done.has-picker:not(.is-here) { display: block; }
.pick-bar a.is-here .pick-who { background: #fff; color: #d6337a; }
.order-line-code { width: 100%; min-width: 0; text-transform: uppercase; }
.order-line-code.is-unknown { border-color: #b3261e; }
.order-line { grid-template-columns: 64px 5.5em minmax(0, 1fr) auto; }
@media (max-width: 760px) { .order-line { grid-template-columns: 52px 6em minmax(0, 1fr); } .order-line .badge { grid-column: 3; } }
/* Cockpit: Nachrichten von der Homepage, gut sichtbar ganz oben */
.hm-banner { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: end; margin: 40px 0 18px; padding: 14px 16px 14px 8px; border-radius: 18px; background: linear-gradient(135deg, #e0438a, #b81f62); color: #fff; box-shadow: 0 12px 30px rgba(184, 31, 98, .3); animation: hm-in .5s ease-out; }
@keyframes hm-in { from { transform: translateY(-8px); opacity: 0; } }
.hm-cow { width: 120px; align-self: end; margin: -40px 0 -14px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.hm-banner h2 { margin: 0 0 8px; font-size: 1.15em; color: #fff; }
.hm-banner h2 a { color: #fff; font-size: .75em; font-weight: 500; margin-left: 8px; }
.hm-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 10px; margin-top: 6px; }
.hm-item small { display: block; opacity: .85; }
.hm-icon { font-size: 1.6em; line-height: 1; }
.hm-seen { background: #fff; color: #b81f62; border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
@media (max-width: 600px) { .hm-banner { grid-template-columns: 80px minmax(0, 1fr); } .hm-cow { width: 80px; } .hm-item { grid-template-columns: 26px minmax(0, 1fr); } .hm-item form { grid-column: 2; } }
.hm-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hm-row.is-new { border-left: 4px solid #d6337a; }
.hm-reply { text-decoration: none; display: inline-block; margin-right: 4px; }
.hm-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wa-reply { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.wa-reply img { width: 260px; height: 260px; image-rendering: pixelated; border-radius: 12px; background: #fff; }
@media (max-width: 600px) { .wa-reply { grid-template-columns: 1fr; } }
.hm-item.is-seen { background: rgba(255,255,255,.07); opacity: .75; }
.hm-done { font-size: .85em; font-weight: 600; opacity: .9; white-space: nowrap; }
.hm-hide { background: rgba(255,255,255,.25); color: #fff; }
.hm-row.is-hidden { opacity: .55; }
/* Warenkorb in der Bestellmaske am Handy: kompakte Karte je Position statt einer langen Liste.
   Zeile 1: Pos., Bezeichnung, Entfernen. Zeile 2: Menge, E-Preis, USt, G-Preis nebeneinander. */
@media (max-width: 760px) {
  .cart-table.is-stacked tr { display: grid; grid-template-columns: 1.6em repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr) 1.8em; gap: 4px 6px; align-items: end; padding: 8px 4px; }
  .cart-table.is-stacked td { padding: 0; min-width: 0; }
  .cart-table.is-stacked td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: start; color: var(--muted); font-weight: 600; }
  .cart-table.is-stacked td:nth-child(2) { display: none; }
  .cart-table.is-stacked td:nth-child(3) { grid-column: 2 / 6; grid-row: 1; display: block; text-align: left; font-weight: 600; }
  .cart-table.is-stacked td:nth-child(3)::before { content: none; }
  .cart-table.is-stacked td:nth-child(8) { grid-column: 6; grid-row: 1; align-self: start; justify-content: flex-end; }
  .cart-table.is-stacked td:nth-child(8)::before { content: none; }
  .cart-table.is-stacked td:nth-child(n+4):nth-child(-n+7) { grid-row: 2; display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: right; }
  .cart-table.is-stacked td:nth-child(4) { grid-column: 2; }
  .cart-table.is-stacked td:nth-child(5) { grid-column: 3; }
  .cart-table.is-stacked td:nth-child(6) { grid-column: 4; }
  .cart-table.is-stacked td:nth-child(7) { grid-column: 5 / 7; font-weight: 600; }
  .cart-table.is-stacked td[data-label]::before { max-width: none; font-size: 11px; text-align: right; }
  .cart-table.is-stacked td.is-blank { display: block; }
  .cart-table.is-stacked .cell { width: 100%; margin: 0; }
  .line-more { display: block; margin: 2px 0 0; }
  .line-more .line-note { width: 100%; max-width: 100%; box-sizing: border-box; }
  .line-more .line-vat { width: 6em; margin-left: 0; }
}
/* Filter-Auswahl (Team, Mitarbeiter) am Handy: Auswahlfenster über die ganze Breite der Leiste, nie über den Rand hinaus. */
@media (max-width: 760px) {
  .sel-left { position: relative; }
  .sel-left .sel-multi { position: static; }
  .sel-left .sel-pop { left: 0; right: 0; width: auto; max-width: none; }
}
/* Ansicht als Mitarbeiter */
.preview-bar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 8px 14px; background: #2B1621; color: #fff; font-size: 14px; }
.preview-bar b { color: #ffb3d4; }
.preview-start { margin-bottom: 16px; }
.preview-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-pick select { flex: 1 1 220px; min-width: 0; }
.print-state { font-size: .9em; font-weight: 600; margin-left: 6px; }
.print-state.is-wait { color: var(--muted, #777); }
.print-state.is-ok { color: #2e7d32; }
.print-state.is-bad { color: #b3261e; }
.hm-seen-list { font-size: 11.5px; line-height: 1.35; color: var(--muted, #777); text-align: right; max-width: 260px; }
.hm-who { display: block; font-size: 11px; opacity: .8; margin-top: 2px; }

/* Zahlenfeld mit Minus-Knopf davor (Fahrer: Tiefkühltemperatur) */
.sign-field { display: flex; gap: 6px; }
.sign-field button { flex: 0 0 auto; min-width: 48px; font-size: 1.2em; }
.sign-field input { flex: 1 1 auto; min-width: 0; }
.stop-pin.is-depot { background: #fff; color: #E6007E; border: 2px solid #E6007E; width: 30px; height: 30px; font-size: 18px; }
.driver-crates { font-size: 1.05em; margin: 0 0 4px; }
.deliver-row.is-changed td { background: #fff4d6; }
.driver-load { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.load-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2, #f4f4f4); font-weight: 700; }
.load-chip img { width: 28px; height: 28px; }
.load-chip.is-frozen { background: #e3f0ff; }
.load-chip.is-cool { background: #e6f7ee; }
.crate-out-pic { width: 22px; height: 22px; vertical-align: middle; }
.shop-new .konto-password { display: none; }
.shop-new form:has(input[name=konto]:checked) .konto-password { display: block; }
.crate-out-list { display: grid; gap: 8px; margin-bottom: 12px; }
.crate-out-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 12px; }
.crate-out-item input.cell { width: 4em; text-align: center; }
.crate-out-item .crate-out-name { flex: 1; font-weight: 600; }
.crate-out-pic { width: 32px; height: 32px; }
.crate-out-item .crate-slot { width: 56px; height: 44px; justify-content: center; }
.crate-out-item .cool-pic { width: 52px; height: 40px; }
.crate-out-item .crate-box { width: 52px; }
.stop-pos { width: 3.6em; text-align: center; }
