/* EULEN MEDIA – Kundenportal und Startseite (eule.studio). Gleiche Gestaltung wie das Studio (web/admin/theme.css):
   flach und ruhig, hellgrauer Grund, weiße Karten ohne Rahmen und Schatten, Knöpfe als Kapseln – Hauptaktion in
   EULEN-MEDIA-Orange, Nebenaktionen zart orange getönt. Kein Glas, keine Verläufe; Schatten nur auf Schwebendem. */

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #efefec;
  --ink: #191817;
  --ink-soft: #3c3a38;
  --muted: #74716e;
  --line: rgba(25, 24, 23, 0.07);
  --line-strong: rgba(25, 24, 23, 0.13);
  --accent: #e78408;
  --accent-strong: #c96f00;
  --accent-soft: rgba(231, 132, 8, 0.12);
  --on-accent: #ffffff;
  --pill: rgba(25, 24, 23, 0.055);
  --ok: #1f9d55;
  --ok-bg: rgba(31, 157, 85, 0.12);
  --warn: #b0630a;
  --warn-bg: rgba(231, 132, 8, 0.14);
  --err: #d8392a;
  --err-bg: rgba(216, 57, 42, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  /* Flach: Karten ohne Schatten – Schatten nur auf Schwebendem (Menüs, Dialoge, Tab-Leiste am Handy) */
  --shadow: none;
  --pop-shadow: 0 16px 40px -12px rgba(25, 24, 23, 0.22), 0 2px 6px rgba(25, 24, 23, 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
/* Darstellung: wie das System (Standard) – oder fest Hell/Dunkel über den Schalter oben (data-theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --ink: #ecebea;
    --ink-soft: #c8c6c3;
    --muted: #9b9895;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);
    --accent-strong: #f0a64a;
    --accent-soft: rgba(231, 132, 8, 0.16);
    --on-accent: #ffffff;
    --pill: rgba(255, 255, 255, 0.08);
    --ok: #4cc97a;
    --ok-bg: rgba(76, 201, 122, 0.14);
    --warn: #efbc7c;
    --warn-bg: rgba(239, 188, 124, 0.14);
    --err: #ff6b5b;
    --err-bg: rgba(255, 107, 91, 0.13);
    --pop-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --ink: #ecebea;
  --ink-soft: #c8c6c3;
  --muted: #9b9895;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --accent-strong: #f0a64a;
  --accent-soft: rgba(231, 132, 8, 0.16);
  --on-accent: #ffffff;
  --pill: rgba(255, 255, 255, 0.08);
  --ok: #4cc97a;
  --ok-bg: rgba(76, 201, 122, 0.14);
  --warn: #efbc7c;
  --warn-bg: rgba(239, 188, 124, 0.14);
  --err: #ff6b5b;
  --err-bg: rgba(255, 107, 91, 0.13);
  --pop-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent-strong); }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; }

/* ---------- Knöpfe & Felder ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
/* Hauptknopf einfarbig, ohne Verlauf und Leuchten */
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-strong); }
.btn-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.btn-ghost { background: transparent; color: var(--muted); min-height: 40px; padding: 0 14px; }
.btn-ghost:hover { color: var(--ink); background: var(--pill); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea, .who-form input, .lost-form input {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface-2); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .who-form input:focus, .lost-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Karten: weiß, ohne Rahmen und Schatten. „.glass“ heißt nur noch so – Menüs sind deckend mit Schatten. */
.card { background: var(--surface); border: 0; border-radius: var(--radius); }
.glass { background: var(--surface); border: 0; box-shadow: var(--pop-shadow); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-err { background: var(--err-bg); color: var(--err); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Startseite des QR-Codes ---------- */
.landing { max-width: 920px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 20px 40px; }
.landing-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 36px; }
.landing-head img { width: 72px; height: 72px; border-radius: 20px; }
.landing-head h1 { margin: 6px 0 0; font-size: clamp(30px, 5vw, 42px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
/* Schriftzug statt Text (solange noch kein Kunde begrüßt wird) */
.landing-head h1 .wm-lock { font-size: clamp(26px, 6vw, 40px); }
.landing-head p { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: 17px; }
/* „EULEN MEDIA Studio.“ – zweites Wort in Orange */
.grad { font-style: normal; color: var(--accent); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.choice { display: grid; gap: 12px; align-content: start; padding: 26px; }
.choice h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.choice p { margin: 0; color: var(--ink-soft); }
.choice .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-strong); }
.choice .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice .tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12.5px; font-weight: 700; }
.landing { position: relative; }
.landing-top { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 20px; }
.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px 22px; align-items: center; margin-top: 18px; padding: 22px 24px; }
.lost h2 { margin: 0; font-size: 18px; font-weight: 700; }
.lost p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.lost-form { display: flex; gap: 8px; }
.lost-form input { flex: 1; min-width: 0; }
#lost-done { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .lost { grid-template-columns: 1fr; } .lost-form { flex-direction: column; } }
.landing-foot { margin-top: 36px; text-align: center; font-size: 13.5px; color: var(--muted); }
.landing-foot a { color: var(--muted); }

/* ---------- Portal ---------- */
.portal { max-width: 1080px; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 20px 48px; }
.top {
  position: sticky; top: max(10px, env(safe-area-inset-top)); z-index: 20; display: flex; align-items: center; gap: 18px;
  margin: 0 -10px 18px; padding: 10px 12px; border-radius: 24px; border: 1px solid transparent;
  transition: background 0.25s, box-shadow 0.25s;
}
/* Beim Scrollen deckend auf dem Grund mit feiner Linie darunter (wie im Studio) */
.top.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); border-radius: 0; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
.clogo { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; overflow: hidden; background: var(--surface); font-weight: 700; color: var(--accent-strong); }
/* Logo mit eigenem Hintergrund: etwas Luft zum Rand, Fläche in der Hintergrundfarbe des Logos (per JS aus den Ecken) */
.clogo img { width: 100%; height: 100%; object-fit: contain; padding: 15%; box-sizing: border-box; }
.clogo:has(img) { background: var(--logo-bg, #fff); }
.clogo.free { background: transparent; }
.clogo.free img { padding: 0; }
.brand-text { display: grid; min-width: 0; line-height: 1.2; }
.brand-text small { color: var(--muted); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3em; }
.brand-text small .wm { font-size: 8.5px; }
.brand-text strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 10px; }
/* Bereiche: ohne Spur auf dem Grund, gewählt = weiße Kapsel mit orangem Symbol (wie die Seitenleiste im Studio) */
.tabs { scrollbar-width: none; display: flex; gap: 4px; padding: 0; margin: 0 -4px 22px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs.glass { background: transparent; box-shadow: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab { transition: background 0.2s var(--ease), color 0.2s; }
.tab:hover { color: var(--ink); background: var(--pill); }
.tab[aria-current="page"] { background: var(--surface); color: var(--accent-strong); }
.tab[aria-current="page"] svg { color: var(--accent); }
.tab .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font-size: 11.5px; line-height: 20px; text-align: center; }
.banner { margin-bottom: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); font-weight: 650; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.section-head h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* Hochladen */
.upload-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.upload-form { display: grid; gap: 16px; padding: 24px; }
.upload-form h2 { margin: 0; font-size: 20px; font-weight: 700; }
.drop {
  display: grid; justify-items: center; gap: 10px; padding: 44px 24px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.over { transform: scale(1.01); }
.drop.disabled { opacity: 0.5; pointer-events: none; }
.drop .icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--on-accent); }
.drop .icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { font-size: 19px; font-weight: 700; }
.drop span { color: var(--muted); font-size: 14.5px; }
/* Ausgewählte Dateien: kompaktes Raster (auch bei 500 Fotos), Zustand direkt auf der Kachel */
.drop-more { margin: 10px 0 0; text-align: center; font-size: 14px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.tiles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-ext { display: grid; place-items: center; width: 100%; height: 100%; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); }
.tile[data-state="queued-check"], .tile[data-state="checking"] { opacity: .55; }
.tile[data-state="queued"] img, .tile[data-state="uploading"] img { filter: saturate(.6) brightness(.92); }
.tile-bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .55); overflow: hidden; display: none; }
.tile-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }
.tile[data-state="uploading"] .tile-bar { display: block; }
.tile-mark { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; display: none; place-items: center; font-size: 12px; font-weight: 700; line-height: 22px; color: #fff; text-align: center; }
.tile[data-state="done"] .tile-mark { display: grid; background: var(--ok); }
.tile[data-state="uploading"] .tile-mark { display: grid; background: rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums; }
.tile[data-state="error"] .tile-mark, .tile[data-state="rejected"] .tile-mark { display: grid; background: var(--err); }
.tile[data-state="error"], .tile[data-state="rejected"] { box-shadow: inset 0 0 0 2px var(--err); }
.tile.is-low::after { content: ''; position: absolute; right: 7px; bottom: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); }
.tile-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.tile-x:hover { background: var(--err); }
/* Mit Maus: × erst beim Drüberfahren – sonst ist das Raster unruhig */
@media (hover: hover) { .tile:not(:hover) .tile-x { opacity: 0; } .tile-x:focus-visible { opacity: 1 !important; } }
.file-more { display: block; margin: 10px auto 0; }
.file-issues { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.file-issues:empty { display: none; }
.issue { display: grid; gap: 1px; padding: 9px 12px; border-radius: 12px; font-size: 13px; background: var(--surface); border: 1px solid transparent; }
.issue strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue span { color: var(--muted); }
.issue.is-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.issue.is-warn strong { color: var(--warn); }
.issue.is-err { border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.issue.is-err strong { color: var(--err); }
/* Wofür? – Projekte als Auswahl */
.field .label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid transparent; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip:disabled { opacity: .6; cursor: default; }
/* Unterbrochener Upload */
.upload-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; padding: 16px 20px; box-shadow: inset 4px 0 0 var(--accent); }
.upload-resume > div:first-child { flex: 1 1 280px; }
.upload-resume p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-ok { color: var(--ok); font-weight: 700; }
.tag-warn { color: var(--warn); font-weight: 700; }
.tag-err { color: var(--err); font-weight: 700; }
.upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
/* Knopf bleibt sichtbar, auch bei langer Auswahl – klebt unten (am Handy über der Tab-Leiste) */
#upload-actions { position: sticky; bottom: 12px; z-index: 10; padding: 10px 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--pop-shadow); }
.upload-summary { margin-right: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.upload-hero { margin-bottom: 18px; padding: 24px 26px 22px; animation: hero-in 0.45s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(0.96); } }
.hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-eyebrow { margin: 0; color: var(--accent); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-mono); }
.hero-head h2 { margin: 4px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.hero-dots { display: inline-flex; gap: 5px; padding-top: 10px; }
.hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: dot 1.2s ease-in-out infinite; }
.hero-dots i:nth-child(2) { animation-delay: 0.15s; }
.hero-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-5px); opacity: 0.6; } }
.hero-ring { position: relative; width: min(100%, 290px); aspect-ratio: 1; margin: 18px auto 20px; }
.hero-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.ring-progress { fill: none; stroke: url(#ring-grad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: 540.35; transition: stroke-dashoffset 0.6s var(--ease); }
.hero-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.hero-pct { display: flex; align-items: baseline; justify-content: center; font-variant-numeric: tabular-nums; }
.hero-pct b { font-size: 66px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.hero-pct span { font-size: 22px; font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }
.hero-pct .pct { color: var(--accent); margin-left: 4px; font-weight: 750; }
.hero-eta { margin-top: 6px; color: var(--accent); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.hero-eta-label { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-mono); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); min-width: 0; }
.stat span { color: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-mono); }
.stat strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat strong.accent { color: var(--accent); }
.stat small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-actions { display: flex; justify-content: center; margin-top: 16px; }
.btn-danger-outline { background: transparent; color: var(--err); border: 1.5px solid color-mix(in srgb, var(--err) 45%, transparent); }
.btn-danger-outline:hover { background: var(--err-bg); }
.hero-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
/* Während des Uploads: Angaben und Ablage ausblenden – nur Ring und Dateiliste */
.uploading .upload-form, .uploading .drop, .uploading #app-tip { display: none; }
.uploading .upload-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) {
  .upload-hero { padding: 20px 16px; }
  .hero-pct b { font-size: 54px; }
  .stat strong { font-size: 17px; }
}

