:root {
  --bg: #070708;
  --bg-elevated: #101014;
  --bg-soft: #16161c;
  --header: rgba(7, 7, 8, 0.92);
  --footer: #050506;
  --text: #ece8e4;
  --muted: #9a948c;
  --nav: #d7d1cb;
  --accent: #e05426;
  --accent-hot: #ff6a35;
  --accent-deep: #a83814;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(224, 84, 38, 0.45);
  --max: 1180px;
  --font-display: "Exo 2", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 2px;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(224, 84, 38, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(120, 40, 20, 0.12), transparent 50%),
    linear-gradient(180deg, #0b0b0e 0%, var(--bg) 35%, #050507 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--accent-hot);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: #fff;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 0.85rem; }

code {
  font-size: 0.88em;
  color: #ffb08a;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.header-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-hot) 50%, var(--accent) 80%, transparent);
}

.logo img {
  width: min(250px, 52vw);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.logo:hover img {
  opacity: 0.8;
  filter: saturate(1.15);
}

.logo:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav);
  margin: 4px 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--nav);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list > li > a:hover,
.nav-list > li.active > a,
.nav-list > li.parent > a {
  color: var(--accent-hot);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 190px;
  background: #120f0e;
  border: 1px solid var(--line-strong);
  display: none;
  z-index: 20;
}

.has-children:hover > .nav-sub,
.has-children:focus-within > .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #eee;
  font-size: 0.9rem;
}

.nav-sub a:hover,
.nav-sub .active a {
  background: rgba(224, 84, 38, 0.2);
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.slideshow-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.slideshow-track {
  display: flex;
  height: 100%;
  width: 100%;
  margin: 0;
  max-width: none;
  aspect-ratio: auto;
  transform: translate3d(0, 0, 0);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slideshow-track.is-jumping {
  transition: none;
}

.hero-media .slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.55);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.92) 0%, rgba(7, 7, 8, 0.55) 42%, rgba(7, 7, 8, 0.25) 70%, rgba(7, 7, 8, 0.55) 100%),
    linear-gradient(0deg, rgba(7, 7, 8, 0.95) 0%, transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.15rem 2.4rem;
}

.hero-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--accent-hot);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-text {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  color: #ddd8d2;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.slideshow-dots {
  position: absolute;
  z-index: 3;
  right: 1.15rem;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
  padding: 0;
}

.slideshow-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slideshow-dots button.is-active {
  background: var(--accent-hot);
  transform: scale(1.2);
}

/* Buttons */
.btn-primary,
.btn-ghost,
.btn-discord,
.btn-small {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.7rem 1.1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--accent-hot);
  color: var(--accent-hot) !important;
}

.btn-small {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

/* Main */
.site-main {
  flex: 1;
  padding: 1.75rem 0 2.75rem;
}

.main-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.is-home .site-main {
  padding-top: 1.35rem;
}

/* Home rail */
.rail-promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rail-link {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(160deg, rgba(224, 84, 38, 0.16), rgba(16, 16, 20, 0.9));
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--text);
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.25s ease, background 0.25s ease;
}

.rail-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: #fff;
}

.rail-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-hot);
}

.rail-link strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

.rail-link span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Home layout */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}

.home-primary {
  display: grid;
  gap: 1.25rem;
}

.home-aside {
  display: grid;
  gap: 1rem;
}

.block,
.aside-block,
.content-panel,
.home-news,
.side-box {
  background: rgba(16, 16, 20, 0.88);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(224, 84, 38, 0.55);
  padding: 1.25rem 1.3rem;
}

.welcome-block {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.welcome-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.95);
}

.lede {
  color: #ddd8d2;
  font-size: 1.05rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.5rem;
}

