/* EntenGames (Stand 15.11.2026). Hell, Blau als Hauptfarbe, Navy aus dem Logo für Schrift.
   Joshi: kein Darkmode, kein grelles Türkis, "mehr high quality".
   Schrift: Sora (Überschriften, Knöpfe, Menü, Preise), Figtree (Fließtext, groß), Pixelschrift nur im Adressfeld und bei Befehlen wie im Spiel.
   Weiße Karten mit feiner Kante und runden Ecken, Knöpfe mit fester Unterkante. Keine Verläufe, keine Transparenz, kein Grau. */

@font-face { font-family: "Sora"; src: url("fonts/sora-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Pixel"; src: url("fonts/minecraft-regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
/* Ergänzung im selben Pixelraster: ä, Ö, ß und € fehlen in der Originalschrift */
@font-face { font-family: "Pixel"; src: url("fonts/eg-pixel-extra-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; unicode-range: U+00D6, U+00DF, U+00E4, U+20AC; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f3f7ff;
  --bg-deep: #e5eefc;
  --card: #ffffff;
  --line: #d4e1f4;
  --line-strong: #b7cbea;
  --text: #111b33;
  --primary: #1f6fd1;
  --primary-hover: #2b7ce0;
  --primary-dark: #154f99;
  --primary-soft: #e8f0fd;
  --primary-line: #c3d6f2;
  --accent: #1f6fd1;
  --yellow: #ffd60a;
  --green: #2fb344;
  --green-dark: #1f7d2e;
  --red: #c8281c;
  --shadow-card: 0 1px 0 #d4e1f4, 0 18px 36px -24px #8eaad6;
  --display: "Sora", "Figtree", system-ui, sans-serif;
  --pixel: "Pixel", "Figtree", system-ui, sans-serif;
  /* Design System v1 (16.11.2026), Quelle: website-server/DESIGN.md und Figma "EntenGames Design System" */
  --on-accent: #ffffff;
  --discord: #5865f2;
  --discord-strong: #4752c4;
  --discord-edge: #3b43b8;
  --shadow-color: #0f2346;
  --shadow-raised: 0 24px 44px -26px var(--shadow-color);
  --edge: 0 4px 0 var(--primary-dark);
  --edge-inset: inset 0 -3px 0 var(--primary-dark);
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-full: 999px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --fs-sm: 16px;
  --fs-ui: 17px;
  --fs-md: 18px;
  --fs-text: 19px;
  --fs-title: 20px;
  --fs-h3: 24px;
  --fs-h3-lg: 30px;
  --fs-num: 32px;
  --fs-h2: clamp(30px, 6.6vw, 46px);
  --fs-h1: clamp(32px, 8vw, 52px);
  --fs-display: clamp(42px, 11.5vw, 80px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-text);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Bausteine ---------- */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.slot {
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-md);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Seiten- und Abschnittstitel: Großbuchstaben, ein Akzentwort in Blau (.gold). Kleine Zwischenüberschriften normal. */
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.025em; text-transform: uppercase; }
h1, h2 { -webkit-hyphens: manual; hyphens: manual; }
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.025em; text-transform: uppercase; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
.liste h2, .wiki-area h2, .wiki-section h2, .legal h2, .kauf-kopf h2, .shop-danke h2, .formular h2, .formular-ergebnis h2,
.card-title, .pf-titel, .profil-plaetze h2, .buy-dialog h2, .item-text h2, .discord-head h2 { text-transform: none; letter-spacing: -0.01em; line-height: 1.15; }
.pf-kopf h1, .profil-kopf h1 { text-transform: none; }
.gold { color: var(--accent); }

/* Knöpfe mit fester Unterkante */
.btn {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 26px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 0 var(--primary-dark);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.12s, transform 0.08s, box-shadow 0.08s;
}
.btn:hover { background: var(--primary-hover); color: #ffffff; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--primary-dark); }
.btn:disabled { background: #cbdaf2; color: #1b3f6e; box-shadow: none; transform: none; cursor: progress; }
.btn[data-copied="true"] { background: var(--green); color: #ffffff; box-shadow: 0 4px 0 var(--green-dark); }

.btn-dark {
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--line-strong), 0 4px 0 var(--line);
}
.btn-dark:hover { background: var(--primary-soft); color: var(--text); }
.btn-dark:active { box-shadow: inset 0 0 0 2px var(--line-strong), 0 1px 0 var(--line); }
.btn-small { font-size: var(--fs-sm); min-height: 46px; padding: 8px 18px 10px; }

/* ---------- Kopfzeile ---------- */

.site-head { position: relative; z-index: 2; background: #ffffff; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.brand img { width: auto; height: 60px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav:not(.nav-main) a:not(.status) {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--r-sm);
}
.nav:not(.nav-main) a:not(.status):hover { background: var(--primary-soft); color: var(--text); }
.nav a[aria-current="page"] { color: var(--primary); }

/* Spielerzahl wie in der Serverliste: fünf Signalbalken, große Zahl */
.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px 16px 6px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
}
.status:hover { background: var(--primary-soft); color: var(--text); }
.status[data-state="unknown"] { display: none; }
.status b { font-weight: 800; font-size: var(--fs-title); }
.ping { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.ping i { display: block; width: 5px; border-radius: 2px; background: var(--line-strong); }
.ping i:nth-child(1) { height: 6px; }
.ping i:nth-child(2) { height: 9px; }
.ping i:nth-child(3) { height: 12px; }
.ping i:nth-child(4) { height: 16px; }
.ping i:nth-child(5) { height: 20px; }
.status[data-state="online"] .ping i { background: var(--green); }
.status[data-state="offline"] .ping i { background: var(--red); }

/* Neue Kopfzeile (15.11.2026, nach MixelPixel und Landania): Menü als Kacheln mit Symbolen,
   Startpaket blau hervorgehoben, rechts die IP zum Kopieren mit Spielerzahl.
   Unter 1000 px klappt das Menü hinter einen Knopf. Aktive Seite hellblau (Joshi: kein Schwarz auf Gelb). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-head:has(.nav-main) { position: sticky; top: 0; z-index: 30; }
html:has(.nav-main) { scroll-padding-top: 104px; }
.site-head:has(.nav-main) .brand { flex: none; }
.nav-main { gap: 4px; }
.nav-main a.nav-mobil { display: none; }
.head-discord { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; color: #ffffff; background: #5865f2; border-radius: var(--r-md); box-shadow: inset 0 -3px 0 #3b43b8; }
.head-discord:hover { color: #ffffff; background: #6a76ff; }
.head-discord .ico { width: 24px; height: 24px; }
.head-discord:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.nav-main a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 13px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.nav-main .ico { flex: none; width: 19px; height: 19px; }
.nav-main a:hover { background: var(--primary-soft); color: var(--text); }
.nav-main a[aria-current] { color: var(--primary-dark); background: var(--primary-soft); box-shadow: inset 0 -3px 0 var(--primary-line); }
.nav-main a.nav-cta { color: #ffffff; background: var(--primary); box-shadow: inset 0 -3px 0 var(--primary-dark); }
.nav-main a.nav-cta:hover { background: var(--primary-hover); color: #ffffff; }
.nav-main a.nav-cta[aria-current] { color: #ffffff; background: var(--primary-dark); box-shadow: inset 0 -3px 0 #0d3f7d; }
.nav-badge { padding: 3px 7px 4px; font-size: var(--fs-sm); font-weight: 700; line-height: 1; color: #ffffff; background: #5865f2; border-radius: var(--r-xs); }

.head-tools { display: flex; align-items: center; gap: 8px; }
.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 14px 6px 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  background: #ffffff;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
}
.ip-pill:hover { background: var(--primary-soft); border-color: var(--primary-line); }
.ip-pill:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ip-play { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #ffffff; background: var(--green); border-radius: var(--r-xs); box-shadow: inset 0 -2px 0 var(--green-dark); }
.ip-play svg { width: 13px; height: 13px; margin-left: 2px; }
.ip-text { font-size: var(--fs-ui); letter-spacing: -0.01em; }
.ip-pill[data-copied="true"] .ip-text { color: var(--green-dark); }
.ip-pill .status { min-height: 0; padding: 0 0 0 11px; gap: 8px; background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; }
.ip-pill .status b { font-size: var(--fs-md); }
.ip-pill .status-word, .ip-pill .status[data-state="online"] .status-label { display: none; }
.ip-pill .ping { height: 16px; gap: 2px; }
.ip-pill .ping i { width: 4px; }
.ip-pill .ping i:nth-child(1) { height: 5px; }
.ip-pill .ping i:nth-child(2) { height: 8px; }
.ip-pill .ping i:nth-child(3) { height: 10px; }
.ip-pill .ping i:nth-child(4) { height: 13px; }
.ip-pill .ping i:nth-child(5) { height: 16px; }

.menu-btn {
  display: none;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  padding: 0;
  background: var(--text);
  border: 0;
  border-radius: var(--r-md);
  box-shadow: inset 0 -3px 0 #000000;
  cursor: pointer;
}
.menu-btn span { display: block; width: 22px; height: 3px; background: #ffffff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

@media (max-width: 999px) {
  .menu-btn { display: inline-flex; }
  /* Handy und Tablet: nur Play-Symbol und Spielerzahl, die Adresse steht groß auf der Seite. Nach dem Kopieren kurz "Kopiert!". */
  .ip-pill .ip-text { display: none; }
  .ip-pill[data-copied] .ip-text { display: inline; }
  .head-discord { display: none; }
  .nav-main a.nav-mobil { display: flex; }
  .site-head:has(.nav-main) .topbar { position: relative; }
  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-raised);
  }
  .site-head.menu-offen .nav-main { display: flex; }
  .nav-main a { min-height: 54px; padding: 0 14px; font-size: var(--fs-md); gap: 12px; }
  .nav-main .ico { width: 22px; height: 22px; }
  .nav-main a.nav-cta { justify-content: center; margin-top: 8px; min-height: 56px; }
  .nav-badge { margin-left: auto; }
}

@media (max-width: 440px) {
  .site-head:has(.nav-main) .brand img { height: 50px; }
  .ip-pill { gap: 8px; padding: 6px 10px; }
  .ip-pill .status { padding-left: 9px; }
  .ip-pill .status-label { display: none; }
  .head-tools { gap: 6px; }
}

/* ---------- Startbereich ---------- */

.hero { position: relative; }
.hero-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 40%; }
.hero-content { position: relative; z-index: 1; margin-top: -48px; }
.hero-panel { max-width: 600px; padding: 28px; }
.hero h1 { margin-bottom: 14px; }
.lead { margin: 0 0 24px; font-size: var(--fs-text); }

/* Java/Bedrock */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.tab {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-text);
  line-height: 1.15;
  color: var(--text);
  background: #ffffff;
  border: 0;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  min-height: 70px;
  padding: 10px 8px 12px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.12s;
}
.tab:hover { background: var(--primary-soft); }
.tab[aria-selected="true"] { background: var(--primary); color: #ffffff; box-shadow: 0 4px 0 var(--primary-dark); }
.tab-hint { display: block; font-family: "Figtree", sans-serif; font-weight: 600; font-size: var(--fs-sm); margin-top: 4px; }

/* Eingabefeld wie der Chat im Spiel */
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 6px 16px 8px;
  background: var(--primary-soft);
  border: 2px solid var(--primary-line);
  border-radius: var(--r-md);
  font-family: var(--pixel);
  font-size: var(--fs-h3);
  color: var(--text);
  user-select: all;
  overflow-wrap: anywhere;
}

.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 3px 0 12px 48px; min-height: 40px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--r-sm);
}
.steps strong { font-weight: 800; }
.steps .btn { margin-top: 10px; }
code, kbd {
  font-family: var(--pixel);
  font-size: 0.95em;
  color: var(--text);
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-xs);
  padding: 0 6px 2px;
  white-space: nowrap;
}

