/* Funkel – dunkel zuerst, hell auf Wunsch. Akzent: Verlauf Orange → Pink → Violett. */
:root {
  --bg: #fafafa; --bg2: #ffffff; --bg3: #f0f0f4; --line: #e3e3ea; --fg: #111116; --fg2: #5d5d6b; --fg3: #9393a3;
  --accent: #ff3d7f; --accent2: #7c5cff; --warm: #ff9f1c;
  --grad: linear-gradient(45deg, var(--warm), var(--accent) 50%, var(--accent2));
  --shadow: 0 10px 40px rgba(20, 10, 40, .12); --radius: 18px; --glow-a: .22;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d12; --bg2: #15151c; --bg3: #1e1e28; --line: #2a2a36; --fg: #f3f3f7; --fg2: #a6a6b6; --fg3: #6e6e80;
    --shadow: 0 10px 50px rgba(0, 0, 0, .5); --glow-a: .35; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d12; --bg2: #15151c; --bg3: #1e1e28; --line: #2a2a36; --fg: #f3f3f7; --fg2: #a6a6b6; --fg3: #6e6e80;
  --shadow: 0 10px 50px rgba(0, 0, 0, .5); --glow-a: .35; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: var(--fg); }
h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
h3, h4 { margin: 0; }
.muted { color: var(--fg2); } .small { font-size: 13px; } .pad { padding: 20px; } .center { text-align: center; }
.grow { flex: 1; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { background: var(--bg3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font: 12px ui-monospace, monospace; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 10px; background: var(--bg3); font-weight: 600; font-size: 14px; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--grad); color: #fff; }
.btn.danger { color: #ff4d6a; }
.btn.wide { width: 100%; height: 42px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--accent); font-weight: 600; }
.link[disabled] { opacity: .4; cursor: default; }
.link.danger { color: #ff4d6a; } .link.muted { color: var(--fg2); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform .12s, background .15s; }
.icon-btn:hover { background: var(--bg3); }
.icon-btn:active { transform: scale(.88); }
.icon-btn.on { color: var(--accent); }
.icon-btn.pop { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.3); } }

/* Profilbilder mit Story-Ring */
.ava { display: inline-grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; overflow: hidden; flex: none; position: relative; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.ring { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--accent); background-clip: padding-box; }
.ava.ring::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; padding: 2.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
.ava.ring { overflow: visible; box-shadow: 0 0 0 2.5px var(--bg); }
.ava.ring > img, .ava.ring > span { border-radius: 50%; overflow: hidden; width: 100%; height: 100%; display: grid; place-items: center; background: var(--c); }
.ava.ring.seen::after { background: var(--line); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Anmeldung */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 40px max(20px, 6vw); }
.auth-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-8deg) scale(.95); }
.tile { aspect-ratio: 4/5; border-radius: 16px; background: linear-gradient(160deg, hsl(calc(var(--h) * 1deg) 85% 65%), hsl(calc(var(--h) * 1deg + 60deg) 80% 45%)); animation: float 5s ease-in-out infinite; animation-delay: var(--d); box-shadow: var(--shadow); }
@keyframes float { 50% { transform: translateY(-12px); } }
.auth-card { max-width: 380px; display: flex; flex-direction: column; gap: 12px; background: var(--bg2); padding: 36px; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card input { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg3); padding: 0 14px; }
.auth-card input:focus, .form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.err { color: #ff4d6a; margin: 0; min-height: 1em; font-size: 14px; }
.hint { font-size: 13px; color: var(--fg2); text-align: center; margin: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.logo .ic { width: 30px; height: 30px; color: var(--accent); fill: currentColor; stroke: none; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.big { font-size: 40px; } .logo.big .ic { width: 44px; height: 44px; }

/* Gerüst mit Seitenleiste */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 244px; flex: none; display: flex; flex-direction: column; gap: 4px; padding: 22px 12px 18px; border-right: 1px solid var(--line); background: var(--bg); z-index: 5; }
.side .logo { padding: 8px 12px 24px; }
.side > a:not(.logo), .side > button { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; position: relative; transition: background .15s; }
.side > a:not(.logo):hover, .side > button:hover { background: var(--bg3); }
.side > a:hover .ic, .side > button:hover .ic { transform: scale(1.08); }
.side .ic { transition: transform .15s; }
.side .on { font-weight: 700; }
.side .on .ic { stroke-width: 2.5; }
.side .badge { position: absolute; left: 30px; top: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/18px system-ui; text-align: center; padding: 0 5px; font-style: normal; }
main { flex: 1; min-width: 0; }

/* Feed */
.feed-wrap { display: flex; justify-content: center; gap: 56px; padding: 24px 24px 80px; }
.feed-col { width: 100%; max-width: 480px; }
.right { width: 300px; flex: none; position: sticky; top: 24px; align-self: flex-start; padding-top: 24px; }
.right h4 { color: var(--fg2); font-size: 14px; margin: 22px 0 10px; }
.me-row, .sug { display: flex; align-items: center; gap: 12px; }
.me-row > span:not(.ava), .sug a { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.me-row small, .sug small, .urow small { color: var(--fg2); font-size: 13px; }
.sug { margin-bottom: 12px; } .sug .link { font-size: 13px; }
.promise { margin-top: 26px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); }
.promise h4 { margin: 0 0 8px; color: var(--fg); }
.promise ul { margin: 0; padding-left: 18px; color: var(--fg2); font-size: 13px; line-height: 1.7; }

.stories { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 18px; margin-bottom: 8px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; flex: none; position: relative; padding-top: 5px; }
.story > span:last-child { font-size: 12px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story:hover .ava { transform: scale(1.04); }
.story .ava { transition: transform .2s; }
.story .plus { position: absolute; right: 2px; top: 48px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 17px/19px system-ui; border: 2.5px solid var(--bg); font-style: normal; }

.post { position: relative; margin-bottom: 34px; background: var(--bg2); border-radius: var(--radius); border: 1px solid var(--line); }
/* Farbstimmung: jeder Beitrag leuchtet sanft in seiner Hauptfarbe. */
.post::before { content: ""; position: absolute; inset: 40px 10px 30%; background: var(--glow); filter: blur(50px); opacity: var(--glow-a); z-index: -1; border-radius: 50%; transition: opacity .4s; }
.post:hover::before { opacity: calc(var(--glow-a) * 1.5); }
.post > header, .d-side > header { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.who > span:not(.ava) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who small { font-size: 12px; color: var(--fg2); }
.post time { font-size: 13px; color: var(--fg3); }
.carousel { position: relative; overflow: hidden; background: var(--bg3); user-select: none; touch-action: pan-y; cursor: pointer; }
.track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.slide { flex: 0 0 100%; height: 100%; background: var(--c); }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .nav { position: absolute; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #111; display: grid; place-items: center; opacity: 0; transition: opacity .2s; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.carousel .nav .ic { width: 18px; height: 18px; stroke-width: 2.5; }
.carousel:hover .nav { opacity: 1; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.dots i.on { background: #fff; width: 16px; }
.count { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; backdrop-filter: blur(6px); }
.burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.burst .ic { width: 110px; height: 110px; color: #fff; stroke: none; filter: drop-shadow(0 4px 20px rgba(255, 61, 127, .8)); opacity: 0; transform: scale(0); }
.burst.go .ic { animation: burst .8s ease-out; }
@keyframes burst { 15% { opacity: 1; transform: scale(1.2); } 30% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1) translateY(-30px); } }
.spark { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); pointer-events: none; animation: spark .7s ease-out forwards; }
@keyframes spark { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-120px) scale(0); opacity: 0; } }
.capsule { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, var(--c), #1a1030); position: relative; overflow: hidden; }
.capsule::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px); }
.capsule .ic { width: 52px; height: 52px; stroke-width: 1.5; animation: float 3s ease-in-out infinite; }
.capsule b { font-size: 22px; } .capsule span { font-size: 16px; opacity: .9; } .capsule small { opacity: .7; }
.actions { display: flex; align-items: center; padding: 4px 6px 0; }
.actions .like.on { color: var(--accent); }
.body { padding: 0 16px 14px; }
.body p { margin: 4px 0; }
.likes { min-height: 0; }
.cap { word-wrap: break-word; }
.tag, .mention { color: var(--accent2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.tag, .mention) { color: #a995ff; } }
:root[data-theme="dark"] :is(.tag, .mention) { color: #a995ff; }
.cprev p { margin: 2px 0; font-size: 14px; }
.cprev p.new { animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.quick-comment { display: flex; gap: 8px; border-top: 1px solid var(--line); margin: 10px -16px -14px; padding: 10px 16px; }
.quick-comment input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; }
.caught { text-align: center; padding: 30px 20px 60px; }
.caught .ic { width: 54px; height: 54px; color: var(--accent); stroke-width: 1.4; padding: 10px; border-radius: 50%; border: 2px solid; }
.caught p { color: var(--fg2); max-width: 340px; margin: 6px auto 16px; }

/* Fenster */
#overlay { position: fixed; inset: 0; z-index: 50; display: none; }
#overlay.open { display: grid; place-items: center; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); animation: fadein .2s; }
.modal { position: relative; background: var(--bg2); border-radius: 20px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; animation: zoomin .22s cubic-bezier(.2, .9, .3, 1.2); width: min(560px, 94vw); }
@keyframes zoomin { from { opacity: 0; transform: scale(.94); } }
.modal.small { width: min(400px, 94vw); }
.mh { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.menu { display: flex; flex-direction: column; }
.mi { padding: 15px; text-align: center; border-bottom: 1px solid var(--line); }
.mi:last-child { border: 0; } .mi:hover { background: var(--bg3); }
.mi.danger { color: #ff4d6a; font-weight: 700; }
.ulist { max-height: 50vh; overflow: auto; padding: 6px 0; }
.urow { display: flex; align-items: center; gap: 12px; padding: 8px 20px; width: 100%; text-align: left; }
.urow:hover { background: var(--bg3); }
.urow > span:not(.ava):not(.hash) { display: flex; flex-direction: column; flex: 1; }
.urow .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.urow.on .check { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg2); }
.hash { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; color: var(--fg2); }
.share .filter, .share .note { margin: 10px 20px 0; width: calc(100% - 40px); border: 1px solid var(--line); border-radius: 10px; background: var(--bg3); padding: 10px 12px; resize: none; }
.share .btn { margin: 12px 20px 20px; width: calc(100% - 40px); }
.form { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg2); }
.form input:not([type=color]):not([type=file]), .form textarea { border: 1px solid var(--line); border-radius: 10px; background: var(--bg3); padding: 10px 12px; font-weight: 400; color: var(--fg); resize: vertical; }
.form input[type=color] { width: 60px; height: 36px; border: 0; background: none; padding: 0; }
.ava-edit { display: flex; gap: 16px; align-items: center; padding: 12px; background: var(--bg3); border-radius: 14px; }
.ava-edit > div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ava-edit label { color: var(--accent); flex-direction: row; cursor: pointer; }

/* Einzelner Beitrag */
.post-modal { width: min(1180px, 94vw); max-height: 90vh; overflow: hidden; border-radius: 16px; }
.detail { display: flex; height: min(88vh, 860px); margin: 0; border: 0; border-radius: 0; }
.detail::before { display: none; }
.d-media { flex: 1.4; background: #000; display: grid; place-items: center; min-width: 0; }
.d-media .carousel, .d-media .capsule { max-height: 100%; max-width: 100%; width: 100%; aspect-ratio: auto !important; height: 100%; }
.d-media .slide img { object-fit: contain; }
.d-side { width: 400px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.d-side > header { border-bottom: 1px solid var(--line); }
.d-comments { flex: 1; overflow: auto; padding: 14px 16px; }
.cm { display: flex; gap: 12px; margin-bottom: 16px; }
.cm p { margin: 0; flex: 1; font-size: 14px; word-wrap: break-word; min-width: 0; }
.cm small { display: block; color: var(--fg3); font-size: 12px; margin-top: 4px; }
.cm small .link { font-size: 12px; font-weight: 500; color: var(--fg3); }
.cm.new { animation: fadein .4s; }
.d-side .actions { border-top: 1px solid var(--line); padding-top: 6px; }
.add-comment { display: flex; gap: 10px; border-top: 1px solid var(--line); padding: 12px 16px; align-items: center; }
.add-comment textarea { flex: 1; resize: none; border: 0; background: none; outline: none; max-height: 90px; }

/* Raster */
.page { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }
.page.narrow { max-width: 620px; }
.sub { margin: 0 0 18px; max-width: 560px; }
.loading { height: 200px; margin: 30px; border-radius: 20px; background: linear-gradient(90deg, var(--bg3), var(--bg2), var(--bg3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 6px 14px; border-radius: 20px; background: var(--bg3); font-size: 14px; font-weight: 600; transition: background .15s; }
.chip:hover { background: var(--line); } .chip.on { background: var(--grad); color: #fff; }
.hues { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hue { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg); transition: transform .15s; }
.hue:hover { transform: scale(1.15); }
.hue.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); transform: scale(1.1); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid.big { grid-auto-flow: dense; }
.grid.big .tile:nth-child(10n+3), .grid.big .tile:nth-child(10n+8) { grid-row: span 2; }
.grid .tile { position: relative; aspect-ratio: 1; background: var(--c); overflow: hidden; display: block; border-radius: 4px; animation: none; box-shadow: none; }
.grid.big .tile:nth-child(10n+3), .grid.big .tile:nth-child(10n+8) { aspect-ratio: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.tile:hover img { transform: scale(1.05); }
.tile .hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(0, 0, 0, .35); color: #fff; font-weight: 700; opacity: 0; transition: opacity .2s; }
.tile .hover .ic { width: 20px; height: 20px; stroke: #fff; } .tile .hover .ic[fill] { fill: #fff; }
.tile:hover .hover { opacity: 1; }
.tile .multi { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.tile .multi .ic { width: 20px; height: 20px; }
.tile .locked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--c), #1a1030); gap: 4px; }
.tag-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.tag-ava { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 50px; font-weight: 300; color: #fff; background: linear-gradient(135deg, var(--c), var(--accent2)); }
.empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--fg2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 60px; height: 60px; padding: 14px; border: 2px solid; border-radius: 50%; stroke-width: 1.4; }

/* Profil */
.p-head { display: flex; gap: 60px; align-items: center; padding: 10px 40px 36px; }
.p-ava { font-size: 60px !important; box-shadow: 0 10px 40px color-mix(in srgb, var(--c) 45%, transparent); }
.p-info { flex: 1; min-width: 0; }
.p-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-row h1 { font-size: 22px; font-weight: 500; margin: 0 10px 0 0; }
.p-counts { display: flex; gap: 32px; margin: 18px 0; }
.p-counts .link { color: var(--fg); font-weight: 400; }
.p-name { margin: 0; } .p-bio { margin: 4px 0 0; white-space: pre-wrap; }
.palette { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 16px; max-width: 360px; }
.palette i { flex: 1; background: var(--c); transition: flex .3s; }
.palette i:hover { flex: 3; }
.tabs { display: flex; justify-content: center; gap: 50px; border-top: 1px solid var(--line); margin-bottom: 4px; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 14px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fg3); border-top: 1px solid transparent; margin-top: -1px; }
.tabs .ic { width: 14px; height: 14px; }
.tabs a.on { color: var(--fg); border-color: var(--fg); }

/* Nachrichten */
.dm { display: flex; height: 100vh; }
.threads { width: 360px; flex: none; border-right: 1px solid var(--line); overflow: auto; }
.threads h2 { padding: 30px 24px 14px; margin: 0; font-size: 20px; }
.thread { display: flex; align-items: center; gap: 12px; padding: 10px 24px; position: relative; }
.thread:hover { background: var(--bg3); } .thread.on { background: var(--bg3); }
.thread > span:not(.ava) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.thread small { color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.thread.unread b, .thread.unread small { font-weight: 700; color: var(--fg); }
.thread .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat > header { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat .back { display: none; }
.msgs { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.msg { max-width: 65%; align-self: flex-start; animation: fadein .25s; }
.msg p { margin: 0; padding: 9px 14px; border-radius: 20px; background: var(--bg3); word-wrap: break-word; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; }
.msg.mine p { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.msg.big-emoji p { background: none !important; font-size: 44px; padding: 0 6px; }
.shared { display: block; width: 220px; border-radius: 16px; overflow: hidden; background: var(--bg3); margin-bottom: 3px; }
.shared img, .sh-lock { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), #1a1030); }
.shared span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.composer { display: flex; align-items: center; gap: 8px; margin: 14px 18px 18px; border: 1px solid var(--line); border-radius: 24px; padding: 6px 8px 6px 18px; }
.composer input { flex: 1; border: 0; background: none; outline: none; height: 32px; }
.emo { display: flex; } .emo button { font-size: 18px; padding: 2px 4px; transition: transform .15s; } .emo button:hover { transform: scale(1.25); }
.chat-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chat-empty .ic { width: 70px; height: 70px; padding: 16px; border: 2px solid; border-radius: 50%; stroke-width: 1.3; }

/* Aktivität */
.page h4 { margin: 24px 0 10px; font-size: 15px; }
.act { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.act p { flex: 1; margin: 0; font-size: 14px; }
.thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }

/* Einstellungen */
.settings section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.settings h3 { margin-bottom: 10px; font-size: 16px; }
.seg { display: inline-flex; background: var(--bg3); border-radius: 10px; padding: 3px; }
.seg button { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--fg2); }
.seg button.on { background: var(--bg2); color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.switch input { display: none; }
.switch span { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.row input { width: 70px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); padding: 5px 8px; margin: 0 4px; }

/* Storys ansehen */
.story-modal { width: auto; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.sv { position: relative; height: min(92vh, 860px); aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: var(--c); max-width: 100vw; }
.sv > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; background: #fff; }
.sv header { position: absolute; top: 20px; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; color: #fff; z-index: 3; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.sv header time { opacity: .75; font-size: 13px; }
.sv header .icon-btn:hover { background: rgba(255, 255, 255, .15); }
.views { display: flex; align-items: center; gap: 4px; font-size: 13px; } .views .ic { width: 18px; }
.sv::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); z-index: 2; pointer-events: none; }
.sv-text { position: absolute; left: 10%; right: 10%; top: 50%; translate: 0 -50%; text-align: center; margin: 0; font: 800 26px/1.3 system-ui; color: #111; z-index: 2; pointer-events: none; }
.sv-text { background: rgba(255, 255, 255, .92); padding: 6px 14px; border-radius: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; width: fit-content; margin: auto; left: 0; right: 0; }
.sv-tap { position: absolute; top: 70px; bottom: 80px; width: 40%; z-index: 1; }
.sv-tap.l { left: 0; } .sv-tap.r { right: 0; width: 60%; }
.sv-reply { position: absolute; bottom: 14px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.sv-reply input { flex: 1; height: 42px; border-radius: 21px; border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .25); color: #fff; padding: 0 16px; outline: none; backdrop-filter: blur(6px); }
.sv-reply input::placeholder { color: rgba(255, 255, 255, .8); }
.reacts button { font-size: 22px; transition: transform .2s; } .reacts button:hover { transform: scale(1.3); }
.reacts button.fly { animation: fly .6s ease-out; }
@keyframes fly { to { transform: translateY(-160px) scale(2); opacity: 0; } }

/* Erstellen */
.create-modal { width: min(1080px, 96vw); overflow: hidden; }
.create header { display: flex; align-items: center; padding: 6px 14px; border-bottom: 1px solid var(--line); gap: 10px; }
.create header h3 { flex: 1; text-align: center; font-size: 16px; }
.create .strong { font-weight: 700; min-width: 60px; text-align: right; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: min(70vh, 640px); cursor: pointer; transition: background .2s; text-align: center; padding: 20px; }
.drop.over { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.drop > .ic { width: 90px; height: 90px; stroke-width: 1; color: var(--fg2); }
.ed { display: flex; height: min(76vh, 720px); }
.ed-stage { flex: 1; background: var(--bg3); display: flex; align-items: center; justify-content: center; position: relative; min-width: 0; padding: 20px; }
#prev { max-width: 100%; max-height: 100%; border-radius: 6px; cursor: grab; touch-action: none; box-shadow: var(--shadow); }
#prev:active { cursor: grabbing; }
.aspects { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 4px; background: rgba(0, 0, 0, .6); padding: 4px; border-radius: 10px; }
.aspects button { color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; opacity: .7; }
.aspects button.on { background: rgba(255, 255, 255, .2); opacity: 1; }
.zoom { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .6); padding: 6px 10px; border-radius: 10px; color: #fff; }
.zoom .ic { width: 16px; height: 16px; }
.hint-drag { position: absolute; top: 10px; margin: 0; font-size: 12px; color: var(--fg3); }
.strip { position: absolute; left: 50%; translate: -50% 0; bottom: 64px; display: flex; gap: 6px; background: rgba(0, 0, 0, .5); padding: 6px; border-radius: 12px; }
.strip button { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; opacity: .6; outline: 2px solid transparent; }
.strip button.on { opacity: 1; outline-color: #fff; }
.strip canvas { width: 100%; height: 100%; object-fit: cover; }
.ed-side { width: 340px; flex: none; border-left: 1px solid var(--line); overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ed-side .seg { width: 100%; } .ed-side .seg button { flex: 1; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.presets button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--fg2); }
.presets canvas { width: 100%; aspect-ratio: 1; border-radius: 8px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.presets button.on { color: var(--accent); } .presets button.on canvas { outline-color: var(--accent); }
.sl { display: grid; grid-template-columns: 1fr 34px; gap: 2px 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.sl input { grid-column: 1; accent-color: var(--accent); }
.sl output { grid-row: 1 / span 2; grid-column: 2; align-self: end; text-align: right; font-size: 12px; color: var(--fg2); font-variant-numeric: tabular-nums; }
.post-fields { display: flex; flex-direction: column; gap: 12px; }
.post-fields .me-row { gap: 10px; }
.post-fields textarea { border: 0; background: none; resize: none; outline: none; font-size: 15px; }
.right-al { text-align: right; margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg2); font-weight: 600; }
.field input, #unlock { border: 1px solid var(--line); border-radius: 10px; background: var(--bg3); padding: 9px 12px; font-weight: 400; outline: none; }
.post-fields .field:has(.ic) { flex-direction: row; align-items: center; }
.post-fields .field:has(.ic) input { flex: 1; }
.post-fields .field .ic { width: 20px; }

/* Suche */
.search-modal { align-self: start; margin-top: 10vh; }
.search input { width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 0 22px; font-size: 18px; outline: none; }
.results { max-height: 60vh; overflow: auto; padding: 6px 0; }

/* Pause */
.pause, .bye { text-align: center; padding: 30px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pause .ic, .bye .ic { width: 56px; height: 56px; color: var(--accent2); }
.pause h2 { margin: 0; } .pause p { color: var(--fg2); margin: 0 0 10px; }
.bye { min-height: 100vh; justify-content: center; }

#toast { position: fixed; left: 50%; bottom: 30px; translate: -50% 20px; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; z-index: 100; }
#toast.show { opacity: 1; translate: -50% 0; }

/* Schmale Bildschirme */
@media (max-width: 1260px) { .side { width: 76px; } .side .logo span, .side > a > span:not(.ava), .side > button > span { display: none; } .right { display: none; } }
@media (max-width: 860px) {
  .p-head { gap: 24px; padding: 10px 0 24px; } .p-ava { width: 90px !important; height: 90px !important; font-size: 36px !important; }
  .post-modal .detail { flex-direction: column; height: 90vh; } .d-side { width: auto; flex: 1; min-height: 0; } .d-media { flex: none; height: 45%; }
  .ed { flex-direction: column; height: 82vh; } .ed-side { width: auto; border-left: 0; border-top: 1px solid var(--line); max-height: 45%; }
  .threads { width: 100%; } .dm .chat { display: none; } .dm.has-chat .threads { display: none; } .dm.has-chat .chat { display: flex; } .chat .back { display: grid; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-card { margin: auto; }
}
@media (max-width: 640px) {
  .shell { flex-direction: column; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; width: auto; flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); }
  .side .logo, .side .grow, .side > [data-nav="einstellungen"], .side > [data-nav="aktivitaet"] { display: none !important; }
  main { padding-bottom: 70px; }
  .feed-wrap { padding: 8px 0 40px; } .post { border-radius: 0; border-left: 0; border-right: 0; }
  .page { padding: 20px 16px 80px; } .dm { height: calc(100vh - 62px); }
}

/* Videos */
.slide.video { position: relative; }
.slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--c); }
.d-media .slide video { object-fit: contain; }
.mute { position: absolute; right: 12px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; z-index: 2; backdrop-filter: blur(6px); }
.mute .ic { width: 17px; height: 17px; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.vbar b { display: block; height: 100%; width: 0; background: #fff; }
.slide.broken::after { content: "Video lädt nicht"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .4); }
.tile .multi { display: flex; align-items: center; gap: 4px; }
.tile .multi small { font-weight: 700; font-size: 12px; }
.tile .multi .ic[fill] { stroke: none; }
.sv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-mute { top: 62px; bottom: auto; right: 14px; z-index: 4; }
#prevVid { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.ed-stage { position: relative; }
.ed-mute { right: 16px; bottom: 64px; }
.sv-text-prev { position: absolute; }

/* Clips: ein Video pro Bildschirmhöhe, einrastend */
.clips { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.clips::-webkit-scrollbar { display: none; }
.clip { height: 100vh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; gap: 16px; position: relative; margin: 0; background: none; border: 0; border-radius: 0; padding: 20px 0; }
.clip::before { inset: 15% 30%; }
.clip .carousel { height: calc(100vh - 40px); aspect-ratio: 9/16; max-width: calc(100vw - 120px); border-radius: 16px; }
.clip-info { position: absolute; left: 50%; translate: calc(-50% - 30px) 0; bottom: 40px; width: min(calc((100vh - 40px) * 9 / 16 - 30px), calc(100vw - 150px)); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); pointer-events: none; z-index: 2; }
.clip-info a, .clip-info .tag, .clip-info .mention { pointer-events: auto; color: #fff; font-weight: 700; }
.clip-info p { margin: 8px 0 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clip-info .who { gap: 8px; }
.clip .mute { top: 14px; bottom: auto; }
.clip-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; align-self: flex-end; padding-bottom: 30px; }
.clip-actions small { font-size: 12px; font-weight: 600; margin-bottom: 8px; min-height: 1em; }
.clip-actions .icon-btn .ic { width: 27px; height: 27px; }

/* Private Konten */
.lockmark { display: inline-flex; margin-left: 6px; vertical-align: -2px; color: var(--fg2); }
.lockmark .ic, .urow b .ic { width: 15px; height: 15px; vertical-align: -2px; }
.private-wall { text-align: center; padding: 50px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.private-wall .ic { width: 60px; height: 60px; padding: 14px; border: 2px solid; border-radius: 50%; stroke-width: 1.4; }
.private-wall p { max-width: 340px; margin: 0; }
.act.req { gap: 8px; } .act.req p { margin-right: 4px; }
.urow .who { flex: 1; }
.urow .btn { height: 30px; padding: 0 12px; font-size: 13px; }
@media (max-width: 640px) {
  .clips { height: calc(100vh - 62px); } .clip { height: calc(100vh - 62px); padding: 0; }
  .clip .carousel { height: 100%; max-width: 100vw; border-radius: 0; }
  .clip-actions { position: absolute; right: 6px; bottom: 20px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6)); z-index: 3; }
  .clip-info { left: 14px; translate: none; width: calc(100vw - 80px); bottom: 24px; }
}

/* Melden, Prüfen, Konto, Rechtliches */
.accept { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--fg2); text-align: left; }
.accept input { margin-top: 3px; height: auto !important; }
.accept a, .legal-links a, .legal a { color: var(--accent); }
.legal-links { text-align: center; font-size: 12px; color: var(--fg3); margin: 4px 0 0; }
.legal h1 { margin-bottom: 12px; } .legal h3 { margin: 22px 0 6px; font-size: 16px; }
.legal p, .legal li { color: var(--fg2); line-height: 1.6; } .legal ul { padding-left: 20px; }
.reasons { display: flex; flex-direction: column; gap: 2px; }
.reasons label { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; color: var(--fg) !important; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.reasons label:hover { background: var(--bg3); }
.report .btn { margin-top: 4px; }
.rep { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; transition: opacity .3s, transform .3s; }
.rep.done { opacity: 0; transform: translateX(30px); }
.rep header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rep header a { color: var(--accent); font-weight: 600; }
.rep header small { width: 100%; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: var(--bg3); }
.pill.hot { background: #ff4d6a; color: #fff; }
.note { margin: 0; font-style: italic; color: var(--fg2); }
.snap { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.snap img, .snap video { max-width: 220px; max-height: 260px; border-radius: 8px; background: var(--bg3); }
.snap p { flex-basis: 100%; margin: 0; padding: 10px 12px; background: var(--bg3); border-radius: 10px; white-space: pre-wrap; }
.snap .snap-ava { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.rep textarea { border: 1px solid var(--line); border-radius: 10px; background: var(--bg3); padding: 9px 12px; resize: vertical; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seg a { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--fg2); }
.seg a.on { background: var(--bg2); color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.act.notice .ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--bg3); color: var(--accent2); flex: none; }
.msg { position: relative; }
.rep-m { position: absolute; right: -30px; top: 50%; translate: 0 -50%; opacity: 0; color: var(--fg3); transition: opacity .15s; }
.rep-m .ic { width: 16px; height: 16px; }
.msg:hover .rep-m { opacity: 1; }
.settings details { margin: 8px 0; }
.settings summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.danger-text { color: #ff4d6a; }
.form.inline { padding: 8px 0; max-width: 360px; }
.form.inline input { border: 1px solid var(--line); border-radius: 10px; background: var(--bg3); padding: 9px 12px; }
.settings .urow { padding: 6px 0; }
.settings .urow > span:not(.ava) { flex: 1; }