.done { display: grid; padding: 0; overflow: hidden; text-align: left; }
.done-band { position: relative; display: grid; place-items: center; height: 150px; background: var(--accent); }
.done .check { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 34px; font-weight: 600; animation: done-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; letter-spacing: -0.03em; }
.done .spark { position: absolute; color: #fff; opacity: 0.85; animation: done-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.done .s1 { left: 12%; top: 26%; font-size: 16px; animation-delay: 0.05s; }
.done .s2 { left: 26%; top: 68%; font-size: 11px; animation-delay: 0.18s; }
.done .s3 { left: 70%; top: 20%; font-size: 14px; animation-delay: 0.1s; }
.done .s4 { left: 86%; top: 60%; font-size: 18px; animation-delay: 0.24s; }
.done .s5 { left: 58%; top: 78%; font-size: 10px; animation-delay: 0.32s; }
@keyframes done-pop { from { transform: scale(0.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .done .check, .done .spark { animation: none; } }
.done-body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.done-eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-mono); }
.done h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.done #done-text { margin: 0; color: var(--ink-soft); }
.done ul { margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.app-tip { margin-top: 14px; padding: 14px 18px; font-size: 14px; color: var(--ink-soft); }

/* Meine Uploads */
.batches { display: grid; gap: 14px; }
.batch { display: grid; gap: 12px; padding: 18px; cursor: pointer; text-align: left; border: 0; font: inherit; color: inherit; transition: background 0.15s; }
.batch:hover { background: color-mix(in srgb, var(--surface) 92%, var(--ink)); }
.batch-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.batch-head strong { font-size: 17px; font-weight: 650; }
.batch-head span { color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.batch-desc { margin: -6px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 17px; font-weight: 750; }
.thumb .vid { position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 10px; }
.batch-foot { color: var(--muted); font-size: 13px; font-weight: 600; }
.empty { display: grid; gap: 10px; justify-items: start; padding: 28px; }
.empty h2 { margin: 0; font-size: 21px; font-weight: 700; }
.empty p { margin: 0; color: var(--ink-soft); }

/* Galerien */
.galleries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.gcard {
  display: grid; overflow: hidden; text-decoration: none; color: var(--ink);
  border-radius: var(--radius); background: var(--surface);
  transition: transform 0.25s var(--ease);
}
.gcard:hover { transform: translateY(-2px); }
.gcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.gcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gcard:hover .gcard-media img { transform: scale(1.03); }
.gcard-text { display: grid; gap: 3px; padding: 14px 18px 16px; }
.gcard-text strong { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.gcard-text span { color: var(--muted); font-size: 14px; font-weight: 550; }
.gcard .new { position: absolute; z-index: 1; left: 14px; top: 14px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; }

/* Vorgang im Detail */
dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--pop-shadow); }
/* Geschlossene Dialoge immer weg – auch wenn eine Klasse „display: grid“ setzt */
dialog:not([open]) { display: none !important; }
dialog::backdrop { background: rgba(20, 19, 19, 0.4); }
.dlg-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dlg-head div { margin-right: auto; min-width: 0; }
.dlg-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.dlg-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.dlg-body { padding: 16px 20px 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.grid .thumb .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); color: #fff; font-size: 10.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity 0.15s; }
.grid .thumb:hover .name { opacity: 1; }
.small-dlg { width: min(440px, calc(100vw - 32px)); padding: 26px; }
.small-dlg h2 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.small-dlg p { margin: 0 0 18px; color: var(--ink-soft); }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.foot { margin-top: 40px; display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: 13.5px; }
.foot a { color: var(--muted); }
.center { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 80px 20px; }
.center img { width: 72px; height: 72px; border-radius: 20px; }
.center h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.center p { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .upload-grid { grid-template-columns: 1fr; }
  /* Am Handy zuerst auswählen, Angaben danach */
  .upload-form { order: 2; }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip .thumb:nth-child(n + 5) { display: none; }
}
@media (max-width: 560px) {
  /* Unten wie im Studio: deckend weiß, schwebt mit Schatten, Symbol über Text */
  .portal { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .tabs {
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; margin: 0;
    padding: 5px; border-radius: 22px; background: var(--surface); box-shadow: var(--pop-shadow);
  }
  .tabs.glass { background: var(--surface); box-shadow: var(--pop-shadow); }
  .tab { flex: 1; flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 0 6px; border-radius: 16px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
  .tab:hover { background: transparent; }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); box-shadow: none; }
  .tab .badge { position: absolute; transform: translate(14px, -14px); }
  .tab { position: relative; }
  .top { gap: 10px; margin-inline: -8px; padding: 8px 10px; }
  .clogo { width: 42px; height: 42px; border-radius: 12px; }
  .me-name, .me-chevron { display: none; }
  .me-btn { padding: 3px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab span.label-long { display: none; }
  .brand-text strong { font-size: 18px; }
  .drop { padding: 32px 18px; }
  #upload-actions { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px); gap: 6px 8px; padding: 10px; }
  #upload-actions .upload-summary { flex: 1 1 100%; font-size: 13px; }
  #upload-actions #upload-btn, #upload-actions #retry-btn { flex: 1; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Freigegebene, noch leere Galerie */
.gcard-empty .gcard-media { background: var(--accent); }
.gcard-empty .gcard-logo { position: absolute; inset: auto; top: 50%; left: 50%; width: 30%; max-width: 120px; transform: translate(-50%, -62%) !important; opacity: 0.9; object-fit: contain; height: auto; }

/* Eigene Uploads wieder herunterladen */
.thumb-link { position: relative; display: block; color: inherit; text-decoration: none; }
.thumb-link .dl { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; font-weight: 700; }
.thumb-link:hover .thumb { outline: 2px solid var(--accent); outline-offset: -2px; }
.batch-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.batch-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

/* „Wer bist du?“ */
.who { padding-top: 70px; }
.who-logo { width: 84px; height: 84px; border-radius: 22px; font-size: 28px; }
.who-eyebrow { margin: 4px 0 -6px !important; color: var(--muted) !important; font-size: 15px; font-weight: 650; }
.who h1 { font-size: 34px; }
.who-form { display: grid; gap: 10px; width: min(100%, 360px); margin-top: 6px; }
.who-form input { min-height: 52px; font-size: 18px; text-align: center; }
.uploader-as { margin: 0 0 4px; color: var(--ink-soft); }
.uploader-as strong { color: var(--ink); }
.inline-link { padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }


/* Profil oben rechts: Kürzel + Name, Klick öffnet das Profil (Name ändern, Darstellung, Abmelden) */
.me { position: relative; }
.me-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 10px 3px 3px; border: 0;
  border-radius: 999px; background: var(--surface); color: var(--ink); font: 650 14px var(--font); cursor: pointer;
  transition: background 0.15s;
}
.me-btn:hover, .me-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--surface) 90%, var(--ink)); }
.me-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chevron { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.me-btn[aria-expanded="true"] .me-chevron { transform: rotate(180deg); }
.me-avatar {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
}
.me-avatar-lg { width: 46px; height: 46px; font-size: 16px; }
.me-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(300px, calc(100vw - 24px)); padding: 8px;
  border-radius: 20px; background: var(--surface); box-shadow: var(--pop-shadow); display: grid; gap: 2px;
  transform-origin: top right; animation: panel-in 0.2s var(--ease);
}
@keyframes panel-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.me-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.me-head div { display: grid; min-width: 0; line-height: 1.25; }
.me-head strong { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-head small { color: var(--muted); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 10px; border: 0; border-radius: 14px;
  background: none; color: var(--ink); font: 650 15px var(--font); text-align: left; cursor: pointer;
}
button.me-row { justify-content: flex-start; }
button.me-row:hover, button.me-row:focus-visible { background: var(--pill); outline: none; }
.me-row > span { display: inline-flex; align-items: center; gap: 10px; }
.me-row svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.me-danger, .me-danger svg { color: var(--err); }
/* Darstellung: drei Symbole wie im Dashboard */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--pill); }
.theme-switch button {
  display: grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s, box-shadow 0.2s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-checked="true"] { background: var(--surface); color: var(--accent-strong); }
