:root {
  --dz-accent: #5a5a5a;
  --dz-accent-2: #acacac;
  --dz-accent-soft: rgba(79, 176, 139, 0.16);
  --dz-border: rgba(255, 255, 255, 0.32);
  --dz-bg: #050608;
}

.btn-primary,
.btn-ghost,
.kauf-button,
.kauf-info-button,
.spende-button,
.plot-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-transform: none;
}

.btn-primary,
.kauf-button,
.spende-button,
.plot-buy-btn {
  background: linear-gradient(135deg, var(--dz-accent, var(--accent)), var(--dz-accent-2, #4fb08b));
  color: #ffffff;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.35);
}

.btn-ghost,
.kauf-info-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}

.btn-primary:hover,
.kauf-button:hover,
.spende-button:hover,
.plot-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover,
.kauf-info-button:hover {
  border-color: var(--dz-accent, var(--accent));
  color: var(--dz-accent, var(--accent));
  transform: translateY(-1px);
}

.btn-ghost.copy-btn {
  height: 42px;
  padding: 0 16px;
}

.index-navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  z-index: 1000;
}

.index-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.index-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.index-nav-links li {
  padding: 0;
}

.index-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.index-nav-item h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.index-nav-item:hover {
  color: var(--text);
  border-color: var(--border);
}

.index-nav-item.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, rgba(139, 157, 255, 0.18), rgba(107, 192, 163, 0.12));
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-icon .bar {
  width: 26px;
  height: 3px;
  border-radius: 5px;
  background: #fff;
}

body.theme-dayz {
  position: relative;
  background:
    radial-gradient(85% 75% at 25% 8%, rgba(255, 255, 255, 0.18), transparent 48%),
    radial-gradient(90% 70% at 78% 6%, rgba(255, 255, 255, 0.03), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.9)),
    linear-gradient(150deg, #030305 0%, #0b0d12 45%, #040306 100%);
  color: #e7e8ed;
}

.hero-dayz {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 36px);
  isolation: isolate;
  text-align: center;
  min-height: 440px;
  gap: 14px;
}

.hero-dayz::before {
  content: '';
  position: absolute;
  inset: -14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.92)),
    url('/sections/dayz/assets/images/dayz.jpg') center -0% /cover no-repeat;
  opacity: 0.82;
  z-index: 0;
  filter: saturate(0.9) contrast(1.05);
}

