/* Startseite entengames.de (Neugestaltung 15.11.2026, Joshi: "Klassisch wie OPSUCHT", hell, wenig Text, mehr Grafiken).
   Baut auf styles.css auf (Farben, Schriften, Knöpfe, Kopf- und Fußzeile). */

.home .tab-hint { font-size: var(--fs-sm); }

/* Überschriften der Abschnitte */
.h-head { margin-bottom: 26px; }
.h-head h2 { font-size: var(--fs-h2); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.025em; }
.h-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.h-lead { font-size: var(--fs-text); line-height: 1.45; font-weight: 600; }

/* ---------- Hero ---------- */
.h-hero { position: relative; overflow: hidden; isolation: isolate; background: #5ea9ef; }
.h-hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 72% 100%; filter: blur(3px); transform: scale(1.04); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 34px; }
.h-hero h1 {
  font-size: var(--fs-display);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 13ch;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.h-mark { display: inline-block; line-height: 1.08; background: var(--primary); color: #ffffff; margin-top: 0.08em; padding: 0.14em 0.16em 0.02em; border-radius: var(--r-md); box-shadow: inset 0 -0.07em 0 var(--primary-dark); -webkit-hyphens: manual; hyphens: manual; }
.h-join .h-lead { margin: 2px 2px 14px; font-size: var(--fs-text); color: var(--text); }
.h-join { margin-top: 24px; max-width: 560px; padding: 14px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line), var(--shadow-raised); }
.h-join .field { flex: 1 1 200px; }
.h-join-meta { margin-top: 10px; font-size: var(--fs-ui); font-weight: 600; }
.h-join-meta a { font-weight: 800; }
.h-hero-figuren { display: flex; justify-content: center; margin-top: 18px; }
.h-hero-figuren img { width: min(82%, 420px); margin-bottom: -4px; }

/* ---------- Beitreten ---------- */
.h-tabs { max-width: 560px; }
.h-step-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.h-step {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 2px 16px;
  padding: 18px 18px 18px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.h-step img { grid-row: span 2; width: 88px; height: 88px; }
.h-step h3 { font-size: var(--fs-h3); align-self: end; }
.h-step h3:last-child { grid-row: span 2; align-self: center; }
.h-step p { font-size: var(--fs-md); align-self: start; }
.h-step code { white-space: normal; }
.h-step-nr {
  position: absolute;
  top: -12px;
  left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--r-sm);
  box-shadow: inset 0 -3px 0 var(--primary-dark);
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-title);
}

/* ---------- Funktionen ---------- */
.h-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.h-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 18px 12px 22px;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.18s;
}
.h-feature img { width: 104px; height: 104px; margin-bottom: 4px; }
.h-feature b { font-family: var(--display); font-weight: 800; font-size: var(--fs-text); line-height: 1.15; }
.h-feature span { font-size: var(--fs-sm); line-height: 1.4; }
.h-feature code { font-size: inherit; }
.h-feature:hover { transform: translateY(-4px); border-color: var(--primary); color: var(--text); }
.h-feature:hover b { color: var(--primary); }