.theme-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: inherit; }
.theme-switch button[data-theme-choice] svg { margin: 0; }

/* ---------- Begrüßung („Hallo Gütersloh“) – ruhig: Logo bzw. Initialen, Überschrift, ein Knopf ---------- */
.hello {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); background: var(--bg);
}
.hello-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; width: min(100%, 640px); animation: hello-rise 0.6s var(--ease) both; }
.hello-logo { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 18px; font-size: 28px; }
.hello-hi { margin: 0; font-size: 19px; font-weight: 650; color: var(--muted); }
.hello-name {
  margin: 0; max-width: 100%; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink);
  /* Lange Namen werden kleiner – das längste Wort passt immer in eine Zeile */
  font-size: min(clamp(32px, 9vw, 60px), calc(160vw / var(--chars, 8)), calc(110vw / var(--word, 8)));
  overflow-wrap: normal; text-wrap: balance;
}
.hello-word { display: inline-block; white-space: nowrap; }
.hello-gap { display: inline; }
.hello-sub { margin: 10px 0 22px; max-width: 36ch; color: var(--ink-soft); font-size: 17px; }
.hello-go { min-height: 52px; padding: 0 28px; font-size: 16px; gap: 10px; }
.hello-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.hello-go:hover svg { transform: translateX(3px); }
.hello-brand {
  position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center;
  font-size: 15px; color: var(--muted);
}
/* „Studio“ bleibt linksbündig unter dem Schriftzug – zentriert wird nur der ganze Block */
.hello-brand .wm-lock { justify-items: start; }
@keyframes hello-rise { from { opacity: 0; transform: translateY(12px); } }
.hello.leaving { animation: hello-out 0.35s var(--ease) forwards; }
@keyframes hello-out { to { opacity: 0; } }

