:root {
  --bg: #0e0f13;
  --bg-elevated: #16181f;
  --bg-card: #1b1e27;
  --border: #2a2e3a;
  --text: #eef0f5;
  --text-dim: #a3a9b8;
  --accent: #ff5fa2;
  --accent-2: #7c8bff;
  --itchio: #fa5c5c;
  --patreon: #ff6154;
  --radius: 14px;
  /* Bewusst System-Fonts statt Google Fonts: kein externer Nachladevorgang,
     kein DSGVO-Risiko durch IP-Übertragung an Google, schnelleres Laden. */
  --font-heading: -apple-system, ui-sans-serif, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, ui-sans-serif, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 .5em; }

a { color: var(--accent-2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 15, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-nav { display: flex; gap: 24px; }
.header-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; }
.header-nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding-block: 72px 48px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(255, 95, 162, 0.12), transparent 60%);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0e0f13;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.content-hint {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.85;
}

/* Toolbar */
.works-section { padding-block: 56px 80px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14151b;
  font-weight: 600;
}

.sort-group { display: flex; align-items: center; gap: 8px; }
.sort-group label { color: var(--text-dim); font-size: 0.85rem; }

select, input[type="search"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
}

.search-group { flex: 1; min-width: 180px; max-width: 280px; }
#search-input { width: 100%; }

/* Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}

.work-thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated) center/cover no-repeat;
  position: relative;
}

.work-thumb.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.source-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #14151b;
}
.source-badge.itchio { background: var(--itchio); }
.source-badge.patreon { background: var(--patreon); }

.work-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.work-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.work-teaser {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
}

.works-count {
  margin-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Support section */
.support-section {
  padding-block: 60px 80px;
  text-align: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.support-section p { color: var(--text-dim); max-width: 560px; margin: 0 auto 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

.build-note {
  margin-top: 12px;
  font-size: 0.75rem;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-group { max-width: none; }
}
