/* Zeus OS - Aussehen. Farben stehen oben als Variablen und lassen sich zentral aendern. */
:root {
  --accent: #f5c518; --accent-ink: #15130a;
  --bg: #0e131c; --panel: #182030; --panel2: #121824; --sunk: #0b1018;
  --line: #2a3447; --line2: #3b4960; --text: #e9edf4; --muted: #a3aec0;
  --ok: #6fdcb4; --no: #ff9d8a; --accent-text: var(--accent);
  --font: "Segoe UI", Tahoma, "Noto Sans", system-ui, sans-serif;
  --head: Bahnschrift, "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="tag"] {
  --bg: #e6ebf2; --panel: #ffffff; --panel2: #f3f5f9; --sunk: #ffffff;
  --line: #cdd5e1; --line2: #a9b5c7; --text: #141a24; --muted: #4f5c72;
  --ok: #0c6e4c; --no: #ad2f1a; --accent-text: var(--text);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.2; text-wrap: balance; }
h3 { font-size: 19px; } h4 { font-size: 16px; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:root[data-theme="tag"] a { color: #1d4ed8; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-theme="tag"] :focus-visible { outline-color: #1d4ed8; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.pix { image-rendering: pixelated; }
.price { font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }
.price.big { font-size: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Knoepfe und Eingaben */
.btn { min-height: 44px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover:not(:disabled) { border-color: var(--text); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-family: var(--head); font-weight: 700; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); border-color: transparent; }
.btn-danger { color: var(--no); }
.btn-big { min-height: 48px; font-size: 17px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:root[data-theme="tag"] .link { color: #1d4ed8; }
.link.center { align-self: center; }
input, select, textarea { font: inherit; color: var(--text); background: var(--sunk); border: 1px solid var(--line2); border-radius: 9px; }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], select { min-height: 44px; padding: 0 12px; }
textarea { padding: 10px 12px; width: 100%; resize: vertical; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
input[type="color"] { width: 64px; height: 44px; padding: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.field input, .field select { width: 100%; }
.check { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 32px; }
.hint { font-size: 13px; color: var(--muted); }
.note { padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-size: 14px; }
.note-warn { border-color: var(--no); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); }
.badge { min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; text-align: center; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty { width: 78px; text-align: right; } .qty.wide { width: 104px; }
.text-in { width: 100%; min-width: 150px; }
.search { width: 100%; } .search.narrow { width: 220px; }

/* Bildschirme */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }
.brand { font-family: var(--head); font-weight: 700; letter-spacing: 2px; }
.logo-mark { border-radius: 20%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--head); font-weight: 700; flex: none; }
.logo-img { border-radius: 20%; object-fit: cover; flex: none; }

/* Anmeldung */
.auth { padding: 28px 32px 20px; overflow: auto; }
.auth-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; gap: 16px; }
.auth-top .brand { color: var(--text); }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 0; text-align: center; }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth-head h1 { font-size: 34px; } .auth-head p { color: var(--muted); }
.auth-card, .auth-info { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.auth-info { width: min(640px, 100%); }
.auth-info-head { display: flex; justify-content: space-between; align-items: center; }
.auth-foot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.auth-links { display: flex; gap: 14px; flex-wrap: wrap; }
.longtext { white-space: pre-line; max-width: 70ch; overflow-wrap: anywhere; }

/* Startsequenz */
.boot { align-items: center; justify-content: center; background: #05080d; color: #e9edf4; cursor: pointer; }
.boot-center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boot h1 { font-size: 36px; }
.boot-os { font-family: var(--head); letter-spacing: 6px; color: #a3aec0; }
.boot-bar { display: flex; gap: 4px; margin-top: 18px; padding: 4px; border: 2px solid #3b4960; border-radius: 4px; }
.boot-bar i { width: 12px; height: 18px; background: #131a26; }
.boot-bar i.on { background: var(--accent); }
.boot-line { color: #a3aec0; font-size: 14px; min-height: 20px; }
.boot-skip { position: absolute; bottom: 24px; color: #7f8ba0; font-size: 13px; }

/* Desktop */
.desktop { background-color: var(--bg); background-size: cover; background-position: center;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); }
.desktop:not(.has-wallpaper) { background-size: 64px 64px; }
.banner { flex: none; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-align: center; font-size: 14px; }
.desk-area { flex: 1; position: relative; min-height: 0; }
.desk-icons { position: absolute; left: 14px; top: 14px; bottom: 14px; display: flex; flex-direction: column; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.desk-icon { width: 104px; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 5px 4px; color: var(--text); font: inherit; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-shadow: 0 1px 3px var(--bg); }
.desk-icon:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); border-color: var(--line2); }
.desk-icon-box { width: 48px; height: 48px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--accent-text); }
.windows { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.window { position: absolute; pointer-events: auto; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); overflow: hidden; min-width: 320px; min-height: 220px; }
.window.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.win-bar { flex: none; height: 44px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding-left: 14px; cursor: grab; user-select: none; touch-action: none; }
.win-title { display: flex; gap: 10px; align-items: center; font-family: var(--head); font-weight: 600; }
.win-btns { display: flex; }
.win-btn { width: 46px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.win-btn:hover { background: var(--line); color: var(--text); }
.win-close:hover { background: #c0392b; color: #fff; }
.win-body { flex: 1; min-height: 0; overflow: auto; }
.taskbar { flex: none; height: 58px; background: var(--panel2); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 12px; gap: 12px; position: relative; z-index: 100000; }
.task-left, .task-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.task-right { gap: 18px; font-size: 14px; flex: none; }
.start-btn { height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: 1.5px; cursor: pointer; }
.task-btn { height: 44px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; }
.task-btn.on { background: var(--panel); border-color: var(--line2); color: var(--text); }
.task-konto { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.start-menu { position: absolute; left: 12px; bottom: 66px; width: 270px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.start-head { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; }
.start-head div { display: flex; flex-direction: column; }
.start-item { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; display: flex; gap: 12px; align-items: center; cursor: pointer; text-align: left; }
.start-item:hover { background: var(--line); }
.start-off { color: var(--no); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* Baumarkt */
.shop { display: flex; min-height: 100%; }
.shop-nav { width: 210px; flex: none; background: var(--panel2); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.nav-group { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }
.nav-btn { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; }
.nav-btn:hover { background: var(--line); }
.nav-btn.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav-btn.on .badge { background: var(--accent-ink); color: var(--accent); }
.shop-main { flex: 1; min-width: 0; padding: 18px 22px 28px; display: flex; flex-direction: column; gap: 20px; }
.shop-main section { display: flex; flex-direction: column; gap: 12px; }
.search-row { display: flex; gap: 10px; }
.search-box { position: relative; flex: 1; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 50px; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.suggest-btn { width: 100%; min-height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; display: flex; gap: 12px; align-items: center; padding: 0 10px; cursor: pointer; text-align: left; }
.suggest-btn:hover, .suggest-btn:focus-visible { background: var(--line); }
.suggest-btn .stock { margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.card-off .thumb { opacity: 0.45; }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-buy { display: flex; gap: 6px; }
.card-buy .qty { width: 66px; }
.stock { font-size: 13px; } .stock.ok { color: var(--ok); } .stock.no { color: var(--no); }
.thumb { border-radius: 6px; flex: none; }
.thumb-blank { display: grid; place-items: center; color: #fff; font-weight: 700; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

/* Slider */
.slider { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.slider-window { overflow: hidden; }
.slider-track { display: flex; transition: transform 0.55s ease; }
.slide { flex: 0 0 100%; min-height: 190px; position: relative; display: flex; align-items: center; }
.slide-art { position: absolute; inset: 0 0 0 45%; background-size: 96px 96px; opacity: 0.55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.slide-text { position: relative; padding: 22px 64px 34px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 640px; }
.slide-text h2 { font-size: 28px; }
.kicker { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.slide-hinweis .kicker { color: var(--muted); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.slider-arrow.left { left: 10px; } .slider-arrow.right { right: 10px; }
.slider-dots { position: absolute; bottom: 2px; left: 0; right: 0; display: flex; justify-content: center; }
.dot { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 5px; background: var(--line2); }
.dot.on::before { background: var(--accent-text); width: 20px; }

/* Tabellen und Kaesten */
.pad { padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); background: var(--panel2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.cell-product { display: flex; gap: 10px; align-items: center; }
.checkout { display: flex; gap: 18px; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; }
.checkout-sum { display: flex; flex-direction: column; align-items: flex-end; }
.order, .box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.box-off { opacity: 0.6; }
.order ul { margin: 0; padding-left: 18px; }
.form-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tab { min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.tab:hover { color: var(--text); border-color: var(--line2); }
.tab.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--head); font-size: 24px; font-variant-numeric: tabular-nums; }
.switch-row { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.text-edit label { font-family: ui-monospace, Consolas, monospace; }

.box-err { border-color: var(--no); }
.progress { height: 10px; border-radius: 5px; background: var(--sunk); border: 1px solid var(--line2); overflow: hidden; }
.progress div { height: 100%; background: var(--accent); transition: width 0.4s ease; }
.gen-wrap { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.gen-preview { max-width: 100%; height: auto; }
.gp-front { fill: var(--panel2); stroke: var(--line2); }
.gp-top { fill: var(--line2); stroke: var(--line2); }
.gp-side { fill: var(--line); stroke: var(--line2); }
.gp-lock { fill: var(--accent); }
:root[data-theme="tag"] .gp-lock { fill: var(--text); }

.banner-btn { margin-left: 8px; min-height: 30px; padding: 2px 12px; border-radius: 7px; border: 1px solid var(--accent-ink); background: transparent; color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
.shutdown { cursor: default; }
/* Einstellmodus */
.card-edit { border-style: dashed; border-color: var(--accent); gap: 10px; }
.card-hidden { opacity: 0.62; }
.edit-wrap { border: 1px dashed var(--accent); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.edit-off > :not(.edit-bar) { opacity: 0.35; }
.edit-bar { background: var(--panel2); border: 1px dashed var(--accent); border-radius: 9px; padding: 8px 12px; }
.nav-add { border: 1px dashed var(--accent) !important; margin-top: 8px; }

/* Firmenzentrale */
:root { --chart: var(--accent); }
:root[data-theme="tag"] { --chart: #1d4ed8; }
.field.grow { flex: 1; min-width: 220px; }
.fz-lock, .fz-intro { min-height: 100%; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.fz-lock-box { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.fz-lock-form { width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.fz-seal { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--chart); display: grid; place-items: center; }
.fz-seal span { width: 26px; height: 22px; border-radius: 5px; background: var(--chart); position: relative; }
.fz-seal span::before { content: ""; position: absolute; left: 4px; right: 4px; top: -14px; height: 16px; border: 3px solid var(--chart); border-bottom: 0; border-radius: 10px 10px 0 0; }
.fz-intro { background: #05080d; color: #e9edf4; cursor: pointer; }
.fz-intro-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fz-rise 0.9s ease both; }
.fz-intro-kicker { letter-spacing: 8px; font-family: var(--head); color: var(--accent); font-size: 13px; }
.fz-intro-ring { position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: fz-ring 2.6s ease-out infinite; }
.fz-ring2 { animation-delay: 1.1s; }
.fz-intro-bars { display: flex; gap: 6px; align-items: flex-end; height: 44px; }
.fz-intro-bars i { width: 10px; background: var(--accent); border-radius: 3px 3px 0 0; height: 8px; animation: fz-bar 1.1s ease-in-out infinite alternate; }
@keyframes fz-ring { 0% { transform: scale(0.35); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fz-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fz-bar { from { height: 8px; } to { height: 44px; } }
@keyframes fz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fz-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.fz-in { animation: fz-in 0.5s ease both; }
.stats .fz-in:nth-child(2) { animation-delay: 0.08s; } .stats .fz-in:nth-child(3) { animation-delay: 0.16s; } .stats .fz-in:nth-child(4) { animation-delay: 0.24s; }
.fz-num { font-family: var(--head); font-size: 24px; font-variant-numeric: tabular-nums; }
.fz-chart-wrap { position: relative; }
.fz-chart { width: 100%; height: auto; display: block; touch-action: none; }
.fz-grid { stroke: var(--line); stroke-width: 1; }
.fz-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.fz-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fz-draw { stroke-dasharray: 1; animation: fz-draw 1.4s ease both; }
.fz-cross { stroke: var(--line2); stroke-width: 1; }
.fz-dot { fill: var(--chart); stroke: var(--panel); stroke-width: 2; }
.fz-tip { position: absolute; top: 6px; pointer-events: none; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 130px; }
.fz-bars { display: flex; flex-direction: column; gap: 8px; }
.fz-bar { display: grid; grid-template-columns: minmax(90px, 180px) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.fz-bar-track { height: 14px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.fz-bar-fill { height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1); min-width: 2px; }
.fz-bar-val { font-variant-numeric: tabular-nums; }
.fz-tags { display: flex; gap: 4px; flex-wrap: wrap; max-width: 260px; }
.fz-auto { display: flex; flex-direction: column; gap: 8px; }
.fz-auto-part { display: flex; flex-direction: column; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .fz-intro-ring, .fz-intro-bars i, .fz-intro-core, .fz-in, .fz-draw { animation: none; } .fz-bar-fill { transition: none; } }

/* Meldungen */
#toasts { position: fixed; right: 16px; bottom: 74px; z-index: 200000; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--ok); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.toast-err { border-color: var(--no); }

/* Handy */
.mobile { background: var(--bg); background-size: cover; background-position: center; }
.m-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.m-body { flex: 1; min-height: 0; overflow: auto; background: var(--bg); }
.mobile.has-wallpaper .m-body { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.m-nav { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--panel2); border-top: 1px solid var(--line); }
.m-tab { min-height: 62px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.m-tab.on { color: var(--accent-text); font-weight: 600; }
:root[data-theme="tag"] .m-tab.on { box-shadow: inset 0 3px 0 var(--accent); }
.m-list { display: flex; flex-direction: column; gap: 4px; }
.m-list .start-item { background: var(--panel); border: 1px solid var(--line); min-height: 52px; }

@media (max-width: 820px) {
  .shop { flex-direction: column; }
  .shop-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; gap: 6px; }
  .nav-group { display: none; }
  .nav-btn { border: 1px solid var(--line); flex: none; }
  .shop-main { padding: 14px 14px 24px; }
  .search-row .btn { display: none; }
  .slide-text { padding: 18px 18px 34px; } .slide-text h2 { font-size: 22px; }
  .slider-arrow { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .pad { padding: 14px 14px 24px; }
  .auth { padding: 18px 16px; } .auth-foot { justify-content: center; text-align: center; }
  #toasts { left: 16px; right: 16px; bottom: 76px; align-items: stretch; }
  .search.narrow { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }

/* ---------- Registrieren mit GM-Link ---------- */
.auth-card h2 { margin: 0; font-size: 20px; }
.auth-alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wiz-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; counter-reset: wiz; }
.wiz-steps li { flex: 1; counter-increment: wiz; font-size: 13px; color: var(--muted); padding: 6px 4px 0; border-top: 3px solid var(--line); }
.wiz-steps li::before { content: counter(wiz) ". "; }
.wiz-steps li.now { color: var(--text); border-color: var(--accent); font-weight: 600; }
.wiz-steps li.done { border-color: var(--accent); opacity: .7; }
.wiz-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); min-height: 24px; margin: 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: zspin .9s linear infinite; flex: none; }
@keyframes zspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.wiz-hello { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.skin-head { image-rendering: pixelated; border-radius: 8px; background: var(--panel2); flex: none; }
.profile-box { display: flex; align-items: center; gap: 16px; }
.profile-box .skin-head { width: 72px; height: 72px; }
.task-skin { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; vertical-align: middle; }

/* ---------- Version, Fehlerprotokoll, Update-Hinweis ---------- */
.version-tag { font-size: 11px; color: var(--muted); opacity: .6; letter-spacing: .02em; margin: 0; }
.desk-version { position: absolute; right: 12px; bottom: 6px; pointer-events: none; z-index: 0; }
.auth-foot .version-tag { display: block; width: 100%; text-align: center; }
.settings > .version-tag, .m-body .version-tag { text-align: center; padding-top: 4px; }
.errlog { width: 100%; font: 12px/1.45 ui-monospace, Consolas, monospace; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
.update-hint { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 9000; display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 8px 10px 8px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: calc(100% - 32px); }

/* ---------- Guthaben ---------- */
button.task-konto { background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--text); font: inherit; cursor: pointer; padding: 2px 10px; min-height: 44px; justify-content: center; }
button.task-konto:hover { border-color: var(--line2); }
.js-balance.flash { animation: zflash 1.2s ease; }
@keyframes zflash { 0% { color: var(--accent); transform: scale(1.12); } 100% { color: inherit; transform: none; } }
.guthaben { display: flex; flex-direction: column; gap: 14px; }
.balance-card { align-items: flex-start; }
.balance-big { font-size: 34px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.plus { color: var(--ok); } .minus { color: var(--text); }
.entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.entry { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entry.gone { opacity: .55; } .entry.gone .entry-amount { text-decoration: line-through; }
.entry-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock.warn { color: var(--accent-text); }
.deposit-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.deposit-steps li { display: flex; flex-direction: column; gap: 6px; }
.copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-value { font: 600 18px/1.2 ui-monospace, Consolas, monospace; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 12px; letter-spacing: .04em; user-select: all; }
.copy-value.code { color: var(--accent-text); }
.btn-copy { display: inline-flex; align-items: center; gap: 6px; }
.success-card { align-items: center; text-align: center; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; background: var(--ok); color: #0b1a10; animation: zpop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes zpop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.ask-save { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.iban-list { display: flex; flex-direction: column; gap: 6px; }
.iban-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.iban-pick > span { flex: 1; display: flex; flex-direction: column; }
.iban-pick:has(input:checked) { border-color: var(--accent); }
.after { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.after-bar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.after-bar i { display: block; height: 100%; background: var(--accent); transition: width .35s ease; }
.confirm-card { border-color: var(--accent); }
.confirm-sum { font-size: 18px; margin: 0; }

/* ---------- Bestellstatus ---------- */
.status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--accent); }
.status-dot.run { background: var(--accent); animation: zpulse 1.4s ease-in-out infinite; }
@keyframes zpulse { 50% { opacity: .3; transform: scale(.7); } }
.order-warn { border-color: var(--accent); }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.progress.thin { height: 6px; margin-top: 4px; }
.progress.moving div { background-image: linear-gradient(90deg, transparent 0, rgba(255,255,255,.35) 50%, transparent 100%); background-size: 60px 100%; animation: zslide 1s linear infinite; }
@keyframes zslide { from { background-position: -60px 0; } to { background-position: 60px 0; } }

/* ---------- Verkaufen ---------- */
.sell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sell-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); animation: zin .35s ease both; }
@keyframes zin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sell-line, .success-mark, .status-dot.run, .progress.moving div, .js-balance.flash { animation: none; } }
