/* =========================================
   Local Font Faces (Bebas Neue & DM Sans - GDPR Compliant)
   ========================================= */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bebas-neue-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bebas-neue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #0047AB;
  --accent-hover: #0055CC;
  --bg: #151515;
  --surface: #1E1E1E;
  --surface-2: #282828;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.45);
  --hint: rgba(255, 255, 255, 0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 0px;
  --transition: 0.2s ease;
}

/* =========================================
   Reset & Base
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
  /* Custom cursor everywhere */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Verhindert das automatische Hochskalieren von Text in iOS Safari (Landscape) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  /* Lange Wörter/URLs brechen statt horizontal zu überlaufen */
  overflow-wrap: break-word;
}

/* Scroll-Sperre, solange das mobile Menü offen ist */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(0, 71, 171, 0.7) 0%, transparent 75%);
  z-index: -2;
  pointer-events: none;
  filter: blur(100px);
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 150, 255, 0.5) 0%, transparent 75%);
  z-index: -2;
  pointer-events: none;
  filter: blur(120px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  /* Bebas only has 400 usually */
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

/* =========================================
   Typography & Utils
   ========================================= */

.img-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.img-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slide 9s infinite;
}

.img-slider img:nth-child(1) {
  animation-delay: 0s;
}

.img-slider img:nth-child(2) {
  animation-delay: 3s;
}

.img-slider img:nth-child(3) {
  animation-delay: 6s;
}

@keyframes slide {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  35% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.container-sm {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Main Titles */
.title-xl {
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: 1px;
}

.title-lg {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
}

.title-md {
  font-size: clamp(32px, 4vw, 48px);
}

.title-sm {
  font-size: 24px;
}

/* Kleine Displays: Titel skalieren stufenlos weiter herunter,
   damit sie nicht über den Viewport hinauslaufen.
   (Bei 480px ergeben die Werte exakt die Desktop-Mindestgrößen – kein Sprung.) */
@media (max-width: 480px) {
  .title-xl {
    font-size: clamp(48px, 16.6vw, 80px);
  }

  .title-lg {
    font-size: clamp(32px, 10vw, 48px);
  }

  .title-md {
    font-size: clamp(24px, 6.66vw, 32px);
  }
}

/* Eyebrows / Labels */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--accent);
}

