/* toFace Sign – Ergänzungen zum Basis-Design (style.css) */

/* Kopfzeile: Kunden-Logo bzw. toFace-Sign-Zeichen */
.brand-logo-box { height: 44px; max-width: 120px; background: #fff; border-radius: 8px; padding: 4px 6px; display: flex; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); flex: none; }
.brand-logo-box img { max-height: 36px; max-width: 108px; object-fit: contain; display: block; }
.brand-sign { display: flex; }
.sign-mark { display: block; flex: none; }
@media (max-width: 520px) { .brand-logo-box { height: 38px; max-width: 90px; } .brand-logo-box img { max-height: 30px; max-width: 78px; } }

/* Anmeldeseiten */
body.bare { background: linear-gradient(135deg, #0e4174 0%, #0a2f55 60%, #12305a 100%); }
.auth-brand-sign { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.auth-brand-sign b { display: block; font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 24px; color: var(--navy); line-height: 1.1; }
.auth-brand-sign small { color: var(--muted); font-size: 12px; }

/* Super-Admin sieht ein Kundenkonto an */
.impersonate-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff7e0; border: 1px solid #f2d48a; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.kpi b { display: block; font-size: 28px; font-family: 'Questrial', sans-serif; font-weight: 400; color: var(--navy); line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover { box-shadow: 0 0 0 2px var(--green), var(--shadow); }

/* Farbwahl & Branding-Vorschau */
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 54px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; flex: none; }
.color-row input[type=text] { flex: 1; font-family: monospace; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.brand-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.brand-preview .bp-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; }
.brand-preview .bp-top img { max-height: 34px; max-width: 100px; background: #fff; border-radius: 6px; padding: 3px 5px; }
.brand-preview .bp-top b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 16px; display: block; }
.brand-preview .bp-top small { font-size: 11px; }
.brand-preview .bp-body { padding: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.brand-preview .bp-btn { color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.brand-preview .bp-tv { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; }
.brand-preview .bp-tv b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 22px; }
.brand-preview .bp-tv span { align-self: flex-start; border-radius: 6px; padding: 3px 10px; font-weight: 800; font-size: 14px; margin-top: 6px; }
.logo-current { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo-current img { max-height: 60px; max-width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }

/* Setup-Assistent */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; counter-reset: step; }
.wizard-steps li { list-style: none; flex: 1 1 140px; padding: 10px 12px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; color: var(--muted); counter-increment: step; }
.wizard-steps li::before { content: counter(step); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--line); color: var(--text); font-weight: 800; font-size: 12px; margin-right: 8px; }
.wizard-steps li.done::before { content: '✓'; background: var(--green); color: #fff; }
.wizard-steps li.current { color: var(--navy); font-weight: 700; box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.wizard-steps { padding: 0; }

/* Paket-Übersicht */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 2px solid transparent; }
.plan-card.current { border-color: var(--green); }
.plan-card h3 { margin-bottom: 4px; }
.plan-card .price { font-size: 22px; font-weight: 800; color: var(--navy); }
.plan-card .price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan-card ul { padding-left: 18px; margin: 10px 0 0; font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }

/* Filial-Vergleich */
.compare-table td.best { background: var(--green-soft); font-weight: 800; }
.kpi small, .compare-table small { font-size: 12px; font-weight: 700; margin-left: 4px; }
small.up { color: #3f7d0a; }
small.down { color: var(--red); }

/* Paket & Konto */
.plan-pick { cursor: pointer; position: relative; display: block; }
.plan-pick input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; accent-color: var(--green); }
.plan-pick.chosen { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft), var(--shadow); }
.total-box { display: flex; flex-direction: column; justify-content: center; background: var(--green-soft); border-radius: 12px; padding: 12px 16px; }
.total-box b { font-size: 28px; color: var(--navy); font-family: 'Questrial', sans-serif; font-weight: 400; }
.health-list li { padding: 8px 0; border-bottom: 1px solid var(--line); list-style: none; }
.health-list { padding: 0; margin: 0; }
.sev-3 { color: var(--red); font-weight: 800; }
.sev-2 { color: #a86400; font-weight: 700; }

/* Phase 7: Stick-Bestellung, Jahreszahlung, Partner, KI-Import, Social Media */
.auth-partner-logo { height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.hw-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--green-soft, #f6faea), #fff); }
.hw-art { font-size: 64px; text-align: center; line-height: 1; }
.hw-art span { display: block; font-size: 36px; }
@media (max-width: 700px) { .hw-hero { grid-template-columns: 1fr; } .hw-art { display: none; } }
.hw-list { list-style: none; padding: 0; }
.hw-list li { display: block; padding: 4px 0 4px 24px; position: relative; }
.hw-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.hw-order { padding: 10px 0; border-bottom: 1px solid var(--line, #e4e8ee); }
.hw-order:last-child { border-bottom: 0; }
.interval-pick { margin-top: 12px; }
.interval-pick span { display: flex; flex-direction: column; text-align: left; }
.interval-pick small { color: var(--muted, #6b7785); font-weight: 400; }
.ai-drop { border: 2px dashed var(--line, #d5dbe3); border-radius: 12px; padding: 22px; text-align: center; background: #fafbfc; }
.ai-drop input[type=file] { margin: 10px auto 0; }
.ai-cat { border: 1px solid var(--line, #e4e8ee); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.ai-cat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.ai-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.ai-items td, .ai-items th { padding: 5px 4px; border-top: 1px solid #eef1f5; vertical-align: top; text-align: left; }
.ai-items input[type=text] { width: 100%; padding: 5px 7px; font-size: 14px; }
.ai-items .num { width: 54px; }
.ai-items .pr { width: 80px; }
.ai-items .al { width: 92px; }
.ai-sugg { color: #b26a00; font-size: 12px; }
.social-ch { display: flex; align-items: center; gap: 8px; }
.social-ch img { width: 26px; height: 26px; border-radius: 50%; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.season-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.season-card.due { box-shadow: 0 0 0 2px var(--green), 0 4px 16px rgba(16,40,70,.08); }
.season-card h3 { margin: 6px 0 0; }
.season-card .btn { align-self: flex-start; margin-top: auto; }
.season-art { border-radius: 10px; border-bottom: 5px solid; padding: 16px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.season-art b { font-family: 'Questrial', sans-serif; font-size: 20px; line-height: 1.15; }
.season-art small { opacity: .85; font-size: 12.5px; }
.season-emoji { font-size: 30px; line-height: 1; }
.tp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tp-cat { border: 1px solid var(--line, #e4e8ee); border-radius: 10px; padding: 10px 12px; }
.tp-item { margin-left: 22px; font-size: 14px; }
.fx-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fx-opt { cursor: pointer; }
.fx-opt input { position: absolute; opacity: 0; }
.fx-opt span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border: 2px solid var(--line, #e4e8ee); border-radius: 12px; text-align: center; background: #fff; }
.fx-opt b { font-size: 22px; line-height: 1.1; }
.fx-opt small { font-size: 11.5px; color: var(--muted, #6b7785); line-height: 1.2; }
.fx-opt input:checked + span { border-color: var(--green); background: var(--green-soft, #f6faea); box-shadow: 0 0 0 2px var(--green-soft, #f6faea); }
.fx-card h3 { margin: 14px 0 4px; font-size: 15px; }
/* Schnell ändern (Handy) */
.quick { max-width: 640px; }
.quick-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.quick-tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 14px; background: #fff; border: 2px solid var(--line, #e4e8ee); text-decoration: none; font-size: 26px; color: var(--text, #24303d); }
.quick-tabs a span { font-size: 14px; font-weight: 800; }
.quick-tabs a.on { border-color: var(--green); background: var(--green-soft, #f6faea); }
.quick-search { width: 100%; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #e4e8ee); margin-bottom: 8px; }
.quick-cat { margin: 18px 0 6px; font-size: 15px; color: var(--muted, #6b7785); text-transform: uppercase; letter-spacing: .04em; }
.quick-row { margin: 0 0 8px; }
.quick-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 16px; border-radius: 14px; border: 2px solid #cfe6a3; background: #f6faea; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-align: left; }
.quick-row.is-out .quick-toggle { border-color: #f1b4ae; background: #fdecec; }
.quick-row .q-state { font-size: 14px; white-space: nowrap; }
.quick-price { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line, #e4e8ee); border-radius: 14px; padding: 8px 8px 8px 14px; }
.quick-price .q-name { flex: 1; font-weight: 700; }
.quick-price input { width: 96px; font-size: 18px; padding: 10px; text-align: right; border-radius: 10px; border: 1px solid var(--line, #e4e8ee); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-chips .chip { font-size: 13px; }
.photo-lib summary { cursor: pointer; font-weight: 700; margin: 6px 0; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 360px; overflow: auto; }
.lib-opt { cursor: pointer; text-align: center; }
.lib-opt input { position: absolute; opacity: 0; }
.lib-opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 3px solid transparent; display: block; }
.lib-opt input:checked + img { border-color: var(--green); }
.lib-opt small { font-size: 11.5px; color: var(--muted, #6b7785); }
.lib-admin { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: none; margin-top: 14px; }
.lib-admin .card { margin: 0; }
.draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.draft-grid img { width: 100%; border-radius: 10px; border: 1px solid var(--line, #e4e8ee); display: block; }
.quick-start { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.quick-start .qs { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 2px solid var(--line, #e4e8ee); border-radius: 12px; text-decoration: none; color: var(--text, #24303d); background: #fff; }
.quick-start .qs:hover { border-color: var(--green); }
.quick-start .qs small { color: var(--muted, #6b7785); }
.quick-btn { margin-top: 12px; display: inline-block; }
/* Kachel-Bedienung (wie toFace School) */
.panels-on [data-panel]:not(.open) { display: none !important; }
.panel-menu h2 { margin-bottom: 10px; }
.panel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.panel-menu.cols-3 .panel-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-menu.cols-5 .panel-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .panel-menu.cols-5 .panel-tiles, .panel-menu.cols-3 .panel-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel-tile { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line, #e4e8ee); background: #fff; border-radius: 12px; padding: 10px 11px; font: inherit; color: var(--text, #24303d); text-align: left; cursor: pointer; line-height: 1.2; min-height: 54px; transition: border-color .15s, background .15s, transform .1s; }
.panel-tile:hover { border-color: var(--navy); transform: translateY(-1px); }
.panel-tile:active { transform: translateY(0); }
.pt-icon { font-size: 22px; flex: none; width: 28px; text-align: center; }
.pt-text { display: flex; flex-direction: column; min-width: 0; }
.pt-text b { font-size: 13.5px; }
.pt-text small { font-size: 11.5px; color: var(--muted, #6b7785); font-weight: 400; margin-top: 2px; }
.pt-text small:empty { display: none; }
.panel-tile.active { border-color: var(--navy); background: var(--navy-soft, #eef3fa); box-shadow: inset 0 0 0 1px var(--navy); }
.panel-tile.active b { color: var(--navy); }
.panel-wrap .card.open, .panel-wrap > .open { border-top: 3px solid var(--navy); }
.panel-wrap:empty { display: none; }
/* Playlist-Zeilen kompakt */
.pl-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pl-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 8px; }
.pl-title:hover, .pl-title:focus { border-color: var(--line, #e4e8ee); background: #fff; }
.pl-kind { flex: none; font-size: 12px; font-weight: 700; color: var(--muted, #6b7785); background: var(--bg, #f4f6f9); border-radius: 20px; padding: 3px 10px; }
.pl-item .num-input { width: 64px; }
.pl-item .pl-schedule summary { font-size: 13px; }
.pl-item .pl-delete { margin-left: auto; }
.pt-text b { overflow-wrap: anywhere; hyphens: auto; }
.panel-wrap .row-2 > *, .panel-wrap .row-3 > * { min-width: 0; }
.panel-wrap input[type=date], .panel-wrap input[type=time] { width: 100%; min-width: 0; box-sizing: border-box; }

/* ---------- Heute zu tun (aus dem Asado-Portal) ---------- */
.today { border-top: 3px solid var(--orange); }
.today.today-done { border-top-color: var(--green); }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.today-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); background: var(--bg); border-left: 4px solid var(--line); font-weight: 600; }
.today-list a:hover { background: var(--navy-soft); color: var(--navy); }
.today-list .tone-red a { border-left-color: var(--red); }
.today-list .tone-orange a { border-left-color: var(--orange); }
.today-list .tone-blue a { border-left-color: var(--blue); }
.today-list .tone-green a { border-left-color: var(--green); }
.td-ico { font-size: 20px; width: 26px; text-align: center; flex: none; }
.td-text { flex: 1; min-width: 0; }
.td-go { color: var(--muted); font-weight: 800; }
.today-empty { margin: 0; color: var(--green-dark); font-weight: 700; }

/* ---------- Systemzustand ---------- */
.kpi.kpi-ok { border-top: 3px solid var(--green); }
.kpi.kpi-warn { border-top: 3px solid var(--orange); }
.kpi small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cron-url { display: block; word-break: break-all; padding: 10px 12px; font-size: 13px; }
.errlog { background: #1d2733; color: #e6edf3; padding: 12px 14px; border-radius: 8px; font-size: 12px; line-height: 1.5; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }

/* ---------- Rechte im toFace-Team ---------- */
.perms { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; }
.perms legend { font-weight: 800; color: var(--navy); padding: 0 6px; }
.perm-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.perm-opt { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 400; color: var(--text); }
.perm-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.perm-opt span { display: flex; flex-direction: column; gap: 2px; }
.perm-opt b { color: var(--navy); }
.perm-opt small { color: var(--muted); }
.perm-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.perms.is-owner .perm-grid, .perms.is-owner .perm-presets { opacity: .45; pointer-events: none; }

/* ---------- Einführungstour & Seitenhilfe ---------- */
.tour-back { position: fixed; inset: 0; z-index: 140; }
.tour-ring { position: fixed; z-index: 141; border-radius: 12px; box-shadow: 0 0 0 4px var(--green), 0 0 0 9999px rgba(10, 25, 45, .62); pointer-events: none; transition: all .25s ease; }
.tour-box { position: fixed; z-index: 142; width: min(340px, calc(100vw - 24px)); background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: top .25s ease, left .25s ease; }
.tour-box h3 { margin: 4px 0 6px; font-size: 18px; color: var(--navy); }
.tour-box p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
.tour-count { font-size: 12px; font-weight: 800; color: var(--muted); }
.tour-box [hidden] { display: none !important; }
.tour-center .tour-back { background: rgba(10, 25, 45, .62); }
.tour-btns { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.page-head h1 .help { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-box { transition: none; } }

/* ---------- Gutscheine ---------- */
.quick-tabs.four { grid-template-columns: repeat(4, 1fr); }
.coupon-code-input { font: 900 30px/1 'Courier New', monospace !important; letter-spacing: 5px; text-align: center; text-transform: uppercase; }
.btn[hidden] { display: none !important; }

/* ---------- Paket „Kantine“ ---------- */
.cn-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.cn-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; border-radius: 18px; text-decoration: none; color: #fff; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; min-height: 140px; }
.cn-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.cn-tile span { font-size: 38px; line-height: 1; }
.cn-tile b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 23px; margin-top: auto; }
.cn-tile small { opacity: .9; font-size: 13px; }
.cn-tile.t1 { background: linear-gradient(135deg, #4f9d2d, #93c01f); }
.cn-tile.t2 { background: linear-gradient(135deg, #d9631e, #f0a23b); }
.cn-tile.t3 { background: linear-gradient(135deg, #2a6fb5, #4fa3e0); }
.cn-tile.t4 { background: linear-gradient(135deg, #3b3f73, #6f63b8); }
.cn-today-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cn-today-list li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--bg); }
.cn-today-list .ln { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cn-preview-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #111; }
.cn-preview-frame iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }

.cn-weekbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.cn-week-title { display: flex; flex-direction: column; align-items: center; min-width: 150px; }
.cn-week-title b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 22px; color: var(--navy); }
.cn-week-title span { font-size: 13px; color: var(--muted); }
.cn-copy { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.cn-copy select { width: auto; }
.cn-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 14px 0; }
.cn-day { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin: 0; border-top: 4px solid var(--line); min-width: 0; }
.cn-day.is-today { border-top-color: var(--green); box-shadow: 0 8px 26px rgba(0,0,0,.10); }
.cn-day.is-closed { background: #f4f5f7; }
.cn-day.is-closed .cn-slots { opacity: .45; }
.cn-day header { display: flex; justify-content: space-between; align-items: baseline; }
.cn-day header b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 19px; color: var(--navy); }
.cn-day header span { font-size: 13px; color: var(--muted); font-weight: 700; }
.cn-day .badge { align-self: flex-start; }
.cn-closed { font-size: 13px; }
.cn-slots { display: flex; flex-direction: column; gap: 8px; }
.cn-slot { display: flex; flex-direction: column; gap: 3px; font-weight: 400; }
.cn-slot > span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cn-slot input { font-size: 15px; padding: 9px 10px; }
.cn-slot small { font-size: 12px; color: var(--muted); }
.cn-note { font-size: 13px !important; padding: 7px 10px !important; background: var(--bg); }
.cn-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.cn-clear { margin-top: 10px; text-align: right; }

.cn-dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.cn-dish-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s ease; }
.cn-dish-card:hover { transform: translateY(-2px); }
.cn-dish-card.muted { opacity: .55; }
.cn-dish-card .ph { height: 120px; background: var(--bg) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.cn-dish-card .tx { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.cn-dish-card .tx small { color: var(--muted); font-size: 12.5px; }
.cn-dish-card.add { border: 2px dashed var(--line); box-shadow: none; }
.cn-dish-card.add .ph { color: var(--green); }
.cn-flags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.cn-flags i { font-style: normal; font-size: 13px; }
.cn-flags i.miss { opacity: .3; filter: grayscale(1); }
.cn-flags .alg-mini { font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.cn-lab { font-style: normal; }
.cn-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cn-chips legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.cn-chips label { display: inline-flex; cursor: pointer; font-weight: 400; }
.cn-chips input { position: absolute; opacity: 0; pointer-events: none; }
.cn-chips span { padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; }
.cn-chips input:checked + span { border-color: var(--green); background: var(--green-soft); font-weight: 800; }
.cn-chips input:focus-visible + span { outline: 2px solid var(--navy); }
.cn-chips input:disabled + span { opacity: .7; }
.cn-tr { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; }
.cn-tr .flag { font-size: 26px; line-height: 1.2; }
.cn-tr > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cn-alg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; margin: 6px 0 10px; }
.cn-alg-grid label { font-weight: 400; font-size: 14px; }
.cn-dish-form .preview { max-width: 100%; max-height: 180px; border-radius: 12px; display: block; margin-bottom: 6px; }

.cn-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.cn-tpl { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--text); text-align: center; transition: border-color .15s, transform .15s; }
.cn-tpl:hover { border-color: var(--green); transform: translateY(-2px); }
.cn-tpl span { font-size: 32px; }
.cn-tpl b { font-size: 14px; }

.cn-themes { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.cn-themes legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.cn-themes label { display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; font-weight: 400; font-size: 13px; }
.cn-themes input { position: absolute; opacity: 0; }
.cn-theme-prev { display: flex; gap: 4px; padding: 10px; border-radius: 12px; border: 2px solid var(--line); width: 128px; height: 66px; }
.cn-theme-prev i { flex: 1; border-radius: 6px; border: 1px solid; }
.cn-themes input:checked + .cn-theme-prev { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.cn-themes small { flex-basis: 100%; }
.cn-qr-row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cn-qr-row .qr-box { width: 110px; height: 110px; flex: none; }
.cn-lines input { min-width: 90px; }
.cn-icon-input { width: 56px !important; min-width: 0 !important; text-align: center; font-size: 18px; }
@media (max-width: 860px) {
  .cn-tiles { grid-template-columns: repeat(2, 1fr); }
  .cn-copy { margin-left: 0; }
}

/* ---------- Kantine fürs Handy ---------- */
.cn-tabbar { display: none; }
.cn-daytabs { display: none; }
.cn-slot-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cn-slot-info img { width: 44px; height: 33px; object-fit: cover; border-radius: 6px; flex: none; }
.cn-addphoto { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--orange, #d9631e); text-decoration: none; border: 1.5px dashed currentColor; border-radius: 8px; padding: 3px 8px; }
.cn-photo-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cn-photo-big { width: 220px; height: 165px; border-radius: 14px; background: var(--bg) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 54px; border: 1px solid var(--line); flex: none; }
.cn-photo-actions { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.cn-photo-btn { cursor: pointer; align-self: flex-start; }
.cn-photo-btn.is-loading, .cn-cam.is-loading { opacity: .7; pointer-events: none; }
.cn-dish-card .ph { position: relative; margin: 0; }
.cn-dish-card .ph .ico { font-size: 42px; }
.cn-cam { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.95); border-radius: 99px; padding: 6px 10px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); color: var(--text); }
.cn-cam.empty { background: var(--orange, #d9631e); color: #fff; }
.cn-dish-card > .tx { text-decoration: none; color: var(--text); }

@media (max-width: 860px) {
  body.has-tabbar .content { padding-bottom: 96px; }
  .cn-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .cn-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 800; padding: 4px 0; border-radius: 12px; }
  .cn-tabbar a span { font-size: 22px; line-height: 1.1; }
  .cn-tabbar a.on { color: var(--navy); background: var(--navy-soft); }
  body.has-tabbar .wa-help { display: none; }
  /* Speiseplan: Reiter statt 5 Spalten */
  .cn-daytabs { display: flex; gap: 6px; position: sticky; top: calc(var(--top) + 6px); z-index: 6; background: var(--bg); padding: 6px 0 8px; margin: 10px 0 0; }
  .cn-daytabs button { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; color: var(--text); position: relative; }
  .cn-daytabs button b { font-size: 16px; }
  .cn-daytabs button small { font-size: 12px; color: var(--muted); font-weight: 700; }
  .cn-daytabs button i { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 11px; font-weight: 900; background: var(--green); color: #fff; border-radius: 99px; min-width: 18px; padding: 1px 5px; }
  .cn-daytabs button i:empty { display: none; }
  .cn-daytabs button.is-today { border-color: var(--green); }
  .cn-daytabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
  .cn-daytabs button.on small { color: rgba(255,255,255,.8); }
  .cn-days { grid-template-columns: 1fr; margin-top: 4px; }
  .cn-days.tabbed .cn-day:not(.on) { display: none; }
  .cn-day { padding: 16px; }
  .cn-slot input, .cn-note, .cn-dish-form input, .cn-dish-form select, .cn-weekbar select { font-size: 16px !important; }
  .cn-slot input { padding: 12px; border-radius: 12px; }
  .cn-savebar { bottom: 70px; padding: 10px 12px; }
  .cn-savebar .btn { flex: 1; justify-content: center; }
  .cn-savebar .meta { display: none; }
  .cn-weekbar { padding: 10px; gap: 8px; }
  .cn-copy { flex: 1 1 100%; }
  .cn-copy select { flex: 1; }
  .page-head .btn-row { width: 100%; }
  .cn-dish-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cn-dish-card .ph { height: 104px; }
  .cn-dish-card .tx { padding: 8px 10px 10px; }
  .cn-photo-big { width: 100%; height: 200px; }
  .cn-photo-btn { width: 100%; justify-content: center; }
  .cn-chips span { padding: 9px 13px; font-size: 15px; }
  .cn-alg-grid { grid-template-columns: 1fr 1fr; }
  .cn-tiles .cn-tile { min-height: 118px; padding: 16px 14px; }
  .cn-tile b { font-size: 20px; }
  .cn-tpl-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Kantine: „Heute aus“ */
.cn-out-btn { align-self: flex-start; border: 1.5px solid #d64545; color: #d64545; background: #fff; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.cn-out-btn.is-out { background: #d64545; color: #fff; }
.cn-today-list li { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; }
.cn-today-list li > div { display: flex; flex-direction: column; min-width: 0; }
.cn-today-list li.is-out b { text-decoration: line-through; opacity: .55; }
.cn-today-list form { flex: none; }
@media (max-width: 860px) { .cn-out-btn { padding: 9px 14px; font-size: 14px; } }

.cn-lib h2 small { font-size: 13px; font-weight: 400; }
.cn-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.cn-lib-opt { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; text-align: center; }
.cn-lib-opt:hover, .cn-lib-opt:focus-visible { border-color: var(--green); }
.cn-lib-opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.cn-lib-opt small { font-size: 12.5px; font-weight: 700; color: var(--text); }
@media (max-width: 860px) { .cn-lib-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* Kantine: Gericht des Tages im Speiseplan */
.cn-slot > span { display: flex; justify-content: space-between; align-items: center; }
.cn-star { display: inline-flex; cursor: pointer; margin: 0; }
.cn-star input { position: absolute; opacity: 0; pointer-events: none; }
.cn-star i { font-style: normal; font-size: 18px; filter: grayscale(1); opacity: .35; transition: transform .15s; }
.cn-star input:checked + i { filter: none; opacity: 1; transform: scale(1.25); }
.cn-star input:focus-visible + i { outline: 2px solid var(--navy); border-radius: 4px; }
.cn-star-none { font-size: 12.5px; color: var(--muted); font-weight: 400; display: flex; gap: 6px; align-items: center; }
@media (max-width: 860px) { .cn-star i { font-size: 24px; } }

/* Kantine: Wochenplan als Bild */
.cn-share-opts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 14px; }
.seg-mini { display: inline-flex; background: var(--bg); border-radius: 99px; padding: 3px; gap: 2px; }
.seg-mini a { text-decoration: none; color: var(--text); font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 99px; }
.seg-mini a.on { background: var(--navy); color: #fff; }
.cn-share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.cn-share-box { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px; text-align: center; }
.cn-share-box canvas { width: 100%; max-width: 520px; height: auto; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
@media (max-width: 860px) { .cn-share-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* Super-Admin: Demo-Kantine */
.cn-demo { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; border-top: 4px solid var(--green); }
.cn-demo > div:first-child { flex: 1 1 380px; }
.cn-demo-qr { display: flex; gap: 12px; align-items: center; }
.cn-demo-qr .qr-box { width: 110px; height: 110px; }

/* Kantine: Mitteilungen im TV-Inhalt sichtbar */
.cn-auto-notes { margin: 14px 0 6px; padding: 12px 14px; border: 2px dashed var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.cn-note-row { display: flex; align-items: center; gap: 12px; }
.cn-note-row .pl-thumb { width: 120px; height: 68px; flex: none; }
.cn-note-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cn-auto-notes > .btn { align-self: flex-start; }
.cn-notice-how p { margin: 0 0 10px; }

/* Kantine: Schnell-Aktionen, App-Hinweis, Foto-Runde, Handbuch */
.cn-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.cn-quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; background: #fff; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 800; font-size: 13px; text-align: center; box-shadow: var(--shadow); }
.cn-quick a span { font-size: 24px; }
.cn-quick a:hover { border-color: var(--green); }
.cn-pwa { display: none; align-items: center; gap: 12px; padding: 12px 14px; }
.cn-pwa > span { font-size: 28px; }
.cn-pwa > div { flex: 1; display: flex; flex-direction: column; }
.cn-pwa small { color: var(--muted); font-size: 12.5px; }
.cn-copyday { align-self: flex-start; }
.cn-round { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 18px; }
.cn-round-ico { font-size: 64px; }
.cn-round h2 { margin: 0; font-size: 24px; }
.cn-round form { width: 100%; max-width: 420px; }
.cn-round-btn { width: 100%; justify-content: center; font-size: 19px !important; padding: 16px !important; }
.cn-round .cn-lib-grid { width: 100%; max-width: 420px; grid-template-columns: repeat(3, 1fr); }
.cn-round .cn-lib-grid form { margin: 0; }
.cn-round .cn-lib-opt { width: 100%; }
.cn-round-done { text-align: center; padding: 30px; }
.cn-round-done span { font-size: 60px; }
.hb-search { margin-bottom: 10px; }
.hb-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hb-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; font-size: 13.5px; }
.hb-toc a span { font-size: 16px; }
.hb-sec { padding: 0; overflow: hidden; margin-bottom: 10px; }
.hb-sec > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-size: 17px; }
.hb-sec > summary::-webkit-details-marker { display: none; }
.hb-sec > summary b { flex: 1; color: var(--navy); }
.hb-ico { font-size: 26px; }
.hb-sec > summary .chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.hb-sec[open] > summary .chev { transform: rotate(225deg); }
.hb-body { padding: 0 18px 18px; font-size: 15.5px; line-height: 1.55; }
.hb-body h4 { margin: 14px 0 4px; color: var(--navy); }
.hb-steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.hb-steps li { counter-increment: s; position: relative; padding: 10px 12px 10px 48px; background: var(--bg); border-radius: 12px; }
.hb-steps li::before { content: counter(s); position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.hb-tip { background: #fff8e6; border-left: 4px solid #f5b301; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.hb-go { margin-top: 6px; }
.hb-list { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.hb-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.hb-flow span { background: var(--bg); border-radius: 12px; padding: 8px 12px; text-align: center; font-weight: 800; font-size: 14px; }
.hb-flow small { font-weight: 400; color: var(--muted); }
.hb-flow i { font-style: normal; font-size: 22px; color: var(--muted); }
.hb-q { border-bottom: 1px solid var(--line); padding: 10px 0; }
.hb-q summary { cursor: pointer; font-weight: 800; }
.hb-q p { margin: 8px 0 0; }
.hb-contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-contact-links span { background: var(--bg); padding: 8px 14px; border-radius: 99px; font-weight: 800; }
@media (max-width: 860px) {
  .cn-quick { grid-template-columns: repeat(3, 1fr); }
  .cn-pwa { display: flex; }
  .cn-pwa[hidden] { display: none; }
  .hb-toc { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .hb-toc a { flex: none; }
}

/* Hinweis zur Bildgröße unter jedem Upload-Feld */
.img-hint { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.4; }

/* Partner-Showroom */
.showroom-pick { display: flex; flex-direction: column; gap: 8px; }
.showroom-pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.showroom-pick-row select { flex: 1 1 220px; max-width: 420px; }
.showroom-grid > * { min-width: 0; }
.showroom-grid .btn { white-space: normal; }
.showroom-tabs { margin-bottom: 12px; }
.showroom-live { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.showroom-live.portrait { aspect-ratio: 9 / 16; max-width: 300px; margin-left: auto; margin-right: auto; }
.showroom-live iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.showroom-live.portrait iframe { width: 1080px; height: 1920px; }
.showroom-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.showroom-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #e4e8ee); border-radius: 12px; background: #fff; }
.showroom-item.muted { opacity: .55; }
.showroom-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--bg, #f3f5f8); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.showroom-name { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.showroom-secs { display: flex; gap: 4px; align-items: center; }
.showroom-secs input { width: 64px; }
.showroom-acts { display: flex; gap: 4px; flex-wrap: wrap; }

/* Übersicht Kunde: Schnellknöpfe, Fernseher, Kennzahlen */
.home-tiles .cn-tile { min-height: 120px; }
.home-screens { display: flex; flex-direction: column; gap: 8px; }
.home-screen { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.home-screen > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-screen small { color: var(--muted); }
.home-screen .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #c5ccd4; }
.home-screen .dot.on { background: #3fae3f; box-shadow: 0 0 0 4px rgba(63,174,63,.18); }
.home-screen .dot.off { background: #d9534f; }
.home-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-facts > * { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: var(--bg, #f4f6f9); text-decoration: none; color: inherit; }
.home-facts span { font-size: 12px; color: var(--muted); }
.home-facts b { font-size: 20px; }
.progress i { position: absolute; top: 0; left: 0; bottom: 0; background: linear-gradient(90deg, var(--green), var(--green-dark)); }
@media (max-width: 760px) { .home-tiles { grid-template-columns: 1fr 1fr; } .home-screen { flex-wrap: wrap; } }

/* Suche oben (toFace-Team, Partner) */
.top-search { flex: 1; max-width: 360px; margin: 0 18px; }
.top-search input { width: 100%; border-radius: 99px; border: 0; padding: 9px 16px; background: rgba(255,255,255,.14); color: #fff; font: inherit; }
.top-search input::placeholder { color: rgba(255,255,255,.7); }
.top-search input:focus { outline: 0; background: #fff; color: #13233a; }
@media (max-width: 760px) { .top-search { display: none; } }

/* Kunden-Gesundheit kompakt, Schnellzugriff toFace */
.sa-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sa-quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: inherit; position: relative; }
.sa-quick a:hover { transform: translateY(-2px); }
.sa-quick span { font-size: 26px; }
.sa-quick b { display: block; font-size: 15px; }
.sa-quick small { color: var(--muted); font-size: 12px; }
.sa-quick em { position: absolute; top: 8px; right: 10px; font-style: normal; background: #d9534f; color: #fff; border-radius: 99px; font-size: 12px; font-weight: 800; padding: 2px 8px; }
.health-table td { vertical-align: top; }
.sev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.sev-dot.s3 { background: #d9534f; } .sev-dot.s2 { background: #f0a23b; } .sev-dot.s1 { background: #4fa3e0; }
.ind-bars { display: flex; flex-direction: column; gap: 8px; }
.ind-bars div { display: grid; grid-template-columns: 150px 1fr 34px; gap: 10px; align-items: center; font-size: 14px; }
.ind-bars i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--green-dark)); }
.showroom-teaser { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; border-left: 4px solid var(--green); }
.showroom-teaser:hover { transform: translateY(-2px); }

/* Zonen: Skizzen, Layout-Auswahl, Zonen-Karten */
.zone-sketch { display: inline-grid; width: 64px; aspect-ratio: 16 / 9; gap: 2px; padding: 2px; background: #1d2733; border-radius: 4px; vertical-align: middle; flex: none; }
.zone-sketch.portrait { width: 30px; aspect-ratio: 9 / 16; }
.zone-sketch i { background: #5b6b7d; border-radius: 2px; }
.zone-sketch i.z-main { background: #4fa3e0; } .zone-sketch i.z-side, .zone-sketch i.z-side2 { background: #93c01f; } .zone-sketch i.z-bottom { background: #f0a23b; }
.zone-sketch i.on { outline: 2px solid #fff; box-shadow: 0 0 0 3px #e34b4b; }
.zone-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.zone-pick label { cursor: pointer; }
.zone-pick input { position: absolute; opacity: 0; }
.zone-pick label > span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 2px solid var(--line); border-radius: 12px; text-align: center; }
.zone-pick .zone-sketch { width: 84px; } .zone-pick .zone-sketch.portrait { width: 40px; }
.zone-pick small { font-size: 12px; line-height: 1.25; }
.zone-pick input:checked + span { border-color: var(--green); background: rgba(147,192,31,.1); }
.zone-card > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.zone-card > summary::-webkit-details-marker { display: none; }
.zone-card > summary b { font-size: 18px; }
.zone-card > summary .meta { margin-left: auto; }
.zone-card[open] > summary { margin-bottom: 12px; }
.zone-type { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.zone-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.zone-add .form { gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; min-width: 0; }
.zone-add .inline-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zone-add .num-input { width: 70px; }
.zone-add input[type=file] { max-width: 100%; }

/* Design-Editor: Übersicht der Designs/Vorlagen */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 26px; }
.design-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.design-card.tpl:hover { transform: translateY(-2px); }
.design-card.muted { opacity: .6; }
.design-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #eef2f6; border-radius: 10px; overflow: hidden; color: var(--muted); font-size: 13px; text-align: center; text-decoration: none; }
.design-thumb.portrait { aspect-ratio: 16 / 9; }
.design-thumb img { width: 100%; height: 100%; object-fit: contain; background: #1f2430; }
.design-meta { display: flex; flex-direction: column; }
.design-thumb > span { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* Abspiel-Nachweis */
.proof-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.proof-filter label { display: flex; flex-direction: column; font-size: 13px; gap: 4px; flex: 0 0 auto; }
.proof-filter select, .proof-filter input { height: 44px; min-height: 0; }
.proof-filter select { min-width: 220px; flex: none; }
/* Druckversion des Nachweises: weißes Blatt statt Anmelde-Hintergrund */
body.bare:has(.proof-print) { background: #fff; }
.auth-wrap:has(.proof-print) { max-width: 1000px; width: 100%; display: block; margin: 0 auto; padding: 30px 24px; min-height: 0; }
.proof-print { color: #111; }
.proof-print .card, .proof-print .kpi { box-shadow: none; border: 1px solid #d9dee5; }
.proof-print .kpis { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-days { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; overflow-x: auto; }
.proof-days > div { flex: 1 0 22px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.proof-days i { display: block; width: 100%; min-height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--green), var(--green-dark)); }
.proof-days small { font-size: 10px; color: var(--muted); }
.proof-grid { border-collapse: collapse; font-size: 11px; }
.proof-grid th, .proof-grid td { border: 1px solid var(--line); padding: 3px 4px; text-align: center; min-width: 24px; }
.proof-grid th { background: var(--bg, #f4f6f9); font-weight: 700; }
tr.proof-on td { background: rgba(147,192,31,.12); }
.proof-lock { border-left: 4px solid var(--orange, #f0a23b); }
.proof-print-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #111; margin-bottom: 18px; }
.proof-print-head img { max-height: 70px; max-width: 220px; }
.proof-sign { margin-top: 24px; font-size: 12px; color: #555; }
.proof-sigline { display: flex; gap: 60px; margin-top: 50px; }
.proof-sigline span { flex: 1; border-top: 1px solid #111; padding-top: 6px; font-size: 12px; }
@media print { .proof-days { height: 120px; } .kpis { break-inside: avoid; } }

/* Fernwartung */
.remote-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.remote-shot { display: block; position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.remote-shot img { width: 100%; display: block; }
.remote-shot small { position: absolute; right: 8px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: 11px; }
.remote-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.remote-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 6px 0; }
.remote-info dt { color: var(--muted); } .remote-info dd { margin: 0; }
.remote-sleep { border-top: 1px solid var(--line); padding-top: 12px; gap: 8px; }
.remote-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }

/* toFace sieht den Partner-Bereich („Als Partner ansehen“) – eigene Farbe, damit es nicht mit „Als Kunde ansehen“ verwechselt wird */
.impersonate-bar.partner-view-bar { background: #5b21b6; color: #fff; }

/* Apps: Auswahl */
.app-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.app-pick label { cursor: pointer; }
.app-pick input { position: absolute; opacity: 0; }
.app-pick span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 2px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; }
.app-pick i { font-style: normal; font-size: 22px; }
.app-pick input:checked + span { border-color: var(--green); background: rgba(147,192,31,.1); }
.zone-add .zone-app { grid-column: 1 / -1; } /* Apps bekommen die ganze Breite (13 Kacheln) */
.zone-app .app-pick { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.app-pick label, .app-pick span { min-width: 0; } .app-pick span { overflow-wrap: anywhere; hyphens: auto; }
[data-app-field][hidden] { display: none !important; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 16px; }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 600px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
/* Videowand */
.wall-live { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); background: #111; padding: 10px; border-radius: 14px; }
.wall-live .showroom-live { margin: 0; border-radius: 2px; }
.wall-live-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #8a9099; font-size: 13px; }
.wall-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wall-item { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 10px 12px; }
.wall-item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wall-item-head > div { flex: 1; min-width: 160px; }
.wall-item-kind { font-size: 26px; }
.wall-anim-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wall-anim-pick input { position: absolute; opacity: 0; }
.wall-anim-pick span { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 10px; border: 2px solid var(--line, #e5e7eb); border-radius: 12px; cursor: pointer; }
.wall-anim-pick i { font-style: normal; font-size: 24px; } .wall-anim-pick small { color: var(--muted, #6b7280); font-size: 12px; line-height: 1.35; }
.wall-anim-pick input:checked + span { border-color: var(--green); background: rgba(147,192,31,.1); }
.wall-split { display: grid; gap: 8px; }
.wall-split label { border: 1px dashed var(--line, #d1d5db); border-radius: 10px; padding: 8px; }
.wall-split input[type=file] { width: 100%; font-size: 12px; }
@media (max-width: 600px) { .wall-anim-pick { grid-template-columns: 1fr; } .wall-live { padding: 6px; } }
/* Notfall-Meldung */
.emergency-bar { display: block; background: #c62828; color: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; text-decoration: none; animation: emPulse 1.6s ease-in-out infinite; }
.emergency-bar u { white-space: nowrap; }
.emergency-live { border: 3px solid var(--em); background: color-mix(in srgb, var(--em) 7%, #fff); }
.emergency-live h2 { font-size: 26px; margin: 8px 0; color: var(--em); }
.emergency-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--em); animation: emPulse 1.2s ease-in-out infinite; vertical-align: middle; }
.emergency-reach { font-size: 15px; }
.emergency-end { background: #2e7d32; color: #fff; border: 0; }
.emergency-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.emergency-kinds input { position: absolute; opacity: 0; }
.emergency-kinds span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--line, #e5e7eb); border-radius: 14px; cursor: pointer; text-align: center; height: 100%; box-sizing: border-box; }
.emergency-kinds i { font-style: normal; font-size: 30px; }
.emergency-kinds input:checked + span { border-color: var(--em); background: color-mix(in srgb, var(--em) 10%, #fff); color: var(--em); }
.emergency-go { background: #c62828; color: #fff; border: 0; width: 100%; font-size: 18px; padding: 16px; }
.emergency-go:hover { background: #a31515; }
@keyframes emPulse { 50% { opacity: .7; } }
@media (max-width: 600px) { .emergency-kinds { grid-template-columns: repeat(2, 1fr); } }
.emergency-form [hidden], .wall-add [hidden] { display: none !important; }
/* Werbeplätze */
.ad-scope { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ad-scope legend { font-size: 13px; color: var(--muted, #6b7280); padding: 0 4px; }
.ad-scope [hidden], [data-ad-new][hidden] { display: none !important; }
.ad-screens { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; padding-left: 22px; }
.ad-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 8px 0 16px; }
.ad-chart span { flex: 1; height: 100%; display: flex; align-items: flex-end; background: rgba(14,65,116,.05); border-radius: 3px; }
.ad-chart i { display: block; width: 100%; background: var(--green, #93c01f); border-radius: 3px; min-height: 2px; }
.ad-preview { width: 100%; border-radius: 10px; background: #000; }
/* Freigaben */
.approval-list { display: flex; flex-direction: column; gap: 10px; }
.approval-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 10px; }
.approval-item .pl-thumb { width: 180px; flex: none; }
.approval-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.approval-icon { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 34px; }
@media (max-width: 600px) { .approval-item { flex-wrap: wrap; } .approval-item .pl-thumb { width: 100%; } }
/* Server-Leistung */
.capacity-bar { height: 12px; border-radius: 99px; background: #eef0f3; overflow: hidden; margin: 4px 0 10px; }
.capacity-bar i { display: block; height: 100%; background: #2e7d32; border-radius: 99px; }
.capacity-warn .capacity-bar i { background: #e08a00; } .capacity-high .capacity-bar i { background: #c62828; }
/* Speisekarte: Pfeile und Löschen direkt in der Liste */
.mc-mini { display: inline; margin: 0; }
.mc-tools { display: flex; gap: 2px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
td.mc-tools { display: table-cell; } td.mc-tools .btn { padding-left: 8px; padding-right: 8px; }
.mc-tools .btn[disabled] { opacity: .3; cursor: default; }
