/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --bg-nav: #0d0d1a;
  --accent: #e94560;
  --accent-hover: #c73652;
  --gold: #f5a623;
  --text-primary: #e0e0e0;
  --text-muted: #8a8a9a;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--bg-nav);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 2rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.navbar-brand .crown { font-size: 1.6rem; }
.navbar-brand span { color: var(--gold); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.navbar-links a {
  color: #ccc;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.18); }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: #e0941a; color: #1a1a1a; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* ─── Hero / Slideshow ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slideshow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slideshow-img.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,26,0.55) 0%, rgba(13,13,26,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  letter-spacing: 2px;
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
}

.hero-no-slide {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0f3460 100%);
  z-index: 0;
}

/* ─── Section Layout ───────────────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

/* ─── Team Cards ───────────────────────────────────────────────────────────── */
.rank-group { margin-bottom: 2.5rem; text-align: center; }

.rank-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  display: inline-block;
  border: 1px solid currentColor;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 160px;
  flex-shrink: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin: 0 auto 0.75rem;
  display: block;
  background: var(--bg-card);
  flex-shrink: 0;
}

.team-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  background: var(--bg-card);
  color: var(--text-muted);
}

.team-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.team-rank {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
}

.team-bio {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── Announcement Cards ───────────────────────────────────────────────────── */
.announcement-grid {
  display: grid;
  gap: 1.5rem;
}

.ann-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.ann-card:hover { border-color: rgba(255,255,255,0.2); }
.ann-card.pinned { border-color: var(--gold); }

.ann-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.ann-card-body { padding: 1.5rem; }

.ann-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ann-pin { color: var(--gold); font-size: 0.9rem; }

.ann-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.ann-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
  /* Fallback */
  background: rgba(233,69,96,0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.ann-category.cat-news {
  background: rgba(240, 192, 40, 0.15);
  color: #f0c028;
  border-color: #f0c028;
}
.ann-category.cat-announcement {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border-color: #2ecc71;
}
.ann-category.cat-event {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
  border-color: #e67e22;
}
.ann-category.cat-wichtig {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border-color: #e74c3c;
}

/* ─── Patch Notes ─────────────────────────────────────────────────────────── */
.patchnote-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.patchnote-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
}

.patchnote-header:hover { background: rgba(255,255,255,0.03); }

.version-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.patchnote-title { font-weight: 700; flex: 1; }
.patchnote-date { font-size: 0.8rem; color: var(--text-muted); }
.patchnote-toggle { color: var(--text-muted); transition: transform 0.2s; }
.patchnote-toggle.open { transform: rotate(180deg); }

.patchnote-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 1rem;
  white-space: pre-line;
}

.patchnote-body.open { display: block; }

/* ─── Roadmap ─────────────────────────────────────────────────────────────── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.roadmap-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.roadmap-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.status-planned { background: rgba(74,74,200,0.2); color: #7a7aff; border: 1px solid #7a7aff; }
.status-in_progress { background: rgba(245,166,35,0.2); color: var(--gold); border: 1px solid var(--gold); }
.status-completed { background: rgba(68,204,68,0.2); color: #44cc44; border: 1px solid #44cc44; }
.status-cancelled { background: rgba(200,50,50,0.2); color: #ff6666; border: 1px solid #ff6666; }

.roadmap-title { font-weight: 700; margin-bottom: 0.4rem; }
.roadmap-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 650px;
  margin: 2rem auto;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control { min-height: 150px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-check input { cursor: pointer; }

/* ─── Dashboard ───────────────────────────────────────────────────────────── */
.dashboard-layout {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.sidebar-user {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.sidebar-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid var(--border);
}

.sidebar-avatar-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--border);
}

.sidebar-username { font-weight: 700; }
.sidebar-rank { font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 20px; display: inline-block; margin-top: 0.3rem; }

.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  transition: all 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.dashboard-content { min-width: 0; }

.dash-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dash-card-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
}

/* ─── Admin Panel ─────────────────────────────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
}

.user-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.user-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
  vertical-align: middle;
}

.user-table tr:last-child td { border-bottom: none; }

/* ─── Alert / Flash ───────────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: rgba(68,204,68,0.15); border: 1px solid #44cc44; color: #44cc44; }
.alert-error { background: rgba(200,50,50,0.15); border: 1px solid #ff6666; color: #ff6666; }

/* ─── Login Page ──────────────────────────────────────────────────────────── */
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 2rem;
}

.login-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-logo {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.login-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }

/* ─── Detail view ─────────────────────────────────────────────────────────── */
.detail-content {
  color: var(--text-primary);
  line-height: 1.9;
  white-space: pre-line;
  font-size: 0.97rem;
}

.detail-content img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

