/* ============================================================================
   CreatorStage — Design System
   "Von der Idee zur Serie – gemeinsam mit deiner Community."
   Jung. Dynamisch. Cool. Dark-first, gradient-driven, mobile-first.
   ============================================================================ */

:root {
  /* Farben */
  --bg:            #08080f;
  --bg-elevated:   #0f0f1c;
  --surface:       #14142400;
  --surface-1:     #15152640;
  --surface-2:     #1b1b30;
  --surface-hover: #21213c;
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);

  --text:          #f6f6fb;
  --text-muted:    #a4a4c1;
  --text-dim:      #6f6f8f;

  --violet: #7c3aed;
  --pink:   #ec4899;
  --cyan:   #06b6d4;
  --amber:  #f59e0b;
  --green:  #22c55e;
  --red:    #ef4444;

  --grad-main: linear-gradient(120deg, var(--violet) 0%, var(--pink) 100%);
  --grad-alt:  linear-gradient(120deg, var(--cyan) 0%, var(--violet) 100%);
  --grad-gold: linear-gradient(120deg, var(--amber) 0%, var(--pink) 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 0 1px rgba(255,255,255,.04), 0 20px 40px -20px rgba(124,58,237,.45);
  --shadow-card: 0 10px 30px -15px rgba(0,0,0,.6);

  --font-display: 'Space Grotesk', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 72px;
}

[data-theme="light"] {
  --bg: #f6f6fb;
  --bg-elevated: #ffffff;
  --surface-2: #ffffff;
  --surface-hover: #f0f0fa;
  --border: rgba(20,20,40,.08);
  --border-strong: rgba(20,20,40,.16);
  --text: #14142a;
  --text-muted: #55557a;
  --text-dim: #8a8aad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(124,58,237,.18), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(236,72,153,.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(6,182,212,.10), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head .eyebrow { color: var(--pink); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; margin-bottom: 6px; display:block; }
.section-head p { margin: 4px 0 0; }
.link-more { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 8px 24px -8px rgba(236,72,153,.55); }
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(236,72,153,.7); transform: translateY(-1px); }
.btn-alt { background: var(--grad-alt); color: #fff; box-shadow: 0 8px 24px -8px rgba(6,182,212,.5); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }
.btn-ghost { background: var(--surface-hover); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: rgba(239,68,68,.15); color: #ff8484; border: 1px solid rgba(239,68,68,.35); }
.btn-danger:hover { background: rgba(239,68,68,.25); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8,8,15,.72);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .navbar { background: rgba(246,246,251,.78); }
.navbar .container { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; flex-shrink: 0; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-main);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(236,72,153,.7);
}
.nav-links { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-links a {
  padding: 9px 11px; border-radius: var(--radius-pill); color: var(--text-muted); font-weight: 600; font-size: .89rem;
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-hover); }
.nav-search {
  flex: 1; min-width: 0; max-width: 240px; position: relative;
}
.nav-search input[type="search"] {
  width: 100%; padding: 9px 14px 9px 38px !important; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-hover); color: var(--text); font-size: .88rem;
}
.nav-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .5; pointer-events: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-hover); color: var(--text-muted); position: relative; border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn .badge-dot {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--grad-alt);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem;
  flex-shrink: 0; border: 1px solid var(--border);
}
.avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 1.8rem; border-width: 3px; }
.avatar.ring-verified { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pink); }

.mobile-toggle { display: none; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; box-shadow: var(--shadow-card);
  display: none; z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .9rem; font-weight: 600; background: none; border: none; text-align: left; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-hover); color: var(--text); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.notif-panel { width: 340px; max-height: 420px; overflow-y: auto; }
