/* 🛡️ Mod-Zentrale – Apple-Stil, dunkel. Dynamic Type, 44-pt-Ziele. */
[hidden] { display: none !important; }
:root { --bg: #000; --card: #1c1c1e; --card2: #2c2c2e; --line: rgba(84,84,88,.55); --t: #fff; --t2: rgba(235,235,245,.62); --p: #bf5af2; --blue: #0a84ff; --ok: #30d158; --bad: #ff453a; --ease: cubic-bezier(.2,.8,.2,1); color-scheme: dark; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--t); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--blue); }
h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .6rem .2rem; }
small { font-size: .8rem; } .muted { color: var(--t2); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .65rem 1.2rem; border-radius: 14px; border: 0; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease); }
.btn:active { transform: scale(.97); } .btn:disabled { opacity: .45; }
.btn.tw { background: #9146ff; } .btn.ghost { background: var(--card2); } .btn.danger { background: rgba(255,69,58,.15); color: var(--bad); }
.btn.sm { min-height: 36px; padding: .35rem .85rem; font-size: .88rem; border-radius: 10px; }
.ib { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none; }
.ib.sm { width: 38px; height: 38px; background: var(--card2); font-size: 1rem; }
.eye.on { background: rgba(48,209,88,.18); }
input, select { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--card2); padding: .6rem .85rem; font-size: 1rem; }
input:focus, select:focus { outline: none; box-shadow: 0 0 0 3px rgba(10,132,255,.5); }
input[type=range] { padding: 0; min-height: 30px; background: none; accent-color: var(--blue); }
.emo { text-align: center; font-size: 1.35rem; padding: .3rem; }

.land { min-height: 100dvh; max-width: 26rem; margin: 0 auto; padding: 3rem 1.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; }
.logo { border-radius: 22%; } .big { font-size: 4rem; }
.lead { color: var(--t2); margin: 0; } .lead b { color: var(--t); } .fine { color: var(--t2); font-size: .8rem; margin: 0; }
.link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }

.wrap { max-width: 44rem; margin: 0 auto; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 5rem max(1rem, env(safe-area-inset-left)); display: grid; gap: 1.3rem; }
.wrap > * { min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-top: .5rem; }
.eyebrow { margin: 0 0 .15rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p); }
.acts { display: flex; gap: .5rem; align-items: center; } .av { width: 40px; height: 40px; border-radius: 50%; }
.seg { display: flex; padding: 2px; border-radius: 10px; background: rgba(118,118,128,.24); gap: 2px; }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: none; font-weight: 600; cursor: pointer; transition: background .2s; }
.seg button.on { background: #636366; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.seg.sm button { min-height: 32px; font-size: .88rem; }
.card { background: var(--card); border-radius: 18px; padding: 1rem; }
.sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; } .sh h2 { margin: 0 0 0 .2rem; }

/* Vorschau */
.pv { padding: .8rem; } .pvh { display: flex; align-items: baseline; gap: .6rem; margin: 0 .2rem .6rem; } .pvh small { color: var(--t2); flex: 1; }
.live { font-size: .78rem; font-weight: 700; color: var(--ok); } .live.off { color: var(--bad); }
.box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#1a1a1c 0 25%, #232325 0 50%) 0 0 / 24px 24px; touch-action: none; }
.box .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.box .wd { cursor: grab; touch-action: none; user-select: none; }
.box .wd.hid { opacity: .28; transform: translate(-50%, -50%) scale(var(--s, 1)); outline: 4px dashed rgba(255,255,255,.4); }
.box .wd.drag { transition: none; cursor: grabbing; outline: 6px solid var(--blue); outline-offset: 6px; border-radius: 26px; }

.alertf { display: flex; gap: .5rem; } .alertf .emo { width: 3.4rem; flex: none; } .alertf input:not(.emo) { flex: 1; min-width: 0; }