/* ---------- Videos ---------- */
.vcard .gcard-media { aspect-ratio: 16 / 10; }
.vcard-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 62px; height: 62px; margin: -44px 0 0 -31px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease); }
.vcard-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -6px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.vcard:hover .vcard-play { transform: scale(1.08); }
.pv-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--muted); font-weight: 650; text-decoration: none; }
.pv-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-back:hover { color: var(--ink); }
.pv-head p { margin-top: 8px; }
.pv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 18px; align-items: start; }
@media (max-width: 920px) { .pv-layout { grid-template-columns: minmax(0, 1fr); } }
.pv-main { display: grid; gap: 14px; min-width: 0; }
.pv-player { --sp-radius: var(--radius) var(--radius) var(--radius) 8px; }
.pv-stage { position: relative; }
.pv-canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.pv-stage.drawing { box-shadow: 0 0 0 3px var(--accent); }
.pv-stage.drawing .pv-canvas { pointer-events: auto; cursor: crosshair; }
.pv-draw-hint { position: absolute; z-index: 4; left: 50%; top: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; pointer-events: none; }
.pv-add { justify-self: start; }
.pv-draft { display: grid; gap: 10px; padding: 16px; animation: pv-in 0.25s var(--ease); }
@keyframes pv-in { from { opacity: 0; transform: translateY(6px); } }
.pv-draft-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-draft textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--surface-2); resize: vertical; font-size: 16px; }
.pv-draft textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pv-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-draft-actions [type="submit"] { margin-left: auto; }
#pv-draw[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
.pv-error { margin: 0; color: var(--err); font-weight: 650; font-size: 14px; }
.pv-info { padding: 18px 20px; display: grid; gap: 10px; }
.pv-info-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv-info-head h2 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.pv-info-head small { color: var(--muted); }
.pv-approved { white-space: normal; }
.pv-note { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); white-space: pre-wrap; }
.pv-note::before { content: "Was ist neu: "; font-weight: 700; color: var(--ink); }
.pv-downloads { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-downloads small { opacity: 0.7; font-weight: 600; margin-left: 4px; }
.pv-versions { padding: 10px; display: grid; gap: 4px; }
.pv-version { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; cursor: pointer; }
.pv-version:hover { background: var(--surface-2); }
.pv-version.current { background: var(--accent-soft); }
.pv-version-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); font-weight: 750; font-size: 14px; }
.pv-version.current .pv-version-num { background: var(--accent); color: var(--on-accent); }
.pv-version-text { display: grid; min-width: 0; }
.pv-version-text small { color: var(--muted); }
.pv-version img { width: 72px; height: 42px; object-fit: cover; border-radius: 8px; }
.pv-older-toggle { justify-self: start; margin: 2px 10px; padding: 6px 0; border: 0; background: none; color: var(--accent-strong); font-weight: 650; cursor: pointer; }
.pv-older { display: grid; gap: 4px; }
.pv-side { padding: 18px 16px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
@media (max-width: 920px) { .pv-side { position: static; max-height: none; } }
.pv-side h2 { margin: 0 0 12px 4px; font-size: 19px; font-weight: 750; }
.pv-side h2 .muted { color: var(--muted); font-weight: 700; }
.pv-comments { display: grid; gap: 8px; }
.pv-empty { margin: 0 4px; color: var(--muted); font-size: 14.5px; }
.pv-comment { padding: 12px 13px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid transparent; transition: border-color 0.15s; }
.pv-comment.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pv-comment.done > p { color: var(--muted); }
.pv-comment p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-c-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pv-time { padding: 2px 9px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pv-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.pv-c-del { margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 650; cursor: pointer; }
.pv-c-del:hover { color: var(--err); }
.pv-reply { margin-top: 9px; padding: 8px 11px; border-left: 3px solid var(--line-strong); border-radius: 0 10px 10px 0; background: var(--surface); font-size: 14.5px; }
.pv-reply.team { border-left-color: var(--accent); }
.pv-reply.team strong { color: var(--accent-strong); }
.pv-reply p { margin: 2px 0 0; }
@media (max-width: 560px) {
  .pv-player { --sp-radius: 18px; }
  .pv-add { justify-self: stretch; }
  .pv-draft-actions [type="submit"] { flex: 1; }
}

/* Versionsleiste: V1 → V2 → V3 · aktuell */
.pv-steps { display: flex; align-items: center; gap: 0; margin: -2px 0 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.pv-steps::-webkit-scrollbar { display: none; }
.pv-step { position: relative; flex: none; display: grid; justify-items: center; gap: 1px; min-width: 64px; padding: 7px 12px; border-radius: 16px; border: 1.5px solid transparent; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pv-step strong { font-size: 15px; font-weight: 750; }
.pv-step small { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.pv-step:hover { border-color: var(--ink-soft); }
.pv-step.latest small { color: var(--accent-strong); }
.pv-step.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pv-step.current small { color: var(--on-accent); opacity: 0.85; }
.pv-step-ok { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 12px; font-weight: 750; display: grid; place-items: center; }
.pv-step-line { flex: 0 0 18px; height: 2px; background: var(--line-strong); }

/* Ältere Version: Hinweis oben, Rahmen und Schild am Video */
.pv-old-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 14px; padding: 10px 12px 10px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 14px; }
.pv-old-note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pv-old-note span { flex: 1; min-width: 200px; }
.pv-player.pv-old .pv-stage { box-shadow: 0 0 0 3px var(--warn); }
.pv-old-badge { position: absolute; top: 12px; left: 12px; z-index: 4; padding: 5px 11px; border-radius: 999px; background: rgba(176, 99, 10, 0.92); color: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; }

/* Was ist neu in Version N */
.pv-changes { padding: 18px 20px; display: grid; gap: 10px; }
.pv-changes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pv-changes-head h2 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.pv-changes .pv-note::before { content: "Notiz von EULEN MEDIA: "; }
.pv-changes-sub { margin: 6px 0 0; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); font-family: var(--font-mono); }
.pv-changes-sub.open { color: var(--warn); }
.pv-change-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pv-change { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid transparent; transition: border-color 0.15s; }
.pv-change.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pv-change-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--warn); color: #fff; font-size: 13px; font-weight: 750; }
.pv-change.done .pv-change-icon { background: var(--ok); border-color: var(--ok); }
.pv-change-main { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.pv-change-main .pv-time { grid-row: span 2; }
.pv-change-text { font-weight: 650; overflow-wrap: anywhere; }
.pv-change.done .pv-change-text { color: var(--ink-soft); }
.pv-change-main small { color: var(--muted); font-size: 12.5px; }
.pv-change-before { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.pv-change-before:hover { color: var(--ink); border-color: var(--ink-soft); }
@media (max-width: 560px) {
  .pv-change { grid-template-columns: auto minmax(0, 1fr); }
  .pv-change-before { grid-column: 2; justify-self: start; }
}

/* Freigegeben: nur noch herunterladen */
.pv-layout.pv-single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.pv-final { padding: 20px; display: grid; gap: 14px; }
.pv-final-head { display: flex; align-items: center; gap: 12px; }
.pv-final-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pv-final-head small { color: var(--muted); font-weight: 600; }
.pv-final-check { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ok); color: #fff; }
.pv-final-check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pv-final-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pv-dl-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid transparent; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.pv-dl-option:hover { border-color: var(--ink-soft); }
.pv-dl-option svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-dl-option span { display: grid; }
.pv-dl-option small { color: var(--muted); font-weight: 600; }
.pv-dl-option.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pv-dl-option.primary small { color: var(--on-accent); opacity: 0.85; }
.pv-dl-option.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.pv-unapprove { justify-self: start; }

/* Archivierte ältere Version: Standbild mit Hinweis statt Wiedergabe */
.pv-archived { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; padding: 10px 14px; border-radius: 14px; background: rgba(20, 19, 19, 0.78); color: #fff; font-size: 14px; font-weight: 650; }
.pv-player.pv-no-video #pv-bar { opacity: 0.4; pointer-events: none; }

/* Benachrichtigungen per Mail (Profil-Menü) */
#mail-form .field { margin-bottom: 14px; }
.mail-kinds { display: grid; gap: 2px; margin: 0 0 16px; }
.mail-kind { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.mail-kind:first-child { border-top: 0; }
.mail-kind span { display: grid; gap: 1px; }
.mail-kind strong { font-size: 15px; font-weight: 650; }
.mail-kind small { color: var(--muted); font-size: 13px; }
.mail-kind input { appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 16%, transparent); cursor: pointer; transition: background 0.2s; order: 2; margin-left: auto; }
.mail-kind input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease); }
.mail-kind input:checked { background: var(--accent); }
.mail-kind input:checked::after { transform: translateX(18px); }
.mail-kind input:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.mail-kind input:disabled { opacity: 0.4; cursor: default; }

/* Umschalter im Reiter „Hochladen“: Hochladen | Meine Uploads */
.seg-switch { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; margin: -8px 0 20px; border-radius: 999px; background: var(--pill); }
.seg-switch a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 999px;
  color: var(--ink); font-weight: 650; font-size: 14.5px; text-decoration: none; transition: background 0.2s var(--ease), color 0.2s;
}
.seg-switch a:hover { background: var(--pill); }
.seg-switch a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.seg-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .seg-switch { width: 100%; } .seg-switch a { flex: 1; justify-content: center; padding: 0 10px; } }

/* Video herunterladen: erst Qualität wählen (wie Optionsfelder), dann „Herunterladen“ */
.pv-choice { display: grid; gap: 12px; }
.pv-choice-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pv-choice-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid transparent; background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pv-choice-opt:hover { border-color: var(--ink-soft); }
.pv-choice-opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pv-choice-text { display: grid; gap: 1px; }
.pv-choice-text small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-choice-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.pv-choice-opt[aria-checked="true"] .pv-choice-dot { border: 7px solid var(--accent); }
.pv-choice-go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; }
.pv-choice-go svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pv-choice-sm { margin-top: 12px; }
.pv-choice-sm .pv-choice-opt { padding: 10px 14px; }