.notif-item { display: block; padding: 10px 12px; border-radius: var(--radius-sm); }
.notif-item.unread { background: rgba(124,58,237,.12); }
.notif-item .notif-title { color: var(--text); font-weight: 700; font-size: .85rem; }
.notif-item .notif-meta { color: var(--text-dim); font-size: .74rem; margin-top: 2px; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero { padding: 72px 0 48px; position: relative; overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--surface-hover); border: 1px solid var(--border); font-size: .8rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero h1 { max-width: 760px; }
.hero .lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.hero-stats .stat-label { color: var(--text-dim); font-size: .82rem; }

/* ---------------------------------------------------------------------------
   Category chips
   --------------------------------------------------------------------------- */
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--surface-hover); border: 1px solid var(--border); color: var(--text-muted); font-weight: 700; font-size: .85rem;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--grad-main); color: #fff; border-color: transparent; }

/* ---------------------------------------------------------------------------
   Cards / Project grid
   --------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

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

.project-card { display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.project-card .cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-hover); }
.project-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .cover img { transform: scale(1.06); }
.project-card .cover::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,15,.85), transparent 55%);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}
.badge-live { background: rgba(34,197,94,.18); color: #4ade80; }
.badge-funded { background: rgba(236,72,153,.18); color: #f472b6; }
.badge-production { background: rgba(6,182,212,.18); color: #22d3ee; }
.badge-completed { background: rgba(124,58,237,.2); color: #c4b5fd; }
.badge-pending { background: rgba(245,158,11,.18); color: #fbbf24; }
.badge-rejected, .badge-archived { background: rgba(148,148,168,.18); color: #a1a1b8; }
.badge-category { position: absolute; top: 12px; left: 12px; background: rgba(8,8,15,.6); backdrop-filter: blur(6px); color: #fff; z-index: 2; }
.badge-status-overlay { position: absolute; top: 12px; right: 12px; z-index: 2; }
.project-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card .creator-line { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: .8rem; font-weight: 600; }
.project-card h3 { font-size: 1.05rem; margin: 0; }
.project-card h3 a:hover { color: var(--pink); }
.project-card .desc { font-size: .85rem; color: var(--text-dim); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Progress bar */
.progress-wrap { margin-top: auto; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-hover); overflow: hidden; position: relative; }
.progress-bar > span {
  display: block; height: 100%; border-radius: 999px; background: var(--grad-main);
  box-shadow: 0 0 12px rgba(236,72,153,.6);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: .78rem; color: var(--text-dim); }
.progress-meta .pct { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text); }
.stat-row { display: flex; justify-content: space-between; font-size: .76rem; color: var(--text-dim); margin-top: 6px; }
.stat-row strong { color: var(--text); font-weight: 700; }

/* ---------------------------------------------------------------------------
   Countdown
   --------------------------------------------------------------------------- */
.countdown { display: flex; gap: 10px; }
.countdown .cd-box {
  background: var(--surface-hover); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 4px; min-width: 58px; text-align: center;
}
.countdown .cd-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.countdown .cd-label { font-size: .65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 7px; color: var(--text); }
label .optional { color: var(--text-dim); font-weight: 500; }
.form-hint { font-size: .78rem; color: var(--text-dim); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=date], input[type=datetime-local], input[type=tel], input[type=search],
textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface-hover); color: var(--text); font-size: .92rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.25);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.input-group { position: relative; }
.input-suffix, .input-prefix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-weight: 700; font-size: .85rem; }
.input-prefix { left: 14px; }
.input-suffix { right: 14px; }
.input-group .input-prefix ~ input { padding-left: 34px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 3px; }
.checkbox-row label { margin: 0; font-weight: 500; color: var(--text-muted); }
.file-drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); padding: 28px; text-align: center;
  color: var(--text-dim); cursor: pointer; transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: var(--violet); background: rgba(124,58,237,.06); }

/* ---------------------------------------------------------------------------
   Alerts / Flash messages
   --------------------------------------------------------------------------- */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: .9rem; font-weight: 600; margin-bottom: 16px; border: 1px solid transparent; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.3); }
