/* =========================================================
   GAMING-BANDE-NORD — Modern DayZ PvE Theme (optimiert)
   - Beide Blöcke (Basis + FX-Pack) zu einem zusammengeführt
   - Doppelte Regeln entfernt, weniger GPU-lastige Effekte
   - Lesbarere Mindestschriftgrößen, bessere Fokus-Zustände
   - Alle Klassennamen unverändert
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #080a09;
  --panel: #101511;
  --text: #edf2ed;
  --muted: #9ca79d;
  --line: rgba(235, 245, 230, .10);
  --line-strong: rgba(167, 201, 87, .34);
  --accent: #b5d76a;
  --accent-2: #d7f29a;
  --danger: #ed7667;

  --fx-glow: rgba(181, 215, 106, .22);
  --fx-glow-strong: rgba(181, 215, 106, .38);

  --shadow: 0 18px 55px rgba(0, 0, 0, .30);
  --shadow-hover: 0 24px 65px rgba(0, 0, 0, .42);
  --radius: 14px;
  --content-width: 1180px;
  --transition: 220ms ease;

  /* Hero-Bild zentral: hier ändern (z. B. "assets/hero-4.svg") */
  --hero-image: url("assets/background.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(96, 126, 55, .105), transparent 32rem),
    radial-gradient(ellipse at 92% 42%, rgba(74, 101, 48, .07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: #0a0d08;
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 9, .86);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.site-header::after {
  display: block;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(181, 215, 106, .35), transparent);
  opacity: .7;
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(181, 215, 106, .13), rgba(181, 215, 106, .025));
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: inset 0 0 18px rgba(181, 215, 106, .035);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .1em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .2em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 25px);
}

nav a {
  position: relative;
  padding: 10px 0;
  color: #cbd3cb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  transition: color var(--transition);
}

nav a:not(.nav-discord)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent-2);
}

nav a:not(.nav-discord):hover::after,
nav a:not(.nav-discord):focus-visible::after {
  transform: scaleX(1);
}

/* Spezifität statt !important */
nav a.nav-discord {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--accent);
  background: rgba(181, 215, 106, .055);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

nav a.nav-discord:hover {
  border-color: var(--accent);
  background: rgba(181, 215, 106, .13);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(760px, calc(100svh - 78px));
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 6, 5, .98) 0%, rgba(4, 6, 5, .84) 39%, rgba(4, 6, 5, .30) 100%),
    linear-gradient(0deg, rgba(4, 6, 5, .82) 0%, transparent 34%, rgba(4, 6, 5, .15) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 73% 42%, rgba(181, 215, 106, .17), transparent 31%),
    linear-gradient(115deg, transparent 10%, rgba(181, 215, 106, .035) 52%, transparent 78%);
  animation: atmosphere-drift 12s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(82px, 10vw, 130px) 0;
  animation: hero-enter .75s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: .8;
}

.hero-content .eyebrow {
  padding: 9px 13px;
  border: 1px solid rgba(181, 215, 106, .22);
  border-radius: 999px;
  background: rgba(11, 15, 12, .55);
  box-shadow: 0 0 28px rgba(181, 215, 106, .055);
}

h1 {
  max-width: 900px;
  margin: 20px 0 25px;
  font-size: clamp(46px, 7.2vw, 94px);
  font-weight: 900;
  line-height: .97;
  letter-spacing: -.055em;
  text-wrap: balance;
}

h1 span {
  color: var(--accent); /* Fallback */
  background: linear-gradient(100deg, #d7f29a 0%, #a8ce5c 45%, #e3f8b2 75%, #b5d76a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: accent-shimmer 8s linear infinite;
}

.hero p {
  max-width: 650px;
  color: #c0c8c0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 34px 0;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn::before {
  position: absolute;
  z-index: -1;
  top: -40%;
  bottom: -40%;
  left: -75%;
  width: 45%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
}

.btn:hover::before {
  left: 140%;
}

.btn-primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b1008;
  box-shadow: 0 8px 25px rgba(181, 215, 106, .12);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(215, 242, 154, .14), 0 0 30px var(--fx-glow), 0 12px 30px rgba(0, 0, 0, .25);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, .23);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(181, 215, 106, .08);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 32px;
  color: #aeb8af;
  font-size: 11px;
  letter-spacing: .09em;
}