/* Grasskante */
.ground {
  height: 40px;
  background-color: #6b3f1d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='48' shape-rendering='crispEdges'%3E%3Crect width='64' height='48' fill='%236b3f1d'/%3E%3Crect width='64' height='12' fill='%2363c23a'/%3E%3Crect y='12' width='8' height='8' fill='%2363c23a'/%3E%3Crect x='24' y='12' width='8' height='8' fill='%2363c23a'/%3E%3Crect x='32' y='12' width='8' height='4' fill='%2363c23a'/%3E%3Crect x='48' y='12' width='8' height='8' fill='%2363c23a'/%3E%3Crect x='8' y='0' width='8' height='4' fill='%23419a21'/%3E%3Crect x='40' y='0' width='8' height='4' fill='%23419a21'/%3E%3Crect x='12' y='28' width='8' height='8' fill='%23522d12'/%3E%3Crect x='44' y='34' width='8' height='8' fill='%23522d12'/%3E%3Crect x='28' y='40' width='4' height='4' fill='%23895429'/%3E%3Crect x='56' y='24' width='4' height='4' fill='%23895429'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 54px 40px;
  margin-top: 48px;
}

/* ---------- Abschnitte ---------- */

.section { padding: 64px 0; }
.section-deep { background: var(--bg-deep); }
.section-head { margin-bottom: 28px; }
.section-head p { margin-top: 12px; max-width: 36em; font-size: var(--fs-title); }

