/* toFace Sign – Portal-Design (Farben werden je Kunde über CSS-Variablen überschrieben) */
:root {
  --navy: #0e4174;
  --navy-dark: #0a2f55;
  --navy-soft: #e8eef5;
  --green: #93c01f;
  --green-dark: #7aa315;
  --green-soft: #f2f8e3;
  --grey: #6b6b6b;
  --text: #24303d;
  --muted: #7b8794;
  --line: #e4e8ee;
  --bg: #f4f6f9;
  --card: #fff;
  --orange: #e08a00;
  --orange-soft: #fff4e0;
  --red: #d64545;
  --red-soft: #fdecec;
  --blue: #2563c9;
  --blue-soft: #e8f0fd;
  --purple: #7c4dcc;
  --purple-soft: #f1ebfb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 4px 16px rgba(16, 40, 70, .05);
  --sidebar: 248px;
  --top: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Mulish', system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
h1, h2, h3, h4 { font-family: 'Questrial', 'Mulish', sans-serif; font-weight: 400; color: var(--navy); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1em 0 .3em; }
a { color: var(--navy); }
a:hover { color: var(--green-dark); }
p { margin: 0 0 .8em; }
code { background: var(--navy-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
small { font-size: 12px; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 13px; }
tr.muted td { opacity: .55; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }
.error-text { color: var(--red); font-size: 13px; margin-top: 4px; }

/* ---------- Layout ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 20px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-tfm { font-family: 'Questrial', sans-serif; font-size: 30px; font-weight: 700; color: var(--green); letter-spacing: -1px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; }
.brand-text b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 17px; }
.brand-text small { color: var(--green); font-size: 12px; letter-spacing: .05em; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-user .who { display: flex; flex-direction: column; text-align: right; font-size: 14px; line-height: 1.2; }
.topbar-user .who small { color: rgba(255,255,255,.65); }
.topbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.topbar .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2; fill: none; }

.sidebar { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--sidebar); background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; z-index: 20; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.sidebar a svg { width: 20px; height: 20px; stroke: var(--grey); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar a:hover { background: var(--bg); color: var(--navy); }
.sidebar a.active { background: var(--green-soft); color: var(--navy); box-shadow: inset 3px 0 0 var(--green); }
.sidebar a.active svg { stroke: var(--green-dark); }
.nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 4px; text-align: center; }
.sidebar-foot img { width: 110px; opacity: .9; display: block; margin: 0 auto 6px; }
.sidebar-foot span { font-size: 11px; color: var(--muted); }
.pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #fff; font-size: 11px; line-height: 19px; text-align: center; margin-left: 4px; }
.pill-orange { background: var(--orange); }

.content { margin-left: var(--sidebar); padding: calc(var(--top) + 28px) 32px 48px; max-width: calc(1280px + var(--sidebar)); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back { font-size: 13px; text-decoration: none; color: var(--muted); display: inline-block; margin-bottom: 4px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; border: 1px solid rgba(14,65,116,.04); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head a { font-size: 14px; text-decoration: none; }
.card-highlight { border: 2px solid var(--orange); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2 > .card, .grid-2 > div > .card:last-child { margin-bottom: 0; }
.grid-2 { margin-bottom: 20px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* ---------- Hero / Tiles ---------- */
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; border-radius: var(--radius); padding: 30px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; position: relative; overflow: hidden; flex-wrap: wrap; }
.hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--green); opacity: .18; }
.hero h1 { color: #fff; margin-bottom: 4px; }
.hero p { margin: 0; color: rgba(255,255,255,.85); }
.hero .btn { position: relative; z-index: 1; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); border-top: 3px solid var(--navy); }
a.tile:hover { transform: translateY(-1px); color: var(--text); }
.tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 30px; color: var(--navy); line-height: 1.1; }
.tile b small { font-size: 14px; color: var(--muted); }
.tile-orange { border-top-color: var(--orange); }
.tile-blue { border-top-color: var(--blue); }
.tile-green { border-top-color: var(--green); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--green); }
.bar i.over { background: var(--orange); }