.alert-error { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.3); }
.alert-info { background: rgba(6,182,212,.12); color: #22d3ee; border-color: rgba(6,182,212,.3); }
.alert-warning { background: rgba(245,158,11,.12); color: #fbbf24; border-color: rgba(245,158,11,.3); }
.flash-stack { position: fixed; top: 84px; right: 20px; z-index: 500; width: min(360px, calc(100vw - 40px)); display: flex; flex-direction: column; gap: 10px; }
.flash-stack .alert { box-shadow: var(--shadow-card); }

/* ---------------------------------------------------------------------------
   Tabs
   --------------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 12px 18px; font-weight: 700; color: var(--text-dim); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; font-size: .92rem;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--pink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------------------------------------------------------------------
   Dashboard / Admin layout
   --------------------------------------------------------------------------- */
.app-shell { display: flex; min-height: calc(100vh - var(--header-h)); }
.app-sidebar {
  width: 250px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 24px 14px; background: var(--bg-elevated);
}
.app-sidebar .side-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); padding: 16px 12px 8px; font-weight: 800; }
.app-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-muted);
  font-weight: 600; font-size: .88rem; margin-bottom: 2px;
}
.app-sidebar a:hover { background: var(--surface-hover); color: var(--text); }
.app-sidebar a.active { background: var(--grad-main); color: #fff; }
.app-main { flex: 1; padding: 32px; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; gap: 4px; border-right: none; border-bottom: 1px solid var(--border); }
  .app-sidebar .side-title { display: none; }
  .app-sidebar a { flex-shrink: 0; }
  .app-main { padding: 20px; }
}

.stat-card { padding: 22px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); }
.stat-card .stat-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--grad-main); color: #fff; margin-bottom: 14px; font-size: 1.2rem; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; }
.stat-card .stat-label { color: var(--text-dim); font-size: .82rem; font-weight: 600; }
.stat-card .stat-delta { font-size: .78rem; font-weight: 700; margin-top: 6px; }
.stat-delta.up { color: #4ade80; }
.stat-delta.down { color: #f87171; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table th { text-align: left; color: var(--text-dim); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--border); }
table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); }
.table-wrap table { min-width: 640px; }

/* ---------------------------------------------------------------------------
   Project detail page
   --------------------------------------------------------------------------- */
.project-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/8; background: var(--surface-2); margin-bottom: -60px; }
.project-hero img, .project-hero video { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 5%, transparent 60%); }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .project-layout { grid-template-columns: 1fr; } }
.sticky-panel { position: sticky; top: calc(var(--header-h) + 20px); }
.episode-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-md); transition: background .15s; }
.episode-row:hover { background: var(--surface-hover); }
.episode-num { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.episode-thumb { width: 96px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-hover); flex-shrink: 0; }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reward-tier { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.reward-tier:hover, .reward-tier.selected { border-color: var(--pink); background: rgba(236,72,153,.06); }
.reward-tier .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.comment { display: flex; gap: 12px; margin-bottom: 18px; }
.comment .body { flex: 1; }
.comment .meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-dim); margin-bottom: 4px; }
.comment .author { color: var(--text); font-weight: 700; }
.comment .text { font-size: .9rem; color: var(--text-muted); }
.comment .actions { display: flex; gap: 14px; margin-top: 6px; font-size: .78rem; color: var(--text-dim); }
.comment .actions button { background: none; border: none; color: inherit; cursor: pointer; font-weight: 700; }
.comment .actions button:hover { color: var(--pink); }
.comment-replies { margin-left: 48px; margin-top: 12px; }

.poll-option { display: block; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; position: relative; overflow: hidden; cursor: pointer; }
.poll-option .fill { position: absolute; inset: 0; background: rgba(124,58,237,.18); width: 0; transition: width .5s ease; z-index: 0; }
.poll-option .content { position: relative; z-index: 1; display: flex; justify-content: space-between; font-weight: 600; font-size: .88rem; }