.section-label {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 48px;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

.btn:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.btn:hover {
  color: var(--bg);
  border-color: var(--text);
}

.btn span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.btn-primary::before {
  display: none;
  /* Let's keep primary simple for now, or change to white reveal */
}

/* =========================================
   Custom Cursor
   ========================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  opacity: 0.8;
  background-color: rgba(0, 71, 171, 0.1);
  mix-blend-mode: normal;
}

/* Komma-Liste statt "or" – so greift die Regel auch in älteren iOS-/Android-Browsern */
@media (hover: none),
(pointer: coarse) {

  *,
  *::before,
  *::after {
    cursor: auto !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  /* Komfortable Mindest-Touchflächen (Apple/Google HIG: ~44px) */
  .btn,
  .contact-email-btn,
  .tab-btn,
  .dropdown-link {
    min-height: 44px;
  }

  .footer-links a,
  .breadcrumb a {
    display: inline-block;
    padding: 11px 0;
  }
}

/* =========================================
   Header & Nav
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: padding 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s;
}

.site-header.scrolled {
  padding: 16px 0;
  background-color: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mix-blend-mode: normal;
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-img {
  width: 40px;
  height: auto;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: #fff;
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Auf .site-header beschränkt – im mobilen Overlay steht das Menü statisch
   und würde durch translateX(-50%) seitlich aus dem Bild rutschen. */
.site-header .has-dropdown:hover .dropdown-menu,
.site-header .has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Auf Touch-Geräten (z.B. Tablets mit Desktop-Navigation) gibt es kein :hover –
   dort wird das Dropdown per Tap geöffnet (siehe main.js). */
@media (hover: none),
(pointer: coarse) {
  .site-header .has-dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header .has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Invisible bridge so mouse doesn't leave hover area */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-link {
  color: var(--text);
  padding: 10px 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.dropdown-link:hover {
  background-color: rgba(0, 71, 171, 0.15);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  z-index: 1002;
  /* Vergrößerte Touch-Fläche, ohne die Optik zu verändern */
  width: 44px;
  height: 44px;
  margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s ease;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #090909;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 100px 24px calc(60px + env(safe-area-inset-bottom));
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.nav-overlay .nav-links {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 360px;
  margin: auto 0;
}

.nav-overlay .nav-link {
  font-size: clamp(26px, 6vw, 36px);
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.nav-overlay .has-dropdown {
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.nav-overlay .has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-overlay .has-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -4px;
}

.nav-overlay .has-dropdown.open > .nav-link::after {
  transform: rotate(-135deg);
  border-color: #fff;
}

.nav-overlay .dropdown-menu {
  position: static;
  transform: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  width: 100%;
  max-width: 280px;
  margin-top: 10px;
  padding: 8px 0;
  text-align: center;
  box-shadow: none;
}

.nav-overlay .has-dropdown.open .dropdown-menu {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.nav-overlay .dropdown-link {
  font-size: 16px;
  color: var(--muted);
  padding: 8px 16px;
  letter-spacing: 0.5px;
}

.nav-overlay .dropdown-link:hover,
.nav-overlay .dropdown-link:active {
  color: #fff;
  background-color: rgba(0, 71, 171, 0.2);
}

@media (max-width: 768px) {
  .site-header .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header {
    padding: 16px 0;
  }
}

/* Sehr schmale Geräte (iPhone SE & Co.): Logo-Zeile bleibt einzeilig */
@media (max-width: 400px) {
  .header-logo-img {
    width: 34px;
  }

  .logo-group {
    gap: 8px;
  }

  .logo-main {
    font-size: 26px;
  }

  .logo-sub {
    font-size: 9px;
    letter-spacing: 1px;
  }
}

/* =========================================
   Reveal Animations
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 96px;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: #fff;
}

/* =========================================
   Sections & Utilities
   ========================================= */
.section {
  padding: 96px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  /* 4er-Raster (Spielerkarten) bleibt auf Handys 2-spaltig –
     einspaltig würde die Seite extrem lang machen. */
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section {
    padding: 64px 0;
  }
}

/* Placeholder Utility */
.img-placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hint);
  font-size: 14px;
  border: 1px solid var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

.scroll-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

/* Der um 90° gedrehte Scroll-Hinweis ragte auf 320px-Displays
   wenige Pixel über den rechten Rand hinaus. */
@media (max-width: 480px) {
  .scroll-indicator {
    right: 24px;
  }
}

.scroll-line {
  width: 60px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent);
  transform: translateX(-100%);
  animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* =========================================
   Index Specific Styles
   ========================================= */

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  /* svh = kleine Viewport-Höhe: verhindert, dass mobile Browserleisten
     (iOS Safari / Chrome Android) den Hero abschneiden. */
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 71, 171, 0.1) 0%, rgba(9, 9, 9, 0.1) 80%);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 15%, transparent 70%, rgba(9, 9, 9, 0.9) 90%, rgba(9, 9, 9, 1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 5vh;
}

.hero-title {
  margin-bottom: 32px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-stats-cta {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .hero-stats-cta {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Ticker Banner */
.ticker-banner {
  background-color: var(--accent);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  display: flex;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
}

.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Next Match */
.match-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 48px;
  color: #fff;
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.team-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  background-color: var(--surface-2);
}

.team-badge.away {
  background-color: #1a1a1a;
  color: var(--muted);
}

.team-name {
  font-family: var(--font-display);
  font-size: 24px;
  text-align: center;
}

.match-vs {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--muted);
  margin: 0 24px;
}

.match-meta {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

@media (max-width: 600px) {
  .match-card {
    padding: 24px;
  }

  .match-teams {
    flex-direction: column;
    gap: 24px;
  }

  .match-vs {
    margin: 16px 0;
  }
}

/* Base bg surfaces */
.bg-surface {
  background-color: var(--surface);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition);
}

.news-card:hover {
  border-color: var(--border-hover);
}

.news-img {
  width: 100%;
  height: 240px;
}

.news-card.featured .news-img {
  height: 100%;
  min-height: 480px;
}

.news-card.featured .news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(to top, rgba(9, 9, 9, 1) 0%, rgba(9, 9, 9, 0) 100%);
}

.news-card.compact {
  flex-direction: row;
  height: 144px;
}

.news-card.compact .news-img {
  width: 144px;
  height: 100%;
  flex-shrink: 0;
}

.news-card.compact .news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-side-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.news-tag {
  color: var(--accent);
  font-weight: 500;
}

.news-date {
  color: var(--muted);
}

.news-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .news-card.compact {
    flex-direction: column;
    height: auto;
  }

  .news-card.compact .news-img {
    width: 100%;
    height: 180px;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.big-year {
  font-family: var(--font-display);
  font-size: clamp(140px, 20vw, 300px);
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  user-select: none;
}

.big-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 120px);
  color: var(--accent);
  line-height: 1;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  background-color: var(--accent);
  padding: 96px 0;
  color: #fff;
}

.cta-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.btn-dark {
  background-color: var(--bg);
  border-color: var(--bg);
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--surface);
  border-color: var(--text);
  color: #fff;
}

/* Custom Gradients for News Placeholders */
.featured-placeholder {
  background: linear-gradient(135deg, #061121 0%, #111111 100%);
}

.side-placeholder-1 {
  background: linear-gradient(135deg, #090909 0%, #002255 100%);
}

.side-placeholder-2 {
  background: linear-gradient(135deg, #111111 0%, #090909 100%);
}

.side-placeholder-3 {
  background: linear-gradient(135deg, #18191a 0%, #061121 100%);
}

/* =============================================
   FUSSBALL.DE WIDGETS
   ============================================= */

.widget-section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  overflow: hidden;
}

.widget-section .section-label {
  margin-bottom: 32px;
}

/* Blauer Akzentstreifen als visueller Anker zum Design */
.widget-section::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}

/* Wrapper um das Widget — gibt ihm einen Rahmen */
.widget-wrapper {
  /* Fremd-Widgets (fussball.de) haben feste Mindestbreiten.
     Statt sie abzuschneiden, darf horizontal gescrollt werden. */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  display: block;
  width: 100%;
}

/* Widget auf volle Breite */
.widget-wrapper .fussballde_widget {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: unset !important;
}

@media (max-width: 768px) {
  .widget-section {
    padding: 48px 24px;
  }
}

/* Added missing margin utility */
.mb-16 {
  margin-bottom: 64px;
}

.mt-16 {
  margin-top: 64px;
}


/* =============================================
   INSTAGRAM GRID SECTION
   ============================================= */
.insta-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.insta-post {
  /* Fluide statt fix 280px – läuft auf schmalen Displays nicht über */
  flex: 0 1 280px;
  width: 100%;
  max-width: 280px;
  height: auto;
  position: relative;
  aspect-ratio: 1/1;
  background-color: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

.insta-post .img-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 71, 171, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #fff;
  transform: translateY(16px);
}

.insta-post:hover .img-placeholder,
.insta-post:hover img {
  transform: scale(1.05);
}

.insta-post:hover .insta-overlay {
  opacity: 1;
  transform: translateY(0);
}

.insta-icon {
  width: 48px;
  height: 48px;
  fill: currentColor;
  margin-bottom: 12px;
}

.insta-text-cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

/* =========================================
   Editorial Overlap Layout (Abteilungen Einzelseiten)
   ========================================= */
.editorial-section {
  padding: 160px 0 120px 0;
  position: relative;
}



.editorial-header {
  margin-bottom: 40px;
}

.editorial-title {
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.1;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.editorial-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.editorial-visual {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.editorial-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  margin-top: 32px;
  z-index: 10;
  position: relative;
}

@media (min-width: 900px) {
  .editorial-bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-desc {
    grid-column: 1 / -1;
    /* Spans all 3 columns */
  }

  .bento-training {
    grid-column: 1 / 3;
    /* Spans 2 columns */
  }

  .bento-contact {
    grid-column: 3 / 4;
    /* Spans 1 column */
  }
}

.bento-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.bento-card .dept-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
}

.bento-card .training-list {
  margin-bottom: 0;
}

.bento-card .dept-contact {
  margin-top: 0;
  border-left: none;
  padding-left: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Mobile Adjustments for Editorial Layout */
@media (max-width: 768px) {
  .editorial-section {
    padding: 100px 0 72px 0;
  }

  .editorial-visual {
    aspect-ratio: 4/3;
  }

  .editorial-bento {
    margin-top: 24px;
  }

  .bento-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .bento-card {
    padding: 20px;
  }

  .bento-card .dept-desc {
    font-size: 16px;
  }
}

/* --- Trainings-Kachel --- */
.bento-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted, #8a9ab5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 18px;
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-bottom: 18px;
}

.training-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.training-slot:last-child {
  padding-left: 20px;
}

.training-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 20px 4px 0;
  align-self: stretch;
}

.training-day {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #8a9ab5);
}

.training-time {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
}

.training-time-end {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted, #8a9ab5);
}

.training-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(55, 138, 221, 0.15);
  border: 1px solid rgba(55, 138, 221, 0.25);
  color: #7ab8f5;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.training-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--color-muted, #8a9ab5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

/* --- Kontakt-Kachel --- */
.dept-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #8a9ab5);
}

.contact-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
  white-space: nowrap;
}

.contact-email-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

@media (max-width: 640px) {
  .training-grid {
    grid-template-columns: 1fr;
  }

  .training-divider {
    width: auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 14px 0;
  }

  .training-slot:last-child {
    padding-left: 0;
  }

  .contact-email-btn {
    width: 100%;
    justify-content: center;
    /* Lange Mailadressen dürfen umbrechen statt überzulaufen */
    white-space: normal;
    word-break: break-word;
  }
}

/* =========================================
   Barrierefreiheit: reduzierte Bewegung
   (nur Animationsdauern, keine Stil-/Farbänderung)
   ========================================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .ticker-inner {
    animation: none !important;
  }
}