.inline-links a,
.text-link {
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.block-head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.news-stack,
.news-list {
  display: grid;
  gap: 0;
}

.news-row,
.news-teaser {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.news-row:last-child,
.news-teaser:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-row time,
.news-teaser time {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.aside-block h2,
.side-box h2 {
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
  margin-bottom: 0.8rem;
}

.aside-games,
.side-games {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.aside-games img,
.side-games img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.chip-list,
.side-game-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-list li,
.side-game-list li {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  color: #ddd;
}

.aside-links,
.side-links {
  margin: 0 0 0.85rem;
  padding-left: 1.05rem;
}

.aside-links li,
.side-links li {
  margin-bottom: 0.3rem;
}

.join-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.9rem 0 0.35rem;
}

.join-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #f0ebe6 !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.join-btn:hover {
  border-color: var(--accent);
  background: rgba(224, 84, 38, 0.12);
  transform: translateY(-1px);
}

.join-btn-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.join-btn-icon-svg {
  filter: none;
}

.join-btn-discord .join-btn-icon-svg {
  /* Discord brand-ish blue tint on monochrome SVG via CSS filter approx */
  filter: brightness(0) saturate(100%) invert(62%) sepia(47%) saturate(514%) hue-rotate(192deg) brightness(95%) contrast(92%);
}

.join-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.25;
}

.join-btn-text strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.join-btn-text span {
  font-size: 0.82rem;
  color: #bdb7b0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.page-body .join-links {
  max-width: 340px;
}

.raccoon-shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
  aspect-ratio: 4 / 3;
  background: #0a0a0c;
}

.raccoon-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.raccoon-shot:hover img {
  transform: scale(1.05);
}

.placeholder-note,
.placeholder-inline {
  color: #c9a27a;
  font-style: italic;
}

.placeholder-note {
  border-left: 3px solid #8a6344;
  padding: 0.45rem 0.7rem;
  background: rgba(138, 99, 68, 0.1);
}

/* Inner pages */
.page-body h2,
.galerie-section h2 {
  margin-top: 1.4rem;
  color: var(--accent-hot);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}

.page-body ol,
.page-body ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.page-body li {
  margin-bottom: 0.55rem;
}

.aside-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.subpage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.subpage-links a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  background: rgba(224, 84, 38, 0.18);
  border: 1px solid var(--line-strong);
  color: #fff;
}

.subpage-links a:hover {
  background: var(--accent);
}

.struktur-figure {
  margin: 0 0 1.25rem;
  text-align: center;
}

.struktur-figure img {
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #0a0a0c;
}

.crumb {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.article-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-image {
  margin: 0 0 1rem;
  max-width: 280px;
}

/* Team */
.team-group {
  margin-top: 2rem;
}

.team-group:first-of-type {
  margin-top: 1.25rem;
}

.team-group-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin: 0 0 0.95rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.15rem;
}

.team-card {
  text-align: center;
  padding: 1.25rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.team-card img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  border: 2px solid #2a2a30;
  transition: transform 0.35s ease, border-color 0.25s ease;
}

.team-card:hover img {
  transform: scale(1.06);
  border-color: var(--accent);
}

.team-card-name {
  font-size: 1.22rem;
  margin-bottom: 0.2rem;
}

.team-card-epithet {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #8f8a84;
}

.team-card hr {
  border: 0;
  border-top: 1px solid var(--accent);
  width: 36%;
  margin: 0.45rem auto 0.6rem;
}

.team-card-role {
  color: var(--accent-hot);
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
}

.team-card p:not(.team-card-role):not(.team-card-epithet) {
  margin: 0.2rem 0;
  font-size: 0.98rem;
  color: #d2cdc7;
}

/* Spiele */
.spiele-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}

.spiele-jump a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #e8e2dc;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
}

.spiele-jump a:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(224, 84, 38, 0.18);
}

.spiele-section {
  margin-bottom: 1.75rem;
  scroll-margin-top: 110px;
}

.spiele-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.spiele-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.spiele-count {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
  min-width: 1.5rem;
  text-align: right;
}

.spiele-empty {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.spiele-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.spiele-tile {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #121218;
  text-decoration: none !important;
  color: #fff;
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.spiele-tile-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a22;
  background-image: var(--cover, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.25s ease;
}

.spiele-tile.is-placeholder .spiele-tile-bg {
  background:
    linear-gradient(145deg, rgba(224, 84, 38, 0.28), rgba(20, 20, 28, 0.95) 55%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0 8px,
      transparent 8px 16px
    );
}

.spiele-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 42%,
    rgba(40, 40, 46, 0.35) 62%,
    rgba(28, 28, 32, 0.72) 78%,
    rgba(18, 18, 22, 0.92) 100%
  );
  pointer-events: none;
}