/* Element-Karten */
.list { display: grid; gap: .7rem; }
.wc { display: grid; gap: .8rem; transition: opacity .2s; } .wc.off { opacity: .6; }
.ch { display: flex; align-items: center; gap: .75rem; }
.ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--c) 28%, #2c2c2e); flex: none; }
.cl { flex: 1; min-width: 0; } .cl b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cl small { color: var(--t2); }
.cnt { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.pm { min-height: 64px; border: 0; border-radius: 16px; background: var(--card2); font-size: 2rem; font-weight: 600; cursor: pointer; transition: transform .12s; }
.pm:active { transform: scale(.94); } .pm.plus { background: var(--c, var(--blue)); }
.cv { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: center; min-width: 4.5rem; } .cv i { font-style: normal; font-size: 1.2rem; color: var(--t2); font-weight: 600; }
.tmr { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; } .tb { display: flex; gap: .4rem; }
.empty { text-align: center; color: var(--t2); padding: 2rem 1rem; background: var(--card); border-radius: 18px; }

/* Verwaltung */
.steps { margin: .5rem 0 .8rem; padding-left: 1.3rem; color: var(--t2); display: grid; gap: .3rem; } .steps b { color: var(--t); }
.copy { display: flex; gap: .5rem; align-items: center; margin-bottom: .7rem; } .copy code { flex: 1; min-width: 0; padding: .6rem .8rem; border-radius: 10px; background: var(--card2); font-size: .78rem; overflow-wrap: anywhere; }
.mr { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: .5px solid var(--line); margin-top: .5rem; } .mr img { width: 34px; height: 34px; border-radius: 50%; } .mr b, .mr small { display: block; } .mr small { color: var(--t2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; } .chip { min-height: 36px; padding: 0 .8rem; border-radius: 999px; border: 0; background: var(--card2); cursor: pointer; }
.log summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; min-height: 28px; } .log summary::-webkit-details-marker { display: none; }
.chev { color: rgba(235,235,245,.3); font-size: 1.4rem; transition: transform .2s; } .log[open] .chev { transform: rotate(90deg); }
.lr { padding: .5rem 0; border-top: .5px solid var(--line); font-size: .92rem; } .lr small { display: block; color: var(--t2); }

/* Sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0); transition: background .3s; }
.sheet.on { background: rgba(0,0,0,.6); }
.pane { width: 100%; max-width: 34rem; max-height: 92dvh; overflow: auto; background: #1c1c1e; border-radius: 22px 22px 0 0; padding: .6rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .4s var(--ease); }
.sheet.on .pane { transform: none; }
@media (min-width: 44rem) { .sheet { align-items: center; } .pane { border-radius: 22px; } }
.grab { width: 36px; height: 5px; border-radius: 3px; background: #48484a; margin: 0 auto .7rem; }
.shd { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; } .shd h2 { margin: 0; }
.fm { display: grid; gap: .8rem; } .fl { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--t2); } .row2 { display: flex; gap: .7rem; }
.sw8 { display: flex; gap: .5rem; flex-wrap: wrap; } .sw8 button { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; } .sw8 button.on { box-shadow: 0 0 0 3px #1c1c1e, 0 0 0 5px #fff; }

.toast { position: fixed; z-index: 99; left: 50%; top: max(1rem, env(safe-area-inset-top)); translate: -50% -160%; padding: .7rem 1.2rem; border-radius: 999px; background: rgba(44,44,46,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-weight: 600; transition: translate .3s var(--ease); max-width: calc(100% - 2rem); text-align: center; }
.toast.on { translate: -50% 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.list > *, .wc, .ch, section { min-width: 0; }
.vsc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.vsside { display: grid; gap: .3rem; justify-items: center; min-width: 0; } .vsside small { color: var(--t2); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsbtn { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; width: 100%; } .vsbtn .pm { min-height: 56px; font-size: 1.7rem; }
.vsx2 { font-weight: 900; color: var(--t2); font-size: .9rem; }
