/* Import der Comfortaa und Montserrat von Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@500;700&family=Montserrat:wght@400;500;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0d2e1c; /* Tiefes Senne-Golf-Dunkelgrün für den Rahmen */
  color: #1a3a2a;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.2px;
}

/* Subtiler Innenrahmen */
.tv-frame-overlay {
  position: absolute;
  top: 1vw;
  left: 1vw;
  right: 1vw;
  bottom: 1vw;
  border: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none;
  border-radius: 6px;
  z-index: 10;
}

.tv-container {
  width: 100%;
  height: 100%;
  padding: 2vw 2vw 1.2vw 2vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- KOPFBEREICH --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 1.2vw;
  margin-bottom: 1.5vw;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.2vw;
}

.logo {
  width: 6.5vw;
  height: 6.5vw;
  object-fit: contain;
}

.club-name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 2.3vw;
  font-weight: 700;
  color: #ffffff; /* Bleibt weiß im dunklen Kopf */
  letter-spacing: -0.5px;
}

.club-name span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3vw;
  color: #d4af37;
  font-weight: 500;
  margin-top: -0.2vw;
}

.datetime-box {
  text-align: right;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.7vw 1.8vw;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

#time {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 3vw;
  font-weight: 700;
  color: #a2e2b3;
  text-shadow: 0 0 10px rgba(162, 226, 179, 0.3);
}

#date {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.95vw;
  color: #d4af37;
  margin-top: 0.4vw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- DYNAMISCHER EVENT-BEREICH (MITTE & TICKER COMBINED) --- */
#dynamic-event-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Einheitlicher, harmonischer Hellgrün-Hintergrund für das gesamte Event */
  background: linear-gradient(180deg, #c4dfcc 0%, #b3d5bc 100%);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  padding: 2vw;
  margin-bottom: 1.5vw;
}

/* Die Mitte */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  padding: 1vw 0;
}

/* Das dunkelgrüne Begrüßungs-Badge */
.welcome-badge {
  font-family: 'Comfortaa', sans-serif;
  background: #0d2e1c;
  color: #fdfaf0; /* Hellcreme für maximale Lesbarkeit */
  border: 1px solid rgba(212, 175, 55, 0.3);

  font-size: 1.1vw;
  font-weight: 700;
  padding: 0.5vw 2vw;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1.5vw;
}

h1 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 4.4vw;
  font-weight: 700;
  color: #0d2e1c; /* Dunkles Senne-Grün */
  line-height: 1.2;
  margin-bottom: 0.5vw;
}

h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 2.6vw; /* Etwas angehoben */
  font-weight: 700;
  color: #0d2e1c; /* HERVORHEBUNG: Knackiges Dunkelgrün statt untergehendem Gelb */
  margin-top: 0.5vw;
  margin-bottom: 2.5vw;
  letter-spacing: -0.5px;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.6);
}

/* Info-Card: Dunkel und massiv kontraststark gegen das Hellgrün */
.event-info-card {
  background: rgba(13, 46, 28, 0.88); /* Stark abgedunkeltes Senne-Grün */
  border: 1px solid #bc921a; /* Goldene Kante */
  padding: 2vw 4vw;
  border-radius: 12px;
  max-width: 85%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.event-info-card p {
  font-size: 1.8vw;
  color: #fdfaf0; /* Strahlendes Hellcreme – absolut lesbar! */
  line-height: 1.6;
  font-weight: 500;
}

.highlight-text {
  color: #ffffff;
  font-weight: 700;
  border-bottom: 2px solid #bc921a;
  padding-bottom: 1px;
}

/* --- ANCHORED TICKER --- */
.ticker-container {
  width: 100%;
  background: #0d2e1c;
  border-radius: 6px;
  padding: 1vw 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.ticker-title {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  font-family: 'Comfortaa', sans-serif;
  background: #bc921a;
  color: #0d2e1c;
  font-weight: 700;
  font-size: 1.1vw;
  display: flex;
  align-items: center;
  padding: 0 1.5vw;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker-wrap {
  width: 100%;
  padding-left: 15vw;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

/* Die Vereine im Laufband */
.ticker-item {
  display: flex;
  align-items: center;
  color: #fdfaf0; /* Hellcreme für glasklaren Kontrast */
  font-size: 1.7vw;
  font-weight: 600;
  padding: 0 2.5vw;
  font-family: 'Montserrat', sans-serif;
}

/* Der goldene Ball-Trenner */
.ticker-item::after {
  content: "";
  display: inline-block;
  width: 0.8vw;
  height: 0.8vw;
  background: #bc921a;
  border-radius: 50%;
  margin-left: 2.5vw;
  box-shadow: 0 0 5px rgba(188, 146, 26, 0.4);
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- FUSSBEREICH --- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.7vw;
  font-size: 0.95vw;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}
