/* =====================================================================
   forumNG – AudiV8 Forum NextGen
   Farbwelt: Schwarz (Logo-Hintergrund), Dunkelblau/Blau aus dem klassischen
   Theme (#090a52, #0c0e72, #3670ff), Hellblau für Text-Akzente, Gelb für
   Zahlen und Hervorhebungen, rote Verbindungslinien aus dem Logo (#7a0000).
   ===================================================================== */

:root {
	--black: #000;
	--ink: #050508;
	--ink-2: #0b0c14;
	--panel: #0d0f1e;
	--panel-2: #121530;
	--panel-hover: #161a3c;
	--navy-3: #05062e;
	--navy-2: #090a52;
	--navy: #0c0e72;
	--blue: #3670ff;
	--blue-2: #5a8bff;
	--sky: #8ec5ff;
	--sky-2: #bfe0ff;
	--yellow: #ffcc00;
	--yellow-2: #ffe066;
	--red: #8a0a0a;
	--red-glow: #c3161c;

	--bg: var(--ink);
	--surface: var(--panel);
	--surface-2: var(--panel-2);
	--surface-hover: var(--panel-hover);
	--border: rgba(142, 197, 255, .10);
	--border-strong: rgba(142, 197, 255, .20);
	--text: #eef1fb;
	--text-2: #c4cbe3;
	--muted: #8a92b4;
	--accent: var(--blue);
	--link: var(--sky);
	--quote-bg: rgba(54, 112, 255, .07);
	--shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
	--radius: 14px;
	--radius-sm: 10px;
	--topbar-h: 72px;
	--bottomnav-h: 66px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--line: 2px solid var(--red);
	color-scheme: dark;
}

[data-theme="light"] {
	--bg: #eef1f8;
	--surface: #ffffff;
	--surface-2: #f3f5fc;
	--surface-hover: #eaf0ff;
	--border: rgba(9, 10, 82, .10);
	--border-strong: rgba(9, 10, 82, .18);
	--text: #0d0f2e;
	--text-2: #2b3060;
	--muted: #646b8f;
	--link: #1f4fd8;
	--quote-bg: rgba(12, 14, 114, .05);
	--shadow: 0 14px 30px -20px rgba(9, 10, 82, .35);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }

body {
	margin: 0;
	font: 16px/1.6 var(--font);
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
/* feine Körnung – Neuinterpretation des alten "Chalkboard"-Schwarz */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(1100px 520px at 85% -8%, rgba(12, 14, 114, .55), transparent 60%),
		radial-gradient(800px 480px at -10% 30%, rgba(9, 10, 82, .45), transparent 60%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::before {
	background: radial-gradient(1100px 520px at 85% -8%, rgba(54, 112, 255, .18), transparent 60%);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--yellow); }
[data-theme="light"] a:hover { color: var(--navy); }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.12rem; font-weight: 750; }
h3 { font-size: 1.04rem; font-weight: 700; }
img { max-width: 100%; }