/* ---------- Galerie ---------- */
.h-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.h-gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-deep); box-shadow: var(--shadow-card); }
.h-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.h-gallery figure:hover img { transform: scale(1.04); }
.h-gallery .g-big { grid-column: 1 / -1; }
.h-gallery .g-big img { aspect-ratio: 16 / 10; }
.h-gallery figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 12px 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
  background: #ffffff;
  border-radius: var(--r-full);
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Startpaket ---------- */
.h-start-wrap { padding-top: 8px; }
.h-start {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px 22px;
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 0 var(--primary-dark), var(--shadow-raised);
}
.h-start h2 { color: #ffffff; font-size: var(--fs-h2); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.025em; }
.h-rewards { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.h-rewards li { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; background: #ffffff; color: var(--text); border-radius: var(--r-md); font-family: var(--display); font-weight: 800; font-size: var(--fs-md); }
.h-rewards img { width: 56px; height: 56px; }
.btn-light { background: #ffffff; color: var(--primary-dark); box-shadow: 0 4px 0 #0d3f7d; }
.btn-light:hover { background: #eef4ff; color: var(--primary-dark); }
.btn-light:active { box-shadow: 0 1px 0 #0d3f7d; }

/* ---------- Die besten Spieler: drei Top-5-Listen nebeneinander ---------- */
.tl-reihe { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; margin: 0 -16px; padding: 4px 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.tl-reihe::-webkit-scrollbar { display: none; }
.tl-reihe .board-info { padding: 18px 0; }
.tl { display: flex; flex-direction: column; scroll-snap-align: start; padding: 18px 14px 14px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.tl-kopf { display: flex; align-items: center; gap: 12px; padding: 0 6px 12px; }
.tl-kopf img { width: 64px; height: 64px; flex: none; }
.tl-kopf h3 { font-size: var(--fs-h3); line-height: 1.1; }
.tl-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; }
.tl-zeile { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px; color: var(--text); text-decoration: none; border-radius: var(--r-md); }
a.tl-zeile:hover { background: var(--primary-soft); color: var(--text); }
.tl-platz { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-family: var(--display); font-weight: 800; font-size: var(--fs-sm); background: var(--primary-soft); border-radius: var(--r-sm); }
.tl-name { font-weight: 800; font-size: var(--fs-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-wert { font-family: var(--display); font-weight: 800; font-size: var(--fs-sm); white-space: nowrap; }
.tl .kopf, .tl .kopf-skin { display: inline-block; flex: none; background-repeat: no-repeat; background-color: var(--primary-soft); image-rendering: pixelated; border-radius: var(--r-xs); }
.tl-erster .tl-zeile { min-height: 72px; margin-bottom: 4px; background: var(--primary-soft); }
.tl-erster a.tl-zeile:hover { background: var(--primary-line); }
.tl-erster .tl-platz { color: #ffffff; background: var(--primary); box-shadow: inset 0 -3px 0 var(--primary-dark); }
.tl-erster .tl-name { font-size: var(--fs-md); }
.tl-erster .kopf, .tl-erster .kopf-skin { border-radius: var(--r-sm); }
.tl-mehr { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: 8px 0 0 8px; font-family: var(--display); font-weight: 800; font-size: var(--fs-ui); color: var(--primary); text-decoration: none; }
.tl-mehr::after { content: "›"; margin-left: 6px; font-size: var(--fs-h3); line-height: 1; }
.tl-mehr:hover { color: var(--primary-dark); }

/* ---------- Von früher ---------- */
.h-back { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.h-back h2 { font-size: var(--fs-h2); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.025em; margin-bottom: 14px; }
.h-back .h-lead { margin-bottom: 20px; max-width: 30ch; }
/* Statt Trailer-Screenshot von 2020 das 3D-Symbol aus dem Wiki, frei stehend (Joshi 16.11.: Screenshot war komisch) */
.h-back-ill { width: 168px; height: auto; margin: 0; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 720px) {
  .h-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .h-feature { padding: 26px 18px 28px; }
  .h-feature img { width: 140px; height: 140px; }
  .h-feature b { font-size: var(--fs-h3); }
  .h-feature span { font-size: var(--fs-md); }
  .tl-reihe { grid-auto-columns: 47%; }
}

@media (min-width: 900px) {
  .h-step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 14px; }
  .h-step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 30px 22px 26px; gap: 6px; }
  .h-step img { grid-row: auto; width: 150px; height: 150px; margin-bottom: 6px; }
  .h-step h3:last-child { grid-row: auto; }
  .h-start { grid-template-columns: minmax(0, 1fr) auto; padding: 38px 44px; }
  .h-start .btn { font-size: var(--fs-title); min-height: 64px; padding: 12px 34px 14px; }
}

@media (min-width: 1000px) {
  .h-features { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .h-feature { padding: 20px 10px 18px; }
  .h-feature img { width: 112px; height: 112px; }
  .h-feature b { font-size: var(--fs-title); }
  .h-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: end; min-height: clamp(580px, 76vh, 740px); padding-top: 0; }
  .h-hero-text { align-self: center; padding: 48px 0 56px; }
  .h-join { margin-top: 30px; padding: 18px; }
  .h-join .h-lead { font-size: var(--fs-text); }
  .h-hero-figuren { margin-top: 0; justify-content: flex-end; }
  .h-hero-figuren img { width: min(100%, 560px); margin-bottom: -6px; }
  .h-gallery { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); height: 620px; gap: 16px; }
  .h-gallery .g-big { grid-column: 1; grid-row: 1 / span 3; }
  .h-gallery img, .h-gallery .g-big img { aspect-ratio: auto; }
  .h-back { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; max-width: 980px; }
  .h-back-ill { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .h-feature, .h-gallery img { transition: none; }
  .h-feature:hover, .h-gallery figure:hover img { transform: none; }
}


/* ---------- Einblick ins Spiel: Schaufenster mit Reitern (nach Landania) ---------- */
.show { position: relative; overflow: hidden; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.show-bild { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-deep); }
.show-box { padding: 20px 20px 6px; }
.show-box h3 { font-size: var(--fs-h3-lg); line-height: 1.1; margin-bottom: 10px; }
.show-tags { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.show-tags li { padding: 4px 10px 5px; font-family: var(--display); font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; color: var(--primary-dark); background: var(--primary-soft); border-radius: var(--r-xs); }
.show-box p { font-size: var(--fs-md); line-height: 1.5; margin-bottom: 16px; }
.show-box code { white-space: nowrap; }
.show-tabs { display: flex; gap: 10px; padding: 14px 20px 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.show-tabs::-webkit-scrollbar { display: none; }
.show-tab { position: relative; flex: 0 0 136px; height: 88px; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-md); background: var(--bg-deep); cursor: pointer; scroll-snap-align: start; transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); }
.show-tab img { width: 100%; height: 100%; object-fit: cover; }
.show-tab span { position: absolute; left: 6px; bottom: 6px; padding: 3px 9px 4px; font-family: var(--display); font-weight: 800; font-size: var(--fs-sm); line-height: 1.1; color: var(--text); background: #ffffff; border-radius: var(--r-xs); }
.show-tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow 0.15s; }
.show-tab:hover::after { box-shadow: inset 0 0 0 3px var(--primary-line); }
.show-tab[aria-selected="true"]::after { box-shadow: inset 0 0 0 4px var(--primary), inset 0 0 0 6px #ffffff; }
.show-tab[aria-selected="true"] span { color: #ffffff; background: var(--primary); }
.show-tab:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Discord mit Enten-Maskottchen (nach Landania) ---------- */
.h-discord {
  position: relative;
  margin-top: 70px;
  padding: 128px 22px 28px;
  color: #ffffff;
  background: #4752c4;
  border-radius: var(--r-xl);
  box-shadow: 0 1px 0 #3b43b8, var(--shadow-raised);
}
.h-discord-ente { position: absolute; top: -78px; left: 50%; width: 190px; height: auto; transform: translateX(-50%); }
.h-discord h2 { color: #ffffff; font-size: var(--fs-h2); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.025em; margin-bottom: 12px; }
.h-discord-text > p { color: #ffffff; font-size: var(--fs-text); line-height: 1.5; max-width: 40ch; margin-bottom: 18px; }
.h-discord .discord-stats { margin-bottom: 20px; }
.h-discord .discord-stat { color: #ffffff; }
.btn-weiss { gap: 10px; background: #ffffff; color: #3b43b8; box-shadow: 0 4px 0 #2b318f; }
.btn-weiss:hover { background: #eef0ff; color: #3b43b8; }
.btn-weiss:active { box-shadow: 0 1px 0 #2b318f; }

/* ---------- Abschluss: Worauf wartest du noch? ---------- */
.h-final { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0; background: #5ea9ef; }
.h-final-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 60% 100%; filter: blur(3px); transform: scale(1.04); }
.h-final-box { max-width: 680px; margin: 0 auto; padding: 28px 20px; text-align: center; background: #ffffff; border-radius: var(--r-xl); box-shadow: var(--shadow-raised); }
.h-final-box h2 { font-size: var(--fs-h2); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 12px; }
.h-final-box .h-lead { margin: 0 auto 20px; max-width: 34ch; font-size: var(--fs-text); }
.h-final-box .field-row { justify-content: center; max-width: 520px; margin: 0 auto; }
.h-final-box .field { flex: 1 1 200px; }
.h-final-box .h-join-meta { margin-top: 12px; }

@media (min-width: 900px) {
  .h-discord { display: grid; grid-template-columns: minmax(0, 1fr) 320px; margin-top: 90px; padding: 46px 48px; }
  .h-discord-ente { top: auto; bottom: 0; left: auto; right: 44px; width: 330px; transform: none; }
  .h-final { padding: 96px 0; }
  .h-final-box { padding: 44px 48px; }
}

@media (min-width: 1000px) {
  .show { height: 620px; }
  .show-panel { position: absolute; inset: 0; }
  .show-bild { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .show-box { position: absolute; top: 32px; left: 32px; width: min(440px, 42%); padding: 26px 28px 28px; background: #ffffff; border-radius: var(--r-lg); box-shadow: var(--shadow-raised); }
  .show-box h3 { font-size: var(--fs-num); }
  .show-box p { margin-bottom: 20px; }
  .show-tabs { position: absolute; left: 32px; right: 32px; bottom: 28px; justify-content: flex-end; padding: 0; overflow: visible; }
  .show-tab { flex: 0 0 156px; height: 100px; box-shadow: 0 14px 26px -14px #0f2346; }
  .show-tab[aria-selected="true"] { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .show-tab, .show-tab::after { transition: none; }
  .show-tab[aria-selected="true"] { transform: none; }
}

/* ---------- Marktpreise und Shop: nur Bild, Titel, Pfeil ---------- */
.h-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.h-more-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 18px; height: 100%; padding: 16px 22px 16px 16px; color: var(--text); text-decoration: none; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.18s; }
.h-more-card img { width: 88px; height: 88px; }
.h-more-card b { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.1; }
.h-more-go { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--primary); }
.h-more-card:hover { transform: translateY(-4px); border-color: var(--primary); color: var(--text); }
@media (min-width: 900px) {
  .h-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .h-more-card { grid-template-columns: 128px minmax(0, 1fr) auto; padding: 20px 32px 20px 22px; gap: 24px; }
  .h-more-card img { width: 128px; height: 128px; }
  .h-more-card b { font-size: var(--fs-num); }
}
@media (prefers-reduced-motion: reduce) {
  .h-more-card { transition: none; }
  .h-more-card:hover { transform: none; }
}

/* Handy: Wert unter dem Namen, damit lange Namen Platz haben */
@media (max-width: 719px) {
  .tl-zeile { grid-template-columns: 32px auto minmax(0, 1fr); grid-template-areas: "p k n" "p k w"; row-gap: 0; }
  .tl-platz { grid-area: p; }
  .tl-zeile .kopf, .tl-zeile .kopf-skin, .tl-zeile .kopf-box { grid-area: k; }
  .tl-name { grid-area: n; align-self: end; }
  .tl-wert { grid-area: w; align-self: start; color: var(--primary-dark); }
}

@media (min-width: 1000px) {
  .tl-reihe { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; overflow: visible; }
  .tl { padding: 22px 16px 16px; }
}