.hero-dayz::after {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(65% 55% at 18% 12%, rgba(255, 255, 255, 0.22), transparent 45%),
    radial-gradient(70% 50% at 82% 6%, rgba(255, 255, 255, 0.08), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: 0;
}

.smoke-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(520px, 78vh, 960px);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.smoke-backdrop .smoke-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.82;
  mix-blend-mode: screen;
  filter: blur(0.8px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 48%, rgba(0, 0, 0, 0.05) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 48%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-dayz .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  z-index: 2;
  gap: 12px;
  flex: 1 1 auto;
  width: 100%;
}

.hero-dayz .hero-title {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-dayz .hero-actions {
  align-self: center;
  justify-content: center;
  margin-top: auto;
  padding-bottom: 12px;
}

.danger-section .section-header .eyebrow {
  border-color: var(--dz-border);
  color: #ff9b8c;
}

.danger-card {
  background: linear-gradient(150deg, rgba(10, 10, 14, 0.9), rgba(4, 2, 2, 0.75));
  border-color: var(--dz-border);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(192, 42, 42, 0.04);
  text-align: center;
}

.danger-accent {
  color: var(--dz-accent);
}

@media (max-width: 640px) {
  .kauf-button,
  .kauf-info-button {
    width: 100%;
  }
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.stat-list strong {
  color: #ff9b8c;
  font-weight: 700;
  margin-right: 6px;
}

.index-card h3 {
  color: #f4f5f8;
}

.info-grid {
  justify-items: center;
}

.danger-section .info-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  justify-content: center;
  width: 100%;
}

.mods-card {
  grid-column: auto;
  justify-self: center;
  max-width: 360px;
}

@media (max-width: 720px) {
  .mods-card {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 960px) {
  .danger-section .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.hero-meta,
.hero-actions {
  justify-content: center;
}

.news-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 440px;
}

.news-dayz .news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.news-dayz .news-list,
.news-dayz .news-content {
  background: linear-gradient(160deg, rgba(12, 8, 8, 0.9), rgba(6, 3, 4, 0.85));
  border: 1px solid var(--dz-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(192, 42, 42, 0.05);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  text-align: center;
}

.news-dayz .news-list {
  position: sticky;
  top: 110px;
  align-self: start;
}

.news-dayz .news-list h1 {
  margin-bottom: 12px;
  font-size: 20px;
}

.news-dayz .news-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 4px;
}

.news-dayz .list-group-item {
  list-style: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.news-dayz .list-group-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.news-dayz .list-group-item.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.news-dayz .news-content h2 {
  margin-bottom: 10px;
}

.news-dayz .news-content img {
  border-radius: var(--radius-md);
  margin-top: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.news-dayz .news-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  body.theme-dayz {
    padding-top: 100px;
  }

  .index-navbar {
    border-radius: var(--radius-md);
  }

  .index-nav-links {
    position: absolute;
    top: 110%;
    right: 16px;
    width: calc(100% - 32px);
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 10, 20, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
  }

  .menu-icon {
    display: flex;
  }

  .menu-toggle:checked ~ .index-nav-links {
    max-height: 320px;
    padding: 12px;
    opacity: 1;
    pointer-events: auto;
  }

  .index-nav-item {
    width: 100%;
  }

  /* Keep the list fluid on small screens; sticky is desktop-only */
  .news-dayz .news-list {
    position: static;
    top: auto;
    align-self: stretch;
  }

  .news-dayz .news-list ul {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  body.theme-dayz {
    padding: 120px 12px 70px;
  }

  .index-navbar {
    position: fixed;
    top: 12px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 10px 12px;
    gap: 10px;
    transform: none;
  }

  .index-logo {
    height: 44px;
  }

  .hero-dayz {
    min-height: 320px;
    padding: 18px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    row-gap: 12px;
    width: 100%;
  }

  .danger-section .section-header {
    margin-bottom: 6px;
  }

  .index-card {
    width: 100%;
  }

  .section-card {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  .index-nav-links {
    left: 0;
    right: 0;
    margin: 0 8px;
    width: auto;
  }

  .index-nav-item {
    justify-content: center;
  }
}

.mods-guide .info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.mods-step-card {
  text-align: center;
  position: relative;
  padding: 18px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mods-step-card .step-badge {
  position: static;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 42, 42, 0.14);
  border: 1px solid var(--dz-border);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(192, 42, 42, 0.18);
  flex-shrink: 0;
}

.mods-step-card h3 {
  margin-bottom: 4px;
}

.mods-step-card p {
  color: var(--muted);
}

.mods-cta-row {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mods-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.resource-card {
  padding: 18px;
  text-align: left;
}

.resource-card .pill {
  margin-top: 10px;
}

.resource-card .code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dz-border);
  font-family: 'Space Grotesk', 'Manrope', monospace;
  color: #f4f5f8;
  margin-top: 10px;
}

.support-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.support-list li {
  color: var(--muted);
}

.resource-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

[data-theme='light'] .resource-card .code-chip {
  background: rgba(0, 0, 0, 0.04);
  color: #0c0f15;
  border-color: rgba(192, 42, 42, 0.16);
}

[data-theme='light'] .support-copy p {
  color: #0c0f15;
}
[data-theme='light'] body.theme-dayz {
  background:
    radial-gradient(90% 75% at 22% 12%, rgba(192, 42, 42, 0.12), transparent 50%),
    radial-gradient(85% 70% at 78% 8%, rgba(255, 255, 255, 0.35), transparent 52%),
    linear-gradient(170deg, #f1f2f7 0%, #dfe2ea 45%, #f6f7fb 100%);
  color: #0c0f15;
}

[data-theme='light'] .hero-dayz::before {
  opacity: 0.55;
  filter: saturate(0.82) brightness(1.05);
}

[data-theme='light'] .hero-dayz .hero-title {
  text-shadow: none;
}

[data-theme='light'] .danger-section .section-header .eyebrow {
  border-color: rgba(192, 42, 42, 0.28);
  color: #c63b2a;
}

[data-theme='light'] .news-dayz .news-list,
[data-theme='light'] .news-dayz .news-content {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(245, 242, 242, 0.88));
  border-color: rgba(192, 42, 42, 0.22);
  color: #0c0f15;
}

[data-theme='light'] .news-dayz .list-group-item {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme='light'] .news-dayz .list-group-item.active {
  background: rgba(192, 42, 42, 0.12);
  border-color: rgba(192, 42, 42, 0.3);
}

[data-theme='light'] .hero-dayz .hero-title,
[data-theme='light'] .hero-dayz .hero-subtitle,
[data-theme='light'] .index-card h3,
[data-theme='light'] .stat-value {
  color: #0c0f15;
}

[data-theme='light'] .smoke-backdrop .smoke-layer {
  mix-blend-mode: multiply;
  opacity: 0.55;
}

[data-theme='light'] .danger-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(245, 242, 242, 0.86));
  border-color: rgba(192, 42, 42, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(192, 42, 42, 0.05);
  color: #0c0f15;
}

[data-theme='light'] .stat-list strong,
[data-theme='light'] .danger-accent {
  color: #c63b2a;
}

