/* WZ Order – Administrationsbereich: ruhig, dicht, gut lesbar. */
:root { --ink: #1C2127; --muted: #66707A; --line: #DDE2E7; --bg: #F3F5F7; --card: #fff; --primary: #C8371E; --ok: #1E7D3C; --warn: #A15C00; --err: #B42318; --focus: #2F6FED; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #1D5FC9; }
h1 { font-size: 26px; margin: 0 0 16px; letter-spacing: -.01em; }
h1 small { font-size: 15px; font-weight: 400; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
.side { position: fixed; inset: 0 auto 0 0; width: 230px; background: #1C2127; color: #E8ECEF; display: flex; flex-direction: column; padding: 18px 0; overflow-y: auto; }
.side .logo { font-weight: 800; font-size: 20px; padding: 0 20px; letter-spacing: .01em; }
.side .tenant { padding: 2px 20px 14px; color: #A9B2BB; font-size: 13px; border-bottom: 1px solid #343B43; }
.side nav { display: flex; flex-direction: column; padding: 10px 0; flex: 1; }
.side nav a { color: #DDE2E7; text-decoration: none; padding: 8px 20px; border-left: 3px solid transparent; }
.side nav a:hover { background: #262C33; }
.side nav a[aria-current="page"] { background: #262C33; border-left-color: #FFC72C; color: #fff; font-weight: 600; }
.side .navsep { font-size: 12px; color: #8D97A1; padding: 14px 20px 4px; }
.side .me { padding: 12px 20px 0; border-top: 1px solid #343B43; font-size: 13px; }
.side .me a { color: #A9C7FF; }
main.with-side { margin-left: 230px; padding: 24px 28px 60px; max-width: 1400px; }
main.login { display: grid; place-items: center; min-height: 100vh; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.card.narrow, .loginbox { max-width: 420px; width: 100%; }
.warnbox { border-color: #F2C27B; background: #FFF8EB; }
.okbox { border-color: #9FD6AE; background: #F0FAF2; }
.notice { background: #EEF3FB; border: 1px solid #C8D7F0; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.head h1 { margin: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #3A434C; margin-bottom: 10px; }
label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); font-size: 14px; }
label.confirm { background: #FFF8EB; padding: 10px; border-radius: 8px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #C5CCD3; border-radius: 7px; background: #fff; color: var(--ink); min-height: 38px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); flex: none; }
input[type=file] { border: 0; padding: 4px 0; }
input[readonly] { background: #F3F5F7; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input.tiny { width: 70px; } input.small { width: 100px; }
.colorin { display: flex; gap: 6px; } .colorin input[type=color] { width: 46px; padding: 2px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 6px 0 12px; padding: 10px 14px; }
legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; align-items: end; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 8px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 8px 0 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; padding: 8px 14px; min-height: 38px; border-radius: 7px; border: 1px solid #C5CCD3; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #F3F5F7; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #A92D17; }
.btn.danger { color: var(--err); border-color: #E7B4AE; }
.btn.small { padding: 4px 10px; min-height: 32px; font-size: 13px; }
.btn[disabled] { opacity: .5; }
.actions { margin-top: 16px; }
form.danger { margin-top: 24px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input { width: auto; flex: 1 1 200px; }
.trow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.trow input, .trow select { width: auto; }
.trow label { margin: 0; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: #E8F5EC; border: 1px solid #9FD6AE; }
.flash.err { background: #FDECEA; border-color: #F1B0A8; color: #7A1A10; }
.flash.warn { background: #FFF6E5; border-color: #F2C27B; }
table { border-collapse: collapse; width: 100%; }
table.list { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.list th, table.list td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; background: #FAFBFC; }
table.compact th, table.compact td { padding: 6px 8px; }
table.compact input, table.compact select { min-height: 32px; padding: 4px 6px; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.c { text-align: center; }
.thumb img { width: 64px; height: 48px; object-fit: contain; }
img.mini { height: 32px; vertical-align: middle; }
.matrix th.rot { height: 150px; white-space: nowrap; vertical-align: bottom; padding: 4px; }
.matrix th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; }
.matrix td.c b { color: var(--err); }
.scrollbox { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.scrollbox.wide { max-height: none; }
.algrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; margin-bottom: 12px; }
.alrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.alrow select { width: 160px; min-height: 32px; padding: 3px 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #EEF1F4; color: #3A434C; white-space: nowrap; }
.badge.ok { background: #E3F4E8; color: var(--ok); } .badge.warn { background: #FFF1D9; color: var(--warn); } .badge.err { background: #FDE6E3; color: var(--err); }
.muted { color: var(--muted); } .small, small { font-size: 13px; } .err { color: var(--err); }
.hint { background: #F5F8FE; border: 1px solid #D5E1F7; border-radius: 8px; padding: 10px 12px; margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi small { color: var(--muted); display: block; } .kpi b { font-size: 26px; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar span { width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 1px; }
.bar small { font-size: 11px; color: var(--muted); }
.imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.imgtile { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #FAFBFC; }
.imgtile.current { border: 2px solid var(--ok); }
.imgtile img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 6px; }
.imgtile form { margin-top: 6px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); background: #fff; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
ul.log { padding-left: 18px; margin: 0; } ul.log li { margin-bottom: 4px; }
input.copy { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.bonprev { background: #fff; border: 1px dashed #C5CCD3; padding: 10px; max-width: 320px; margin: 0 auto; font: 12px/1.35 "Courier New", monospace; color: #000; }
.bonprev .c { text-align: center; } .bonprev .b { font-weight: 700; } .bonprev .s { font-size: 10px; } .bonprev .t { font-size: 16px; font-weight: 700; }
.bonprev .huge { font-size: 40px; font-weight: 700; line-height: 1.1; } .bonprev .big { font-size: 15px; }
.bonprev .kv { display: flex; justify-content: space-between; gap: 8px; } .bonprev hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
@media (max-width: 900px) {
  .side { position: static; width: auto; } main.with-side { margin-left: 0; padding: 16px; }
  .grid4, .grid3, .grid7, .kpis, .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid2 { grid-template-columns: 1fr; }
}
/* Effekt-Auswahl und Vorschau */
.fxpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 14px; }
.fxopt { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; align-items: center; }
.fxopt span:nth-child(2) { flex: 1; }
.fxprev { position: relative; width: 64px; height: 48px; border-radius: 6px; background: #2A2F35; overflow: hidden; flex: none; display: grid; place-items: center; }
.fxdot { width: 26px; height: 18px; border-radius: 14px 14px 6px 6px; background: linear-gradient(#F2A93B, #C9741E); position: relative; z-index: 1; margin-top: 12px; }
.fx-float .fxdot { animation: wzfloat 3s ease-in-out infinite; }
.fx-wobble .fxdot { animation: wzwobble 2.4s ease-in-out infinite; }
.fx-glow { box-shadow: inset 0 0 0 2px #FFC72C; animation: wzglow 1.8s ease-in-out infinite; }
@keyframes wzfloat { 50% { transform: translateY(-6px); } }
@keyframes wzwobble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }
@keyframes wzglow { 50% { box-shadow: inset 0 0 0 2px #FFC72C, 0 0 14px #FFC72C; } }
.welcome-preview { position: relative; height: 150px; border-radius: 10px; background: var(--prev-bg, #D62300); overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 28px; }
.welcome-preview span { position: relative; z-index: 1; }
.bgprev { width: 260px; border-radius: 8px; background: #000; display: block; margin: 6px 0; }
.welcome-preview.stage { background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--prev-bg) 45%, #000), #0b0b0c 70%); }
.trwrap { display: flex; flex-direction: column; gap: 4px; }
.trwrap input { min-height: 32px; padding: 4px 8px; }
.trwrap small { font-weight: 600; color: var(--muted); }
.langpick { margin: 6px 0 12px; } .langpick label { margin: 4px 14px 0 0; display: inline-flex; }
/* Menüboard-Editor */
.boardedit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 42%); gap: 20px; align-items: start; }
.boardprev { position: sticky; top: 16px; }
.prevframe { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.prevframe.portrait { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.prevframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
table.slides td { vertical-align: middle; } table.slides tr.sel td { background: #FFF6D8; }
.nowrap { white-space: nowrap; }
.prodpick { padding: 6px 12px; } .pgroup { margin: 6px 0; }
.lyprev { width: 64px; height: 40px; border-radius: 6px; background: #2A2F35; flex: none; display: grid; gap: 3px; padding: 5px; }
.lyprev i { background: #FFC72C; border-radius: 2px; opacity: .85; }
.ly-grid { grid-template-columns: repeat(2, 1fr); }
.ly-hero { grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, 1fr); } .ly-hero i:first-child { grid-row: span 3; } .ly-hero i:nth-child(n+2) { height: auto; }
.ly-list { grid-template-columns: 1fr; gap: 2px; } .ly-list i { height: 4px; }
@media (max-width: 1100px) { .boardedit { grid-template-columns: 1fr; } .boardprev { position: static; order: -1; } }
.pairgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.paircode { font-size: 28px !important; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; text-align: center; }
.paircard.highlight { border-color: #FFC72C; box-shadow: 0 0 0 3px rgba(255,199,44,.35); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.thumbs.portrait { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.thumb-slide { display: block; text-decoration: none; color: inherit; }
.thumb-slide .tf { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; outline: 2px solid transparent; transition: outline-color .15s; }
.thumbs.portrait .tf { aspect-ratio: 9 / 16; }
.thumb-slide .tf iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.thumb-slide:hover .tf { outline-color: #FFC72C; }
.thumb-slide .tl { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; }
.thumb-slide.off { opacity: .5; }
.mobgrid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.qrbox { text-align: center; }
.qrprev { width: 200px; height: 200px; margin: 0 auto 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.qrprev svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .mobgrid { grid-template-columns: 1fr; } }

/* Version 2.0 */
.meter { display: inline-block; width: 70%; height: 10px; background: #EEF1F4; border-radius: 99px; vertical-align: middle; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
details.card > summary { cursor: pointer; list-style: none; padding: 2px 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "▸ "; color: var(--muted); }
details.card[open] > summary::before { content: "▾ "; }
details.card > form.card { border: 0; padding: 12px 0 0; margin: 0; }
fieldset.avail .row label.inline { margin: 0 6px 0 0; }
.btn.small.primary { color: #fff; }
.copy { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
code { background: #EEF1F4; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.steps-wiz { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.steps-wiz a, .steps-wiz span { padding: 6px 12px; border-radius: 999px; background: #E6EAEE; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.steps-wiz .on { background: var(--ink); color: #fff; }
.steps-wiz .done { background: #DDF0E3; color: var(--ok); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tpl { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.tpl:hover { border-color: var(--primary); }
.tpl b { font-size: 16px; } .tpl small { color: var(--muted); }
.tpl .size { font-size: 12px; color: var(--primary); font-weight: 700; }
.import-table td.err { color: var(--err); } .import-table td.warn { color: var(--warn); }
.testgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.row > label { flex: 0 1 auto; margin-bottom: 4px; }
.row > label > input:not([type=checkbox]):not([type=radio]), .row > label > select { flex: none; width: auto; min-width: 150px; }
.row > label.inline { align-self: center; }
.trow > b, .trow > span { white-space: nowrap; }
.bonprev .qr { width: 140px; margin: 6px auto; } .bonprev .qr svg { width: 100%; display: block; }

/* v2.3 – Tarifkarten (Abo & Rechnungen) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.plan-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan-card.hi { border-color: #1a7f37; box-shadow: 0 0 0 2px rgba(26,127,55,.15); }
.plan-card.current { border-color: #16181D; box-shadow: 0 0 0 2px rgba(22,24,29,.12); }
.plan-card h3 { margin: 0; }
.plan-card .price { font-size: 1.5em; font-weight: 800; }
.plan-card .price small { font-size: .5em; font-weight: 500; color: #666; }
.plan-card ul { margin: 4px 0 8px; padding-left: 1.1em; flex: 1; }
.plan-card .btn { margin-top: auto; }
.plan-card > .badge { position: absolute; top: 12px; right: 12px; }
.errtxt { color: #b42318; }