.notice { background: var(--green-soft); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.notice-orange { background: var(--orange-soft); border-left-color: var(--orange); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost.danger { color: var(--red); }
.btn-ghost.danger:hover { border-color: var(--red); background: var(--red-soft); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-icon { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.btn-icon:hover { color: var(--red); background: var(--red-soft); }
.actions-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.actions-row .check { margin-right: auto; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--grey); }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], input[type=tel], select, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid #d5dbe3; border-radius: 8px; padding: 9px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(147,192,31,.2); }
.check, .radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; color: var(--text); cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--green); }
.radio { display: inline-flex; margin-right: 12px; }
.radio.no input { accent-color: var(--red); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.row-zip { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.radio-card { flex-direction: row; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 400; color: var(--text); }
.radio-card input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.radio-card b { color: var(--navy); }
.inline-label { flex-direction: row; align-items: center; gap: 6px; font-weight: 600; }
.inline-label input { width: auto; }
.preview { width: 100%; border-radius: 8px; border: 1px solid var(--line); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; }
.filters input[type=search] { flex: 1 1 200px; width: auto; }
.filters select { width: auto; flex: 0 1 200px; }
.search input { min-width: 260px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td a { text-decoration: none; }
.table th.right, .table td.right { text-align: right; }
.table tr.total td { font-weight: 800; color: var(--navy); border-top: 2px solid var(--line); font-size: 15px; }
.table tr.rejected td { opacity: .5; }
.table tr.rejected td b { text-decoration: line-through; }
.table .thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.table .thumb { width: 60px; }
.qty-input { width: 100px !important; }
.price-input { width: 90px !important; text-align: right; }
.item-note { font-size: 13px; background: var(--green-soft); padding: 2px 8px; border-radius: 5px; display: inline-block; margin-top: 4px; }
.group-row td { background: var(--navy-soft); }
.group-row .big { font-family: 'Questrial', sans-serif; font-size: 20px; color: var(--navy); }
.sub-row td { padding-left: 24px; font-size: 13px; }
.stats-table td small { display: block; color: var(--muted); font-size: 11px; }

.items-table .edit { display: none; }
.editing .items-table .edit, .editing .actions-row.edit { display: inline-block; }
.editing .actions-row.edit { display: flex; }
.editing .items-table .view { display: none; }
.actions-row.edit { display: none; }

.pager { display: flex; gap: 4px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a { padding: 6px 12px; border-radius: 6px; text-decoration: none; border: 1px solid var(--line); }
.pager a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; font-family: 'Mulish', sans-serif; letter-spacing: 0; vertical-align: middle; }
.badge-orange { background: var(--orange-soft); color: #a86400; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-green { background: var(--green-soft); color: #5b7d0a; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-grey { background: #eef0f3; color: var(--grey); }
h1 .badge { font-size: 13px; }

.switch { width: 40px; height: 22px; border-radius: 11px; border: 0; background: #cfd5dd; position: relative; cursor: pointer; padding: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: left .15s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }

/* ---------- Katalog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.chip { padding: 7px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-sm { font-size: 13px; padding: 5px 12px; }
.chips-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: 0 10px 30px rgba(16,40,70,.1); transform: translateY(-2px); }
.product-img { aspect-ratio: 4 / 3; background: var(--navy-soft); position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Questrial', sans-serif; font-size: 26px; color: var(--navy); opacity: .45;
  background: radial-gradient(circle at 85% 20%, rgba(147,192,31,.35) 0 28%, transparent 29%), var(--navy-soft); }
.ribbon { position: absolute; left: 12px; top: 12px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; letter-spacing: .02em; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { margin: 0; font-size: 18px; }
.product-body p { font-size: 14px; margin: 0; color: var(--grey); }
.facts { list-style: none; padding: 0; margin: 4px 0; font-size: 12.5px; color: var(--muted); }
.facts li::before { content: '•'; color: var(--green); margin-right: 6px; }
.price { font-weight: 800; color: var(--navy); font-size: 17px; }
.price small { font-weight: 400; color: var(--muted); }
.add-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.add-form .btn { flex: 1 1 150px; min-width: 0; padding-left: 10px; padding-right: 10px; }
.qty { display: flex; border: 1px solid #d5dbe3; border-radius: 9px; overflow: hidden; flex: 1 1 120px; min-width: 0; }
.qty input { flex: 1; width: 100%; min-width: 0; border: 0; border-radius: 0; text-align: center; padding: 8px 2px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { background: var(--bg); border: 0; width: 34px; flex: none; font-size: 18px; cursor: pointer; color: var(--navy); }
.qty-btn:hover { background: var(--green-soft); }
.in-cart { font-size: 13px; color: var(--green-dark); font-weight: 700; }

.cart-table input[type=text] { min-width: 180px; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.addr-grid p { font-size: 14px; }
.submit-card { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.submit-card .notice { width: 100%; margin: 0; }

/* ---------- Bestellung ---------- */
.steps { display: flex; margin: 0 0 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 10px; }
.step { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--muted); font-weight: 600; }
.step i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #d5dbe3; margin: 0 auto 6px; position: relative; z-index: 1; box-shadow: 0 0 0 4px #fff; }
.step::before { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: #d5dbe3; }
.step:first-child::before { display: none; }
.step.done i, .step.done::before, .step.current::before { background: var(--green); }
.step.current i { background: var(--navy); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--green); }
.step.current { color: var(--navy); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0 0 8px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 18px; position: relative; display: flex; flex-direction: column; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.timeline time { font-size: 12px; color: var(--muted); }
.timeline small { color: var(--muted); }

.approval-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 20px; }
.approval-card { text-decoration: none; color: var(--text); border-left: 4px solid var(--orange); margin: 0; display: flex; flex-direction: column; gap: 8px; }
.approval-card:hover { color: var(--text); box-shadow: 0 10px 30px rgba(16,40,70,.1); }
.approval-card ul { margin: 0; padding-left: 18px; font-size: 14px; }
.approval-card .btn { align-self: flex-start; }

.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.branch-card { margin: 0; display: flex; flex-direction: column; border-top: 3px solid var(--green); }
.branch-card .btn-row { margin-top: auto; padding-top: 10px; }
.mini-stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); margin-top: 4px; flex-wrap: wrap; }
.mini-stats b { color: var(--navy); font-size: 15px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 18px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--green); }

/* ---------- Meldungen ---------- */
.flash { padding: 12px 16px; border-radius: 9px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.flash-success { background: var(--green-soft); color: #4a6a06; border: 1px solid #d4e7a6; }
.flash-error { background: var(--red-soft); color: #a52a2a; border: 1px solid #f5c2c2; }

/* ---------- Login ---------- */
body.bare { min-height: 100vh; background: var(--navy); background-image: radial-gradient(circle at 100% 0%, rgba(147,192,31,.35) 0 22%, transparent 22.2%), radial-gradient(circle at 0% 100%, rgba(255,255,255,.06) 0 30%, transparent 30.2%); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-wrap > .flash { width: 100%; max-width: 420px; }
.auth-card { background: #fff; border-radius: 16px; padding: 36px 34px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card.wide { max-width: 560px; }
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand img { width: 150px; }
.auth-card h1 { text-align: center; font-size: 26px; }
.auth-card h1 span { color: var(--green); font-size: 18px; }
.auth-card .muted { text-align: center; font-size: 14px; }
.auth-card .form { margin: 20px 0 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
  .row-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --top: 58px; }
  .menu-btn { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.nav-open .sidebar { transform: none; }
  .content { margin-left: 0; padding: calc(var(--top) + 18px) 16px 40px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-user .who { display: none; }
  .brand-tfm { font-size: 24px; }
  .grid-2, .row-2, .addr-grid { grid-template-columns: 1fr; }
  .search input { min-width: 0; width: 100%; }
  .search { width: 100%; }
  h1 { font-size: 23px; }
  .card { padding: 16px; }
  .hero { padding: 22px; }
  .steps { overflow-x: auto; }
  .step { min-width: 80px; font-size: 12px; }
  .submit-card { align-items: stretch; }
}
@media (max-width: 520px) {
  .row-4, .row-zip { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .products { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile b { font-size: 24px; }
}

@media print {
  .topbar, .sidebar, .no-print, .flash { display: none !important; }
  .content { margin: 0; padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; }
}

/* ---------- Version 2: Proofs, Aktionen, Downloads, Abos ---------- */
.tile-purple { border-top-color: var(--purple); }
.alert-card { display: block; background: var(--purple-soft); border: 1px solid #ddd0f5; border-left: 4px solid var(--purple); border-radius: 10px; padding: 14px 18px; margin-bottom: 14px; color: var(--text); text-decoration: none; font-size: 14px; }
.alert-card b { color: var(--purple); }
.alert-card span { font-weight: 700; color: var(--purple); white-space: nowrap; }
.alert-card:hover { color: var(--text); box-shadow: var(--shadow); }

.proof-view { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.proof-view iframe { width: 100%; height: 560px; border: 0; display: block; background: #fff; }
.proof-view img { width: 100%; max-height: 640px; object-fit: contain; display: block; background: #fff; }
.proof-form { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.proof-upload { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 14px; }
.proof-upload h3 { margin: 0; }
.proof-history { margin-top: 10px; font-size: 14px; }
.proof-history summary { cursor: pointer; color: var(--navy); font-weight: 700; }

.campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; }
.campaign { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; border: 2px solid var(--green); }
.campaign img { width: 38%; object-fit: cover; flex: none; }
.campaign-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.campaign-body h3 { margin: 0; font-size: 19px; }
.campaign-body p { margin: 0; font-size: 14px; color: var(--grey); }
.campaign-body ul { margin: 4px 0 10px; padding-left: 18px; font-size: 14px; }
.campaign-tag { align-self: flex-start; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.campaign form { margin-top: auto; }

.sub-link { font-size: 13px; text-decoration: none; color: var(--muted); font-weight: 600; }
.sub-link:hover { color: var(--navy); }

.upload-box summary { cursor: pointer; color: var(--navy); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.media-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.media-item.muted { opacity: .55; }
.media-thumb { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-decoration: none;
  background: repeating-conic-gradient(#f1f3f6 0 25%, #fff 0 50%) 0 0 / 18px 18px; border-bottom: 1px solid var(--line); }
.media-thumb img { width: 100%; height: 100%; object-fit: contain; }
.media-thumb .ext { font-family: 'Questrial', sans-serif; font-size: 26px; color: #fff; background: var(--navy); padding: 14px 18px; border-radius: 10px; }
.media-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.media-body .btn-row { margin-top: auto; padding-top: 8px; }

@media (max-width: 860px) {
  .campaign { flex-direction: column; }
  .campaign img { width: 100%; height: 160px; }
  .proof-view iframe { height: 420px; }
}

/* ---------- Express ---------- */
.badge-express { background: #ea580c; color: #fff; letter-spacing: .02em; }
.express-box { flex-direction: row; align-items: flex-start; gap: 12px; border: 2px solid #fed7aa; background: #fff7ed; border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 400; color: var(--text); }
.express-box input { margin-top: 3px; width: 18px; height: 18px; accent-color: #ea580c; flex: none; }
.express-box b { color: #c2410c; }
.express-box.checked, .express-box:has(input:checked) { border-color: #ea580c; }
.express-fee { color: #c2410c; font-weight: 700; }
.table tr.express-row td { color: #c2410c; font-weight: 700; }
tr.is-express td:first-child { box-shadow: inset 3px 0 0 #ea580c; }

/* ---------- Menü-Generator ---------- */
.menu-canvas, .placer { position: relative; container-type: inline-size; overflow: hidden; background: #2b2b2b; border-radius: 6px; width: 100%; }
.menu-bg, .placer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.menu-price { position: absolute; white-space: nowrap; font-weight: 700; line-height: 1; }
.menu-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.menu-preview-card { position: sticky; top: calc(var(--top) + 16px); }
.price-list { display: flex; flex-direction: column; gap: 2px; }
.price-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.price-row input { width: 110px; text-align: right; font-weight: 700; }
.order-box { margin-top: 18px; padding: 16px; background: var(--green-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
.order-box h3 { margin: 0; }
.placer { cursor: crosshair; }
.placer .marker { cursor: pointer; outline: 1px dashed rgba(255,255,255,.6); outline-offset: 2px; }
.placer .marker.active { outline: 2px solid var(--green); background: rgba(147,192,31,.25); }
.field-table input { min-width: 0; padding: 6px 8px; font-size: 14px; }
.field-table select { padding: 6px; font-size: 14px; }
.field-table .num-input { width: 74px; }
.field-table .color-input { width: 90px; }
.field-row.active td { background: var(--green-soft); }
@media (max-width: 1100px) { .menu-editor { grid-template-columns: 1fr; } .menu-preview-card { position: static; } }

/* ---------- QR-Codes ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.qr-card { margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box { width: 170px; height: 170px; background: #fff; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-card h3 { margin: 6px 0 0; }
.qr-url { word-break: break-all; margin: 0; }
.qr-card .btn-row { justify-content: center; margin-top: auto; }

/* ---------- Kalender ---------- */
.year-label { font-family: 'Questrial', sans-serif; font-size: 20px; color: var(--navy); padding: 0 6px; }
.timeline-year { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.timeline-year .month { background: var(--bg); border-radius: 8px; padding: 10px; min-height: 86px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.timeline-year .month.now { box-shadow: inset 0 0 0 2px var(--green); }
.timeline-year .month b { color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.timeline-year .ev { background: var(--green); color: #fff; text-decoration: none; padding: 3px 8px; border-radius: 5px; font-weight: 700; font-size: 12px; }
.timeline-year .ev.off { background: #c9ced6; }
.events-list { list-style: none; margin: 0; padding: 0; }
.events-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.events-list li:last-child { border: 0; }
.ev-date { background: var(--navy); color: #fff; border-radius: 8px; text-align: center; padding: 6px 10px; min-width: 64px; line-height: 1.1; }
.ev-date b { display: block; font-size: 20px; font-family: 'Questrial', sans-serif; font-weight: 400; }
.ev-date small { font-size: 11px; text-transform: uppercase; }
@media (max-width: 860px) { .timeline-year { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .timeline-year { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Fotos, Reklamation, WhatsApp ---------- */
.tile-red { border-top-color: var(--red); }
.tile-red b { color: var(--red); }
.alert-green { background: var(--green-soft); border-color: #d4e7a6; border-left-color: var(--green); }
.alert-green b, .alert-green span { color: #4a6a06; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-grid a { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg); display: block; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid a.is-problem { box-shadow: 0 0 0 3px var(--red); }
.photo-grid a span { position: absolute; left: 4px; bottom: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.photo-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.photo-upload input[type=file] { flex: 1 1 200px; }
.problem-card { border: 2px solid var(--red); }
.problem-card.resolved { border-color: var(--line); }
.problem-card h2 { color: var(--red); }
.feedback-card { border-color: var(--green); }
.price-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.price-chips span { background: var(--bg); border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.wa-help { margin: 14px 4px 0; background: #25d366 !important; color: #fff !important; border-radius: 10px; box-shadow: none !important; }
.wa-help svg { fill: #fff !important; stroke: none !important; width: 26px !important; height: 26px !important; }
.wa-help small { font-weight: 400; opacity: .9; }
.wa-help:hover { background: #1ebe5a !important; }

/* ---------- Sicherheit ---------- */
.totp-qr { width: 200px; height: 200px; background: #fff; margin: 8px 0 12px; }
.totp-qr svg { width: 100%; height: 100%; display: block; }
.secret { font-size: 15px; letter-spacing: .08em; word-break: break-all; }
.code-input { font-size: 24px !important; letter-spacing: .3em; text-align: center; font-weight: 700; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.recovery-codes code { font-size: 16px; padding: 8px 10px; text-align: center; background: var(--bg); border: 1px dashed var(--line); }
.secure-note { margin-top: 6px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.check-list li:last-child { border: 0; }
.check-list .st { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 14px; }
.st-ok { background: var(--green); } .st-warn { background: var(--orange); } .st-fail { background: var(--red); }
.check-list small { color: var(--muted); display: block; }

/* ---------- Logos ---------- */
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: none; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.auth-logo { width: 130px !important; }
.auth-card h1 { margin-top: 4px; }
.powered { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.powered span { font-size: 11px; color: var(--muted); }
.powered img { height: 44px; width: auto; }
.sidebar-foot span { display: block; margin-bottom: 6px; }
.sidebar-foot img { width: 120px; margin: 0 auto; opacity: 1; }
@media (max-width: 520px) { .brand-logo { width: 40px; height: 40px; } }

/* ---------- Staffelpreise ---------- */
.tier-pick { display: flex; flex-direction: column; gap: 6px; flex: 1 1 100%; }
.tier-opt { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; cursor: pointer; color: var(--text); font-weight: 600; transition: border-color .15s, background .15s; }
.tier-opt:hover { border-color: var(--navy); }
.tier-opt input { accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.tier-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.tier-opt .tq { flex: 1; font-size: 15px; }
.tier-opt .tq small { font-weight: 400; color: var(--muted); }
.tier-opt .tp { text-align: right; font-weight: 800; color: var(--navy); display: flex; flex-direction: column; line-height: 1.15; }
.tier-opt .tp small { font-weight: 400; font-size: 11px; color: var(--muted); }
.tier-opt .ts { min-width: 46px; text-align: right; font-size: 12px; font-weight: 800; color: #4a6a06; }
.tier-table input { width: 100%; max-width: 160px; }
.tier-select { min-width: 190px; }

/* ---------- Zentrale-Cockpit ---------- */
.hero-hq { padding: 26px 32px; }
.hero-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--green); font-weight: 800; }
.hero-hq p b { color: #fff; }
.hero-logo { width: 92px; height: 92px; background: #fff; border-radius: 50%; padding: 3px; position: relative; z-index: 1; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 10px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; text-decoration: none; }
.quote { font-style: italic; margin: 0; }
.trend { color: var(--muted); }
.tile small { font-size: 12px; color: var(--muted); }

/* Säulendiagramm: eine Reihe, dünne Säulen, abgerundete Enden, Hover-Tooltip */
.barchart { position: relative; height: 230px; padding: 8px 0 26px 64px; }
.bc-grid { position: absolute; inset: 8px 0 26px 64px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.bc-grid span { border-top: 1px solid var(--line); position: relative; height: 0; }
.bc-grid span:last-child { border-top: 1px solid #c9d1db; }
.bc-grid span::before { content: attr(data-v); position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.bc-cols { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 2px; }
.bc-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; outline: none; }
.bc-bar { width: min(60%, 34px); min-height: 0; background: #8aa6c4; border-radius: 4px 4px 0 0; transition: background .15s; }
.bc-col.current .bc-bar { background: var(--navy); }
.bc-col:hover .bc-bar, .bc-col:focus .bc-bar { background: var(--green-dark); }
.bc-label { position: absolute; bottom: -22px; font-size: 11px; color: var(--muted); }
.bc-col.current .bc-label { color: var(--navy); font-weight: 800; }
.bc-col::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 12px;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; }
.bc-col:hover::after, .bc-col:focus::after { opacity: 1; }
.bc-col:first-child::after { left: 0; transform: none; }
.bc-col:last-child::after { left: auto; right: 0; transform: none; }

.branch-rank td { vertical-align: middle; }
.rank-cell { min-width: 200px; }
.rank-cell .hbar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.rank-cell .hbar i { display: block; height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.rank-cell span { font-weight: 800; color: var(--text); margin-right: 8px; }
.rank-cell small, .budget-cell small { color: var(--muted); font-size: 12px; }
.budget-cell { min-width: 150px; }
.meter { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.meter i { display: block; height: 100%; background: var(--green); }
.meter i.warn { background: var(--orange); }
.meter i.over { background: var(--red); }
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.top-list li:last-child { border: 0; }
.top-list .rank { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.top-list li:first-child .rank { background: var(--green); color: #fff; }
.top-list small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 860px) { .hero-logo { width: 64px; height: 64px; } .barchart { padding-left: 52px; } .bc-grid { left: 52px; } }

/* ---------- Digital & TV ---------- */
.ribbon-digital { background: #7c4dcc; left: auto; right: 12px; }
.delivery-card.card-ready { border: 2px solid var(--green); }
.delivery { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.delivery:last-of-type { border-bottom: 0; }
.delivery video, .delivery img { width: 280px; max-width: 100%; border-radius: 8px; background: #000; }
.delivery-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.delivery-info .btn-row { margin-top: 8px; }
.to-screen select { width: auto; padding: 5px 8px; font-size: 13px; }
.deliver-form { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 10px; }
.deliver-form h3 { margin: 0; }
.screen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-content: start; }
.screen-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.screen-card h3 small { font-weight: 400; }
.screen-preview { background: #000; border-radius: 8px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: #888; overflow: hidden; }
.screen-preview.portrait { aspect-ratio: 9 / 16; max-height: 300px; margin: 0 auto; }
.screen-preview video, .screen-preview img { width: 100%; height: 100%; object-fit: contain; }
.playlist-mini { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.playlist-mini li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.setup-help summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; }
.setup-help ol { padding-left: 20px; font-size: 14px; margin: 8px 0; }
.player-link { display: flex; gap: 12px; align-items: center; background: var(--bg); padding: 10px; border-radius: 8px; }
.player-link code { word-break: break-all; font-size: 12px; background: none; }
.qr-mini { width: 96px; height: 96px; flex: none; background: #fff; }
.qr-mini svg { width: 100%; height: 100%; display: block; }
.playlist { display: flex; flex-direction: column; gap: 12px; }
.pl-item { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.pl-item.muted { opacity: .55; }
.pl-thumb { width: 160px; flex: none; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; font-size: 26px; }
.pl-thumb small { font-size: 11px; }
.pl-thumb video, .pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pl-fields label { font-size: 12px; }
.pl-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .pl-item { flex-direction: column; } .pl-thumb { width: 100%; } }

/* ---------- Speisekarte & Menüboard-Studio ---------- */
.mc-table .thumb img, .mc-table .no-img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 22px; }
.cat-row { display: flex; gap: 8px; align-items: center; }
.cat-row .num-input { width: 70px; }
.badge-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: #cfd5dd; border-radius: 13px; transition: background .15s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked + span { background: var(--red); }
.toggle input:checked + span::after { left: 23px; }
.sticky-save { position: sticky; bottom: 0; background: rgba(244,246,249,.95); padding: 14px 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; border-top: 1px solid var(--line); z-index: 4; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.board-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.board-thumb { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 8px; overflow: hidden; }
.board-thumb.portrait { padding-top: 0; height: 260px; }
.board-thumb iframe, .screen-preview iframe, .pl-thumb iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.screen-preview, .pl-thumb { position: relative; }
.board-new { border: 2px dashed var(--line); box-shadow: none; }

.layout-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.layout-pick.small { grid-template-columns: repeat(4, 1fr); }
.layout-opt { cursor: pointer; text-align: center; gap: 4px; font-weight: 600; color: var(--text); }
.layout-opt input { position: absolute; opacity: 0; }
.layout-opt small { font-size: 12px; }
.lp { display: block; height: 62px; border: 2px solid var(--line); border-radius: 8px; background: #1e1514; position: relative; overflow: hidden; }
.layout-opt input:checked + .lp { border-color: var(--green); box-shadow: 0 0 0 3px rgba(147,192,31,.25); }
.lp i { position: absolute; background: #c8a24a; border-radius: 2px; opacity: .85; }
.lp-columns i:nth-child(1) { left: 10%; top: 20%; width: 34%; height: 6px; } .lp-columns i:nth-child(2) { left: 56%; top: 20%; width: 34%; height: 6px; }
.lp-columns i:nth-child(3) { left: 10%; top: 40%; width: 34%; height: 40%; opacity: .3; } .lp-columns i:nth-child(4) { left: 56%; top: 40%; width: 34%; height: 40%; opacity: .3; }
.lp-hero i:nth-child(1) { left: 8%; top: 15%; width: 40%; height: 70%; opacity: .6; } .lp-hero i:nth-child(2) { left: 56%; top: 20%; width: 34%; height: 6px; }
.lp-hero i:nth-child(3) { left: 56%; top: 38%; width: 34%; height: 42%; opacity: .3; } .lp-hero i:nth-child(4) { display: none; }
.lp-grid i { width: 38%; height: 32%; opacity: .55; } .lp-grid i:nth-child(1) { left: 8%; top: 12%; } .lp-grid i:nth-child(2) { left: 54%; top: 12%; }
.lp-grid i:nth-child(3) { left: 8%; top: 54%; } .lp-grid i:nth-child(4) { left: 54%; top: 54%; }
.lp-spotlight { background: linear-gradient(90deg, #1e1514 40%, #6b3a2a); } .lp-spotlight i:nth-child(1) { left: 10%; top: 30%; width: 40%; height: 10px; }
.lp-spotlight i:nth-child(2) { left: 10%; top: 52%; width: 24%; height: 6px; opacity: .5; } .lp-spotlight i:nth-child(3) { left: 10%; top: 66%; width: 16px; height: 16px; border-radius: 50%; } .lp-spotlight i:nth-child(4) { display: none; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg label { flex: 1; flex-direction: row; justify-content: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; width: 100%; text-align: center; padding: 8px; font-weight: 700; color: var(--muted); }
.seg input:checked + span { background: var(--navy); color: #fff; }
.theme-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.theme-opt { cursor: pointer; text-align: center; font-weight: 600; color: var(--text); gap: 4px; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt .sw { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 8px; border: 2px solid var(--line); font-size: 22px; }
.theme-opt .sw i { width: 18px; height: 18px; border-radius: 50%; }
.theme-opt input:checked + .sw { border-color: var(--green); box-shadow: 0 0 0 3px rgba(147,192,31,.25); }
.theme-opt small { font-size: 12px; }

.studio { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.studio-side .card { margin-bottom: 14px; }
.studio-preview { position: sticky; top: calc(var(--top) + 16px); }
.preview-frame { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.preview-frame.portrait { width: 46%; padding-top: 81.8%; margin: 0 auto; }
.preview-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.studio-actions { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; background: rgba(244,246,249,.95); padding: 12px 0; }
.screen-toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.screen-toggle .num-input { width: 70px; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.theme-card { margin: 0; }
.theme-card h3 { margin: 4px 0 0; }
.theme-demo { border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; background-size: cover; background-position: center; min-height: 110px; }
.theme-demo b { font-size: 20px; letter-spacing: 2px; }
.theme-demo i { font-style: normal; font-weight: 800; float: right; }
.color-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.color-row label { font-size: 11px; }
.color-row input[type=color] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr; } .studio-preview { position: static; order: -1; } }
.num-badge { display: inline-block; min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 11px; background: #c8a24a; color: #fff; font-size: 12px; font-weight: 800; padding: 0 6px; }
.cat-block { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.small-input { font-size: 13px !important; padding: 6px 10px !important; }
.pl-select { flex: none; align-self: center; }
.pl-select input { width: 20px; height: 20px; accent-color: var(--red); cursor: pointer; }
.pl-item.selected { border-color: var(--red); background: var(--red-soft); }
.pl-delete { margin-left: auto; }
.pl-actions .check { margin-right: auto; }
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Übergänge: Auswahl mit kleiner Live-Vorschau */
.transition-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr-opt { cursor: pointer; text-align: center; font-weight: 600; color: var(--text); gap: 4px; }
.tr-opt input { position: absolute; opacity: 0; }
.tr-opt small { font-size: 12px; }
.tr-demo { position: relative; display: block; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: #2a1d1b; }
.tr-opt input:checked + .tr-demo { border-color: var(--green); box-shadow: 0 0 0 3px rgba(147,192,31,.25); }
.tr-demo b { position: absolute; right: 6px; bottom: 2px; font-size: 16px; z-index: 2; }
.tr-demo i { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #c8a24a, #8a1c22); }
.tr-fade i { animation: trFade 2.4s ease-in-out infinite; }
.tr-slide i { animation: trSlide 2.4s cubic-bezier(.65,0,.35,1) infinite; }
.tr-zoom i { animation: trZoom 2.4s ease-in-out infinite; }
.tr-fire i { background: radial-gradient(ellipse at 50% 100%, #fff3b0, #ffb000 25%, #ff4800 50%, #8a0000 75%, transparent); animation: trFire 1.6s ease-in-out infinite; }
.tr-abstract i { background: repeating-linear-gradient(-60deg, #c8a24a 0 12px, #5a0f14 12px 24px, #f4e7c5 24px 30px); animation: trBands 2s linear infinite; }
.tr-random i { background: conic-gradient(#c8a24a, #ff4800, #5a0f14, #93c01f, #0e4174, #c8a24a); animation: trSpin 3s linear infinite; }
@keyframes trFade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes trSlide { 0% { transform: translateX(100%); } 45%, 55% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes trZoom { 0% { transform: scale(1.8); opacity: 0; } 50% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: 0; } }
@keyframes trFire { 0% { transform: translateY(100%); } 50% { transform: translateY(0); } 100% { transform: translateY(-100%); } }
@keyframes trBands { from { background-position: 0 0; } to { background-position: 120px 0; } }
@keyframes trSpin { from { transform: rotate(0) scale(2); } to { transform: rotate(360deg) scale(2); } }
@media (prefers-reduced-motion: reduce) { .tr-demo i { animation: none; } }

/* Abholnummern & Durchsagen */
.kitchen-box summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.kitchen-item { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border-radius: 10px; padding: 12px; }
.bc-item { border-left: 5px solid; padding: 10px 14px; margin-bottom: 10px; background: var(--bg); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.bc-item.live { background: #fff; box-shadow: var(--shadow); }
.bc-item .bc-msg { font-weight: 700; font-size: 16px; }
.bc-item form { align-self: flex-start; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.track-card { margin: 0; flex-direction: row; text-align: left; align-items: center; gap: 14px; padding: 12px; box-shadow: none; border: 1px solid var(--line); }
.track-card .qr-box { width: 96px; height: 96px; flex: none; }
.track-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.track-info .hbar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.track-info .hbar i { display: block; height: 100%; background: var(--green); }
.track-num { font-family: 'Questrial', sans-serif; font-size: 26px; color: var(--navy); }
.track-info .btn-row { justify-content: flex-start; margin-top: 4px; }
.diag { list-style: none; margin: 6px 0; padding: 0; font-size: 13px; font-weight: 600; }
.diag li { padding: 3px 0; }
.diag li.ok { color: #4a6a06; }
.diag li.bad { color: var(--red); }
.pickup-test { margin-top: -14px; padding-top: 0; }

.onoff { display: flex; align-items: center; gap: 12px; }
.onoff-state { font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 20px; }
.onoff-state.is-on { background: var(--green-soft); color: #4a6a06; }
.onoff-state.is-off { background: var(--red-soft); color: var(--red); }

/* ---------- Aktionen – alle Kanäle ---------- */
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #120c0b; box-shadow: 0 6px 24px rgba(0,0,0,.18); margin-bottom: 12px; }
.promo-canvas.story { max-width: 320px; margin-left: auto; margin-right: auto; }
.promo-sticky { position: sticky; top: 16px; }
.muted.small, .small { font-size: 13px; }
.ai-box { background: #faf6ee; border: 1px dashed #c8a24a; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.ai-box .chips { margin: 12px 0 0; }
.ai-box .chip { cursor: pointer; font-family: inherit; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid; vertical-align: -2px; }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.channels > .card { margin-bottom: 0; }
.social-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 20px; align-items: start; }
.social-grid .btn { width: 100%; justify-content: center; }
.qr-row { display: flex; gap: 18px; align-items: flex-start; }
.qr-row .qr-box { flex: none; width: 160px; }
.big-num { font-size: 34px; font-weight: 800; margin: 8px 0; color: var(--navy); }
.big-num small { font-size: 14px; font-weight: 600; color: var(--muted); }
.section-title { font-size: 17px; margin: 24px 0 12px; }
.promo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.promo-card { display: block; padding: 12px; text-decoration: none; color: inherit; margin: 0; transition: transform .15s; }
.promo-card:hover { transform: translateY(-2px); }
.promo-card .promo-canvas { margin-bottom: 10px; box-shadow: none; }
.promo-card-body { display: flex; flex-direction: column; gap: 4px; }
.promo-card.muted { opacity: .6; }
.danger-zone { display: block; margin-top: 12px; }
@media (max-width: 900px) {
  .channels, .social-grid, .row-3 { grid-template-columns: 1fr; }
  .promo-sticky { position: static; }
  .qr-row { flex-direction: column; }
}

fieldset.checks { border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px 4px; margin: 0; }
fieldset.checks legend { font-size: 13px; font-weight: 700; padding: 0 4px; }

/* ---------- Allergene & Übersetzungen ---------- */
.allergen-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; margin: 6px 0 14px; }
.allergen-pick .check { font-size: 14px; }
.allergen-pick b { display: inline-block; min-width: 18px; color: var(--navy); }
.i18n-table input { width: 100%; }
.i18n-table td { vertical-align: top; }
.i18n-table .orig { color: var(--muted); font-size: 13px; }
.code-chip { display: inline-block; font-size: 11px; font-weight: 700; background: var(--navy-soft); color: var(--navy); border-radius: 4px; padding: 0 5px; margin-left: 4px; }

/* ---------- Seitenleiste in Bereichen ---------- */
.nav-group { margin-top: 6px; }
.nav-group summary { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); user-select: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: var(--bg); color: var(--navy); }
.nav-group summary svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-group summary span { flex: 1; }
.nav-group .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.nav-group[open] .chev { transform: rotate(45deg); }
.nav-group[data-has-active] summary { color: var(--navy); }
.nav-items { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; margin-left: 10px; border-left: 1px solid var(--line); }
.nav-items a { padding: 8px 10px; }

/* ---------- TV: Zeit & Wetter ---------- */
.pl-schedule { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.pl-schedule summary { cursor: pointer; font-size: 13px; color: var(--navy); padding: 4px 0; }
.pl-schedule summary b { font-weight: 700; }
.pl-schedule .pl-row { margin-top: 6px; flex-wrap: wrap; }
.pl-schedule select { width: auto; }
.days { display: inline-flex; gap: 3px; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span { display: inline-block; min-width: 30px; text-align: center; padding: 5px 4px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.day input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.day input:focus-visible + span { outline: 2px solid var(--green); }
.weather-now { font-size: 18px; margin: 4px 0; }
.weather-now b { font-size: 26px; color: var(--navy); }
.pl-schedule input[type=time] { width: auto; padding: 6px 8px; }

/* ---------- Google-Bewertungen ---------- */
.quote-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.q-stars-sm { color: #f5b301; letter-spacing: 1px; }
.place-hit { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- toFace Sign: Geräte koppeln ---------- */
.pair-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px dashed var(--green); }
.pair-icon { font-size: 34px; }
.pair-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; }
.pair-box .pair-code { width: 130px; font-size: 22px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; text-align: center; }
.pair-box select { width: auto; max-width: 260px; }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--green-soft); border-radius: 8px; padding: 6px 10px; margin: 8px 0; font-size: 13px; }
.seg-sm { margin: 8px 0; }
.seg-sm button { flex: 1; border: 0; background: #fff; padding: 7px 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg-sm button.on { background: var(--navy); color: #fff; }

/* ---------- Live-Blick ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.wall-item { padding: 0; overflow: hidden; margin: 0; }
.wall-shot { position: relative; background: #111; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: #888; font-size: 13px; text-align: center; padding: 0; }
.wall-shot.portrait { aspect-ratio: 16 / 9; }
.wall-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wall-dot { position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; border-radius: 50%; background: #9aa5b1; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.state-online .wall-dot { background: #22c55e; }
.state-offline .wall-dot { background: #ef4444; animation: wallBlink 1.2s infinite; }
.state-offline { box-shadow: 0 0 0 2px #ef4444; }
@keyframes wallBlink { 50% { opacity: .3; } }
.wall-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.danger { color: #d64545; font-weight: 700; }

/* ---------- Infocenter ---------- */
.notice { padding: 0; }
.notice summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice-icon { font-size: 26px; }
.notice-head { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notice-open { box-shadow: 0 0 0 2px #e08a00; }
.notice-important .notice-head b { color: #b42318; }
.notice-body { padding: 0 18px 18px 56px; }
.notice-img { max-width: 100%; max-height: 420px; border-radius: 10px; display: block; margin: 8px 0; }
.ack-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ack-list span { font-size: 13px; padding: 3px 10px; border-radius: 12px; }
.ack-list .ok { background: var(--green-soft); color: var(--green-dark); }
.ack-list .missing { background: #fff1e0; color: #b45309; }

/* ---------- Gäste-Feedback ---------- */
.fb-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fb-stat { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; margin: 0; }
.fb-stat b { font-size: 28px; color: #e0a100; }
.fb-stat.active { box-shadow: 0 0 0 2px var(--navy); }
.fb-item { padding: 14px 18px; }
.fb-item p { margin: 8px 0 0; }
.fb-top { display: flex; align-items: center; gap: 12px; }
.fb-top .meta { flex: 1; }
.fb-stars { color: #f5b301; font-size: 20px; letter-spacing: 2px; }
.fb-stars span { color: #d8dde3; }
.fb-bad { box-shadow: 0 0 0 2px #ef4444; }

.range-hint { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }

/* ---------- Eröffnungs-Assistent ---------- */
.progress { position: relative; height: 26px; background: var(--line); border-radius: 13px; overflow: hidden; margin: 10px 0 18px; }
.progress span { position: absolute; top: 0; left: 0; bottom: 0; background: linear-gradient(90deg, var(--green), var(--green-dark)); }
.progress b { position: relative; display: block; text-align: center; line-height: 26px; font-size: 13px; color: var(--navy); }
.check-step { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.check-step:last-child { border-bottom: 0; }
.check-step > div { flex: 1; }
.check-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); flex: none; }
.check-step.ok .check-dot { background: var(--green); border-color: var(--green); color: #fff; }
.check-step.ok b { color: var(--muted); }

/* ---------- TV-Wand ---------- */
.wall-card { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.wall-grid { display: grid; gap: 6px; }
.wall-card .wall-grid { width: 150px; flex: none; }
.wall-card .wall-grid span { aspect-ratio: 16 / 9; background: #120c0b; border: 2px solid #3a3f46; border-radius: 4px; }
.wall-assign label { background: #120c0b; color: #fff; border-radius: 8px; padding: 10px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.wall-assign .meta { color: #c9b8a8; }

/* Hilfe-Symbole „?“ (aus toFace School) */
.help { display: inline-block; position: relative; vertical-align: middle; margin-left: 6px; font-size: 13px; font-weight: 400; }
.help summary { list-style: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; background: #e3e8ef; color: var(--muted); font-weight: 800; font-size: 12px; line-height: 20px; text-align: center; }
.help summary::-webkit-details-marker { display: none; }
.help[open] summary { background: var(--navy); color: #fff; }
.help-pop { position: absolute; z-index: 30; top: 26px; left: -10px; width: 280px; max-width: 70vw; background: #1d2733; color: #fff; padding: 10px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); line-height: 1.45; text-transform: none; letter-spacing: 0; font-family: 'Mulish', sans-serif; }
aside .help-pop { left: auto; right: -10px; }
.help-pop b { color: #fff; }
.pl-drag { cursor: grab; color: #aab4c0; font-size: 20px; padding: 0 4px; align-self: center; user-select: none; }
.pl-drag:hover { color: var(--navy); }
.pl-item.dragging { opacity: .5; outline: 2px dashed var(--navy); }
.playlist.saving { opacity: .6; pointer-events: none; }
form[data-dropzone].drop-on { outline: 3px dashed var(--green); outline-offset: -6px; background: var(--green-soft); }
.drop-hint { margin: -6px 0 0; font-size: 12px; }
.crop-note:empty { display: none; }
.crop-note { color: #4a6a06; font-weight: 700; }
.crop-modal { position: fixed; inset: 0; z-index: 200; background: rgba(20,28,38,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.crop-box { background: #fff; border-radius: 12px; padding: 16px 18px; max-width: min(900px, 96vw); max-height: 96vh; overflow: auto; }
.crop-box h3 { margin: 0 0 4px; } .crop-box h3 small { color: var(--muted); font-weight: 600; font-size: 13px; }
.crop-stage { position: relative; display: inline-block; margin: 8px 0 12px; user-select: none; touch-action: none; }
.crop-stage img { display: block; max-width: min(860px, 90vw); max-height: 65vh; }
.crop-frame { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline: 2px solid #fff; cursor: move; }
.crop-corner { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; background: #fff; border: 2px solid var(--navy); border-radius: 50%; cursor: nwse-resize; }
.crop-stage { overflow: hidden; }