.spiele-tile-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.35rem 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #f3f1ef;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.spiele-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.spiele-tile:hover .spiele-tile-bg {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.spiele-tile:hover .spiele-tile-title {
  color: #fff;
}

@media (max-width: 900px) {
  .spiele-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .spiele-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

.spiele-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

.spiele-detail-head h1 {
  margin: 0;
}

.spiele-about {
  margin: 0 0 1.5rem;
}

.spiele-about h2 {
  margin-top: 0;
  color: var(--accent-hot);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
}

.spiele-description {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #e8e4df;
  margin-bottom: 0.75rem;
}

.spiele-club-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 3px solid rgba(224, 84, 38, 0.45);
  padding: 0.35rem 0 0.35rem 0.75rem;
}

.spiele-server-note {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(224, 84, 38, 0.08);
  color: #e8e4df;
  font-size: 0.95rem;
}

.spiele-server-note strong {
  color: var(--accent-hot);
}

.spiele-shots {
  margin-top: 1.5rem;
}

.spiele-shots h2 {
  margin-top: 0;
  color: var(--accent-hot);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
}

.spiele-back {
  margin-top: 1.5rem;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.45rem;
  border: 1px solid #444;
  color: #ccc;
  font-family: var(--font-display);
}

.status-aktiv {
  border-color: var(--accent-hot);
  color: var(--accent-hot);
}

.status-gelegentlich {
  border-color: #d4a24c;
  color: #d4a24c;
}

.status-inaktiv {
  border-color: #666;
  color: var(--muted);
}

.status-community {
  border-color: #6a9bd1;
  color: #8eb6dc;
}

.status-upcoming {
  border-color: #c9a24a;
  color: #e0c06a;
}

.status-archiv,
.status-placeholder {
  border-color: #555;
  color: var(--muted);
}

/* Galerie */
.galerie-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.galerie-tabs a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #eee;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}

.galerie-tabs a:hover,
.galerie-tabs a.is-current {
  background: rgba(224, 84, 38, 0.22);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.galerie-section {
  margin-bottom: 2rem;
  scroll-margin-top: 110px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.gallery-grid-screens {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.gallery-item {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0c;
  aspect-ratio: 4 / 3;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.gallery-item {
  appearance: none;
  -webkit-appearance: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
  filter: brightness(0.92);
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.95;
  filter: brightness(1);
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  max-width: min(1100px, 100%);
  width: 100%;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #0a0a0c;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.lightbox-counter {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #ddd;
  letter-spacing: 0.04em;
}

.lightbox-close,
.lightbox-nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 24, 0.9);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(224, 84, 38, 0.35);
  border-color: var(--accent);
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0.15rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
}

.lightbox-nav {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.lightbox-nav[hidden] {
  visibility: hidden;
}

@media (max-width: 700px) {
  .lightbox-dialog {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .lightbox-nav {
    position: absolute;
    bottom: -0.25rem;
    z-index: 2;
  }

  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }

  .lightbox-figure {
    padding-bottom: 2.75rem;
  }
}

/* Quote + footer */
.quote-strip {
  background: linear-gradient(90deg, rgba(224, 84, 38, 0.12), rgba(10, 10, 12, 0.95) 40%, rgba(224, 84, 38, 0.12));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  text-align: center;
  position: relative;
}

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.7;
}

.quote-inner p {
  margin: 0;
  font-style: italic;
  color: #e4dfd8;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 500;
}

.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.15rem 1.6rem;
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: #cfc8c0;
}

.footer-copy {
  margin: 0;
  color: #6f6a64;
  font-size: 0.85rem;
}

/* Legacy promo classes (unused on home, keep safe) */
.promo-row { display: none; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .team-card img,
  .gallery-item img,
  .raccoon-shot img,
  .rail-link {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .rail-promos {
    grid-template-columns: 1fr;
  }

  .welcome-block {
    grid-template-columns: 1fr;
  }

  .welcome-media {
    max-width: 220px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-bottom: 0.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-sub {
    position: static;
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.03);
  }

  .has-children.is-open > .nav-sub,
  .has-children:hover > .nav-sub,
  .has-children:focus-within > .nav-sub {
    display: block;
  }

  .hero {
    min-height: 360px;
  }

  .news-row,
  .news-teaser {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