/* Videos: nach Jahren gegliedert, Archiv */
.pv-year { grid-column: 1 / -1; }
h2.pv-year { margin: 10px 0 -4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pv-archive-head { display: flex; align-items: center; gap: 12px; }
.pv-archive-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.vcard-archive {
  position: absolute; z-index: 2; top: 14px; right: 14px; padding: 7px 12px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font: 700 13px var(--font); cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.vcard:hover .vcard-archive, .vcard:focus-within .vcard-archive { opacity: 1; }
@media (hover: none) { .vcard-archive { opacity: 1; } }
.vcard-archive:hover { background: var(--accent); color: var(--on-accent); }
.pv-archive-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-top: 4px;
  border: 0; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.pv-archive-link span { color: var(--muted); font-weight: 600; }
.pv-locked { margin: 12px 0 0; color: var(--muted); font-weight: 600; }

/* ---------- Kundenkonto: Anmelden, Code, Konto erstellen, Profil, Firmen-Wechsler ---------- */
.link-plain { border: 0; background: none; padding: 0; color: var(--accent-strong); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-plain:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.link-plain.danger { color: var(--err); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ok-text { margin: 0; color: var(--ok); font-weight: 600; font-size: 14px; }
.error-text { margin: 0; color: var(--err); font-weight: 600; font-size: 14px; }
.error-text[hidden], .ok-text[hidden] { display: none; }

.login { padding-top: 56px; }
.login-card { width: min(380px, 100%); padding: 26px; border-radius: var(--radius); background: var(--surface); text-align: left; display: grid; gap: 14px; }
.login-step { display: grid; gap: 14px; }
.login-step[hidden] { display: none; }
.login-step h1 { margin: 0; font-size: 26px; text-align: left; }
.login-step p { margin: 0; color: var(--ink-soft); max-width: none; }
.login-step .link-plain { justify-self: center; }
.login-guest { font-size: 14px; color: var(--muted) !important; max-width: 46ch !important; }
.btn-passkey { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.btn-passkey svg, .key-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.login-or[hidden] { display: none; }
.noaccess-actions { justify-content: center; }

.code-step { justify-items: center; text-align: center; }
.code-step h1, .code-step h2 { text-align: center; }
.code-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-strong); }
.code-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.code-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.reset-fields { display: grid; gap: 12px; width: 100%; text-align: left; }
.reset-fields[hidden] { display: none; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 330px; }
.otp[hidden] { display: none; }
.otp .otp-box {
  width: 100%; aspect-ratio: 4 / 5; min-height: 52px; padding: 0; text-align: center; border-radius: 12px; box-sizing: border-box;
  border: 1.5px solid transparent; background: var(--surface-2); color: var(--ink);
  font: 600 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; caret-color: var(--accent); outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease); letter-spacing: -0.02em; }
.otp .otp-box:focus { border-color: var(--accent); background: var(--accent-soft); }
.otp.busy { opacity: 0.55; pointer-events: none; }
.otp.complete .otp-box { border-color: var(--accent); }
.otp.shake { animation: otp-shake 0.38s var(--ease); }
.otp.shake .otp-box { border-color: var(--err); }
@keyframes otp-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@media (max-width: 380px) { .otp { gap: 5px; } .otp .otp-box { min-height: 46px; font-size: 22px; } }

.create-step { display: grid; gap: 14px; }
.create-step[hidden] { display: none; }
.create-step h2, .create-step p { margin: 0 !important; }
.key-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-strong); }
.key-icon svg { width: 26px; height: 26px; }