.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ico-muted { color: var(--muted); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* =========================== Kopfzeile ============================ */

.topbar {
	position: sticky; top: 0; z-index: 50;
	padding-top: env(safe-area-inset-top, 0px);
	background: #000;
}
.topbar-inner {
	width: min(1180px, 100% - 32px); margin-inline: auto;
	height: var(--topbar-h);
	display: flex; align-items: center; gap: 14px;
}
/* Logo 1:1 – schwarzer Grund verschmilzt mit der Kopfzeile */
.brand { position: relative; display: block; flex: none; height: 100%; }
.brand-logo { display: block; height: 100%; width: auto; max-width: none; }
.brand::after {
	content: "NextGen"; position: absolute; right: 2px; top: 8px;
	font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
	color: #000; background: var(--yellow); padding: 2px 7px; border-radius: 4px;
	box-shadow: 0 0 18px rgba(255, 204, 0, .35);
}
/* rote Linie unter der Kopfzeile, wie die Rahmenlinien im Logo */
.redline {
	height: 2px;
	background: linear-gradient(90deg, transparent 0, var(--red) 8%, var(--red-glow) 50%, var(--red) 92%, transparent 100%);
	box-shadow: 0 0 10px rgba(195, 22, 28, .55);
}

.topsearch { flex: 1; max-width: 380px; margin-left: auto; position: relative; display: flex; align-items: center; }
.topsearch .ico { position: absolute; left: 13px; color: var(--sky); pointer-events: none; }
.topsearch input {
	width: 100%; height: 42px; padding: 0 14px 0 40px;
	border-radius: 999px; border: 1px solid rgba(142, 197, 255, .22);
	background: rgba(12, 14, 114, .35); color: #fff; font: inherit; font-size: .95rem;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.topsearch input::placeholder { color: rgba(191, 224, 255, .55); }
.topsearch input:focus { outline: none; background: rgba(12, 14, 114, .6); border-color: var(--sky); box-shadow: 0 0 0 4px rgba(54, 112, 255, .2); }

.topnav { display: flex; gap: 2px; }
.topnav a { color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .95rem; position: relative; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.topnav a.is-active { color: #fff; }
.topnav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--yellow); border-radius: 2px; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
	border-radius: 999px; border: 1px solid rgba(142, 197, 255, .2);
	background: rgba(255, 255, 255, .04); color: var(--sky); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: block; }
[data-theme="light"] .theme-toggle .ico-moon { display: none; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu-pop {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; z-index: 70;
	background: var(--panel); border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px;
	box-shadow: 0 20px 50px -15px #000;
}
[data-theme="light"] .usermenu-pop { background: #fff; }
.usermenu-head { padding: 10px 12px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.usermenu-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.usermenu-pop a:hover { background: var(--surface-hover); color: var(--text); }

/* =========================== Buttons ============================ */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 999px;
	font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap;
	border: 1px solid transparent; cursor: pointer; transition: transform .1s, background .2s, box-shadow .2s, color .2s;
	color: var(--text);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #4a80ff, #2456e6); box-shadow: 0 8px 22px -8px rgba(54, 112, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #5d8fff, #2f62f0); }
.btn-yellow { color: #000; background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); box-shadow: 0 8px 22px -10px rgba(255, 204, 0, .8); }
.btn-yellow:hover { color: #000; filter: brightness(1.05); }
.btn-red { color: #fff; background: linear-gradient(180deg, #b3141a, #7a0000); box-shadow: 0 8px 22px -10px rgba(195, 22, 28, .9); }
.btn-red:hover { color: #fff; background: linear-gradient(180deg, #c81d24, #8a0a0a); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface-hover); border-color: var(--sky); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.badge {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-2);
	vertical-align: 2px;
}
.badge .ico { width: .95em; height: .95em; }
.badge-yellow { background: var(--yellow); color: #000; border-color: transparent; }
.badge-blue { background: rgba(54, 112, 255, .18); color: var(--sky); border-color: transparent; }
.badge-soft { background: var(--surface-2); color: var(--muted); border-color: transparent; }

.chip { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--sky); background: rgba(54, 112, 255, .14); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
[data-theme="light"] .chip { color: var(--navy); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.above { position: relative; z-index: 1; }

/* =========================== Avatare ============================ */

.avatar {
	--size: 44px;
	position: relative; display: inline-grid; place-items: center; flex: none;
	width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden;
	background: linear-gradient(135deg, hsl(var(--h) 70% 42%), var(--navy));
	color: #fff; font-weight: 800; font-size: calc(var(--size) * .42);
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(142, 197, 255, .25);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { --size: 26px; }
.avatar-sm { --size: 32px; }
.avatar-md { --size: 44px; }
.avatar-xl { --size: 96px; }

/* =========================== Startseite ============================ */

/* Kommandozentrale: Dunkelblau mit roten Rahmen-Ecken wie im Logo */
.hq {
	position: relative; margin-top: 28px; padding: clamp(22px, 4vw, 44px);
	background:
		radial-gradient(700px 300px at 100% 0%, rgba(54, 112, 255, .35), transparent 70%),
		linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 45%, var(--navy-3) 100%);
	border-radius: 18px;
	color: #fff;
	box-shadow: 0 40px 80px -40px rgba(12, 14, 114, .9);
	isolation: isolate;
}
.hq::before, .hq::after {
	content: ""; position: absolute; width: 120px; height: 46px; pointer-events: none;
	border: var(--line); filter: drop-shadow(0 0 6px rgba(195, 22, 28, .6));
}
.hq::before { left: -10px; top: -10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.hq::after { right: -10px; bottom: -10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.hq-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.hq h1 { color: #fff; }
.hq h1 span { color: var(--sky); }
.hq .lead { color: var(--sky-2); margin: 10px 0 18px; opacity: .9; }
.hq-search { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(142, 197, 255, .3); border-radius: 999px; padding: 5px 5px 5px 16px; }
.hq-search .ico { color: var(--sky); }
.hq-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; color: #fff; font: inherit; }
.hq-search input::placeholder { color: rgba(191, 224, 255, .6); }
.hq-search input:focus { outline: none; }
.hq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hq-actions .btn-ghost { color: #fff; border-color: rgba(142, 197, 255, .35); background: rgba(0, 0, 0, .25); }

.hq-stats { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hq-stats div {
	position: relative; background: rgba(0, 0, 0, .38); border: 1px solid rgba(142, 197, 255, .18);
	border-radius: 14px; padding: 14px 16px;
}
.hq-stats div::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--yellow); }
.hq-stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sky-2); opacity: .8; }
.hq-stats dd { margin: 2px 0 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 900; color: var(--yellow); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.live { width: 10px; height: 10px; border-radius: 50%; background: #34e08a; box-shadow: 0 0 0 0 rgba(52, 224, 138, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 224, 138, 0); } }

/* Schalter zur klassischen Ansicht */
.classic-switch {
	margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 12px 16px;
	border: 1px dashed rgba(255, 204, 0, .35); border-radius: 14px; background: rgba(255, 204, 0, .04);
	color: var(--text-2); font-size: .92rem;
}
.classic-switch .ico { color: var(--yellow); width: 22px; height: 22px; }
.classic-switch p { margin: 0; flex: 1; }
.classic-switch a.btn { color: #000; }

/* Abschnittstitel mit roter Verbindungslinie */
.section { margin-top: 40px; }
.section-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; color: var(--sky); }
.section-head h2::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--red-glow); border-radius: 3px; box-shadow: 0 0 10px rgba(195, 22, 28, .6); flex: none; }
.section-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--red), transparent); order: 1; margin-left: 4px; }
.section-head .link-more { order: 2; }
.link-more { font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

/* Aktuelle Diskussionen */
.rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
	gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail-card {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; color: var(--text);
	scroll-snap-align: start; min-height: 178px; transition: transform .18s, border-color .2s;
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
[data-theme="light"] .rail-card { background: #fff; }
.rail-card::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)); border-radius: 0 0 2px 2px; }
.rail-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--sky); }
.rail-card .chip { align-self: flex-start; }
.rail-title { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rail-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.rail-who { flex: 1; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Kategorien als "Leiterbahn": rote Linie links, Abzweige zu jedem Forum */
.circuit { position: relative; padding-left: 28px; }
.circuit::before {
	content: ""; position: absolute; left: 7px; top: -6px; bottom: 30px; width: 2px;
	background: linear-gradient(180deg, var(--red-glow), var(--red) 70%, transparent);
	box-shadow: 0 0 8px rgba(195, 22, 28, .5);
}
.forum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.forum-card {
	position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px;
	transition: transform .18s, border-color .2s, background .2s;
	background: linear-gradient(160deg, rgba(12, 14, 114, .28), var(--panel) 55%);
}
[data-theme="light"] .forum-card { background: #fff; }
.forum-card::before {
	/* Abzweig von der roten Linie */
	content: ""; position: absolute; left: -22px; top: 38px; width: 22px; height: 2px; background: var(--red);
	box-shadow: 0 0 6px rgba(195, 22, 28, .5);
}
.forum-grid .forum-card:not(:nth-child(1))::before { display: none; }
@media (max-width: 760px) { .forum-grid .forum-card::before { display: block !important; } }
.forum-card:hover { transform: translateY(-2px); border-color: var(--sky); }
.forum-icon {
	width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
	font-weight: 900; font-size: 1.35rem; color: var(--yellow);
	background: linear-gradient(140deg, var(--navy), var(--navy-3));
	border: 1px solid rgba(142, 197, 255, .25);
	box-shadow: inset 0 0 18px rgba(54, 112, 255, .35);
}
.forum-body h3 a { color: var(--text); }
.forum-body h3 a:hover { color: var(--yellow); }
.forum-desc { margin: 2px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.forum-counts { margin: 8px 0 0; font-size: .84rem; color: var(--muted); display: flex; gap: 14px; }
.forum-counts b { color: var(--yellow); font-variant-numeric: tabular-nums; font-weight: 800; }
[data-theme="light"] .forum-counts b { color: var(--navy); }
.forum-last {
	grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border);
	display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-2); min-width: 0;
}
.forum-last > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.forum-last-subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; color: var(--sky-2); }
[data-theme="light"] .forum-last-subj { color: var(--navy); }
.forum-last:hover .forum-last-subj { color: var(--yellow); }

/* =========================== Unterseiten ============================ */

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.crumbs .ico { width: .9em; height: .9em; color: var(--red-glow); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 20px; padding-bottom: 16px; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--red), transparent 70%) 1; }
.page-head .lead { margin: 6px 0 0; color: var(--text-2); }
.page-head .muted { margin: 6px 0 0; font-size: .9rem; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Themenliste */
.topic-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.topic {
	position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
	padding: 14px 18px; border-top: 1px solid var(--border); transition: background .15s;
}
.topic::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background .15s; }
.topic:first-child { border-top: 0; }
.topic:hover { background: var(--surface-hover); }
.topic:hover::before { background: var(--red-glow); }
.topic.is-sticky { background: linear-gradient(90deg, rgba(255, 204, 0, .07), transparent 60%); }
.topic.is-sticky::before { background: var(--yellow); }
.topic-main { min-width: 0; }
.topic-title { display: block; color: var(--text); font-weight: 700; line-height: 1.35; }
.topic-title:hover { color: var(--yellow); }
.topic-title .badge { margin-right: 4px; }
.topic-meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .82rem; color: var(--muted); }
.topic-last a { color: var(--muted); }
.topic-last a:hover { color: var(--sky); }
.dot { opacity: .6; }
.topic-stats { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.peek-btn { display: none; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0; }
.pager-btn, .pager-gap { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pager-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pager-btn:hover { color: var(--text); border-color: var(--sky); }
.pager-btn.is-current { background: var(--navy); border-color: var(--blue); color: var(--yellow); }
.pager-gap { color: var(--muted); min-width: 24px; padding: 0; }

/* =========================== Beiträge ============================ */

.posts { display: flex; flex-direction: column; gap: 14px; }
.post { position: relative; padding: 18px 20px; }
.post.is-first { border-color: rgba(54, 112, 255, .45); background: linear-gradient(180deg, rgba(12, 14, 114, .22), var(--surface) 140px); }
.post:target { box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.anchor { position: absolute; top: calc(-1 * var(--topbar-h) - 16px); }

.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-author { flex: 1; min-width: 0; }
.post-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 750; }
.post-name a { color: var(--text); }
.post-name a:hover { color: var(--yellow); }
.post-sub { font-size: .8rem; }
.post-time { font-size: .82rem; color: var(--muted); text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.post-no { font-weight: 800; color: var(--sky); opacity: .8; }
.post-edited { margin: 12px 0 0; font-size: .8rem; font-style: italic; }
.post-actions { display: flex; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.post-actions button, .post-actions a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
	border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer;
}
.post-actions button:hover, .post-actions a:hover { color: var(--sky); background: rgba(54, 112, 255, .1); }

.prose { overflow-wrap: anywhere; color: var(--text); font-size: 1rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose img.post-img { display: block; height: auto; border-radius: 12px; margin: 10px 0; cursor: zoom-in; max-height: 80vh; background: var(--surface-2); }
.prose img.graemlin { vertical-align: -3px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(142, 197, 255, .4); text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.prose pre { background: var(--surface-2); padding: 12px; border-radius: 10px; overflow-x: auto; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.prose td, .prose th { border: 1px solid var(--border-strong); padding: 6px 10px; }
.prose blockquote, .prose .ubbcode-block { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--quote-bg); border-radius: 0 10px 10px 0; color: var(--text-2); }
.prose .ubbcode-header { font-size: .78rem; font-weight: 800; color: var(--sky); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.prose .ubbcode-body { font-size: .95rem; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin: 12px 0; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.att { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.att-img { aspect-ratio: 4 / 3; cursor: zoom-in; display: block; }
.att-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.att-img:hover img { transform: scale(1.05); }
.att-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: .85rem; grid-column: span 2; }
.att-file span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.att-locked { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: .88rem; border-style: dashed; }
.att-locked .ico { color: var(--yellow); }

/* =========================== Editor / Composer ============================ */

.composer { padding: 18px; margin: 18px 0 28px; position: relative; }
.composer::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(90deg, var(--red-glow), var(--red) 40%, transparent); }
.composer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.composer-head h2 { flex: 1; font-size: 1.05rem; }
.composer-context { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--sky); background: rgba(54, 112, 255, .1); border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; }
.composer-context button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.input, .textarea, .select {
	width: 100%; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2);
	color: var(--text); font: inherit; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(54, 112, 255, .18); }
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.toolbar button {
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
	border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer;
}
.toolbar button:hover { color: var(--yellow); border-color: var(--border-strong); }
.toolbar .sep { width: 1px; background: var(--border); margin: 6px 4px; }

/* Foto-Upload */
.dropzone {
	position: relative; display: flex; align-items: center; gap: 14px; padding: 16px;
	border: 2px dashed rgba(142, 197, 255, .3); border-radius: 14px; cursor: pointer;
	background: linear-gradient(135deg, rgba(12, 14, 114, .25), transparent);
	transition: border-color .2s, background .2s, transform .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--yellow); background: linear-gradient(135deg, rgba(12, 14, 114, .45), rgba(255, 204, 0, .05)); }
.dropzone.is-over { transform: scale(1.01); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); flex: none; }
.dz-icon .ico { width: 26px; height: 26px; }
.dz-text b { display: block; }
.dz-text span { font-size: .85rem; color: var(--muted); }

.uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.up {
	position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2);
	border: 1px solid var(--border); animation: pop .25s ease-out;
}
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.up img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s; }
.up.is-busy img { filter: brightness(.45) saturate(.6); }
.up-file { display: grid; place-items: center; height: 100%; padding: 8px; text-align: center; font-size: .75rem; color: var(--text-2); overflow-wrap: anywhere; }
.up-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.up-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--yellow-2)); transition: width .2s; }
.up-status { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 800; text-shadow: 0 1px 3px #000; }
.up-done { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #1fbf6a; color: #fff; animation: pop .3s; }
.up-done .ico { width: 15px; height: 15px; stroke-width: 3; }
.up-remove { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.up-error { position: absolute; inset: auto 0 0 0; padding: 4px 6px; background: rgba(160, 0, 0, .9); color: #fff; font-size: .7rem; }
.up-size { position: absolute; left: 6px; bottom: 6px; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 6px; border-radius: 6px; }

.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.composer-foot .hint { flex: 1; font-size: .8rem; color: var(--muted); }
.form-msg { margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.form-msg.is-error { background: rgba(160, 0, 0, .18); color: #ffb3b3; border: 1px solid rgba(195, 22, 28, .4); }
.form-msg.is-info { background: rgba(255, 204, 0, .1); color: var(--yellow-2); border: 1px solid rgba(255, 204, 0, .3); }
[data-theme="light"] .form-msg.is-error { color: #8a0a0a; }
[data-theme="light"] .form-msg.is-info { color: #6b5200; }

.login-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; margin: 16px 0 28px; }
.login-cta p { margin: 0; color: var(--text-2); }

/* Mobile: schwebende Antwort-Leiste */
.reply-dock { display: none; }

/* =========================== Suche, Profil, Leer ============================ */

.bigsearch { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin-bottom: 16px; }
.bigsearch .ico { color: var(--sky); }
.bigsearch input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; }
.bigsearch input:focus { outline: none; }
.result-count { margin: 0 0 10px; font-size: .9rem; }

.profile { margin-top: 24px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile-main { flex: 1; min-width: 220px; }
.profile-main .muted { margin: 4px 0 0; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 24px; margin: 14px 0 0; }
.profile-stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.profile-stats dd { margin: 0; font-size: 1.3rem; font-weight: 900; color: var(--yellow); }
[data-theme="light"] .profile-stats dd { color: var(--navy); }

.empty { text-align: center; color: var(--muted); padding: 32px 16px; }
.empty-state { margin: 48px auto; max-width: 520px; padding: 32px; text-align: center; }
.empty-state p { color: var(--text-2); }

/* =========================== Hover-Vorschau (Desktop) ============================ */

.hovercard {
	position: absolute; z-index: 80; width: 400px; max-width: calc(100vw - 32px);
	background: var(--panel); border: 1px solid var(--border-strong); border-radius: 16px;
	box-shadow: 0 30px 60px -20px #000, 0 0 0 1px rgba(0, 0, 0, .4);
	padding: 16px; pointer-events: auto;
	opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .15s, transform .15s;
}
[data-theme="light"] .hovercard { background: #fff; }
.hovercard.is-on { opacity: 1; transform: none; }
.hovercard::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; background: linear-gradient(90deg, var(--red-glow), transparent); }
.pv-title { font-weight: 800; line-height: 1.3; margin: 0 0 4px; }
.pv-meta { font-size: .78rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.pv-post { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 10px; }
.pv-post + .pv-post { padding-top: 10px; border-top: 1px solid var(--border); }
.pv-who { font-size: .8rem; color: var(--muted); }
.pv-who b { color: var(--text); }
.pv-text { font-size: .9rem; color: var(--text-2); line-height: 1.5; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pv-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.pv-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.pv-tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.pv-skel { height: 120px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--surface-hover), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =========================== Bottom-Sheet (Smartphone) ============================ */

.sheet { position: fixed; inset: 0; z-index: 150; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
	background: var(--panel); border-radius: 22px 22px 0 0; border-top: 2px solid var(--red-glow);
	padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px));
	transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
	box-shadow: 0 -20px 50px -10px #000;
}
[data-theme="light"] .sheet-panel { background: #fff; }
.sheet.is-open .sheet-panel { transform: translateY(var(--drag, 0px)); }
.sheet-grip { width: 44px; height: 5px; border-radius: 5px; background: var(--border-strong); margin: 4px auto 12px; }
.sheet .pv-text { -webkit-line-clamp: 8; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* =========================== Footer & Extras ============================ */

.footer { margin-top: 56px; padding: 26px 0 34px; text-align: center; font-size: .88rem; background: #000; border-top: 2px solid transparent; border-image: linear-gradient(90deg, transparent, var(--red), transparent) 1; }
.footer-logo { width: 280px; max-width: 70%; opacity: .9; }
.footer p { margin: 6px 0; }
[data-theme="light"] .footer, [data-theme="light"] .footer a { color: #c4cbe3; }

.bottomnav { display: none; }

.to-top {
	position: fixed; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong);
	background: var(--panel); color: var(--yellow); box-shadow: var(--shadow); cursor: pointer;
	display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }

.toast {
	position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 210; transform: translateX(-50%);
	background: var(--yellow); color: #000; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px -10px #000;
}
.toast[hidden] { display: none; }


/* =========================== Suchleiste unter dem Logo ============================ */

.searchbar { background: linear-gradient(180deg, #000, rgba(5, 6, 46, .92)); border-bottom: 1px solid rgba(142, 197, 255, .12); padding: 12px 0; }
[data-theme="light"] .searchbar { background: linear-gradient(180deg, #000, var(--navy)); }
.searchbar-form { display: flex; align-items: center; gap: 8px; position: relative; }
.searchbar-form .ico { position: absolute; left: 16px; color: var(--sky); pointer-events: none; }
.searchbar-form input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px 0 46px; border-radius: 999px;
	border: 1px solid rgba(142, 197, 255, .28); background: rgba(12, 14, 114, .35); color: #fff; font: inherit; font-size: 1rem;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.searchbar-form input[type="search"]::placeholder { color: rgba(191, 224, 255, .6); }
.searchbar-form input[type="search"]:focus { outline: none; border-color: var(--yellow); background: rgba(12, 14, 114, .6); box-shadow: 0 0 0 4px rgba(255, 204, 0, .15); }
.searchbar-form .btn { min-height: 48px; padding: 0 22px; }

.quicklinks { display: none; }
@media (max-width: 1020px) {
	.quicklinks { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
	.quicklinks a { flex: none; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--sky-2); background: rgba(255, 255, 255, .06); border: 1px solid rgba(142, 197, 255, .15); }
	.quicklinks a.is-active { color: #000; background: var(--yellow); border-color: var(--yellow); }
}

/* =========================== Deutsch | English nebeneinander ============================ */

.lang-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-items: start; }
.lang-code { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 5px; background: var(--yellow); color: #000; font-size: .72rem; font-weight: 900; letter-spacing: .06em; }
.forum-stack { display: flex; flex-direction: column; gap: 12px; }
.forum-stack-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
/* jede Forumskarte hängt mit einem roten Abzweig an der Leiterbahn */
.forum-stack .forum-card::before { display: block !important; }

/* =========================== Galerie (Lightbox) ============================ */

.lightbox { display: flex; flex-direction: column; padding: 0; background: rgba(0, 0, 0, .96); }
.lb-top { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px; color: #fff; }
.lb-count { flex: 1; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.lb-orig, .lightbox-close { position: static; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: opacity .2s, transform .25s; user-select: none; -webkit-user-drag: none; }
.lb-img.is-loading { opacity: .3; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.lb-nav:hover { background: var(--navy); border-color: var(--yellow); color: var(--yellow); }
.lb-prev { left: 14px; }
.lb-prev .ico { transform: rotate(180deg); }
.lb-next { right: 14px; }
.lb-nav[disabled] { opacity: .25; pointer-events: none; }
.lb-caption {
	max-height: 32vh; overflow-y: auto; padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(180deg, var(--navy-3), #000); border-top: 2px solid var(--red-glow); color: #dfe6ff;
}
.lb-caption > * { max-width: 860px; margin-inline: auto; }
.lb-who { font-size: .82rem; color: var(--sky); font-weight: 700; margin-bottom: 4px; }
.lb-text { font-size: .95rem; line-height: 1.55; white-space: pre-line; }
.lb-jump { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--yellow); }

/* Fotos in Beiträgen: doppelt so groß */
.attachments { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.attachments.is-single { grid-template-columns: minmax(0, 720px); }
.att-img { aspect-ratio: 4 / 3; }
.attachments.is-single .att-img { aspect-ratio: auto; }
.attachments.is-single .att-img img { height: auto; max-height: 80vh; object-fit: contain; background: #000; }

/* Startseite: Forenname groß, ohne Initialen-Kachel */
.forum-card { grid-template-columns: 1fr; }
.forum-body h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); font-weight: 800; letter-spacing: -.01em; }
.forum-body h3 a { color: #fff; }
[data-theme="light"] .forum-body h3 a { color: var(--navy); }

.compose-tip { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 204, 0, .07); border: 1px solid rgba(255, 204, 0, .25); font-size: .92rem; }
.compose-tip .ico { color: var(--yellow); }
.compose-tip p { margin: 0; }

/* =========================== Tablet ============================ */

@media (max-width: 1020px) {
	.topnav { display: none; }
	.topbar-write { display: none; }
	.hq-grid { grid-template-columns: 1fr; }
	.hq-stats { grid-template-columns: repeat(4, 1fr); }
	.lang-columns { grid-template-columns: 1fr; }
}

/* =========================== Smartphone ============================ */

@media (max-width: 680px) {
	:root { --topbar-h: 56px; --radius: 14px; }
	body { font-size: 15.5px; padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px)); }
	.wrap { width: calc(100% - 24px); }
	.topbar-inner { width: calc(100% - 20px); gap: 8px; }
	/* Logo: auf dem Handy den Grill + Schriftzug anschneiden statt verkleinern */
	.brand { height: 100%; width: min(58vw, 300px); overflow: hidden; }
	.brand-logo { height: 100%; object-fit: cover; object-position: left center; }
	.brand::after { top: 4px; right: 4px; font-size: .55rem; }
	.topsearch { display: none; }
	.topbar-login { display: none; }
	.usermenu { margin-left: auto; }
	.theme-toggle { margin-left: auto; }
	.usermenu ~ .theme-toggle, .theme-toggle + .usermenu { margin-left: 0; }

	.hq { margin-top: 18px; border-radius: 16px; }
	.hq::before { left: -6px; top: -6px; width: 80px; height: 34px; }
	.hq::after { right: -6px; bottom: -6px; width: 80px; height: 34px; }
	.hq-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.hq-stats div { padding: 10px 12px; }
	.hq-actions .btn { flex: 1; }

	.classic-switch { flex-wrap: wrap; }
	.classic-switch a.btn { width: 100%; }

	.forum-grid, .forum-stack-wide { grid-template-columns: 1fr; }
	.searchbar { padding: 8px 0; }
	.searchbar-form input[type="search"] { height: 44px; font-size: 16px; }
	.searchbar-form .btn { display: none; }
	.attachments { grid-template-columns: 1fr; }
	.lb-nav { width: 44px; height: 44px; background: rgba(0, 0, 0, .35); }
	.lb-prev { left: 6px; } .lb-next { right: 6px; }
	.circuit { padding-left: 22px; }
	.circuit::before { left: 5px; }
	.forum-card::before { left: -17px; width: 17px; }
	.rail { grid-auto-columns: 80%; margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }

	.page-head { align-items: stretch; }
	.page-actions { width: 100%; }
	.page-actions .btn { flex: 1; }

	.topic { grid-template-columns: auto 1fr auto; padding: 12px 10px 12px 14px; gap: 10px; }
	.topic .avatar { --size: 36px; align-self: start; margin-top: 2px; }
	.topic-stats { grid-column: 2; grid-row: 2; gap: 12px; font-size: .8rem; }
	.topic-last { display: none; }
	.peek-btn {
		display: grid; place-items: center; grid-column: 3; grid-row: 1 / span 2; position: relative; z-index: 2;
		width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--sky);
	}

	.post { padding: 14px; border-radius: 14px; }
	.post .avatar-md { --size: 38px; }
	.prose img.post-img { margin-inline: -4px; max-width: calc(100% + 8px); border-radius: 10px; }
	.post-actions { justify-content: space-between; }
	.post-actions button span, .post-actions a span { display: none; }
	.post-actions button, .post-actions a { min-width: 44px; min-height: 40px; justify-content: center; }

	/* Antworten: kompakte Leiste unten, öffnet den Editor als Vollbild */
	.reply-dock {
		display: flex; position: fixed; left: 10px; right: 10px; z-index: 55;
		bottom: calc(var(--bottomnav-h) + 10px + env(safe-area-inset-bottom, 0px));
		align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px;
		background: var(--panel); border: 1px solid var(--border-strong); box-shadow: 0 14px 30px -10px #000;
		color: var(--muted); font-size: .95rem; cursor: text;
	}
	[data-theme="light"] .reply-dock { background: #fff; }
	.reply-dock span { flex: 1; }
	.reply-dock .btn { min-height: 38px; }
	body.has-dock { padding-bottom: calc(var(--bottomnav-h) + 76px + env(safe-area-inset-bottom, 0px)); }

	.composer.is-fullscreen {
		position: fixed; inset: 0; z-index: 140; margin: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain;
		padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
		background: var(--bg); border: 0;
	}
	.composer.is-fullscreen::before { left: 0; right: 0; top: env(safe-area-inset-top, 0px); }
	.composer.is-fullscreen .textarea { min-height: 34vh; }
	.composer .close-full { display: grid; }
	.uploads { grid-template-columns: repeat(3, 1fr); }
	.composer-foot .btn { flex: 1; }
	.dropzone { padding: 14px; }

	.bottomnav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
		height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: rgba(0, 0, 0, .9);
		backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
		border-top: 2px solid transparent; border-image: linear-gradient(90deg, transparent, var(--red), transparent) 1;
	}
	.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8a92b4; font-size: .68rem; font-weight: 700; height: 100%; }
	.bottomnav a .ico { width: 24px; height: 24px; }
	.bottomnav a.is-active { color: var(--yellow); }
	.bottomnav .avatar { box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(142, 197, 255, .4); }
	.bottomnav-fab .fab {
		width: 54px; height: 54px; margin-top: -22px; border-radius: 18px; display: grid; place-items: center;
		background: linear-gradient(160deg, #c81d24, #7a0000); color: #fff;
		box-shadow: 0 10px 24px -6px rgba(195, 22, 28, .8), 0 0 0 4px #000;
	}
	.bottomnav-fab .fab .ico { width: 28px; height: 28px; stroke-width: 2.4; }

	.to-top { bottom: calc(var(--bottomnav-h) + 14px + env(safe-area-inset-bottom, 0px)); }
	body.has-dock .to-top { bottom: calc(var(--bottomnav-h) + 80px + env(safe-area-inset-bottom, 0px)); }
	.toast { bottom: calc(var(--bottomnav-h) + 20px + env(safe-area-inset-bottom, 0px)); }
}

.close-full { display: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }

@media (hover: none) { .hovercard { display: none !important; } }

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

/* Desktop: Logo etwas größer als mobil, aber kleiner als das Original (124 px) */
@media (min-width: 1021px) {
	:root { --topbar-h: 96px; }
	.topbar { position: relative; }
	html { scroll-padding-top: 16px; }
	.brand::after { top: 14px; right: -6px; }
	.anchor { top: -16px; }
}

/* Navigationszeile unter dem Logo */
.navrow { background: #000; border-bottom: 1px solid rgba(142, 197, 255, .1); }
.navrow-inner { display: flex; align-items: center; gap: 12px; min-height: 54px; }
.mainnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav a { flex: none; position: relative; color: #c4cbe3; padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: .98rem; }
.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.mainnav a.is-active { color: #fff; }
.mainnav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--yellow); border-radius: 2px; }
.navrow-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.navrow .btn-ghost { color: #fff; }
@media (max-width: 1020px) { .navrow .topbar-write { display: none; } }
@media (max-width: 680px) {
	.navrow-inner { min-height: 48px; gap: 6px; }
	.mainnav a { padding: 8px 10px; font-size: .9rem; }
	.navrow .btn-ghost { padding: 0 10px; }
	.navrow .btn-ghost .ico { display: none; }
	.navrow .theme-toggle { width: 36px; height: 36px; }
	.usermenu summary { width: 36px; height: 36px; }
}
/* Mobil: Logo-Zeile kompakt halten */
@media (max-width: 680px) { .brand { width: 100%; } }

/* Sofortsuche */
.searchbar-form { position: relative; }
.suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 90;
	background: var(--panel); border: 1px solid var(--border-strong); border-radius: 16px; padding: 6px;
	box-shadow: 0 30px 60px -20px #000; max-height: 70vh; overflow-y: auto;
}
[data-theme="light"] .suggest { background: #fff; }
.suggest::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(90deg, var(--red-glow), transparent); }
.sg-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.sg-item:hover, .sg-item.is-active { background: var(--surface-hover); color: var(--text); }
.sg-title { font-weight: 700; line-height: 1.3; }
.sg-meta { grid-column: 1; font-size: .78rem; color: var(--muted); }
.sg-score { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 54px; }
.sg-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px 6px; font-size: .85rem; border-top: 1px solid var(--border); margin-top: 4px; }
.sg-fix { padding: 8px 12px; font-size: .88rem; color: var(--yellow); }

/* Score-Leiste */
.score { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.score-bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; min-width: 34px; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-glow), var(--yellow)); border-radius: 5px; }

/* Suchergebnisse */
.search-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.search-tools select { width: auto; padding: 8px 12px; font-size: .88rem; border-radius: 999px; }
.toggle-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .85rem; font-weight: 650; cursor: pointer; color: var(--text-2); user-select: none; }
.toggle-chip input { accent-color: var(--yellow); }
.toggle-chip:has(input:checked) { border-color: var(--yellow); color: var(--yellow); }
.search-info { font-size: .88rem; color: var(--muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.search-info .fix { color: var(--yellow); }
.ai-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); background: rgba(54, 112, 255, .14); padding: 3px 9px; border-radius: 999px; }
.results { display: flex; flex-direction: column; gap: 12px; }
.result { position: relative; padding: 16px 18px; }
.result:hover { border-color: var(--sky); }
.result-head { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: start; }
.result-title { font-weight: 800; font-size: 1.08rem; line-height: 1.3; color: var(--text); }
.result-title:hover { color: var(--yellow); }
.result-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.result-hit { margin-top: 10px; padding: 8px 12px; border-left: 2px solid var(--red); background: rgba(255, 255, 255, .02); border-radius: 0 8px 8px 0; font-size: .92rem; color: var(--text-2); }
.result-hit a { color: inherit; display: block; }
.result-hit a:hover { color: var(--text); }
.result-hit small { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 2px; }
.result mark, .suggest mark { background: rgba(255, 204, 0, .22); color: var(--yellow); border-radius: 3px; padding: 0 2px; }
[data-theme="light"] .result mark { color: #6b5200; }
.sem-tag { font-size: .68rem; font-weight: 800; color: var(--sky); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 680px) {
	.result { padding: 14px; }
	.result-head { grid-template-columns: 1fr; }
	.result-head .score { order: -1; max-width: 160px; }
	.suggest { position: fixed; left: 8px; right: 8px; top: auto; max-height: 62vh; }
}

/* Signal-Animation: ein Lichtpuls läuft dezent durch die roten Leiterbahnen */
.circuit::after {
	content: ""; position: absolute; left: 4px; top: -6px; width: 8px; height: 46px; border-radius: 8px; pointer-events: none;
	background: linear-gradient(180deg, transparent, rgba(255, 90, 90, .95), transparent);
	filter: blur(1px) drop-shadow(0 0 6px rgba(255, 60, 60, .9));
	opacity: 0; animation: signal 7s cubic-bezier(.45, 0, .55, 1) infinite;
}
.lang-col + .lang-col .circuit::after { animation-delay: 1.4s; }
.section:nth-of-type(n+4) .circuit::after { animation-delay: 2.8s; }
@keyframes signal {
	0% { top: -6px; opacity: 0; }
	6% { opacity: .9; }
	55% { opacity: .9; }
	62% { top: calc(100% - 80px); opacity: 0; }
	100% { top: calc(100% - 80px); opacity: 0; }
}
.forum-card::after {
	content: ""; position: absolute; left: -22px; top: 37px; width: 10px; height: 4px; border-radius: 4px; pointer-events: none;
	background: rgba(255, 90, 90, .95); box-shadow: 0 0 8px rgba(255, 60, 60, .9); opacity: 0;
	animation: branch 7s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.forum-stack .forum-card:nth-child(2)::after { --d: .5s; }
.forum-stack .forum-card:nth-child(3)::after { --d: 1s; }
.forum-stack .forum-card:nth-child(4)::after { --d: 1.5s; }
.forum-stack .forum-card:nth-child(5)::after { --d: 2s; }
.forum-stack .forum-card:nth-child(6)::after { --d: 2.5s; }
.forum-stack .forum-card:nth-child(7)::after { --d: 3s; }
@keyframes branch {
	0%, 8% { left: -22px; opacity: 0; }
	12% { opacity: 1; }
	20% { left: -6px; opacity: 0; }
	100% { left: -6px; opacity: 0; }
}
@media (max-width: 680px) { .forum-card::after { left: -17px; } }

/* Text-Anriss in Listen */
.topic-teaser { margin: 3px 0 0; font-size: .88rem; line-height: 1.45; color: var(--text-2); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-card { min-height: 220px; }
.rail-title { -webkit-line-clamp: 2; }
.rail-teaser { font-size: .84rem; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rail-teaser b { color: var(--sky); font-weight: 700; }

/* Anmeldung */
.login-wrap { display: grid; place-items: center; padding: 32px 0; }
.login-card { width: min(440px, 100%); padding: 28px; position: relative; }
.login-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, var(--red-glow), var(--red) 50%, transparent); }
.login-card h1 { font-size: 1.6rem; }
.login-card > .muted { margin: 6px 0 18px; }
.login-remember { margin: 2px 0 14px; }
.login-submit { width: 100%; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; font-size: .88rem; }

.searchbar-form input::placeholder { transition: opacity .25s; }
.searchbar-form input.ph-fade::placeholder { opacity: 0; }

/* WhatsApp */
.btn-whatsapp { color: #fff; background: linear-gradient(180deg, #2fd16c, #1aa34a); box-shadow: 0 8px 22px -10px rgba(37, 211, 102, .8); }
.btn-whatsapp:hover { color: #fff; filter: brightness(1.06); }
.post-actions .act-whatsapp:hover { color: #25d366; background: rgba(37, 211, 102, .1); }
.sheet-share { display: flex; justify-content: center; margin-top: 10px; }

/* Englische Version */
.langswitch { display: inline-flex; border: 1px solid rgba(142, 197, 255, .25); border-radius: 999px; overflow: hidden; flex: none; }
.langswitch a { padding: 6px 10px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: #8a92b4; }
.langswitch a.is-active { background: var(--yellow); color: #000; }
.lang-note { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(54, 112, 255, .1); border: 1px solid rgba(142, 197, 255, .25); color: var(--text-2); font-size: .92rem; }
.lang-note p { margin: 0; }
.lang-note .flag, .tr-bar .flag { font-size: 1.3rem; line-height: 1; }
.tr-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: -4px 0 10px; padding: 6px 10px; border-radius: 10px; background: rgba(54, 112, 255, .08); border: 1px dashed rgba(142, 197, 255, .25); font-size: .78rem; color: var(--muted); }
.tr-bar .tr-label { flex: 1; }
.tr-toggle { background: none; border: 0; color: var(--sky); font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; display: none; }
.tr-bar.is-ready .tr-toggle { display: inline; }
.tr-bar.is-ready .tr-busy, .tr-bar.is-failed .tr-busy { display: none; }
.tr-busy { animation: pulseText 1.2s ease-in-out infinite; }
@keyframes pulseText { 50% { opacity: .4; } }
.is-tr { text-decoration: underline dotted rgba(142, 197, 255, .35); text-underline-offset: 3px; }
@media (max-width: 680px) { .langswitch a { padding: 5px 8px; } }

/* Push */
.btn-bell.is-on { color: #000; background: var(--yellow); border-color: var(--yellow); }
.btn-bell.is-on .ico { animation: ring .6s ease-in-out 1; }
@keyframes ring { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.usermenu-push { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.usermenu-push:hover { background: var(--surface-hover); }
.usermenu-push.is-on .ico { color: var(--yellow); }
.ios-steps { margin: 10px 0 12px; padding-left: 1.3em; line-height: 1.7; }
.ios-steps .ico { color: var(--sky); }
@media (max-width: 680px) { .btn-bell span { display: none; } .btn-bell { min-width: 44px; padding: 0 12px; } }

.langswitch .lang-short { display: none; }
@media (max-width: 680px) { .langswitch .lang-long { display: none; } .langswitch .lang-short { display: inline; } }

/* ======================= Editor Stufe 3 ======================= */
.emoji { font-size: 1.15em; line-height: 1; vertical-align: -.1em; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

.photo-first { display: none; }
@media (max-width: 680px) {
	.photo-first {
		display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 14px; padding: 14px 16px;
		border: 0; border-radius: 16px; cursor: pointer; text-align: left; color: #000; font: inherit;
		background: linear-gradient(135deg, var(--yellow-2), var(--yellow)); box-shadow: 0 12px 26px -12px rgba(255, 204, 0, .7);
	}
	.photo-first .ico { width: 30px; height: 30px; }
	.photo-first b { display: block; font-size: 1.05rem; }
	.photo-first small { font-size: .82rem; opacity: .75; }
}

.similar { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 204, 0, .06); border: 1px solid rgba(255, 204, 0, .25); }
.similar-head { margin: 0 0 6px; font-size: .82rem; font-weight: 800; color: var(--yellow); display: flex; align-items: center; gap: 6px; }
.similar-list { display: flex; flex-direction: column; gap: 4px; }
.similar-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.similar-item:hover { background: var(--surface-hover); }

.vehicle { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; background: var(--surface-2); }
.vehicle summary { cursor: pointer; font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); list-style: none; }
.vehicle summary::-webkit-details-marker { display: none; }
.vehicle-sum { color: var(--yellow); text-transform: none; letter-spacing: 0; font-weight: 700; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pick { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.pick:active { transform: scale(.96); }
.pick.is-on { background: var(--navy); border-color: var(--sky); color: #fff; box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .4); }

.write-tabs { display: inline-flex; margin-left: auto; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.write-tabs button { width: auto; height: 40px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; font-weight: 700; font-size: .85rem; }
.write-tabs button.is-active { background: var(--navy); color: var(--yellow); }
.preview { min-height: 160px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--surface-2); }
.smileys { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin-bottom: 8px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.smileys button { height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 1.5rem; }
.smileys button:hover { background: var(--surface-hover); transform: scale(1.12); }

.up.is-insertable { cursor: pointer; touch-action: none; }
.up.is-inserted::after { content: "im Text"; position: absolute; right: 6px; bottom: 6px; font-size: .65rem; font-weight: 800; color: #000; background: var(--yellow); padding: 1px 6px; border-radius: 6px; }
html[lang="en"] .up.is-inserted::after { content: "in text"; }
.up.is-dragging { transform: scale(1.06); box-shadow: 0 16px 30px -10px #000, 0 0 0 2px var(--yellow); z-index: 2; opacity: .92; }
.uploads-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .8rem; }

/* Erfolgs-Animation: rote Linie fährt durch, dann gelber Haken */
.success-fx { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0, 0, 0, 0); transition: background .3s; pointer-events: none; }
.success-fx.is-on { background: rgba(0, 0, 0, .7); }
.success-line { position: absolute; left: 0; top: 50%; height: 3px; width: 0; background: linear-gradient(90deg, transparent, var(--red-glow), #ff5a5a); box-shadow: 0 0 16px rgba(255, 60, 60, .9); }
.success-fx.is-on .success-line { animation: sweep .6s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes sweep { to { width: 100%; } }
.success-check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #000; transform: scale(0); box-shadow: 0 0 40px rgba(255, 204, 0, .6); }
.success-check .ico { width: 44px; height: 44px; stroke-width: 3; }
.success-fx.is-on .success-check { animation: popIn .35s .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes popIn { to { transform: scale(1); } }

/* ======================= Feedback-Runde: Smartphone & Editor ======================= */

/* Antwort-Leiste: ein klarer Button */
@media (max-width: 680px) {
	.reply-dock {
		left: 50%; right: auto; transform: translateX(-50%); width: auto; min-width: 200px;
		padding: 0 26px; min-height: 52px; justify-content: center; gap: 10px;
		border-radius: 999px; font-size: 1.05rem; color: #fff;
		background: linear-gradient(180deg, #c81d24, #7a0000); border: 0;
		box-shadow: 0 14px 30px -10px rgba(195, 22, 28, .8), 0 0 0 3px rgba(0, 0, 0, .6);
	}
	.reply-dock .ico { width: 22px; height: 22px; }
}
/* Avatare nie verzerren */
.avatar { aspect-ratio: 1 / 1; min-width: var(--size); min-height: var(--size); }

/* Aktionen unter Beiträgen: größer, mit Beschriftung */
.post-actions { gap: 4px; }
.post-actions button, .post-actions a {
	min-height: 44px; padding: 0 14px; font-size: .9rem; color: var(--text-2);
	border: 1px solid var(--border); background: rgba(255, 255, 255, .02);
}
.post-actions .ico { width: 20px; height: 20px; }
@media (max-width: 680px) {
	.post-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.post-actions button, .post-actions a {
		flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 2px; border-radius: 14px;
		font-size: .72rem; font-weight: 700;
	}
	.post-actions button span, .post-actions a span { display: block; }
	.post-actions .ico { width: 24px; height: 24px; }
}

/* Erklärtext im Foto-Feld nicht in Großbuchstaben */
.field label.dropzone, .field label.dropzone * { text-transform: none; letter-spacing: normal; }
.field label.dropzone .dz-text b { font-size: 1rem; color: var(--text); }
.field label.dropzone .dz-text span { font-size: .85rem; font-weight: 400; color: var(--muted); }

/* WYSIWYG-Editor */
.rte-toolbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-bottom: 8px; }
.rte-toolbar button {
	width: auto; height: auto; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	padding: 6px 4px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2);
	color: var(--text); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer;
}
.rte-toolbar button .ico { width: 24px; height: 24px; }
.rte-toolbar .tb-glyph { font-size: 1.35rem; line-height: 1; font-family: Georgia, "Times New Roman", serif; }
.rte-toolbar .tb-glyph.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.rte-toolbar button.is-on { background: var(--navy); border-color: var(--yellow); color: var(--yellow); }
.rte-toolbar button:hover { border-color: var(--sky); }
.rte {
	min-height: 200px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; border-radius: 14px;
	border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
}
.rte:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(54, 112, 255, .18); }
.rte.is-empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; display: block; height: 0; }
.rte p { margin: 0 0 .6em; }
.rte blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--blue); background: var(--quote-bg); border-radius: 0 10px 10px 0; color: var(--text-2); }
.rte .q-head { font-size: .75rem; font-weight: 800; color: var(--sky); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; user-select: none; }
.rte img.rte-img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin: 8px 0; }
.rte img.rte-img.is-uploading { opacity: .5; filter: grayscale(.4); }
.rte ul, .rte ol { padding-left: 1.4em; margin: 0 0 .6em; }
.rte a { color: var(--link); text-decoration: underline; }
.smileys { margin-bottom: 8px; }
@media (max-width: 680px) {
	.rte-toolbar { grid-template-columns: repeat(7, 1fr); gap: 4px; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 4px 0; }
	.rte-toolbar button { min-height: 54px; font-size: .62rem; padding: 4px 0; border-radius: 10px; }
	.composer.is-fullscreen .rte { min-height: 34vh; max-height: none; }
	.uploads { grid-template-columns: repeat(4, 1fr); }
}

/* ======================= Konto: Passwort vergessen & Registrierung ======================= */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.account-card h1, .register-head h1 { font-size: 1.6rem; }
.steps { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-2); }
.steps li span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: .8rem; }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 40px; }
.field-hint { font-size: .8rem; color: var(--muted); min-height: 1.1em; }
.field.is-ok .input { border-color: #2fd27a; }
.field.is-ok .field-hint { color: #2fd27a; }
.field.is-bad .input { border-color: var(--red-glow); }
.field.is-bad .field-hint { color: #ff8a8a; }
[data-theme="light"] .field.is-bad .field-hint { color: #a10f12; }
.account-done { text-align: center; }
.account-done[hidden] { display: none; }
.done-icon { width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #000; box-shadow: 0 0 34px rgba(255, 204, 0, .45); animation: popIn .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.done-icon .ico { width: 38px; height: 38px; stroke-width: 3; }
.account-done p { color: var(--text-2); }
.help-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(54, 112, 255, .08); border: 1px solid rgba(142, 197, 255, .2); font-size: .85rem; color: var(--text-2); }
.help-box p { margin: 0; }
.help-box .ico { color: var(--sky); margin-top: 2px; }
.help-box a { font-weight: 800; color: var(--yellow); }

.register-wrap { max-width: 640px; margin: 28px auto 0; }
.register-head { text-align: center; margin-bottom: 18px; }
.benefits { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: .88rem; color: var(--text-2); }
.benefits li { display: flex; align-items: center; gap: 6px; }
.benefits .ico { color: var(--yellow); }
.register-card { padding: 22px; position: relative; }
.register-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, var(--red-glow), var(--red) 50%, transparent); }
.register-card fieldset { border: 0; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--border); }
.register-card legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.step-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-size: .85rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle.is-on { color: var(--yellow); }
.pw-meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 6px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .25s, background .25s; }
.pw-meter[data-score="0"] i { width: 8%; background: var(--red-glow); }
.pw-meter[data-score="1"] i { width: 30%; background: #e5562f; }
.pw-meter[data-score="2"] i { width: 55%; background: var(--yellow); }
.pw-meter[data-score="3"] i { width: 80%; background: #8fd14f; }
.pw-meter[data-score="4"] i { width: 100%; background: #2fd27a; }
.rules { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.rules summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--sky); }
.rules-body { max-height: 320px; overflow-y: auto; padding: 0 14px 12px; font-size: .9rem; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: .92rem; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--yellow); margin-top: 1px; }
.check a { text-decoration: underline; }
.captcha-field { margin-top: 14px; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.captcha-img { width: 250px; max-width: 100%; height: 50px; border-radius: 8px; background: #fff; cursor: pointer; object-fit: contain; }
.captcha-img.is-loading { opacity: .4; }
.captcha-input { max-width: 250px; font-size: 1.2rem; letter-spacing: .25em; text-transform: uppercase; }
.register-submit { width: 100%; min-height: 52px; font-size: 1.05rem; }
.register-done { padding: 28px; }

/* Avatar vergrößern */
.avatar-zoom {
	position: absolute; z-index: 120; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; pointer-events: none;
	border: 3px solid var(--yellow); box-shadow: 0 20px 50px -10px #000, 0 0 0 6px rgba(0, 0, 0, .5);
	background: var(--panel); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .18s cubic-bezier(.3, 1.4, .5, 1);
}
.avatar-zoom.is-member { width: 220px; height: 220px; }
.avatar-zoom.is-on { opacity: 1; transform: none; }
.avatar-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-zoom-initial { width: 100%; height: 100%; display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 42%), var(--navy)); }
.post-head .avatar, .profile .avatar { cursor: zoom-in; }

/* Captcha größer und gut lesbar */
.captcha-row { flex-direction: column; align-items: stretch; }
.captcha-img { width: 100%; max-width: 440px; height: auto; aspect-ratio: 5 / 1; padding: 6px; border: 2px solid var(--border-strong); border-radius: 12px; }
.captcha-row .btn { align-self: flex-start; }
.captcha-input { max-width: 440px; width: 100%; min-height: 56px; font-size: 1.6rem; font-weight: 800; letter-spacing: .35em; text-align: center; }

/* Antworten gelb */
.reply-dock.btn-yellow { color: #000; background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); box-shadow: 0 14px 30px -10px rgba(255, 204, 0, .7), 0 0 0 3px rgba(0, 0, 0, .6); }
@media (max-width: 680px) { .reply-dock.btn-yellow { color: #000; background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); } }
.post-actions .act-reply { color: #000; background: var(--yellow); border-color: var(--yellow); }
.post-actions .act-reply:hover { color: #000; background: var(--yellow-2); }

/* Wischen zwischen Beiträgen */
.swipe-pill {
	position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 90; transform: translate(-50%, -8px);
	padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .85); color: var(--yellow); font-weight: 800; font-size: .85rem;
	border: 1px solid rgba(255, 204, 0, .4); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap;
}
.swipe-pill.is-on { opacity: 1; transform: translate(-50%, 0); }
.post.is-swiped { box-shadow: 0 0 0 2px var(--yellow), var(--shadow); transition: box-shadow .3s; }

/* Themen-Navigation & Wisch-Animation */
.topic-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.tn { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 0; }
.tn:hover { color: var(--text); border-color: var(--sky); }
.tn small { font-size: .75rem; font-weight: 800; color: var(--yellow); text-transform: uppercase; letter-spacing: .05em; }
.tn span { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-next { text-align: right; grid-column: 2; }
#main { transition: transform .22s ease-in, opacity .22s ease-in; }
#main.swipe-out-left { transform: translateX(-30%); opacity: 0; }
#main.swipe-out-right { transform: translateX(30%); opacity: 0; }
#main.swipe-in-left { animation: swipeInLeft .28s ease-out; }
#main.swipe-in-right { animation: swipeInRight .28s ease-out; }
@keyframes swipeInLeft { from { transform: translateX(30%); opacity: 0; } }
@keyframes swipeInRight { from { transform: translateX(-30%); opacity: 0; } }
.swipe-pill { max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }

/* Themenkopf: kompakte Aktionen, stören beim Durchblättern nicht */
.topic-head { align-items: flex-start; }
.topic-actions { gap: 6px; }
@media (max-width: 680px) {
	.topic-head .page-actions.topic-actions { width: auto; margin-left: auto; flex-wrap: nowrap; }
	.topic-actions .act-head-reply { display: none; }          /* steht schwebend unten */
	.topic-actions .btn { flex: none; width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
	.topic-actions .btn span { display: none; }
	.topic-actions .btn .ico { width: 20px; height: 20px; }
	.topic-head { flex-wrap: nowrap; gap: 10px; }
	.topic-head > div:first-child { min-width: 0; flex: 1; }
	.topic-head h1 { font-size: 1.35rem; }
}