.features { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .slot, .perk .slot { flex: none; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; }
.feature .slot img, .perk .slot img { width: 68px; height: 68px; }
.feature h3 { margin: 6px 0 8px; }

/* Startpaket-Hinweis */
.offer { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.offer h2 { margin-bottom: 18px; }
.offer-items { display: flex; gap: 14px 26px; flex-wrap: wrap; }
.offer-item { display: flex; align-items: center; gap: 12px; }
.offer-item .slot { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex: none; }
.offer-item img { width: 50px; height: 50px; }
.offer-item span { font-family: var(--display); font-weight: 700; font-size: var(--fs-text); line-height: 1.15; }

/* Früher gespielt */
.back { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.back h2 { margin-bottom: 16px; }
.back p { margin-bottom: 14px; }
.back ul { margin: 0 0 18px; padding: 0; list-style: none; }
.back li { position: relative; padding: 4px 0 4px 30px; }
.back li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 12px; border-radius: 3px; background: var(--yellow); box-shadow: inset 0 0 0 2px var(--text); }
.shot { padding: 10px; margin: 0; }
.shot img { width: 100%; aspect-ratio: 896 / 576; object-fit: cover; border-radius: var(--r-sm); }

/* Häufige Fragen: aufklappbar, ganze Zeile tippbar */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.25;
  border-radius: var(--r-lg);
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--primary); }
.faq details p { padding: 0 20px 20px; }

