/* PrimeCloud – Web-Oberfläche. Farben und Maße wie primearea.net */
:root {
  color-scheme: dark;
  --bg: #0b0c0f; --bg-elev: #101216; --surface: #14161b; --surface-2: #1a1d23; --surface-3: #23272f;
  --fill: rgba(255,255,255,.06); --fill-2: rgba(255,255,255,.1);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.13); --line-3: rgba(255,255,255,.22);
  --fg: #f3f4f6; --fg-2: #b4b9c3; --fg-3: #80879a;
  --accent: #c7131c; --accent-2: #ee3d47; --accent-rgb: 199,19,28; --accent2-rgb: 238,61,71; --accent-soft: rgba(var(--accent2-rgb),.13);
  --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --blue: #0a84ff; --purple: #bf5af2; --yellow: #ffd60a;
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-sheet: 14px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --side: 248px;
}
/* Farbstile wie auf primearea.net (Auswahl in Konto → Darstellung; gespeichert pro Konto) */
:root[data-theme="azure"]   { --accent: #0071b3; --accent-2: #33a9ee; --accent-rgb: 0,137,212;  --accent2-rgb: 51,169,238; }
:root[data-theme="emerald"] { --accent: #2b8012; --accent-2: #69c93f; --accent-rgb: 71,169,31;  --accent2-rgb: 105,201,63; }
:root[data-theme="neon"]    { --accent: #c3137e; --accent-2: #e83fa3; --accent-rgb: 195,19,126; --accent2-rgb: 232,63,163; }
:root[data-theme="solar"]   { --accent: #ce2b02; --accent-2: #f2552a; --accent-rgb: 206,43,2;   --accent2-rgb: 242,85,42; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.hidden { display: none !important; }

/* Lade-Zustand */
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Anmelden ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; position: relative; }
.auth::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 78% 10%, rgba(var(--accent-rgb),.25), transparent 70%); }
.auth-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sheet); padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-brand img { height: 24px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.auth h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
.auth p.sub { color: var(--fg-3); margin: 0 0 18px; }
.auth-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--fg-3); flex-wrap: wrap; }
.link { background: none; border: 0; padding: 0; color: var(--fg-2); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--fg); text-decoration: underline; }
.link.accent { color: var(--accent-2); }