.hero-status strong {
  color: #fff;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(181, 215, 106, .58);
  animation: pulse 2.2s ease-in-out infinite;
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(237, 118, 103, .45);
}

/* ---------- Gemeinsame Sektionen ---------- */
.section {
  padding: clamp(76px, 8vw, 108px) 0;
}

/* Rendert Bereiche unterhalb des Sichtfelds erst bei Bedarf */
.section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.section-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.centered {
  text-align: center;
}

.centered p {
  margin-inline: auto;
}

/* ---------- Server-Karten ---------- */
.server-section {
  background: linear-gradient(180deg, #0b0e0c, var(--bg));
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 15px;
}

.server-card,
.feature-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 32, 23, .96), rgba(12, 16, 13, .98));
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.server-card {
  min-height: 195px;
  padding: 27px;
  box-shadow: var(--shadow);
}

.server-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(181, 215, 106, .38), transparent);
  opacity: .7;
}

/* Glanz-Effekt beim Hover */
.server-card::after,
.feature-card::before {
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .035), transparent);
  transform: skewX(-18deg);
  transition: left .75s ease;
}

.server-card:hover::after,
.feature-card:hover::before {
  left: 150%;
}

.server-card:hover,
.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover), 0 0 24px rgba(181, 215, 106, .045);
  transform: translateY(-4px);
}

.card-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.card-label::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 10px var(--fx-glow-strong);
}

.big-status {
  color: var(--accent);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 900;
  line-height: 1.2;
}

.player-number {
  font-size: clamp(40px, 4vw, 53px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.player-number small {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.card-value {
  font-size: 22px;
  font-weight: 850;
}

.ip-value {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 750;
}

.server-card p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.progress {
  height: 5px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 99px;
  background: rgba(255, 255, 255, .065);
}

.progress span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #8eaf48, var(--accent-2));
  box-shadow: 0 0 12px rgba(181, 215, 106, .2);
  transition: width .45s ease;
}

.progress span::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  animation: progress-glint 2.8s ease-in-out infinite;
}

.copy-btn {
  margin-top: 17px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(181, 215, 106, .04);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.copy-btn:hover {
  background: var(--accent);
  color: #0b1008;
}

.copy-feedback {
  display: block;
  margin-top: 7px;
  color: var(--accent);
  font-size: 11px;
}

/* ---------- Warum wir ---------- */
.why-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(181, 215, 106, .045), transparent 55%),
    var(--panel);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.why-grid article,
.rules-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.why-grid article {
  padding: 28px 25px;
  background: rgba(255, 255, 255, .018);
}

.why-grid article:hover {
  border-color: var(--line-strong);
  background: rgba(181, 215, 106, .035);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  transform: translateY(-3px);
}

.why-icon {
  color: var(--accent);
  font-size: 27px;
}

.why-grid h3,
.feature-card h3,
.rules-grid h3 {
  margin: 13px 0 10px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.5;
}

.why-grid p,
.feature-card p,
.rules-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 190px;
  padding: 25px;
}

.feature-card::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(181, 215, 106, .07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.feature-icon {
  font-size: 27px;
  line-height: 1.2;
}

/* ---------- Karte ---------- */
.map-section {
  background: #0b0e0c;
}

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.map-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(181, 215, 106, .13);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.map-card img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  transition: transform .65s ease;
}

.map-card:hover img {
  transform: scale(1.015);
}

.map-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(transparent, rgba(0, 0, 0, .93));
}

.map-caption strong {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 850;
  letter-spacing: -.02em;
}

.map-caption span {
  color: #c1c9c1;
  font-size: 13px;
}

/* ---------- Updates ---------- */
.update-list {
  display: grid;
  gap: 14px;
}

.update-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 25px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(21, 28, 22, .92), rgba(14, 18, 15, .96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
  transition: border-color var(--transition);
}

.update-card::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: .8;
}

.update-card:hover {
  border-color: var(--line-strong);
}

.update-version {
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.update-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .06em;
}

.update-card p,
.update-card li {
  color: var(--muted);
  font-size: 13px;
}

.update-card ul {
  margin: 0;
  padding-left: 19px;
}

.update-card li + li {
  margin-top: 5px;
}

