/* Ghost Wolves - Grundlagen, Hintergrund, Termin-Ticker, Splash-Screen (aus index.html ausgelagert, IX1a) */
*{box-sizing:border-box;margin:0;padding:0}
body {
  font-family: "Rajdhani", sans-serif;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.7), rgba(50,50,50,0.9)),
    url('../images/airsoft-bg.jpg') center center / cover no-repeat fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

html, body {
  height: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.7), rgba(50,50,50,0.9)),
    url('../images/airsoft-bg.jpg') center center / cover no-repeat;
  z-index: -1;
}

:root {
  --gray-dark: #2a2a2a;
  --gray-medium: #4a4a4a;
  --gray-light: #888;
  --accent: #4fa84f;
  --panel-bg: rgba(45,45,45,0.9);
  --glass-border: rgba(255,255,255,0.18);

  /* Einheitliche Farbpalette der Website (NICHT fuer Flaggen-/Counter-Zustaende, die stehen in js/config.js) */
  --accent-hell: #6fd66f;      /* Hover von gruenen Knoepfen */
  --accent-dunkel: #3d8a3d;    /* gedrueckt / dunkle Variante */
  --akzent-orange: #ffa500;    /* Hervorhebungen: Datum, Termine, Abschnittstitel */
  --info: #64dfdf;             /* technische Hinweise (Systeminfo) */
  --gefahr: #f44336;           /* Schliessen / Loeschen */
  --gefahr-hell: #ff7961;      /* Hover davon */
  --text: #ccc;                /* normaler Text */
  --text-gedimmt: #aaa;        /* Nebentext */
  --text-hell: #fff;           /* hervorgehobener Text */
  --text-auf-akzent: #1f1f1f;  /* Text auf gruenen Knoepfen */
}

/* TERMIN TICKER */
/* Nachrichten-Band (KE3): festes Schild links, Band laeuft endlos dahinter */
.event-ticker {
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.3));
  border-bottom: 1px solid rgba(79,168,79,0.3);
  border-top: 1px solid rgba(79,168,79,0.3);
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 10px;
  display: flex;
  align-items: stretch;
  min-height: 38px;
}

.ticker-schild {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px 0 14px;
  background: var(--accent);
  color: var(--text-auf-akzent);
  font-family: "Orbitron", monospace;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  position: relative;
  z-index: 1;
}

.ticker-schild i {
  font-size: 0.95rem;
}

.ticker-band {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Raender weich ausblenden */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.event-ticker-inner {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 0;
  /* animation wird per JS gesetzt (Endlos-Band, gleiche Geschwindigkeit) */
}

.ticker-band:hover .event-ticker-inner,
.ticker-band.angehalten .event-ticker-inner {
  animation-play-state: paused;
}

.event-ticker-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding-left: 18px;
}

.event-ticker-item::after {
  content: '◆';
  color: var(--accent);
  margin-left: 36px;
  font-size: 0.6rem;
}

/* Abzeichen LAEUFT / HEUTE / MORGEN */
.ticker-abzeichen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 10px;
  font-family: "Orbitron", monospace;
  font-size: 0.62rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.ticker-abzeichen.laeuft {
  background: rgba(79,168,79,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.ticker-abzeichen.laeuft::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: ticker-puls 1.6s ease-in-out infinite;
}

.ticker-abzeichen.heute {
  background: var(--akzent-orange);
  border: 1px solid var(--akzent-orange);
  color: #1f1f1f;
}

.ticker-abzeichen.morgen {
  border: 1px solid rgba(255,255,255,0.4);
  color: #ccc;
}

@keyframes ticker-puls {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(79,168,79,0.7); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 4px rgba(79,168,79,0); }
}

/* Handy: Schild nur mit Symbol */
@media (max-width: 600px) {
  .ticker-schild span { display: none; }
  .ticker-schild { padding: 0 18px 0 12px; }
}

/* Weniger Bewegung, wenn im System eingestellt: Band steht, kann gewischt werden */
@media (prefers-reduced-motion: reduce) {
  .event-ticker-inner { animation: none !important; }
  .ticker-band { overflow-x: auto; }
  .ticker-abzeichen.laeuft::before { animation: none; }
}

.event-ticker-item i {
  color: var(--accent);
  margin-right: 6px;
}

.event-ticker-item .ticker-date {
  color: var(--akzent-orange);
  font-weight: bold;
  margin-right: 6px;
  font-family: "Orbitron", monospace;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.event-ticker-item .ticker-team {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  padding: 2px 10px 2px 4px;
  border-radius: 12px;
  background: rgba(79, 168, 79, 0.15);
  border: 1px solid rgba(79, 168, 79, 0.5);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.event-ticker-item .ticker-team-logo {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: #000;
  flex-shrink: 0;
}

/* Inhalt liegt doppelt im Band: nach der Haelfte sieht es wieder aus wie am Anfang */
@keyframes ticker-endlos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Splash Screen */
#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s;
  padding: 20px;
  overflow-y: auto;
}

#splashScreen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Wiederkehrende Besucher: Willkommensseite ueberspringen (js/willkommen.js) */
html.willkommen-gesehen #splashScreen {
  display: none;
}

html.willkommen-gesehen #mainContent {
  display: block;
  opacity: 1;
}

.splash-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  margin: 20px;
}

.splash-title {
  font-family: "Black Ops One", cursive;
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(79,168,79,0.3);
  line-height: 1.2;
}

.splash-text {
  text-align: left;
  margin-bottom: 35px;
}

.splash-text p {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: justify;
}

.splash-text .closing {
  text-align: center;
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
  margin-top: 20px;
  border-top: 1px solid var(--gray-medium);
  padding-top: 15px;
}

#enterButton {
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--text-auf-akzent);
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(79,168,79,0.5);
  width: 100%;
  max-width: 300px;
}

#enterButton:hover {
  background: var(--accent-hell);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(79,168,79,0.7);
}