/* ---------------------------------------------------------------------------
   Empty states / misc
   --------------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state .icon { font-size: 2.6rem; margin-bottom: 14px; }
.divider { height: 1px; background: var(--border); margin: 28px 0; border: none; }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.pill-select { display: flex; gap: 8px; flex-wrap: wrap; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--surface-hover); font-weight: 700; font-size: .85rem; color: var(--text-muted); }
.pagination a:hover { background: var(--surface-2); color: var(--text); }
.pagination .current { background: var(--grad-main); color: #fff; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 64px; background: var(--bg-elevated); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--text-muted); font-size: .88rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--pink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .8rem; }
.version-tag { font-family: 'Space Grotesk', monospace; background: var(--surface-hover); padding: 3px 9px; border-radius: var(--radius-pill); border: 1px solid var(--border); }

/* ---------------------------------------------------------------------------
   Auth pages
   --------------------------------------------------------------------------- */
.auth-shell { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--text-dim); }
.auth-switch a { color: var(--pink); font-weight: 700; }
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.role-choice label { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 14px; cursor: pointer; text-align: center; display:block; }
.role-choice input { display: none; }
.role-choice input:checked + span, .role-choice label:has(input:checked) { border-color: var(--pink); }
.role-choice label:has(input:checked) { border-color: var(--pink); background: rgba(236,72,153,.06); }

/* ---------------------------------------------------------------------------
   Utilities for install wizard
   --------------------------------------------------------------------------- */
.steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.steps .step { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; color: var(--text-dim); border: 1px solid var(--border); }
.steps .step.active { background: var(--grad-main); color: #fff; }
.steps .step.done { background: rgba(34,197,94,.2); color: #4ade80; }
.check-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.check-row:last-child { border-bottom: none; }
.check-ok { color: #4ade80; font-weight: 700; }
.check-fail { color: #f87171; font-weight: 700; }

/* ---------------------------------------------------------------------------
   Schlanke, zum Design passende Scrollbars für alle horizontal/vertikal
   scrollbaren Bereiche (Kategorie-Chips, Tabs, Tabellen, Sidebar, Notif-Panel)
   --------------------------------------------------------------------------- */
.chip-row, .tabs, .table-wrap, .app-sidebar, .notif-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.chip-row::-webkit-scrollbar, .tabs::-webkit-scrollbar, .table-wrap::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar, .notif-panel::-webkit-scrollbar {
  width: 5px; height: 5px;
}
.chip-row::-webkit-scrollbar-track, .tabs::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track,
.app-sidebar::-webkit-scrollbar-track, .notif-panel::-webkit-scrollbar-track {
  background: transparent;
}
.chip-row::-webkit-scrollbar-thumb, .tabs::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-thumb, .notif-panel::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 999px;
}
.chip-row:hover::-webkit-scrollbar-thumb, .tabs:hover::-webkit-scrollbar-thumb, .table-wrap:hover::-webkit-scrollbar-thumb,
.app-sidebar:hover::-webkit-scrollbar-thumb, .notif-panel:hover::-webkit-scrollbar-thumb {
  background: var(--text-dim);
}

/* ---------------------------------------------------------------------------
   Mobile-Navigation (Hamburger-Menü) — aktiv ab Tablet-Hochformat abwärts
   --------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .mobile-toggle { display: flex; }
  .brand > span:not(.logo-mark) { display: none; }
  .nav-search { max-width: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    padding: 10px; box-shadow: var(--shadow-card);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
}
@media (max-width: 520px) {
  .nav-search { display: none; }
}

/* ---------------------------------------------------------------------------
   Feinschliff Responsive (Tablet & Handy)
   --------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .sticky-panel { position: static; top: auto; }
}
@media (max-width: 620px) {
  .hero { padding: 44px 0 32px; }
  .section { padding: 40px 0; }
  .project-hero { aspect-ratio: 16/10; margin-bottom: -30px; }
  .countdown { gap: 6px; }
  .countdown .cd-box { min-width: 46px; padding: 8px 2px; }
  .countdown .cd-num { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .role-choice { grid-template-columns: 1fr; }
}

::selection { background: var(--pink); color: #fff; }