/* ---------- Regeln ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rules-grid article {
  padding: 25px;
  background: var(--panel);
}

.rules-grid article:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  transform: translateY(-3px);
}

.rules-grid b {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

/* ---------- Discord CTA ---------- */
.discord-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 7vw, 82px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 12% 50%, rgba(181, 215, 106, .09), transparent 48%),
    linear-gradient(110deg, #171d15, #0d100e);
}

.discord-cta::before {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(181, 215, 106, .08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 35px rgba(181, 215, 106, .018), 0 0 0 75px rgba(181, 215, 106, .012);
  pointer-events: none;
}

.discord-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.discord-inner h2 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.discord-inner p {
  max-width: 600px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Footer ---------- */
footer {
  padding: 32px 0;
  background: #060806;
}

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

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong {
  font-size: 12px;
  letter-spacing: .1em;
}

.footer-inner span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- Animationen ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.28); }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes atmosphere-drift {
  from { opacity: .72; transform: translate3d(-.5%, 0, 0); }
  to { opacity: 1; transform: translate3d(.5%, 0, 0); }
}

@keyframes accent-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes progress-glint {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

@keyframes section-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Einblenden beim Scrollen (nur in Browsern mit Scroll-Timeline;
   andere zeigen die Inhalte einfach sofort an) */
@supports (animation-timeline: view()) {
  .section-heading,
  .server-grid,
  .why-grid,
  .feature-grid,
  .map-card,
  .update-list,
  .rules-grid {
    animation: section-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .feature-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    gap: 12px;
  }

  .why-grid article {
    padding: 23px 19px;
  }

  nav {
    gap: 14px;
  }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(100% - 30px, var(--content-width));
  }

  .nav-wrap {
    min-height: 70px;
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand strong {
    font-size: 11px;
  }

  .brand small {
    letter-spacing: .15em;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 15px;
    left: 15px;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    background: rgba(11, 15, 12, .98);
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 13px 10px;
    border-radius: 6px;
  }

  nav a:hover {
    background: rgba(181, 215, 106, .06);
  }

  nav a:not(.nav-discord)::after {
    display: none;
  }

  nav a.nav-discord {
    margin-top: 5px;
    text-align: center;
  }

  .hero {
    min-height: 620px;
    min-height: min(720px, calc(100svh - 70px));
    background-position: 58% center;
  }

  .hero-content {
    padding: 76px 0;
  }

  h1 {
    font-size: clamp(43px, 12vw, 68px);
  }

  .hero p {
    max-width: 560px;
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin: 28px 0;
  }

  .hero-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .feature-grid,
  .why-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .server-card {
    min-height: 0;
    padding: 24px;
  }

  .why-grid article,
  .feature-card,
  .rules-grid article {
    padding: 23px;
  }

  .feature-card {
    min-height: 0;
  }

  .update-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 23px;
  }

  .update-version {
    font-size: 25px;
  }

  .map-caption {
    position: relative;
    padding: 20px;
    background: #101410;
  }

  .discord-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .discord-inner .btn {
    width: 100%;
  }

  .footer-links {
    gap: 12px 18px;
  }
}

/* ---------- Sehr kleine Smartphones ---------- */
@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand strong {
    font-size: 10px;
    letter-spacing: .07em;
  }

  .hero {
    min-height: 590px;
  }

  h1 {
    font-size: 42px;
  }

  .section-heading h2 {
    font-size: 29px;
  }
}

/* ---------- Touch-Geräte: keine Hover-Effekte ---------- */
@media (hover: none) {
  .server-card:hover,
  .feature-card:hover,
  .rules-grid article:hover,
  .why-grid article:hover {
    transform: none;
  }

  .btn::before,
  .server-card::after,
  .feature-card::before {
    display: none;
  }
}

/* ---------- Reduzierte Bewegung (einmal, zentral) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* ---------- Ergänzungen (ersetzen Inline-Styles im HTML) ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 7px;
  background: var(--accent);
  color: #0b1008;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.banner {
  margin-top: 30px;
  text-align: center;
}

.banner img {
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.map-frame {
  display: block;
  width: 100%;
  height: clamp(380px, 70vh, 600px);
  border: 0;
  background: #111;
}

/* Beschriftung unter der Karte statt über ihr */
.map-card .map-caption {
  position: relative;
  border-top: 1px solid var(--line);
  background: #101410;
}

