:root {
  --bg: #0b0f15;
  --bg-2: #101720;
  --surface: #151c26;
  --surface-2: #1b2430;
  --surface-3: #212c39;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fa;
  --muted: #98a5b5;
  --muted-2: #718095;
  --red: #e52b2f;
  --red-dark: #a80f18;
  --red-glow: rgba(229, 43, 47, 0.28);
  --blue: #37a8ff;
  --green: #42d392;
  --yellow: #ffcc4d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body::selection { background: var(--red); color: white; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky; top: 0; z-index: 15;
  background: rgba(9, 13, 19, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red), #8c1018);
  border-radius: 6px 13px 6px 13px; transform: skewX(-8deg);
  box-shadow: 0 10px 28px var(--red-glow); position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; width: 50px; height: 9px; background: rgba(255,255,255,.22); transform: rotate(-33deg); top: 3px; left: -14px; }
.brand-mark span { font-weight: 950; letter-spacing: -2px; font-style: italic; font-size: 19px; transform: skewX(8deg); }
.brand-wordmark { display: flex; flex-direction: column; line-height: .88; transform: skewX(-7deg); }
.brand-wordmark strong { color: var(--red); font-size: 18px; letter-spacing: -.8px; font-weight: 950; }
.brand-wordmark em { color: white; font-size: 13px; letter-spacing: .8px; font-weight: 900; margin-left: 9px; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; margin-left: auto; }
.main-nav a { display: grid; place-items: center; padding: 0 15px; color: #b5c0ce; font-size: 14px; font-weight: 680; position: relative; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.active { color: white; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid rgba(229,43,47,.55); border-radius: 8px; background: rgba(229,43,47,.12); color: #ffd9da; font-size: 13px; font-weight: 800; white-space: nowrap; transition: .2s ease; }
.header-cta:hover { background: var(--red); color: white; transform: translateY(-1px); }
.header-cta svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-toggle { display: none; border: 0; background: transparent; margin-left: auto; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: white; }

.hero { min-height: 585px; display: grid; align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  linear-gradient(90deg, rgba(8,12,18,.98) 0%, rgba(8,12,18,.90) 46%, rgba(8,12,18,.54) 100%),
  radial-gradient(circle at 80% 30%, rgba(229,43,47,.18), transparent 34%),
  linear-gradient(135deg, #17202c, #090c11 66%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 58px 58px; transform: perspective(520px) rotateX(60deg) scale(1.8) translateY(28%);
  transform-origin: bottom;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, transparent, var(--red) 27%, var(--red) 73%, transparent); opacity: .8; }
.hero-glow { position: absolute; width: 540px; height: 540px; right: 6%; top: 8%; border-radius: 50%; border: 1px solid rgba(229,43,47,.12); box-shadow: 0 0 100px rgba(229,43,47,.08) inset; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; position: relative; z-index: 2; padding-block: 82px; }
.eyebrow, .section-kicker { color: #ff787b; text-transform: uppercase; letter-spacing: 2.2px; font-size: 12px; font-weight: 900; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(229,43,47,.12); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(229,43,47,0); } }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(48px, 6.2vw, 84px); line-height: .93; letter-spacing: -4px; font-weight: 950; text-transform: uppercase; font-style: italic; transform: skewX(-4deg); }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.4px rgba(255,255,255,.72); text-shadow: 0 0 30px rgba(255,255,255,.06); }
.hero-copy p { max-width: 660px; margin: 26px 0 0; color: #b5c0ce; font-size: 18px; }
.hero-actions { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 45px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid transparent; font-weight: 820; transition: .2s ease; }
.button-primary { background: linear-gradient(135deg, var(--red), #b4121b); box-shadow: 0 12px 30px var(--red-glow); }
.button-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-ghost { color: #d7dfe8; background: rgba(255,255,255,.04); border-color: var(--line-strong); }
.button-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.hero-panel { display: grid; grid-template-columns: 1fr 116px; gap: 18px; align-items: center; }
.radar { aspect-ratio: 1; max-width: 360px; width: 100%; border-radius: 50%; position: relative; background: radial-gradient(circle, rgba(229,43,47,.09), rgba(229,43,47,.015) 58%, transparent 59%); border: 1px solid rgba(229,43,47,.32); box-shadow: 0 0 80px rgba(229,43,47,.08); }
.radar-ring { position: absolute; border: 1px solid rgba(229,43,47,.24); border-radius: 50%; inset: 16%; }
.radar .ring-2 { inset: 32%; } .radar .ring-3 { inset: 44%; }
.radar-line { position: absolute; left: 50%; top: 3%; bottom: 3%; width: 1px; background: rgba(229,43,47,.18); }
.radar .line-b { transform: rotate(90deg); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 315deg, rgba(229,43,47,.45) 357deg, transparent 360deg); animation: sweep 5s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-ping { width: 8px; height: 8px; position: absolute; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); }
.ping-a { left: 26%; top: 34%; } .ping-b { right: 23%; bottom: 26%; } .ping-c { right: 31%; top: 24%; }
.radar-center { position: absolute; inset: 40%; display: grid; place-items: center; border-radius: 50%; background: var(--red); box-shadow: 0 0 34px var(--red-glow); font-weight: 950; font-style: italic; font-size: 22px; }
.stat-stack { display: grid; gap: 10px; }
.stat-card { min-height: 92px; padding: 15px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(15,21,29,.74); backdrop-filter: blur(9px); text-align: center; display: grid; align-content: center; }
.stat-card strong { font-size: 27px; line-height: 1; } .stat-card span { margin-top: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.board-section { padding: 84px 0 100px; background: radial-gradient(circle at 16% 8%, rgba(229,43,47,.055), transparent 22%), var(--bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading h2, .process-copy h2 { margin: 7px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -1.6px; }
.section-heading p { margin: 12px 0 0; color: var(--muted); max-width: 710px; }
.snapshot-badge { display: inline-flex; align-items: center; gap: 8px; color: #aeb9c7; border: 1px solid var(--line); background: var(--surface); padding: 9px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.snapshot-badge svg { width: 17px; fill: none; stroke: var(--red); stroke-width: 1.8; }
.board-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto 180px; align-items: end; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21,28,38,.78); box-shadow: 0 18px 55px rgba(0,0,0,.16); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.9; }
.search-wrap input, .sort-wrap select { width: 100%; height: 44px; color: var(--text); background: #0e141c; border: 1px solid var(--line); border-radius: 8px; outline: 0; }
.search-wrap input { padding: 0 14px 0 44px; }
.search-wrap input:focus, .sort-wrap select:focus { border-color: rgba(229,43,47,.72); box-shadow: 0 0 0 3px rgba(229,43,47,.11); }
.filter-tabs { display: flex; gap: 5px; background: #0e141c; border: 1px solid var(--line); border-radius: 9px; padding: 4px; overflow-x: auto; }
.filter-tab { height: 34px; border: 0; border-radius: 6px; padding: 0 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 760; white-space: nowrap; }
.filter-tab span { color: var(--muted-2); margin-left: 4px; }
.filter-tab:hover { color: white; }
.filter-tab.active { color: white; background: var(--surface-3); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.filter-tab.active span { color: #ff898c; }
.sort-wrap label { display: block; margin: 0 0 5px 2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.sort-wrap select { padding: 0 34px 0 11px; }
.result-summary { min-height: 27px; padding: 18px 2px 8px; color: var(--muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { min-height: 334px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(28,37,49,.97), rgba(17,23,32,.97)); box-shadow: 0 18px 48px rgba(0,0,0,.16); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.feature-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red); opacity: .85; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(229,43,47,.42); box-shadow: 0 24px 65px rgba(0,0,0,.28), 0 0 25px rgba(229,43,47,.05); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 0 20px; }
.card-rank { color: rgba(255,255,255,.24); font-size: 12px; letter-spacing: 1.2px; font-weight: 900; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 0 9px; border-radius: 99px; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; font-weight: 900; border: 1px solid transparent; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { color: #8ecbff; border-color: rgba(55,168,255,.26); background: rgba(55,168,255,.09); }
.status-planned { color: #ffe08a; border-color: rgba(255,204,77,.28); background: rgba(255,204,77,.09); }
.status-implemented { color: #7be3b3; border-color: rgba(66,211,146,.28); background: rgba(66,211,146,.09); }
.card-body { padding: 15px 20px 12px; flex: 1; }
.category-label { color: #ff8588; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 860; font-size: 10px; }
.card-title { margin: 7px 0 11px; font-size: 20px; line-height: 1.22; letter-spacing: -.35px; }
.card-description { margin: 0; color: #a9b5c3; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; color: var(--muted-2); font-size: 11px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-footer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 12px 14px 12px 20px; background: rgba(0,0,0,.10); }
.vote-button { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 0 13px; border: 1px solid rgba(229,43,47,.34); border-radius: 8px; color: #ffd9da; background: rgba(229,43,47,.08); font-weight: 830; transition: .18s ease; }
.vote-button:hover { background: rgba(229,43,47,.17); transform: translateY(-1px); }
.vote-button.voted { color: white; background: var(--red); border-color: var(--red); box-shadow: 0 8px 24px var(--red-glow); }
.vote-main { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.vote-main svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.vote-count { min-width: 30px; padding-left: 10px; border-left: 1px solid currentColor; text-align: right; font-variant-numeric: tabular-nums; }
.detail-button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); }
.detail-button:hover { color: white; border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.detail-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.empty-state { padding: 66px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #ff9194; border: 1px solid rgba(229,43,47,.3); background: rgba(229,43,47,.08); font-weight: 950; font-size: 24px; }
.empty-state h3 { margin: 0; } .empty-state p { color: var(--muted); margin: 7px 0 20px; }

.process-section { padding: 88px 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, #10161f, #0b0f15); }
.process-copy { margin-bottom: 32px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-grid article { min-height: 210px; padding: 27px; position: relative; background: rgba(255,255,255,.018); border-right: 1px solid var(--line); }
.process-grid article:last-child { border-right: 0; }
.process-grid article > span { color: rgba(229,43,47,.34); font-size: 43px; line-height: 1; font-weight: 950; font-style: italic; }
.process-grid h3 { margin: 25px 0 8px; font-size: 18px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: #080b10; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-brand .brand-mark { width: 37px; height: 37px; }
.footer-grid p { margin: 10px 0 0; color: var(--muted-2); font-size: 12px; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: white; }

.feature-dialog { width: min(680px, calc(100% - 28px)); max-height: min(86vh, 760px); padding: 0; color: var(--text); border: 1px solid var(--line-strong); border-radius: 16px; background: #121923; box-shadow: 0 34px 100px rgba(0,0,0,.58); overflow: auto; }
.feature-dialog::backdrop { background: rgba(2,5,9,.78); backdrop-filter: blur(7px); }
.dialog-close { position: sticky; float: right; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #202936; color: white; font-size: 23px; line-height: 1; }
.dialog-inner { padding: 34px; }
.dialog-inner .status-badge { margin-bottom: 18px; }
.dialog-inner h2 { margin: 0; padding-right: 45px; font-size: clamp(27px, 4vw, 38px); line-height: 1.1; }
.dialog-author { color: var(--muted); margin: 9px 0 26px; font-size: 13px; }
.dialog-description { color: #c1cad5; white-space: pre-line; }
.dialog-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 25px 0; }
.dialog-stat { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); text-align: center; }
.dialog-stat strong { display: block; font-size: 21px; } .dialog-stat span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dialog-actions .button { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 30; transform: translate(-50%, 24px); padding: 11px 16px; border: 1px solid rgba(66,211,146,.3); border-radius: 9px; color: #d9ffec; background: rgba(18,48,36,.95); box-shadow: 0 18px 55px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .22s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .main-nav a { padding-inline: 9px; }
  .header-cta { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-toolbar { grid-template-columns: 1fr 190px; }
  .filter-tabs { grid-column: 1 / -1; grid-row: 2; }
  .hero-grid { gap: 32px; }
  .hero-panel { grid-template-columns: 1fr; }
  .stat-stack { grid-template-columns: repeat(3, 1fr); }
  .stat-card { min-height: 72px; }
}
@media (max-width: 840px) {
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: 76px; display: none; align-self: auto; flex-direction: column; padding: 8px; background: #121923; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 43px; display: flex; padding: 0 13px; border-radius: 7px; }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.05); }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 70px; }
  .hero-panel { max-width: 520px; grid-template-columns: 1fr 110px; }
  .stat-stack { grid-template-columns: 1fr; }
  .stat-card { min-height: 76px; }
  .section-heading { align-items: start; flex-direction: column; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid article { border-bottom: 1px solid var(--line); }
  .process-grid article:nth-child(2) { border-right: 0; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-wordmark strong { font-size: 15px; } .brand-wordmark em { font-size: 11px; }
  .hero h1 { font-size: 46px; letter-spacing: -2.6px; }
  .hero-copy p { font-size: 16px; }
  .hero-panel { grid-template-columns: 1fr; }
  .radar { max-width: 290px; margin-inline: auto; }
  .stat-stack { grid-template-columns: repeat(3, 1fr); }
  .stat-card strong { font-size: 22px; }
  .board-section { padding-top: 64px; }
  .board-toolbar { grid-template-columns: 1fr; }
  .filter-tabs { grid-column: auto; grid-row: auto; }
  .sort-wrap { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 315px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article, .process-grid article:nth-child(2) { border-right: 0; }
  .footer-grid { align-items: start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .dialog-inner { padding: 27px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Erweiterung: Up-/Downvotes und Adminpanel */
.admin-entry {
  min-height: 39px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px;
  color: #dbe4ef; border: 1px solid var(--line-strong); border-radius: 8px;
  background: rgba(255,255,255,.035); font-size: 12px; font-weight: 800; white-space: nowrap;
  transition: .18s ease;
}
.admin-entry:hover { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.09); }
.admin-entry svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.status-reviewing { color: #c6a8ff; border-color: rgba(166,116,255,.3); background: rgba(166,116,255,.1); }
.status-rejected { color: #ff9295; border-color: rgba(229,43,47,.3); background: rgba(229,43,47,.1); }
.filter-tabs { flex-wrap: wrap; }

.card-footer { grid-template-columns: minmax(0, 1fr) auto; }
.vote-group {
  min-height: 42px; display: grid; grid-template-columns: 1fr minmax(42px, auto) 1fr; align-items: stretch;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.13); overflow: hidden;
}
.reaction-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 0 9px;
  border: 0; color: #aeb9c7; background: transparent; font-size: 12px; transition: .18s ease;
}
.reaction-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.reaction-button strong { font-variant-numeric: tabular-nums; }
.reaction-button:hover { color: white; background: rgba(255,255,255,.06); }
.reaction-up.selected { color: #d9ffec; background: rgba(66,211,146,.2); box-shadow: inset 0 0 0 1px rgba(66,211,146,.32); }
.reaction-down.selected { color: #ffd8d9; background: rgba(229,43,47,.2); box-shadow: inset 0 0 0 1px rgba(229,43,47,.34); }
.net-score {
  display: grid; place-items: center; min-width: 44px; padding: 0 8px; border-inline: 1px solid var(--line);
  background: rgba(255,255,255,.025); font-size: 12px; font-weight: 950; font-variant-numeric: tabular-nums;
}
.score-positive { color: #68dda5 !important; }
.score-negative { color: #ff777b !important; }
.score-neutral { color: var(--muted) !important; }
.dialog-stats-four { grid-template-columns: repeat(4, 1fr); }
.dialog-vote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px; }
.dialog-vote-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); color: #c3cedb; background: rgba(255,255,255,.035); }
.dialog-vote-actions svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.reaction-dialog-up:hover, .reaction-dialog-up.active { color: #d9ffec !important; border-color: rgba(66,211,146,.42) !important; background: rgba(66,211,146,.15) !important; }
.reaction-dialog-down:hover, .reaction-dialog-down.active { color: #ffd8d9 !important; border-color: rgba(229,43,47,.42) !important; background: rgba(229,43,47,.15) !important; }
.toast.toast-error { color: #ffe3e4; border-color: rgba(229,43,47,.42); background: rgba(75,20,25,.97); }

.admin-login-dialog { width: min(480px, calc(100% - 28px)); }
.admin-login-form h2 { margin: 5px 0 10px; font-size: 31px; }
.admin-login-form > p { color: var(--muted); }
.admin-login-form .button { width: 100%; justify-content: center; }
.admin-login-hint { padding: 10px 12px; border: 1px solid rgba(255,204,77,.22); border-radius: 8px; color: #ffe7a6 !important; background: rgba(255,204,77,.07); font-size: 12px; }
.form-error { min-height: 22px; margin: 10px 0 0 !important; color: #ff8f92 !important; font-size: 12px; }

.admin-dialog {
  width: min(1450px, calc(100% - 28px)); height: min(92vh, 940px); max-width: none; max-height: none; padding: 0;
  color: var(--text); border: 1px solid var(--line-strong); border-radius: 17px; background: #0f151e;
  box-shadow: 0 34px 110px rgba(0,0,0,.68); overflow: hidden;
}
.admin-dialog::backdrop { background: rgba(2,5,9,.84); backdrop-filter: blur(8px); }
.admin-shell { height: 100%; display: flex; flex-direction: column; }
.admin-header {
  min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px 17px 24px;
  border-bottom: 1px solid var(--line); background: #121923;
}
.admin-header h2 { margin: 2px 0 0; font-size: 28px; line-height: 1; }
.admin-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.button-small { min-height: 36px !important; padding: 0 12px !important; font-size: 11px !important; }
.file-button { cursor: pointer; }
.admin-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; color: white; background: #202936; font-size: 24px; line-height: 1; }
.admin-notice { padding: 11px 24px; border-bottom: 1px solid rgba(255,204,77,.18); color: #decf9e; background: rgba(255,204,77,.055); font-size: 12px; }
.admin-notice code { color: white; }
.admin-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.admin-sidebar { min-height: 0; display: flex; flex-direction: column; padding: 18px; border-right: 1px solid var(--line); background: #101720; }
.admin-new-button { width: 100%; justify-content: center; margin-bottom: 14px; }
.admin-search-field { margin-bottom: 12px; }
.admin-feature-list { min-height: 0; overflow: auto; padding-right: 4px; }
.admin-list-item {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; padding: 12px;
  border: 1px solid transparent; border-bottom-color: var(--line); color: #c6d0dc; background: transparent; text-align: left;
}
.admin-list-item:hover { background: rgba(255,255,255,.035); }
.admin-list-item.active { border-color: rgba(229,43,47,.35); border-radius: 9px; background: rgba(229,43,47,.085); }
.admin-list-main { min-width: 0; }
.admin-list-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.admin-list-main small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); font-size: 10px; }
.admin-list-score { font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.admin-list-item > svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; opacity: .6; }
.admin-list-empty { color: var(--muted); font-size: 12px; text-align: center; }
.admin-editor { min-width: 0; overflow: auto; padding: 24px; }
.admin-editor > form { max-width: 980px; margin-inline: auto; }
.admin-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-editor-heading h3 { margin: 2px 0 0; font-size: 24px; }
.admin-unsaved-badge { padding: 5px 9px; border: 1px solid rgba(255,204,77,.3); border-radius: 99px; color: #ffe08a; background: rgba(255,204,77,.08); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .6px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-field > span { color: #aab6c4; font-size: 11px; font-weight: 760; }
.admin-field input, .admin-field select, .admin-field textarea {
  width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px;
  outline: none; color: white; background: #151e29; transition: .18s ease;
}
.admin-field textarea { min-height: 150px; resize: vertical; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: rgba(229,43,47,.62); box-shadow: 0 0 0 3px rgba(229,43,47,.1); }
.admin-field select option { color: white; background: #151e29; }
.admin-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.button-danger { border: 1px solid rgba(229,43,47,.42); color: #ffd3d4; background: rgba(229,43,47,.12); }
.button-danger:hover { background: rgba(229,43,47,.24); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none !important; }
.admin-settings { max-width: 980px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 35px auto 0; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.admin-settings h3 { margin: 0; font-size: 15px; }
.admin-settings p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.admin-settings-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 1080px) {
  .admin-layout { grid-template-columns: 285px minmax(0, 1fr); }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .admin-entry { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .admin-dialog { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .admin-header { align-items: flex-start; }
  .admin-header-actions .button-small, .admin-header-actions .file-button { display: none; }
  .admin-layout { display: block; overflow: auto; }
  .admin-sidebar { max-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-editor { overflow: visible; }
  .admin-settings { align-items: flex-start; flex-direction: column; }
  .admin-settings-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .admin-entry { width: 40px; padding: 0; justify-content: center; font-size: 0; }
  .admin-entry svg { width: 19px; height: 19px; }
  .card-footer { padding-left: 14px; }
  .vote-group { grid-template-columns: 1fr 42px 1fr; }
  .dialog-stats-four { grid-template-columns: repeat(2, 1fr); }
  .dialog-vote-actions { grid-template-columns: 1fr; }
  .admin-header { min-height: 74px; padding: 14px; }
  .admin-notice { padding-inline: 14px; }
  .admin-editor { padding: 18px 14px 28px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-field-wide { grid-column: auto; }
  .admin-form-actions .button { width: 100%; justify-content: center; }
}

.category-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 0 9px; border-radius: 99px; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; font-weight: 900; border: 1px solid transparent; }
.category-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.category-quality-of-life { color: #c8a8ff; border-color: rgba(174,122,255,.3); background: rgba(174,122,255,.1); }
.category-einsaetze { color: #ff989b; border-color: rgba(229,43,47,.35); background: rgba(229,43,47,.11); }
.category-features { color: #8ecbff; border-color: rgba(55,168,255,.3); background: rgba(55,168,255,.1); }

.dialog-inner .category-badge { margin-bottom: 18px; }


/* Serverbetrieb */
.server-notice{position:relative;z-index:15;padding:13px 24px;text-align:center;background:#5a1c26;border-bottom:1px solid #9e3343;color:#ffe7ea;font-weight:750;line-height:1.45}
.server-notice[hidden]{display:none}
.reaction-button:disabled{cursor:wait;opacity:.58}