.me-row.me-accent { color: var(--accent-strong); font-weight: 700; }
.me-row[hidden] { display: none !important; }
.me-avatar.has-img { padding: 0; overflow: hidden; }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

.profile-dlg { display: grid; gap: 18px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head h2, .profile-head p { margin: 0 !important; }
.me-avatar-xl { width: 68px; height: 68px; border-radius: 50%; font-size: 22px; border: 0; cursor: pointer; flex: none; }
.profile-section { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-section h3 { margin: 0; font-size: 16px; font-weight: 700; }
.profile-section p { margin: 0 !important; }
.profile-section .btn { justify-self: start; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; padding: 0 14px; min-height: 40px; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface-2); color: var(--ink); font: inherit; }
.passkey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); }
.passkey-list li > span { display: grid; gap: 1px; min-width: 0; }
.passkey-list small { color: var(--muted); }
.join-dlg { display: grid; justify-items: center; text-align: center; gap: 10px; }
.join-dlg h2, .join-dlg p { margin: 0 !important; }
.join-dlg .dlg-actions { justify-content: center; }

/* Firmen-Wechsler im Kopf */
.brand-wrap { position: relative; margin-right: auto; min-width: 0; }
button.brand { border: 0; background: none; padding: 4px 8px 4px 4px; margin: -4px; border-radius: 20px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.brand:disabled { cursor: default; }
button.brand:not(:disabled):hover { background: var(--pill); }
.brand-chevron { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-chevron[hidden] { display: none; }
.switch-panel { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 32px)); padding: 6px; border-radius: 20px; display: grid; gap: 2px; }
.switch-panel[hidden] { display: none; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.switch-row:hover { background: var(--pill); }
.switch-row > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-check { color: var(--accent-strong); font-weight: 750; }
.clogo.clogo-sm { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; background: var(--surface-2); }

/* Kurz bestätigen: Passkey zuerst, darunter Passwort bzw. Code */
#confirm-passkey { margin: 0.25rem 0 0.9rem; }

/* ---------- Rückfragen und Hinweise im Portal-Design (shared/dialogs.js) statt Browser-Fenster ---------- */
.ui-dialog { width: min(440px, calc(100vw - 24px)); padding: 1.5rem; }
.ui-dialog form { display: grid; gap: 0.5rem; }
.ui-dialog h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.ui-dialog p { margin: 0; color: var(--ink-soft, inherit); white-space: pre-line; }
.ui-dialog .actions { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 0.5rem; margin-top: 0.9rem; }
.ui-dialog.ui-error h2 { color: var(--err); }
.ui-dialog .btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.ui-dialog .field input { width: 100%; font-size: 1.02rem; min-height: 44px; }

/* Auswahllisten lesbar: feste Farben statt des durchsichtigen Feld-Hintergrunds (sonst hellgrau auf Weiß im Dunkelmodus) */
select option, select optgroup { background-color: var(--surface, #fff); color: var(--ink); }

/* ---------- Für euch: was wartet, nächste Termine, Projekte mit Fortschritt ---------- */
.home { display: grid; gap: 16px; max-width: 760px; }
.home-card { display: grid; gap: 4px; padding: 18px 20px; }
.home-card h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.home-calm p { margin: 0; color: var(--muted); }
.home-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; }
/* Trennlinie ab dem Text (wie bei iOS) */
.home-item + .home-item::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--line); }
/* Ganze Zeile klickbar (wie bei Revolut): leicht hinterlegt beim Drüberfahren, Pfeil rechts */
.home-link { margin: 0 -10px; padding: 10px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; transition: background 0.15s; }
.home-item + .home-link::before { left: 62px; right: 10px; }
.home-link:hover, .home-link:focus-visible { background: var(--pill); outline: none; }
.home-link:hover::before, .home-link:hover + .home-item::before, .home-link:focus-visible::before { opacity: 0; }
.home-chev { display: grid; place-items: center; color: var(--muted); }
.home-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s var(--ease); }
.home-link:hover .home-chev svg { transform: translateX(2px); }
.home-item-text { display: grid; gap: 2px; min-width: 0; }
.home-item-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-item-text span { color: var(--muted); font-size: 14px; }
.home-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); }
.home-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; font-weight: 650; }
.home-bar { flex: 1 1 100%; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.home-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.home-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.home-step { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; }
.home-step > i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); justify-self: center; }
.home-step.done > i { background: var(--ok); border-color: var(--ok); }
.home-step.done > span:first-of-type { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.home-step.active > i { background: var(--accent); border-color: var(--accent); }
.home-step .muted { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .home-step { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .home-step .pill { grid-column: 2; justify-self: start; }
}

/* Video-Freigabe: Antworten, Bearbeiten, Bild für Bild, Tempo */
.pv-reply-btn { justify-self: start; margin-top: 4px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent-strong); cursor: pointer; }
.pv-reply-form { display: grid; gap: 8px; margin-top: 8px; }
.pv-reply-form textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: var(--surface); font: inherit; color: var(--ink); resize: vertical; }
.pv-reply-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pv-reply-head { display: flex; align-items: center; gap: 10px; }
.pv-edited { color: var(--muted); font-size: 12.5px; }
.pv-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 10px 0 4px; }
.pv-frames { display: flex; gap: 6px; }
.pv-speed { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.pv-speed button { min-width: 44px; padding: 6px 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.pv-speed button[aria-checked="true"] { background: var(--surface); color: var(--ink); }
.pv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.approve-open { margin: 0 0 12px; padding: 10px 12px 10px 28px; border-radius: 12px; background: var(--warn-bg); color: var(--ink-soft); font-size: 14px; display: grid; gap: 4px; }
.approve-open .pv-time { margin-right: 6px; font-weight: 700; color: var(--warn); }

/* Dateien (Link mit Ablauf): Karte je Freigabe mit Zeilen zum Herunterladen */
.files-card h2 { margin-bottom: 0; }
.files-meta { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.files-msg { margin: 0 0 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.files-all { justify-self: start; margin-top: 10px; }
.home-ic svg, .home-chev svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Kollegen einladen */
.invite-qr { display: grid; place-items: center; min-height: 240px; margin: 0 0 14px; padding: 16px; border-radius: 22px; background: #fff; }
.invite-qr img { display: block; width: min(240px, 100%); height: auto; }
.invite-wait { color: #6b6b6b; font-size: 14px; }
.small-dlg .invite-note { font-size: 13px; margin-bottom: 14px; }
.invite-dlg .dlg-actions { flex-wrap: wrap; }

/* Begrüßung in der Schrift aus der Kundenmarke (--font/--font-head setzt das Portal nur auf #view-hello) */
.hello { font-family: var(--font); }
.hello h1 { font-family: var(--font-head, var(--font)); }
/* Kundenlogos eckig – quadratische bzw. randlose Logos sollen nicht an den Ecken angeschnitten werden (Initialen bleiben rund) */
.clogo:has(img), .clogo:has(img) img { border-radius: 0 !important; }
/* Profilbild zuschneiden (shared/dialogs.js uiCropAvatar) */
.ui-dialog.ui-crop-dialog { width: min(360px, calc(100vw - 24px)); }
.ui-crop { display: grid; justify-items: center; gap: 0.7rem; margin-top: 0.4rem; }
.ui-crop-stage { position: relative; width: 280px; height: 280px; border-radius: 18px; overflow: hidden; background: #111; touch-action: none; }
.ui-crop-canvas { width: 280px; height: 280px; display: block; cursor: grab; touch-action: none; }
.ui-crop-canvas:active { cursor: grabbing; }
.ui-crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 400px rgba(0, 0, 0, 0.5); outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: -2px; pointer-events: none; }
.ui-crop input[type="range"] { width: 240px; accent-color: var(--accent); }
.ui-dialog .ui-crop-hint { font-size: 0.8rem; text-align: center; }

/* Video-Ordner (z. B. Podcast mit Reels): Karte mit „Stapel“-Rand oben und der Anzahl auf dem Bild */
.vfolder { position: relative; overflow: visible; margin-top: 10px; }
.vfolder .gcard-media { border-radius: var(--radius) var(--radius) 0 0; }
.vfolder::before, .vfolder::after { content: ""; position: absolute; left: 16px; right: 16px; top: -8px; height: 12px; border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--ink) 16%, var(--bg)); }
.vfolder::after { left: 30px; right: 30px; top: -15px; opacity: 0.6; z-index: -1; }
.vfolder .vcard-play { display: none; }
.vfolder-badge { position: absolute; z-index: 1; top: 12px; right: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12.5px; font-weight: 650; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pv-archive-head .muted { align-self: center; }