.map-actions {
  margin-top: 10px;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
}


/* =========================================================
   EFFEKT-PAKET 2 — mehr Atmosphäre & Interaktion
   Nur CSS, kein HTML/JS nötig. Jeder Abschnitt ist einzeln
   löschbar. Respektiert prefers-reduced-motion (siehe oben)
   und Touch-Geräte (hover: hover).
   ========================================================= */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #3a4d24 #0b0e0c;
}

.btn:active {
  transform: translateY(0) scale(.98);
}

/* ---------- Hero: Staub/Glut, Scanlines, Vignette ---------- */
.hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: calc(100% + 400px);
  content: "";
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle at 30px 70px, rgba(215, 242, 154, .9) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 120px 310px, rgba(215, 242, 154, .7) 0 1px, transparent 2px),
    radial-gradient(circle at 210px 150px, rgba(255, 255, 255, .6) 0 1px, transparent 2px),
    radial-gradient(circle at 290px 40px, rgba(181, 215, 106, .9) 0 1.6px, transparent 3px),
    radial-gradient(circle at 340px 260px, rgba(215, 242, 154, .6) 0 1px, transparent 2px),
    radial-gradient(circle at 70px 210px, rgba(255, 255, 255, .45) 0 .8px, transparent 1.8px),
    radial-gradient(circle at 380px 370px, rgba(181, 215, 106, .8) 0 1.3px, transparent 2.6px),
    radial-gradient(circle at 180px 380px, rgba(255, 255, 255, .5) 0 .8px, transparent 1.8px);
  background-size: 400px 400px;
  animation: dust-rise 30s linear infinite;
  will-change: transform;
}

.hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0, transparent 140px),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 3px);
}

/* Radar-Ping am Status-Punkt */
.status-dot {
  position: relative;
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}

.status-dot.offline::after {
  border-color: var(--danger);
}

/* Primärer Hero-Button „atmet" */
.hero-actions .btn-primary {
  animation: btn-breathe 3.2s ease-in-out infinite;
}

.hero-actions .btn-primary:hover {
  animation: none;
}

/* Logo leuchtet dezent */
.brand-mark {
  animation: mark-glow 6s ease-in-out infinite;
}

/* ---------- Überschriften: leuchtende Linie ---------- */
.section-heading h2::after {
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--fx-glow-strong);
  transform-origin: left center;
}

.section-heading.centered h2::after {
  margin-inline: auto;
  transform-origin: center;
}

/* ---------- Icons ---------- */
.feature-icon,
.why-icon {
  display: inline-block;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), filter .35s ease;
}

.why-icon {
  animation: icon-float 5s ease-in-out infinite;
}

.why-grid article:nth-child(2) .why-icon { animation-delay: -1.6s; }
.why-grid article:nth-child(3) .why-icon { animation-delay: -3.2s; }

.ip-value {
  color: var(--accent-2);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .02em;
}

.update-version {
  animation: live-glow 2.4s ease-in-out infinite;
}

/* ---------- Karte: taktische Eck-Markierungen ---------- */
.map-card::before {
  position: absolute;
  z-index: 2;
  inset: 12px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 28px no-repeat;
  filter: drop-shadow(0 0 6px var(--fx-glow-strong));
  animation: hud-blink 4s ease-in-out infinite;
}

/* ---------- Discord-CTA: pulsierende Ringe ---------- */
.discord-cta::before {
  animation: ring-breathe 7s ease-in-out infinite alternate;
}

.discord-cta::after {
  position: absolute;
  z-index: -1;
  bottom: -170px;
  left: -110px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(181, 215, 106, .07);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 30px rgba(181, 215, 106, .015), 0 0 0 64px rgba(181, 215, 106, .01);
  pointer-events: none;
  animation: ring-breathe 9s ease-in-out infinite alternate-reverse;
}