footer strong { color: var(--gold); }

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ─── Hamburger ───────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-only-nav { display: none; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Navbar */
  .nav-hamburger { display: flex; }
  .navbar-right  { display: none; }
  .navbar { padding: 0 1rem; }
  .navbar-brand { font-size: 1.2rem; gap: 8px; }

  .navbar-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0; right: 0;
    background: var(--bg-nav);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
    z-index: 9999;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }
  .navbar-links.mobile-open { display: flex; }
  .navbar-links li { width: 100%; }
  .navbar-links a {
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .navbar-links a:hover { background: rgba(255,255,255,0.06); }

  .mobile-only-nav {
    display: block;
    border-top: 2px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
  }
  .mobile-only-nav a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.5rem;
    color: #ccc;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    transition: background 0.15s;
  }
  .mobile-only-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }

  /* Section */
  .section { padding: 2rem 1rem; }

  /* Hero – Badge auf Mobil kleiner */
  .hero { height: 280px; }
  .hero-title { font-size: 2rem; letter-spacing: 1px; }
  .hero-subtitle { font-size: 0.82rem; letter-spacing: 2px; }

  /* Slideshow Dots nach unten verschieben damit kein Overlap mit Badge */
  .slideshow-dots { bottom: 0.6rem; }

  /* Grids */
  .admin-grid { grid-template-columns: 1fr; }
  .dashboard-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 1rem auto;
  }
  .sidebar { position: static; }

  /* Announcement meta: auf kleinen Screens umbrechen */
  .ann-meta { flex-wrap: wrap; gap: 0.4rem; }
  .ann-card-body { padding: 1rem; }
  /* Announcement-Bilder auf Mobile skalieren */
  .ann-card-img { height: 160px; }

  /* Patchnote */
  .patchnote-header { flex-wrap: wrap; gap: 0.5rem; padding: 0.85rem 1rem; }

  /* Admin-Tabelle scrollbar machen */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .user-table { min-width: 600px; }

  /* Section-Header */
  .section-header { flex-wrap: wrap; gap: 0.5rem; }

  /* Roadmap */
  .roadmap-grid { grid-template-columns: 1fr; }

  /* Form-card */
  .form-card { padding: 1.25rem; margin: 1rem; }

  /* Team-Avatare auf Tablet leicht kleiner */
  .team-avatar { width: 70px; height: 70px; min-width: 70px; min-height: 70px; }
  .team-avatar-placeholder { width: 70px; height: 70px; min-width: 70px; }
}

@media (max-width: 600px) {
  /* Navbar Brand: nur Icon, kein Text */
  .navbar-brand span { display: none; }
  .navbar-brand img { height: 36px; width: 36px; }

  /* Hero */
  .hero { height: 220px; }
  .hero-title { font-size: 1.6rem; letter-spacing: 0; }
  .hero-subtitle { font-size: 0.72rem; letter-spacing: 1px; }
  /* Server-Badge im Hero auf kleinen Screens kleiner */
  #heroServerWrap { bottom: 0.5rem !important; right: 0.5rem !important; gap: 0.25rem !important; }
  #heroServerWrap span { font-size: 0.68rem !important; padding: 0.18rem 0.5rem !important; }
  .slideshow-dots { bottom: 0.4rem; gap: 5px; }
  .dot { width: 7px; height: 7px; }

  /* Section */
  .section { padding: 1.5rem 0.85rem; }

  /* Team-Cards kleiner */
  .team-card { width: 130px; padding: 1rem 0.75rem; }
  .team-avatar, .team-avatar-placeholder { width: 60px; height: 60px; }

  /* Buttons in Karten umbrechen */
  .ann-card-body > div { flex-wrap: wrap; }

  /* Announcement-Bild kleiner */
  .ann-card-img { height: 130px; }

  /* Dashboard Sidebar als kompakte Box */
  .dashboard-layout { gap: 1rem; }
  .sidebar { padding: 1rem; }
  .sidebar-avatar, .sidebar-avatar-placeholder { width: 50px; height: 50px; }

  /* Login */
  .login-card { padding: 1.5rem 1.25rem; }

  /* Stat-Row im Klassen-Formular */
  .stat-row { grid-template-columns: 1fr 36px auto; }
  .stat-row .stat-slider { display: none; }

  /* Wiki-Karten etwas schmaler */
  .wiki-card { width: 210px; }
  .wiki-card-thumb { height: 118px; }

  /* Author-Chip kompakter */
  .author-chip { padding: 0.2rem 0.6rem 0.2rem 0.3rem; }
}

/* ─── Slideshow dots ──────────────────────────────────────────────────────── */
.slideshow-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: var(--gold); }

/* ─── Announcement detail ─────────────────────────────────────────────────── */
.ann-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 0.3rem 0.8rem 0.3rem 0.4rem;
}

.author-chip img, .author-chip-avatar {
  width: 26px; height: 26px;
  min-width: 26px; min-height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