/* ---------- Formulare ---------- */
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; }
.input, select.input { width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); outline: none; transition: border-color .15s; }
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent2-rgb),.18); }
.error { color: #ff9d96; font-size: 14px; margin: 12px 0 0; }
.ok { color: #8ef0a8; font-size: 14px; margin: 12px 0 0; }
.notice { border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.notice.ok { background: rgba(48,209,88,.1); border: 1px solid rgba(48,209,88,.28); }
.notice.err { background: rgba(255,69,58,.1); border: 1px solid rgba(255,69,58,.28); color: #ff9d96; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r); border: 0; background: var(--fill); color: var(--fg); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, opacity .15s; text-decoration: none; }
.btn:hover { background: var(--fill-2); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { background: rgba(255,69,58,.14); color: #ff8f88; }
.btn.danger:hover { background: rgba(255,69,58,.24); }
.btn.full { width: 100%; height: 44px; margin-top: 22px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 0; background: transparent; color: var(--fg-2); }
.icon-btn:hover { background: var(--fill); color: var(--fg); }

/* ---------- Grundlayout ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg-elev); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; text-decoration: none; }
.side-brand img { height: 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r); color: var(--fg-2); text-decoration: none; font-weight: 500; position: relative; }
.nav a:hover { background: var(--fill); color: var(--fg); }
.nav a.active { background: var(--accent-soft); color: var(--fg); }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--accent-2); }
.nav a.active svg { color: var(--accent-2); }
.side-spacer { flex: 1; }
.quota { padding: 14px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.quota-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-2); font-weight: 600; }
.quota small { display: block; color: var(--fg-3); font-size: 12px; margin-top: 8px; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
.bar.warn > i { background: var(--red); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 12px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.side-user .who { min-width: 0; flex: 1; }
.side-user b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { display: block; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; position: relative; }
.main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none; background: radial-gradient(50% 70% at 85% 0%, rgba(var(--accent-rgb),.13), transparent 70%); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 28px; background: rgba(11,12,15,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.menu-btn { display: none; }
.content { position: relative; padding: 20px 28px 80px; flex: 1; }

/* Brotkrumen */
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; overflow: hidden; }
.crumbs a, .crumbs span { padding: 4px 8px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: 18px; color: var(--fg-2); }
.crumbs a:hover { background: var(--fill); color: var(--fg); }
.crumbs .cur { color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--fg-3); padding: 0; font-weight: 400; }
.actions { display: flex; gap: 8px; flex: none; }

/* Dateiliste */
.list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.list-head, .item { display: grid; grid-template-columns: minmax(0,1fr) 150px 110px 44px; align-items: center; gap: 12px; padding: 0 12px 0 16px; }
.list-head { height: 40px; font-size: 12px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.item { min-height: 54px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item:hover { background: rgba(255,255,255,.03); }
.item .name { display: flex; align-items: center; gap: 12px; min-width: 0; background: none; border: 0; padding: 8px 0; text-align: left; }
.item .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.item .name:hover span { text-decoration: underline; text-decoration-color: var(--line-3); }
.item .meta { color: var(--fg-3); font-size: 13px; white-space: nowrap; }
.item .meta.size { text-align: right; }
.list-head .size { text-align: right; }
.ficon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: .03em; flex: none; }
.ficon.folder { background: rgba(255,214,10,.12); color: #ffd60a; }
.ficon.img { background: rgba(10,132,255,.14); color: #64aaff; }
.ficon.vid { background: rgba(191,90,242,.14); color: #d08cf7; }
.ficon.aud { background: rgba(48,209,88,.13); color: #6ee38f; }
.ficon.doc { background: rgba(10,132,255,.14); color: #64aaff; }
.ficon.pdf { background: var(--accent-soft); color: var(--accent-2); }
.ficon.zip { background: rgba(255,159,10,.14); color: #ffb648; }
.ficon.code { background: rgba(48,209,88,.13); color: #6ee38f; }
.ficon.other { background: var(--fill); color: var(--fg-2); }
.shared-dot { color: var(--accent-2); margin-left: 4px; }

.empty { text-align: center; padding: 64px 20px; color: var(--fg-3); }
.empty .big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--fill); color: var(--fg-2); }
.empty h2 { color: var(--fg); font-size: 18px; margin: 0 0 6px; }
.empty p { margin: 0 0 18px; }

/* Menü */
.menu { position: fixed; z-index: 50; min-width: 210px; padding: 6px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: pop .14s var(--ease); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--fg); text-align: left; font-size: 14px; }
.menu button:hover { background: var(--fill-2); }
.menu button svg { color: var(--fg-2); }
.menu button.danger, .menu button.danger svg { color: #ff8f88; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* Dialoge */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sheet); padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .18s var(--ease); }
.dialog.wide { max-width: 640px; }
.dialog h2 { margin: 0 0 6px; font-size: 19px; }
.dialog p.sub { color: var(--fg-2); margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.copyrow { display: flex; gap: 8px; margin-top: 10px; }
.copyrow .input { font-size: 13px; }
.sharelist { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sharebox { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--surface-2); }
.info { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 12px; color: var(--fg-3); margin-top: 6px; font-weight: 400; }
.item .name .info span { font-weight: 400; overflow: visible; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin: 22px 0 0; }

/* Ordnerauswahl (Verschieben) */
.picker { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); max-height: 300px; overflow: auto; }
.picker button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.picker button:hover { background: var(--fill); }
.picker .up { color: var(--fg-2); }

/* Vorschau */
.preview { position: fixed; inset: 0; z-index: 70; background: rgba(5,6,8,.94); display: flex; flex-direction: column; animation: fade .15s; }
.preview-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.preview-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; overflow: auto; }
.preview-body img, .preview-body video { max-width: 100%; max-height: 100%; border-radius: var(--r); }
.preview-body iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r); background: #fff; }
.preview-body pre { width: 100%; max-width: 1000px; height: 100%; margin: 0; padding: 18px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font: 13px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre-wrap; word-break: break-word; }

/* Upload-Panel */
.uploads { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 360px; max-width: calc(100vw - 32px); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,.55); overflow: hidden; animation: pop .2s var(--ease); }
.uploads-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.uploads-head span { flex: 1; }
.uploads-list { max-height: 260px; overflow: auto; }
.up { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.up:last-child { border-bottom: 0; }
.up-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.up-top b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-top em { font-style: normal; color: var(--fg-3); flex: none; }
.up .bar { margin-top: 6px; height: 4px; }
.up.done em { color: var(--green); }
.up.fail em { color: #ff8f88; }
.up.done .bar > i { background: var(--green); }

/* Drag & Drop */
.drop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(11,12,15,.85); pointer-events: none; }
.drop div { padding: 40px 56px; border: 2px dashed var(--accent-2); border-radius: 20px; text-align: center; background: var(--accent-soft); font-size: 18px; font-weight: 600; }
.drop small { display: block; color: var(--fg-2); font-weight: 400; font-size: 14px; margin-top: 6px; }

/* Karten (Konto) */
.cards { display: grid; gap: 16px; max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card h2 { font-size: 16px; margin: 0 0 4px; }
.card p.sub { color: var(--fg-3); margin: 0; font-size: 14px; }
.card .row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.card .row .field { flex: 1; min-width: 200px; }
.card.danger { border-color: rgba(255,69,58,.3); }
.device { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: 0; padding-bottom: 0; }
.device .dicon { width: 38px; height: 38px; border-radius: 10px; background: var(--fill); display: grid; place-items: center; color: var(--fg-2); flex: none; }
.device .dinfo { flex: 1; min-width: 0; }
.device .dinfo b { display: block; font-weight: 600; font-size: 14px; }
.device .dinfo > span { display: block; font-size: 12px; color: var(--fg-3); }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; background: rgba(48,209,88,.14); color: #6ee38f; margin-left: 6px; vertical-align: 1px; }
.badge.red { background: var(--accent-soft); color: var(--accent-2); }
.badge.gray { background: var(--fill); color: var(--fg-2); }
.stat { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg-2); margin-top: 14px; }

/* Toasts */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,.5); font-size: 14px; animation: pop .2s var(--ease); max-width: calc(100vw - 32px); }
.toast.err { border-color: rgba(255,69,58,.45); }
.toast svg { color: var(--green); }
.toast.err svg { color: var(--red); }

/* ---------- Admin ---------- */
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.banner-slot:empty { display: none; }
.banner { position: relative; display: flex; align-items: center; gap: 10px; margin: 16px 28px 0; padding: 11px 14px; border-radius: var(--r); background: rgba(255,159,10,.1); border: 1px solid rgba(255,159,10,.3); font-size: 14px; }
.banner svg { color: var(--orange); }
.tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; margin-left: 12px; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r); color: var(--fg-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs a:hover { background: var(--fill); color: var(--fg); }
.tabs a.active { background: var(--accent-soft); color: var(--fg); }
.tabs .nav-count { margin-left: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { height: 100%; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tile-top { display: flex; justify-content: space-between; align-items: center; color: var(--fg-3); font-size: 13px; font-weight: 600; }
.tile-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; line-height: 1.15; }
.tile-sub { display: flex; align-items: center; gap: 6px; color: var(--fg-3); font-size: 13px; margin-top: 6px; }
.tile-sub.good svg { color: var(--green); }
.tile-sub.bad svg { color: var(--red); }
.tile-sub.bad { color: var(--fg-2); }
.tile-link { text-decoration: none; display: block; }
.tile-link .tile:hover { border-color: var(--line-3); }
.list-head.admin-row, .item.admin-row { grid-template-columns: minmax(0,1fr) 140px 200px; }
a.item { color: inherit; text-decoration: none; }
.item.admin-row .name { padding: 10px 0; }
.sub-line { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.avatar.off { background: var(--surface-3); color: var(--fg-3); }
.badge.orange { background: rgba(255,159,10,.15); color: #ffb648; }
.usage { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.usage .bar { flex: 1; max-width: 90px; margin: 0; }
.usage span { white-space: nowrap; font-size: 12px; color: var(--fg-3); }
.card .usage { justify-content: flex-start; }
.card .usage .bar { max-width: none; height: 8px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .input[type=search] { flex: 1 1 260px; width: auto; min-width: 200px; }
.toolbar select.input { width: auto; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; color: var(--fg-3); font-size: 14px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: none; color: var(--fg-2); font-weight: 600; font-size: 13px; }
.seg button.active { background: var(--fill-2); color: var(--fg); }
.report-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report-head .badge { margin-left: 0; }
.quote { margin: 14px 0; padding: 12px 14px; border-left: 3px solid var(--accent-2); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; white-space: pre-wrap; word-break: break-word; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 14px; }
.kv > span:nth-child(odd) { color: var(--fg-3); }
.kv a { color: var(--fg-2); word-break: break-all; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.switch { appearance: none; flex: none; width: 44px; height: 24px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg-2); transition: transform .2s var(--ease), background .15s; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(20px); background: #fff; }
.muted-note { color: var(--fg-3); font-size: 13px; margin-top: 16px; }
.log-target a { color: var(--fg-2); }
.section-title + .list { margin-top: 10px; }
h2.section-title { margin-top: 28px; }

/* ---------- Pakete & Gutscheine ---------- */
a.quota { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.quota:hover { border-color: var(--line-3); }
.accent-text { color: var(--accent-2); font-weight: 600; }
.cards.wide { max-width: 980px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.card-head .usage { min-width: 240px; flex: 0 1 320px; align-self: center; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.big-title { font-size: 30px !important; letter-spacing: -.02em; margin: 0 0 4px !important; }
.hero-card { background: radial-gradient(70% 120% at 100% 0%, rgba(var(--accent-rgb),.18), transparent 60%), var(--surface); border-color: var(--line-2); }
.redeem { display: flex; gap: 10px; margin-top: 10px; max-width: 520px; }
.code-input { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.info-card { display: flex; gap: 14px; align-items: flex-start; }
.info-card > svg { color: var(--accent-2); margin-top: 2px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan { position: relative; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border-color: rgba(var(--accent2-rgb),.45); }
.plan.current { box-shadow: inset 0 0 0 1px var(--green); border-color: transparent; }
.plan-flag { position: absolute; top: -10px; right: 16px; height: 20px; padding: 0 8px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
.plan-name { font-weight: 700; font-size: 15px; color: var(--fg-2); }
.plan-size { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.plan-price { margin-top: 10px; font-size: 18px; font-weight: 700; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--fg-3); }
.plan-year { font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); }
.plan li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.item.voucher-row { grid-template-columns: minmax(0,1fr) 120px 92px; }
.item.voucher-row .meta.size { display: flex; justify-content: flex-end; }
.item.dim { opacity: .55; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .04em; font-weight: 600; }
textarea.codes { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; height: auto; padding: 12px; resize: vertical; }
textarea.input { height: auto; padding: 10px 13px; resize: vertical; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.logo b { color: var(--accent-2); font-weight: 700; }
.side-brand .logo { font-size: 18px; }
.side-brand .logo img { width: 26px; height: 26px; }
.auth-brand .logo { font-size: 22px; }

/* ---------- Passwort-Tresor ---------- */
.vault-center { display: flex; justify-content: center; padding-top: 24px; }
.vault-card { width: 100%; max-width: 480px; }
.vault-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 14px; }
.facts { margin: 16px 0 6px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--fg-2); }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); cursor: pointer; line-height: 1.45; }
.check input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--fg-3); min-height: 16px; }
.meter .bar { flex: 1; margin: 0; height: 5px; }
.meter .bar i.s1 { background: var(--red); } .meter .bar i.s2 { background: var(--orange); } .meter .bar i.s3 { background: var(--green); } .meter .bar i.s4 { background: var(--green); }
.range { width: 100%; accent-color: var(--accent); margin-top: 6px; }
.gen-row { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--fg-2); }
.recovery-code { margin-top: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px dashed var(--line-3); font: 600 18px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .06em; text-align: center; word-spacing: 6px; user-select: all; }
.item.vault-row { grid-template-columns: minmax(0,1fr) 92px; }
.item.vault-row .meta.quick { display: flex; justify-content: flex-end; }
.ficon.letter { background: var(--accent-soft); color: var(--accent-2); font-size: 15px; }
.vfields { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.vfield { display: grid; grid-template-columns: 130px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line); }
.vfield:last-child { border-bottom: 0; }
.vlabel { font-size: 13px; color: var(--fg-3); }
.secret { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vactions { display: flex; align-items: center; gap: 2px; }
.vfield.notes { grid-template-columns: 1fr; }
.note-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.totp { font-size: 18px; letter-spacing: .08em; color: var(--fg); }
.totp-left { font-size: 12px; color: var(--fg-3); min-width: 32px; text-align: right; }

.legal-note { font-size: 13px; margin-top: 14px; }
.legal-note a, .auth-legal a { color: var(--fg-2); }
.auth-legal { position: relative; display: flex; gap: 14px; margin-top: 18px; font-size: 12px; color: var(--fg-3); }

/* ---------- Zwei-Faktor ---------- */
.twofa-setup { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-top: 8px; }
.qr-box { padding: 8px; background: #fff; border-radius: 12px; line-height: 0; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; font-size: 14px; color: var(--fg-2); }
.steps .input, .steps .copyrow { margin-top: 8px; }
.secret-key { flex: 1; padding: 9px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); font: 600 14px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .05em; color: var(--fg); word-break: break-all; }
.codes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; font-size: 16px; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 55; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: 30px 0 60px rgba(0,0,0,.5); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 54; background: rgba(0,0,0,.5); }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .content { padding: 16px 16px 90px; }
  .list-head, .item { grid-template-columns: minmax(0,1fr) 44px; }
  .list-head .date, .list-head .size, .item .meta { display: none; }
  .item .mobile-meta { display: block; }
  .actions .label { display: none; }
  .actions .btn { width: 40px; padding: 0; }
  .options { grid-template-columns: 1fr; }
  .list-head.admin-row, .item.admin-row { grid-template-columns: minmax(0,1fr) auto; }
  .item.admin-row .meta.size { display: none; }
  .item.admin-row .meta:not(.size) { display: block; font-size: 12px; }
  .tabs { margin-left: 0; order: 3; flex-basis: 100%; }
  .banner { margin: 12px 16px 0; }
  .kv { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .twofa-setup { grid-template-columns: 1fr; justify-items: center; }
  .vfield { grid-template-columns: minmax(0,1fr) auto; }
  .vfield .vlabel { grid-column: 1 / -1; }
  .item.vault-row .meta.quick { display: flex; }
  .redeem { flex-direction: column; }
  .item.voucher-row { grid-template-columns: minmax(0,1fr) 92px; }
  .item.voucher-row .meta:not(.size) { display: none; }
  .item.voucher-row .meta.size { display: flex; }
  .crumbs a, .crumbs span { font-size: 16px; }
}
.mobile-meta { display: none; font-size: 12px; color: var(--fg-3); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Sprache & Farbstil (Konto → Darstellung und Anmeldeseite) */
.lang-seg button { display: inline-flex; align-items: center; gap: 8px; }
.flag { border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.swatches { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--sw); box-shadow: inset 0 0 0 2px var(--bg); padding: 0; transition: transform .15s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--fg); }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.pref-row:first-of-type { margin-top: 10px; }
.pref-row > span { font-weight: 600; color: var(--fg-2); font-size: 14px; }
.auth-prefs { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.auth-prefs .swatch { width: 22px; height: 22px; }
@media (max-width: 480px) { .lang-seg button { padding: 0 10px; } }