/* MVIU Manager – Farben nach mviu.ch (Gelb/Schwarz) */
:root {
  --y: #fad817; --k: #1d1d1b; --bg: #f6f5f0; --gray: #5c5c58; --line: #e6e3d8; --ok: #1f8a4c; --bad: #c0362c;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: "Arial Black", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--k); font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
body.dark { background: var(--k); display: grid; place-items: center; padding: 24px 16px; }
h1 { font: 900 clamp(1.6rem, 5vw, 2.4rem)/1.15 var(--head); margin: 0 0 6px; }
.muted { color: var(--gray); }
.small { font-size: .85rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin: 0 0 4px; }
.card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(29,29,27,.07); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; background: var(--k); color: #fff; font: 700 .95rem var(--font); padding: 11px 18px; border-radius: 999px; }
.btn.y { background: var(--y); color: var(--k); }
.btn.wide { width: 100%; margin-top: 8px; }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #555; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
label { display: block; font-weight: 700; font-size: .9rem; margin-top: 12px; }
input { display: block; width: 100%; margin-top: 4px; font: 16px var(--font); padding: 12px 14px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 2px var(--line); }
input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--k); }
.err { color: var(--bad); font-weight: 700; min-height: 1.2em; margin: 8px 0 0; }
.ok { color: var(--ok); font-weight: 700; margin: 8px 0 0; }
/* der gelbe Faden */
.faden { display: block; width: 120px; height: 16px; margin: 4px auto 6px; }
.faden path { fill: none; stroke: var(--y); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wide-faden { width: 100%; height: 22px; margin: 6px 0 18px; }

/* Login */
.login { width: 100%; max-width: 420px; display: grid; gap: 12px; }
.logo-card { background: #fff; border-radius: 22px; padding: 18px; display: grid; place-items: center; }
.logo-card img { height: 150px; }
.login h1 { font-size: 1.6rem; }
.foot-note { color: #9a9a92; font-size: .85rem; text-align: center; margin: 0; }

/* Startseite */
.top { background: var(--k); color: #fff; }
.top-in { max-width: 960px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.ibex { height: 44px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font: 900 1.05rem var(--head); text-transform: uppercase; letter-spacing: .03em; }
.brand small { color: #cfcfc8; font-size: .78rem; }
.who { margin-left: auto; color: #cfcfc8; font-size: .85rem; }
@media (max-width: 520px) { .who, .brand small { display: none; } .brand { margin-right: auto; } }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 26px 16px 30px; flex: 1; }
.tiles { display: grid; gap: 16px; }
@media (min-width: 680px) { .tiles { grid-template-columns: 1fr 1fr; } }
a.tile { position: relative; display: block; text-decoration: none; color: var(--k); background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 8px 24px rgba(29,29,27,.08); transition: transform .15s; }
a.tile:hover { transform: translateY(-3px); }
a.tile.y { background: var(--y); }
a.tile img { width: 64px; height: 64px; border-radius: 16px; display: block; margin-bottom: 14px; }
a.tile h2 { font: 900 1.35rem var(--head); margin: 0 0 4px; }
a.tile p { margin: 0; color: #4d4d48; }
.open { display: inline-block; margin-top: 14px; font-weight: 800; }
.status { position: absolute; top: 22px; right: 22px; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.75); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.status.on::before { background: var(--ok); }
.status.off::before { background: var(--bad); }
.status.off { color: var(--bad); }
.note { background: #fff8cf; border-radius: 14px; padding: 10px 14px; margin-top: 16px; font-size: .9rem; }
details.pw { margin-top: 22px; }
details.pw summary { cursor: pointer; font-weight: 700; }
.foot { text-align: center; color: var(--gray); font-size: .85rem; padding: 18px 16px 26px; }
.tilewrap { display: grid; gap: 8px; }
.direct { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 8px 8px 8px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.direct code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--gray); }
