/* manlu. Kunden-Hub: weiche dunkle Flächen wie ein Schnittplatz, Helvetica Neue Bold eng, Rot nur für Aktion und Aufnahme.
   Layout: Seitenleiste links (Marke, Auswahl, Navigation, Schalter), rechts die Bühne mit Karten oder dem Review. */
:root {
  --bg: #111110;
  --side: #171716;
  --card: #181816;
  --raise: #23231F;
  --line: #2B2A27;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --well: #141413;
  --lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 6px 14px -4px rgba(0, 0, 0, .55);
  --fg: #F4F2EE;
  --muted: #8E8B85;
  --red: #E23A26;
  --red-hi: #FF6A52;
  --on-red: #FFFFFF;
  --shade: rgba(14, 14, 13, .74);
  --sh: 0 18px 50px rgba(0, 0, 0, .45);
  --inset: inset 0 2px 6px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(255, 255, 255, .04);
  --knob: linear-gradient(145deg, #2E2D2A, #1A1917);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 18px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #E9E7E2;
  --side: #F4F3EF;
  --well: #EAE8E3;
  --lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 14px -6px rgba(40, 36, 30, .25);
  --card: #FFFFFF;
  --raise: #EEECE7;
  --line: #DDDAD3;
  --fg: #151513;
  --muted: #6E6B65;
  --red-hi: #C92F1C;
  --shade: rgba(233, 231, 226, .55);
  --side: #F4F3EF;
  --well: #EAE8E3;
  --lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 14px -6px rgba(40, 36, 30, .25);
  --sh: 0 18px 44px rgba(40, 36, 30, .14);
  --inset: inset 0 2px 5px rgba(0, 0, 0, .16), inset 0 -1px 0 rgba(255, 255, 255, .8);
  --knob: linear-gradient(145deg, #FFFFFF, #E2DFD9);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.45 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; margin: 0; text-wrap: balance; }

/* Wortmarke */
.logo { font-weight: 700; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.logo .pt { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--red); margin-left: .05em; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.btn-primary { background: var(--red); color: var(--on-red); box-shadow: 0 6px 18px rgba(226, 58, 38, .35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn-ghost { background: var(--raise); color: var(--fg); }
.btn-ghost:hover { background: var(--line); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Kippschalter im Hardware-Look */
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 0; padding: 0; background: var(--bg); box-shadow: var(--inset); flex: none; transition: background .35s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 128, 128, .3) .6px, transparent 1px) 0 0 / 3px 3px, var(--knob);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform .35s cubic-bezier(.5, 1.6, .4, 1); }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #FF5A3D, var(--red)); box-shadow: inset 0 2px 5px rgba(120, 20, 5, .6), 0 0 14px rgba(226, 58, 38, .35); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:active::after { width: 21px; }
.switch[aria-checked="true"]:active::after { transform: translateX(15px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* Anmeldung */
.gate { min-height: 100%; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
.gate-card { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh); animation: rise .6s cubic-bezier(.2, .8, .2, 1); }
.gate-card .logo { font-size: 44px; }
.gate-card h1 { font-size: 30px; line-height: 1.06; margin-top: 18px; }
.gate-card p { margin: 0; }
.client { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
label { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 700; }
input, textarea { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; }
input:focus, textarea:focus { border-color: var(--red); outline: none; }
.err { color: var(--red-hi); min-height: 1.2em; font-size: 14px; }
.gate-card .btn { margin-top: 4px; }

/* App-Raster */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100%; gap: 32px; padding: 16px 32px 16px 16px; align-items: start; max-width: 1640px; margin: 0 auto; }
.sidebar { background: var(--side); border-radius: 24px; padding: 24px 16px 18px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 16px; height: calc(100vh - 32px); overflow-y: auto; border: 1px solid var(--line); }
.side-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 4px 4px; }
.brand-pair { display: flex; align-items: center; justify-content: center; gap: 12px; }
.side-brand .logo { font-size: 26px; }
.brand-x { width: 1px; height: 22px; background: var(--line); }
.client-logo { height: 24px; width: auto; display: block; image-rendering: auto; }
.client-logo.on-light, :root[data-theme="light"] .client-logo.on-dark { display: none; }
:root[data-theme="light"] .client-logo.on-light { display: block; }
.side-brand small { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.burger { display: none; position: absolute; right: 0; top: 4px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--raise); place-items: center; }

.search { position: relative; }
.search input { padding: 11px 14px 11px 40px; border-radius: 14px; background: var(--well); border-color: transparent; box-shadow: var(--lift); font-size: 14px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.menu { position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 10px; max-height: 70vh; overflow-y: auto; animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.menu h4 { margin: 10px 8px 6px; font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.menu a:hover, .menu a[aria-current="true"] { background: var(--raise); }
.menu img { width: 54px; height: 34px; object-fit: cover; border-radius: 6px; background: var(--raise); flex: none; }
.menu img.tall { width: 34px; height: 54px; }
.menu span { font-weight: 700; font-size: 14px; }
.menu .newdot { display: block; margin-left: 4px; }
.menu em { font-style: normal; margin-left: auto; font-size: 12px; color: var(--red-hi); font-weight: 700; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav h5 { margin: 18px 12px 8px; font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.nav a, .nav-soon { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 16px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--fg); }
.nav a { position: relative; transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease); }
.nav a[aria-current="page"] { background: var(--well); color: var(--fg); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 1px 0 rgba(255, 255, 255, .04); }
:root[data-theme="light"] .nav a[aria-current="page"] { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .14), inset 0 -1px 0 rgba(255, 255, 255, .9); }
.nav a[aria-current="page"] .icon { color: var(--red); filter: drop-shadow(0 0 6px rgba(226, 58, 38, .5)); }
.nav a[aria-current="page"]::before { content: ''; position: absolute; left: 5px; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 3px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.badge { margin-left: auto; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 35% 30%, #FF7A62 0, var(--red) 55%, #B4220F 100%);
  box-shadow: 0 2px 5px rgba(120, 20, 5, .45), inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(90, 10, 0, .35); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-card { background: var(--well); border: 1px solid transparent; box-shadow: var(--lift); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.me { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; min-width: 0; padding: 4px 12px 4px 4px; margin-top: 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); max-width: 100%; }
.me span:last-child { font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #111; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 2px 6px rgba(0, 0, 0, .35); }
.me span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; display: flex; gap: 8px; align-items: center; }
.link-btn:hover { color: var(--fg); }

/* Bühne */
.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 0 0 64px; }
.view { display: flex; flex-direction: column; gap: 36px; animation: enter .6s var(--ease) both; }
.view > * { animation: enter .6s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .06s; }
.view > *:nth-child(3) { animation-delay: .12s; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.view-head h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.view-head p { margin: 6px 0 0; color: var(--muted); }

/* Startseite */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px; position: relative; overflow: hidden; }
.hero-media { position: relative; aspect-ratio: 16 / 9; }
.hero-media .stack { position: absolute; border-radius: 18px; background: var(--raise); }
.hero-media .s1 { inset: -14px 14% auto 14%; height: 40%; opacity: .5; }
.hero-media .s2 { inset: -6px 7% auto 7%; height: 40%; opacity: .8; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 18px; box-shadow: var(--sh); }
.playdot { position: absolute; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: transform .25s; }
.playdot::after { content: ''; margin-left: 4px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.hero-media:hover .playdot { transform: scale(1.08); }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; }
.hero p { color: var(--muted); margin: 14px 0 24px; max-width: 44ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: transform .4s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-2px); border-color: var(--muted); }
.tile-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(226, 58, 38, .14); color: var(--red-hi); display: grid; place-items: center; flex: none; }
.tile b { display: block; font-size: 15px; }
.tile small { color: var(--muted); font-size: 13px; }

.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-head h2 { font-size: 22px; }
.arrows { display: flex; gap: 6px; align-items: center; }
.arrows a { font-weight: 700; font-size: 14px; margin-right: 8px; }
.arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; }
.rail { display: flex; gap: 18px; margin-top: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.vcard { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--raise); aspect-ratio: 9 / 16; isolation: isolate; }
.vcard.land { aspect-ratio: 16 / 9; }
.vcard.doc { aspect-ratio: 297 / 210; }
.rail .vcard { flex: none; width: 196px; }
.rail .vcard.land { width: 356px; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.vcard:hover img { transform: scale(1.05); }
.vcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent 55%); z-index: 1; }
.vcard .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; }
.vcard .cap b { display: block; font-size: 16px; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.vcard .cap small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.vcard .new { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px 4px 7px; border-radius: 999px; }
.vcard .new::before, .menu .newdot, .tile .newdot { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(226, 58, 38, .3); flex: none; }
.vcard .ok { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.vcard .chip { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* Freigabe */
.approve { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); flex: none; }
.approve:empty { display: none; }
.approve .state { flex: 1 0 100%; font-size: 13px; color: var(--muted); line-height: 1.3; }
.approve .btn { flex: 1; justify-content: center; }
.approve .state b { display: block; color: var(--fg); }
.approve .btn-ok { background: #1F8A4C; color: #fff; box-shadow: 0 6px 18px rgba(31, 138, 76, .3); }
.approve .btn-ok:hover { filter: brightness(1.1); }
.approved-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(31, 138, 76, .16); color: #3CC57A; font-weight: 700; padding: 9px 16px; border-radius: 999px; }

/* Review */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.stage { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.player { position: relative; background: #000; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; width: 100%; margin: 0 auto; }
.player.tall { aspect-ratio: 9 / 16; width: min(100%, calc((100vh - 300px) * 9 / 16)); min-width: 260px; }
.player video, .player #pageImg { width: 100%; height: 100%; display: block; object-fit: contain; }
.player.sheet { aspect-ratio: 297 / 210; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.player.drawing .ink { pointer-events: auto; }
.player.drawing { box-shadow: 0 0 0 3px var(--red); }
.bigplay { position: absolute; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--red); box-shadow: 0 0 0 10px rgba(226, 58, 38, .25); display: grid; place-items: center; }
.bigplay::after { content: ''; margin-left: 5px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.draw-tag { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }

.controls { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; }
.ctl { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--raise); display: grid; place-items: center; flex: none; }
.ctl svg { width: 18px; height: 18px; fill: var(--fg); }
.tc { font: 700 13px/1 var(--font); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.timeline { position: relative; flex: 1; height: 36px; cursor: pointer; min-width: 0; }
.track { position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--fg); opacity: .45; }
.head { position: absolute; top: 16px; width: 3px; height: 18px; border-radius: 2px; background: var(--red); transform: translateX(-1px); left: 0; pointer-events: none; box-shadow: 0 0 8px var(--red); }
.markers { position: absolute; inset: 0 0 auto; height: 18px; }
.mk { position: absolute; top: 2px; width: 13px; height: 13px; border-radius: 50%; transform: translateX(-6px); border: 2px solid var(--card); padding: 0; transition: transform .15s; }
.mk.pen { border-radius: 4px; }
.mk.done { opacity: .35; }
.mk:hover, .mk.on { transform: translateX(-6px) scale(1.35); }

.composer { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.composer textarea { resize: vertical; min-height: 48px; }
.stamp { font: 700 13px/1 var(--font); background: var(--raise); color: var(--red-hi); padding: 8px 10px; border-radius: 8px; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.composer .btn { margin-top: 2px; }
.tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.draw-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.draw-tools { display: flex; gap: 8px; }
.draw-tools button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.draw-tools button:hover { color: var(--fg); border-color: var(--muted); }
.hint { margin: 0 0 0 auto; font-size: 12px; color: var(--muted); }

/* Kommentarspalte */
.side { background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; max-height: calc(100vh - 140px); position: sticky; top: 12px; overflow: hidden; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.side-head h2 { font-size: 17px; }
.filter-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.empty { padding: 24px 16px; }
.empty p { margin: 0 0 8px; }

.c { border-radius: 14px; padding: 12px; border: 1px solid transparent; display: flex; flex-direction: column; gap: 6px; animation: fade .3s ease; }
.c:hover { background: var(--raise); }
.c.on { border-color: var(--line); background: var(--raise); }
.c.done .c-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.c-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.c-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-time { font: 700 12px/1.4 var(--font); background: var(--bg); border: 0; border-radius: 6px; padding: 2px 7px; color: var(--red-hi); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.c-pen { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.c-age { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.c-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.c-actions { display: flex; gap: 14px; font-size: 13px; align-items: center; }
.c-actions button { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 700; }
.c-actions button:hover { color: var(--fg); }
.c-actions .del:hover { color: var(--red-hi); }
.c-done { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); cursor: pointer; margin: 0; font-weight: 700; font-size: 13px; }
.c-done input { width: auto; accent-color: var(--red); margin: 0; }
.replies { list-style: none; margin: 4px 0 0 14px; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.reply-form { display: flex; gap: 8px; margin-top: 4px; }
.reply-form input { padding: 8px 12px; border-radius: 999px; }
.reply-form .btn { padding: 8px 14px; }

/* Feedback-Übersicht */
.fb-group { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.fb-group header { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fb-group header img { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; }
.fb-group header b { font-size: 16px; }
.fb-group header .btn { margin-left: auto; padding: 8px 14px; }
.fb-group ol { list-style: none; margin: 0; padding: 8px; }

/* Tutorial: alles unscharf, nur das erklärte Element bleibt scharf */
.tour { position: fixed; inset: 0; z-index: 100; opacity: 0; transition: opacity .5s var(--ease); }
.tour.in { opacity: 1; }
.tour-block { position: fixed; inset: 0; }
.tour-veil { position: fixed; inset: 0; pointer-events: none; background: var(--shade); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.tour-ring { position: fixed; border-radius: 18px; box-shadow: 0 0 0 1.5px var(--red); pointer-events: none; transition: opacity .3s var(--ease); }
.tour-card { position: fixed; width: min(380px, calc(100vw - 32px)); background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55); transition: top .75s var(--ease), left .75s var(--ease); }
.tour-body { transition: opacity .14s ease, transform .3s var(--ease); }
.tour-body.out { opacity: 0; transform: translateY(6px); }
.tour-card .step { font-size: 12px; font-weight: 700; color: var(--red-hi); letter-spacing: .08em; text-transform: uppercase; }
.tour-card h3 { font-size: 22px; line-height: 1.1; margin: 8px 0 8px; }
.tour-card p { margin: 0; color: var(--muted); }
.tour-nav { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.tour-nav .grow { flex: 1; }
.tour-dots { display: flex; gap: 5px; margin-top: 18px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .5s var(--ease), background .5s var(--ease); }
.tour-dots i.on { width: 18px; background: var(--red); }
.tour-skip { background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 700; padding: 6px; }
.tour-nav .btn { padding: 9px 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); font-weight: 700; padding: 10px 18px; border-radius: 999px; z-index: 120; animation: pop .25s; }

@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes ring { 50% { box-shadow: 0 0 0 3px var(--red), 0 0 0 14px rgba(226, 58, 38, .1); } }

@media (max-width: 1180px) {
  .review { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; padding: 8px; }
  .sidebar { position: static; height: auto; gap: 12px; border-radius: 20px; }
  .burger { display: grid; }
  .sidebar:not(.open) .nav, .sidebar:not(.open) .side-foot { display: none; }
  .menu { right: 0; }
  .hero { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .composer { grid-template-columns: 1fr auto; }
  .stamp { grid-row: 1; grid-column: 1 / -1; justify-self: start; margin: 0; }
  .hint { display: none; }
  .player.tall { width: min(100%, 360px); min-width: 0; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 150px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* Mikrofon */
.mic { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mic:hover { color: var(--fg); border-color: var(--muted); }
.mic.on { color: #fff; background: var(--red); border-color: var(--red); animation: blink 1.4s infinite; }


/* Startseite: Bereiche als schmale Bubbles mit Mockup, Zahl der neuen Beiträge als Hinweis */
#homeRows { display: flex; flex-direction: column; gap: 14px; }
.sec { display: flex; flex-direction: column; }
.bubble { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 22px 14px 14px; transition: border-color .3s var(--ease), transform .5s var(--ease); }
.bubble:hover { border-color: var(--muted); }
.bubble-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bubble-txt b { font-size: 20px; letter-spacing: -.035em; }
.bubble-txt small { color: var(--muted); font-size: 13px; font-weight: 700; }
.notif { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--fg); padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--raise); }
.notif .badge { margin: 0; }
.bubble .chev { color: var(--muted); transition: transform .6s var(--ease); }
.sec.closed .chev { transform: rotate(-90deg); }
.sec-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .7s var(--ease), opacity .5s var(--ease); }
.sec.closed .sec-body { grid-template-rows: 0fr; opacity: 0; }
.sec-inner { overflow: hidden; min-height: 0; }
.sec .rail { margin: 18px 0 22px; padding: 0 2px; transition: transform .7s var(--ease); }
.sec.closed .rail { transform: translateY(-24px); }

/* Mini-Mockups */
.mock { position: relative; flex: none; display: grid; place-items: center; width: 92px; height: 60px; }
.mock img { display: block; object-fit: cover; }
.mock-erklaer img { width: 84px; height: 48px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.mock-social img { width: 30px; height: 56px; border-radius: 7px; border: 3px solid #2C2C2A; box-shadow: 0 0 0 1px #4A4A46, 0 6px 16px rgba(0, 0, 0, .45); }
.mock-website::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 5px; border-radius: 0 0 6px 6px; background: linear-gradient(#C9C8C4, #8E8C87); }
.mock-website img { width: 76px; height: 46px; margin-bottom: 8px; border-radius: 5px 5px 0 0; border: 3px solid #1B1B1A; border-bottom: 0; }
.mock-wall::after { content: ''; position: absolute; bottom: 2px; width: 22px; height: 6px; border-radius: 2px; background: #4A4A46; }
.mock-wall img { width: 86px; height: 48px; margin-bottom: 8px; border-radius: 3px; border: 3px solid #1B1B1A; box-shadow: 0 0 0 1px #4A4A46; }

/* Wunschliste */
.wishes { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.wishes-head h2 { font-size: 20px; }
.wishes-head p { margin: 6px 0 0; }
.wish-form { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.wish-form textarea { resize: vertical; min-height: 46px; }
.wish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wish { border-radius: 14px; padding: 12px; background: var(--raise); display: flex; flex-direction: column; gap: 6px; }
.wish-url { font-size: 13px; font-weight: 700; color: var(--red-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .wish-form { grid-template-columns: 1fr; } }

/* Willkommensfenster mit Header-Video */
.tour-media { display: none; }
.tour-card.welcome { width: min(560px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.tour-card.welcome .tour-media { display: block; position: relative; aspect-ratio: 16 / 8; background: #000; }
.tour-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--card) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .35) 100%); }
.tour-logos { position: absolute; left: 24px; top: 20px; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; }
.tour-logos .logo { font-size: 26px; }
.tour-logos .x { font-weight: 700; opacity: .7; }
.tour-logos img { height: 24px; }
.tour-card.welcome .tour-body { padding: 0 26px 24px; margin-top: -26px; position: relative; z-index: 1; }
.tour-card.welcome h3 { font-size: 30px; }
/* Die Tutorial-Ebene selbst lässt Klicks durch; nur Riegel und Karte fangen sie ab */
.tour { pointer-events: none; }
.tour-block, .tour-card { pointer-events: auto; }

/* Bubble-Mockups als Bild */
.mock { width: 96px; height: 62px; }
.mock img { max-width: 96px; max-height: 62px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }

/* Unterreiter, z. B. Shooting / Sommerfest */
.subtabs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.subtab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 13px; font-weight: 700; color: var(--muted); transition: all .3s var(--ease); }
.subtab:hover { color: var(--fg); }
.subtab[aria-pressed="true"] { color: var(--fg); background: var(--bg); box-shadow: var(--inset); }
.subcount { min-width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--raise); }

/* Kopf im Review als Bubble */
.rev-head { display: flex; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px 22px 16px 16px; flex-wrap: wrap; }
.rev-mock { height: 64px; width: auto; max-width: 110px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.rev-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rev-txt .eyebrow { margin: 0 0 4px; }
.rev-txt h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; }
.rev-txt p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Live-Präsentation */
.deck-stage { position: absolute; inset: 0; overflow: hidden; background: #14171A; cursor: pointer; }
.deck-canvas { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; font-family: 'Rubik', Arial, sans-serif; }
.deck-canvas.enter { animation: fade .5s var(--ease); }
.deck-canvas section { position: relative; width: 1920px; height: 1080px; overflow: hidden; box-sizing: border-box; }
.deck-canvas h1, .deck-canvas h2, .deck-canvas h3, .deck-canvas p { margin: 0; letter-spacing: normal; text-wrap: initial; font-family: inherit; }
.deck-canvas img, .deck-canvas video { display: block; }
.deck-canvas section > *:not([style*="position:absolute"]):not([style*="position: absolute"]) { position: relative; }
.deck-canvas .clickvid { cursor: pointer; }
.bx { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.bx.instant { transition: none !important; }
.hide-in.b-fade, .hide-out.b-fade { opacity: 0; }
.hide-in.b-rise { opacity: 0; transform: translateY(18%); }
.hide-in.b-drop { transform: translateY(-100%); }
.hide-in.b-pop { opacity: 0; transform: scale(.4); }
.b-pop { transition: opacity .35s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.hide-in.b-left, .hide-out.b-left { transform: translateX(-100%); }
.hide-in.b-right, .hide-out.b-right { transform: translateX(100%); }
.b-left, .b-right { transition: transform 1s cubic-bezier(.65, 0, .35, 1); }

/* Vollbild-Ersatz, falls der Browser echtes Vollbild verweigert */
.player.max { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; max-width: none; }
body.noscroll { overflow: hidden; }
.player:fullscreen { border-radius: 0; }

/* Hell/Dunkel weich */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
:root.theming *, :root.theming *::before, :root.theming *::after { transition: background-color .6s ease, border-color .6s ease, color .6s ease, box-shadow .6s ease !important; }

/* Größere Mockups in den Bubbles, das iPhone darf höher sein */
.mock { width: 104px; height: 76px; }
.mock img { max-width: 104px; max-height: 76px; }
.mock.mock-social img { max-height: 84px; }
.bubble { min-height: 96px; }

/* Unterreiter klappen ihre Reihe einzeln auf */
.shelf { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease), opacity .45s var(--ease); }
.shelf.closed { grid-template-rows: 0fr; opacity: 0; }
.sec .subtabs { margin: 16px 0 4px; }

/* Bald verfügbar */
.nav-soon { color: var(--muted); font-weight: 700; opacity: .6; cursor: default; border-radius: 12px; }
.nav-soon .soon { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.nav-soon { white-space: nowrap; font-size: 14px; gap: 10px; } .nav-soon .soon { padding: 2px 7px; }

/* --- Runde 10 --- */
/* Kleinere Hinweis-Kreise */
.badge { width: 20px; height: 20px; font-size: 10px; }
.notif { padding: 4px 11px 4px 4px; font-size: 12px; }

/* Leicht gebürstete Flächen für Bubbles, Startfeld und Kopf, kaum sichtbar */
.hero, .bubble, .rev-head, .shoot {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
}
:root[data-theme="light"] .hero, :root[data-theme="light"] .bubble, :root[data-theme="light"] .rev-head, :root[data-theme="light"] .shoot {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .018) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
}

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #F4B740; }
.status.ok i { background: #3CC57A; }
.status.work i { background: var(--red); }
.vcard .cap .status { display: flex; }

/* Versionen */
.versions { display: flex; gap: 6px; background: var(--well); box-shadow: var(--inset); padding: 4px; border-radius: 999px; }
.ver { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ver[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: var(--lift); }
.c-ver { font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); }
.c-ver.done { color: #3CC57A; border-color: rgba(60, 197, 122, .4); }

/* Konfetti */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 150; }

/* Shootings als Felder auf der Social-Seite */
.shoots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.shoot { display: flex; align-items: center; gap: 16px; text-align: left; background-color: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px 18px 8px 8px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.shoot img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.shoot-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.shoot-txt b { font-size: 17px; letter-spacing: -.03em; }
.shoot-txt small { color: var(--muted); font-size: 13px; font-weight: 700; }
.shoot:hover { border-color: var(--muted); }
.shoot[aria-pressed="true"] { background-color: var(--well); box-shadow: var(--inset); border-color: transparent; }
#listBody > .shelf .grid { margin-top: 22px; }

/* Social Media Planner: Ausblick */
.nav-soon .soon { color: var(--red-hi); border-color: rgba(226, 58, 38, .45); background: rgba(226, 58, 38, .1); letter-spacing: .06em; }
.bubble-soon { position: relative; overflow: hidden; cursor: default; border-style: dashed; }
.bubble-soon .soon-ic { color: var(--muted); }
.bubble-soon .soon-ic .icon { width: 40px; height: 40px; stroke-width: 1.4; }
.soon-line { font-weight: 400 !important; }
.soon-lock { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red-hi); background: rgba(226, 58, 38, .1); border: 1px solid rgba(226, 58, 38, .4); }
.soon-lock .icon { width: 14px; height: 14px; }
.bubble-soon::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .07), transparent); transform: skewX(-18deg); pointer-events: none; }
.bubble-soon:hover::after { animation: shimmer 1.1s var(--ease); }
.bubble-soon:hover .soon-lock .icon { animation: wiggle .5s ease; }
@keyframes shimmer { to { left: 120%; } }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }

/* Präsentation: Aufbau ohne Aufblitzen, unsichtbare Teile fangen keine Klicks */
.deck-canvas.setup .bx { transition: none !important; }
.hide-in, .hide-out { pointer-events: none; }

/* Tutorial: Seiten fliegen während der Tour nicht ein, damit der Rahmen sofort sitzt */
body.touring .view, body.touring .view > * { animation: none !important; }
.tour-media::after { background: linear-gradient(to top, var(--card) 0%, rgba(0, 0, 0, 0) 55%), linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 38%); }

/* Rechtliches */
.legal { margin: 0; padding: 0 6px; font-size: 12px; color: var(--muted); }
.legal a:hover { color: var(--fg); }
.legal-page { max-width: 720px; margin: 0 auto; padding: 48px max(20px, env(safe-area-inset-right)) 80px max(20px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 40px; line-height: 1.6; }
.legal-page .logo { font-size: 30px; }
.legal-page h1 { font-size: 30px; margin-bottom: 12px; }
.legal-page h2 { font-size: 17px; margin: 22px 0 6px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page b { color: var(--fg); }
.legal-page .todo { color: var(--red-hi); font-weight: 700; }
.sidebar { z-index: 40; } /* damit das Suchpanel über dem Inhalt liegt */

/* Gebürsteter Effekt auf allen Blasen (nicht auf dem Seitenhintergrund) */
:root {
  --brush: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 45%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
}
:root[data-theme="light"] {
  --brush: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 45%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .018) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
}
.sidebar, .side-card, .side, .composer, .controls, .wishes, .gate-card, .tour-card, .menu, .fb-group, .me,
.hero, .bubble, .rev-head, .shoot { background-image: var(--brush); }

/* Anmeldekarte: kleines Logo-Paar wie im Willkommensfenster, ruhigere Proportionen */
.gate-card { width: min(420px, 100%); padding: 32px 32px 28px; gap: 10px; }
.gate-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.gate-brand .logo { font-size: 24px; }
.gate-brand .x { color: var(--muted); font-weight: 700; font-size: 14px; }
.gate-brand .client-logo { height: 22px; }
.gate-card .client { margin-top: 4px; }
.gate-card h1 { font-size: 26px; line-height: 1.1; margin: 0 0 4px; }
.gate-card .muted { font-size: 14px; line-height: 1.5; }
.gate-card label { margin-top: 6px; }
.gate-card .btn { margin-top: 2px; }