.more-link { margin-top: 24px; }

/* Marken- und Kurzwörter in Überschriften nicht trennen ("Dis-cord", "Start-paket", "Ci-tyBuild") */
.gold, .discord-blue, .keep { -webkit-hyphens: manual; hyphens: manual; }

/* ---------- Startpaket-Seite ---------- */

.code-label { display: block; margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: var(--fs-text); }
#code-row[data-state="loading"] .field,
#code-row[data-state="error"] .field { font-family: "Figtree", sans-serif; font-size: var(--fs-text); font-weight: 600; }
#code-row[data-state="error"] .field { color: var(--red); }
.code-error { margin: 12px 0 0; padding: 12px 16px; background: #ffe9e6; border: 2px solid var(--red); border-radius: var(--r-md); }
.btn-link {
  font: inherit;
  font-weight: 800;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0 4px;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.btn-link:hover { color: var(--primary); }
.card-title { margin: 30px 0 16px; }

.perks { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; }
.perk { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.perk dt { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0 8px; }
.perk dd { margin: 0; }

/* Discord */
.discord { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.discord-head { display: flex; gap: 18px; align-items: center; }
.discord-head h2 { margin-bottom: 6px; }
.discord-logo { flex: none; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; background: #5865f2; border: 0; border-radius: var(--r-lg); }
.discord-blue { color: #4752c4; }
.discord-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.discord-stat { font-family: var(--display); font-weight: 700; font-size: var(--fs-md); display: flex; align-items: center; gap: 10px; }
.discord-stat b { font-weight: 800; font-size: var(--fs-num); letter-spacing: -0.02em; }
.discord-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none; }
.btn-discord { background: #5865f2; color: #ffffff; box-shadow: 0 4px 0 #3b43b8; }
.btn-discord:hover { background: #6a76ff; color: #ffffff; }
.btn-discord:active { box-shadow: 0 1px 0 #3b43b8; }

/* ---------- Shop ---------- */

.page-head { padding: 56px 0 8px; }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { max-width: 34em; margin-bottom: 0; }
.shop-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.shop-jump .btn { font-size: var(--fs-sm); min-height: 46px; padding: 8px 18px 10px; }

.price { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3-lg); line-height: 1.1; letter-spacing: -0.02em; }
.price span { display: block; font-family: "Figtree", sans-serif; font-weight: 600; font-size: var(--fs-ui); letter-spacing: 0; margin-top: 4px; }
.item .price span, .item-buy .price span { display: inline; margin: 0 0 0 6px; }

.ranks { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rank { display: flex; flex-direction: column; gap: 14px; }
.rank-name { align-self: flex-start; font-size: var(--fs-title); letter-spacing: -0.01em; color: var(--text); background: var(--rank); border-radius: var(--r-sm); padding: 5px 14px 7px; }
.rank-premium { --rank: #ffb121; }
.rank-hero { --rank: #ffe14d; }
.rank-ultimateduck { --rank: #f28bf2; }
.rank-legente { --rank: #66e3f2; }
.perk-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.perk-list li { position: relative; padding-left: 28px; }
.perk-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 14px; border-radius: 4px; background: var(--green); }
.rank .buy, .item .buy { width: 100%; margin-top: auto; }

.shop-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.item { display: flex; flex-direction: column; gap: 12px; }
.item .slot { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; flex: none; }
.item .slot img { width: 70px; height: 70px; }
.crates .buy { margin-top: 0; }
.sub-head { margin: 52px 0 22px; }
.sub-head h3 { font-size: var(--fs-h3); }
.sub-head p { margin-top: 10px; max-width: 36em; }
@media (min-width: 720px) and (max-width: 999px) {
  .crates > .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.crate-info summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.crate-info summary::-webkit-details-marker { display: none; }
.crate-info summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--primary-soft); border: 1px solid var(--primary-line); font-weight: 800; }
.crate-info[open] summary::before { content: "-"; }
.tier { margin-top: 14px; }
.tier-head { font-family: var(--display); font-weight: 700; font-size: var(--fs-sm); display: flex; align-items: center; gap: 10px; }
.tier-head::before { content: ""; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--text); background: var(--tier); flex: none; }
.tier-head span { margin-left: auto; }
.tier-0 { --tier: #ffffff; }
.tier-1 { --tier: #55e65b; }
.tier-2 { --tier: #5fd8f0; }
.tier-3 { --tier: #e266e2; }
.tier-4 { --tier: #ffaa00; }
.tier ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tier li { font-size: var(--fs-sm); font-weight: 600; padding: 3px 10px 4px; background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: var(--r-sm); }
.tier-note { margin-top: 14px; font-size: var(--fs-ui); }

.item-wide { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.item-wide .item-text h2 { margin-bottom: 8px; }
.item-buy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.item-buy .btn { flex: 1 1 200px; }

/* Kaufen-Fenster */
.buy-dialog { width: calc(100% - 32px); max-width: 540px; color: var(--text); padding: 26px; }
.buy-dialog::backdrop { background: #dbe6f8; }
.buy-dialog h2 { font-size: var(--fs-h3); }
.buy-price { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); margin: 6px 0 20px; }
.buy-dialog .field { width: 100%; margin-bottom: 14px; font-family: "Figtree", sans-serif; font-weight: 600; font-size: var(--fs-title); background: #ffffff; user-select: text; }
.buy-dialog .field:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.buy-error { margin: 0 0 14px; padding: 12px 16px; background: #ffe9e6; border: 2px solid var(--red); border-radius: var(--r-md); }
.buy-note { margin: 2px 0 20px; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-actions .btn { flex: 1 1 200px; }

/* ---------- Fußzeile ---------- */

.footer { background: #ffffff; border-top: 1px solid var(--line); padding: 28px 0; font-size: var(--fs-ui); }
.footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: center; }
.footer-logo { grid-row: 1 / span 2; width: auto; height: 72px; }
.footer .wrap > span { grid-column: 2; grid-row: 2; }
.footer .wrap > nav { grid-column: 2; grid-row: 1; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--primary); }
.footer nav { display: flex; gap: 0 20px; flex-wrap: wrap; }
.footer nav a { display: inline-flex; min-height: 48px; align-items: center; font-family: var(--display); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }

/* ---------- Rechtstexte ---------- */

.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 860px; }
.legal h1 { margin-bottom: 14px; }
.legal h2 { font-size: var(--fs-h3); margin: 30px 0 10px; }
.legal p { margin-bottom: 12px; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0; }
.legal dt { font-weight: 800; margin-top: 12px; }
.legal dd { margin: 0; }
.legal a { overflow-wrap: anywhere; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 14px; background: var(--primary); color: #ffffff; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }
.skip:hover { color: #ffffff; }

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 720px) {

  .features { grid-template-columns: 1fr 1fr; gap: 18px; }
  .perks { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ranks { grid-template-columns: 1fr 1fr; gap: 18px; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .perk { flex-direction: column; }
  .legal dl { grid-template-columns: max-content 1fr; }
  .legal dt { margin-top: 0; }
}

@media (min-width: 1000px) {
  .hero { display: grid; }
  .hero > .hero-image, .hero > .hero-content { grid-area: 1 / 1; }
  .hero-image { aspect-ratio: auto; height: 100%; min-height: clamp(620px, 50vw, 760px); object-position: 60% 45%; }
  .hero-content { align-self: start; margin-top: 0; padding-top: 56px; padding-bottom: 56px; }
  .hero-panel { width: 600px; padding: 32px; box-shadow: 0 1px 0 #d4e1f4, var(--shadow-raised); }
  .topbar { min-height: 88px; }
  .brand img { height: 68px; }
  .section { padding: 80px 0; }
  .ground { margin-top: 0; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature { flex-direction: column; }
  .offer { grid-template-columns: 1fr auto; }
  .back { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .discord { grid-template-columns: 1fr auto; gap: 18px 36px; }
  .discord-stats { grid-column: 1; }
  .btn-discord { grid-column: 2; grid-row: 1 / span 2; }
  .ranks { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .abo { grid-template-columns: 1fr 1fr; }
  .item-wide { grid-template-columns: auto 1fr auto; }
  .item-buy { grid-column: auto; }
  .item-buy .btn { flex: none; }
}

/* Zwischen Handy und Desktop passen nicht alle Menüpunkte neben die Spielerzahl: Nebenpunkte ausblenden */
@media (max-width: 899px) {
  .nav:not(.nav-main) a.nav-hide { display: none; }
}

@media (max-width: 680px) {
  .nav:not(.nav-main) a:not(.status) { display: none; }
  .status-word { display: none; }
}

@media (max-width: 520px) {
  .brand img { height: 56px; }
  .footer .wrap { grid-template-columns: 1fr; gap: 8px; }
  .footer-logo, .footer .wrap > span, .footer .wrap > nav { grid-column: auto; grid-row: auto; }
  .footer-logo { height: 64px; }
  .panel { padding: 20px; }
  .hero-panel { padding: 22px; }
  .field-row .btn { flex: 1 1 100%; }
  .feature .slot, .perk .slot { width: 76px; height: 76px; }
  .feature .slot img, .perk .slot img { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tab, .faq summary::after { transition: none; }
}

[hidden] { display: none !important; }
