/* Omega Rust Drops – Webseite im Stil der Erweiterung (dunkel, Violett) */
:root {
  --bg: #0f0d1c;
  --bg-2: #151129;
  --card: #1c1736;
  --card-hover: #241d45;
  --border: #322a5c;
  --text: #f3f4f6;
  --muted: #a49fc4;
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --violet-soft: #c4b5fd;
  --live: #e91916;
  --green: #4ade80;
  --amber: #fcd34d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(8, 5, 20, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(168, 85, 247, 0.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
}

a { color: var(--violet-soft); text-decoration: none; }
a:hover { color: #fff; }

main { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------------------------------------------------------------- Kopf */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(15, 13, 28, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(50, 42, 92, 0.6);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 14px rgba(139, 92, 246, 0.5); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .lang-toggle {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); }
.nav-donate { color: #f9a8d4 !important; }
.lang-toggle { border: 1px solid var(--border); background: transparent; cursor: pointer; font-family: inherit; }
.lang-toggle:hover { color: var(--text); border-color: var(--violet-2); }

/* ---------------------------------------------------------------- Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { color: #fff; background: var(--card-hover); border-color: var(--violet-2); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--violet), var(--violet-2)); border-color: transparent; box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4); }
.btn-primary:hover { background: linear-gradient(90deg, #8b4cf0, #b56ef8); }
.btn-ghost { background: transparent; }

/* ---------------------------------------------------------------- Aktuelle Kampagne */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 32px 0 40px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 29, 66, 0.92), rgba(26, 22, 49, 0.92));
  box-shadow: var(--shadow);
}

.eyebrow { margin: 0 0 8px; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-soft); }
.eyebrow.state-live::before { content: "● "; color: var(--live); }
.eyebrow.state-upcoming { color: var(--amber); }

.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.hero-dates { margin: 0 0 20px; color: var(--muted); }

.countdown { margin-bottom: 24px; }
.countdown-label { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.countdown-parts { display: flex; gap: 10px; }
.countdown-part {
  min-width: 70px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  text-align: center;
}
.countdown-part strong { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-part span { font-size: 12px; color: var(--muted); }

.hero-actions, .tool-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero > * { min-width: 0; }
.hero-visual { display: flex; justify-content: center; }
.hero-poster { width: 100%; max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 0 40px rgba(124, 58, 237, 0.35); }

/* Maskottchen vor dem Monitor (wie in der Erweiterung) */
.scene { --h: 200px; display: flex; align-items: flex-end; gap: calc(var(--h) * 0.12); height: var(--h); }
.scene-mascot { height: 100%; mix-blend-mode: screen; }
.scene-monitor { display: flex; flex-direction: column; align-items: center; margin-bottom: calc(var(--h) * 0.06); }
.scene-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--h) * 1.15);
  height: calc(var(--h) * 0.72);
  border-radius: calc(var(--h) * 0.08);
  border: calc(var(--h) * 0.04) solid #2d2750;
  background: radial-gradient(circle at 50% 45%, #2a1a52 0%, #0d0a1c 75%);
  box-shadow: 0 0 calc(var(--h) * 0.22) rgba(145, 70, 255, 0.45);
}
.scene-screen img { width: 42%; filter: drop-shadow(0 0 6px rgba(169, 112, 255, 0.9)); }
.scene-live { position: absolute; top: 6%; right: 6%; padding: 0 5px; border-radius: 3px; background: var(--live); color: #fff; font-size: 13px; font-weight: 800; }
.scene-stand { width: calc(var(--h) * 0.12); height: calc(var(--h) * 0.1); background: #2d2750; }

/* ---------------------------------------------------------------- Drops */
.drops, .tools { margin-bottom: 44px; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0 0 4px; font-size: 26px; }
.section-head p { margin: 0; color: var(--muted); }

.drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.drop-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

.drop-card {
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.drop-card:hover { transform: translateY(-2px); border-color: var(--violet-2); }
.drop-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2a2140, #120f22);
}
.drop-img img { width: 100%; height: 100%; object-fit: contain; }
.drop-img-missing { font-size: 40px; color: var(--muted); }
.drop-card h3 { margin: 10px 4px 2px; font-size: 16px; line-height: 1.25; }
.drop-streamers { margin: 0 4px 4px; font-size: 14px; font-weight: 600; }
.drop-streamers.muted { color: var(--muted); font-weight: 500; }

.empty-state { margin: 40px 0; padding: 32px; text-align: center; border-radius: var(--radius); border: 1px dashed var(--border); color: var(--muted); }
.empty-state h2 { color: var(--text); }

/* ---------------------------------------------------------------- Erweiterung & Bots */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 29, 66, 0.9), rgba(26, 22, 49, 0.9));
}
.tool-card h3 { margin: 0; font-size: 20px; }
.tool-card p { margin: 0; color: var(--muted); flex: 1; }
.tool-feature { grid-column: 1 / -1; border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 30px rgba(124, 58, 237, 0.25); }
.tool-icon { font-size: 30px; }

/* ---------------------------------------------------------------- Archiv */
.archive-head { margin: 32px 0 20px; }
.archive-head h1 { margin: 0 0 4px; font-size: clamp(26px, 3.5vw, 38px); }
.archive-head p { margin: 0 0 16px; color: var(--muted); }
.search { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search input {
  flex: 1 1 320px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.search input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.chip.active, .chip:hover { color: #fff; background: linear-gradient(90deg, var(--violet), var(--violet-2)); border-color: transparent; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.campaign-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.campaign-card:hover { transform: translateY(-2px); border-color: var(--violet-2); }
.campaign-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a2140, #120f22); }
.campaign-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-thumbs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 10px; gap: 6px; }
.cover-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.cover-placeholder img { height: 70%; mix-blend-mode: screen; opacity: 0.85; }
.cover-placeholder span { font-weight: 800; font-size: 15px; color: var(--violet-soft); max-width: 55%; }
.cover-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.badge { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.badge.state-live { background: var(--live); color: #fff; }
.badge.state-upcoming { background: var(--amber); color: #1a1300; }
.campaign-info { padding: 12px 14px 14px; }
.campaign-info h3 { margin: 0 0 4px; font-size: 17px; }
.campaign-info p { margin: 0; color: var(--muted); font-size: 14px; }

.campaign-dialog {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.campaign-dialog::backdrop { background: rgba(8, 5, 20, 0.75); backdrop-filter: blur(4px); }
.dialog-inner { position: relative; }
.dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15, 13, 28, 0.85);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}
.dialog-close:hover { border-color: var(--violet-2); }
.dialog-poster { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.dialog-body { padding: 20px 24px 28px; }
.dialog-body h2 { margin: 0 0 4px; font-size: 28px; }
.dialog-section { margin: 22px 0 10px; font-size: 20px; }

/* ---------------------------------------------------------------- Fuß */
.site-footer { max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid rgba(50, 42, 92, 0.6); color: var(--muted); font-size: 14px; text-align: center; }
.site-footer p { margin: 4px 0; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Schmale Bildschirme */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero-visual { order: -1; }
  .tool-grid { grid-template-columns: 1fr; }
  .scene { --h: 150px; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav a, .lang-toggle { padding: 6px 9px; font-size: 14px; }
  .countdown-part { min-width: 0; flex: 1; }
  .countdown-part strong { font-size: 22px; }
  .drop-grid { grid-template-columns: repeat(2, 1fr); }
  .drop-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .dialog-body { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