/* ---------- Hover-Effekte (nur Geräte mit Maus) ---------- */
@media (hover: hover) {
  /* Rotierender Leucht-Rand */
  .server-card:hover,
  .feature-card:hover {
    border-color: transparent;
    background:
      linear-gradient(145deg, #18201a, #0c100d) padding-box,
      conic-gradient(from var(--angle), transparent 0 55%, var(--accent) 80%, var(--accent-2) 90%, transparent) border-box;
    animation: spin-angle 3.2s linear infinite;
  }

  .why-grid article:hover,
  .rules-grid article:hover {
    border-color: transparent;
    background:
      linear-gradient(#121813, #121813) padding-box,
      conic-gradient(from var(--angle), transparent 0 55%, var(--accent) 80%, var(--accent-2) 90%, transparent) border-box;
    animation: spin-angle 3.2s linear infinite;
  }

  .feature-card:hover .feature-icon,
  .why-grid article:hover .why-icon {
    transform: translateY(-4px) scale(1.18) rotate(-6deg);
    filter: drop-shadow(0 0 10px var(--fx-glow-strong));
  }

  .rules-grid article:hover b {
    text-shadow: 0 0 14px var(--fx-glow-strong);
  }

  .section-heading:hover h2::after {
    width: 110px;
    transition: width .35s ease;
  }
}

/* ---------- Scroll-Effekte (Chrome/Edge/Safari neu; sonst ohne) ---------- */
@supports (animation-timeline: view()) {
  /* Fortschrittsbalken oben */
  body::before {
    position: fixed;
    z-index: 300;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px var(--fx-glow-strong);
    transform: scaleX(0);
    transform-origin: left;
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }

  /* Karten einzeln einblenden statt ganzer Raster (nutzt `translate`,
     damit Hover-`transform` weiter funktioniert) */
  .server-grid,
  .why-grid,
  .feature-grid,
  .update-list,
  .rules-grid {
    animation: none;
  }

  .server-card,
  .feature-card,
  .why-grid article,
  .rules-grid article,
  .update-card {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }

  .server-card:nth-child(4n + 2),
  .feature-card:nth-child(4n + 2),
  .why-grid article:nth-child(4n + 2),
  .rules-grid article:nth-child(4n + 2) { animation-range: entry 6% entry 51%; }

  .server-card:nth-child(4n + 3),
  .feature-card:nth-child(4n + 3),
  .why-grid article:nth-child(4n + 3),
  .rules-grid article:nth-child(4n + 3) { animation-range: entry 12% entry 57%; }

  .server-card:nth-child(4n + 4),
  .feature-card:nth-child(4n + 4),
  .rules-grid article:nth-child(4n + 4) { animation-range: entry 18% entry 63%; }

  /* Überschriften-Linie wächst beim Einscrollen */
  .section-heading h2::after {
    animation: line-grow linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 70%;
  }
}

/* Auf Geräten mit Maus darf der Hover-Rand die Einblendung ersetzen */
@media (hover: hover) {
  @supports (animation-timeline: view()) {
    .server-card:hover,
    .feature-card:hover,
    .why-grid article:hover,
    .rules-grid article:hover {
      animation: spin-angle 3.2s linear infinite;
    }
  }
}

/* ---------- Keyframes ---------- */
@keyframes dust-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-400px); }
}

@keyframes ping {
  0%   { opacity: .8; transform: scale(.8); }
  70%, 100% { opacity: 0; transform: scale(2.4); }
}

@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 8px 25px rgba(181, 215, 106, .12); }
  50%      { box-shadow: 0 0 0 1px rgba(215, 242, 154, .12), 0 0 34px rgba(181, 215, 106, .32), 0 8px 25px rgba(181, 215, 106, .12); }
}

@keyframes mark-glow {
  0%, 100% { box-shadow: inset 0 0 18px rgba(181, 215, 106, .035), 0 0 0 rgba(181, 215, 106, 0); }
  50%      { box-shadow: inset 0 0 18px rgba(181, 215, 106, .08), 0 0 18px rgba(181, 215, 106, .22); }
}

@keyframes icon-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

@keyframes live-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(181, 215, 106, 0); }
  50%      { text-shadow: 0 0 22px rgba(181, 215, 106, .55); }
}

@keyframes hud-blink {
  0%, 100% { opacity: .85; }
  50%      { opacity: .35; }
}

@keyframes ring-breathe {
  from { opacity: .55; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.14); }
}

@keyframes spin-angle {
  to { --angle: 360deg; }
}

@keyframes scroll-progress {
  to { transform: scaleX(1); }
}

@keyframes reveal-up {
  from { opacity: 0; translate: 0 28px; scale: .975; }
  to   { opacity: 1; translate: 0 0;    scale: 1; }
}

@keyframes line-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
