@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg-color: #1a1a1a;
  --font-family: 'Inter', sans-serif;
  --shared-font-size: clamp(2rem, 6vw, 8rem);
  --font-color: #ffffff;
  --letter-spacing: 0.05em;
  --countdown-target: "2025-09-14T23:59:59";
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--font-color);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#rotate-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 1rem;
  z-index: 9999;
  font-size: 1.2rem;
  font-family: var(--font-family);
}

#rotate-warning.rotate-warning-visible {
  display: block;
}

.background-image-layer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-image: url('../images/hintergrund.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 100;
  opacity: 1;
}

.rotating-layer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 60s linear infinite;
  z-index: 200;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.inner-layer {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.inner-layer img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vmax;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.countdown-container {
  position: fixed;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  z-index: 300;
  text-align: center;
}

.countdown-text {
  font-size: 2vw;
  margin-bottom: 1rem;
}

.countdown {
  white-space: pre-wrap; /* erlaubt \n-Zeilenumbrüche */
  overflow-wrap: normal; /* keine automatische Worttrennung */
  word-break: normal;    /* kein Aufteilen innerhalb von Wörtern */
  display: block;
  font-size: var(--shared-font-size);
  font-weight: 900;
  color: var(--font-color);
  letter-spacing: var(--letter-spacing);
  font-family: var(--font-family);
  line-height: 1.1;
}


.headline-banner {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -35%);
  z-index: 500;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.headline-text {
  font-size: var(--shared-font-size);
  font-weight: 900;
  color: white;
  font-family: var(--font-family);
  line-height: 1.1;
  padding: 0 1rem;
}

.subheadline-text {
  font-size: 1rem;
  font-weight: 400;
  color: white;
  font-family: var(--font-family);
  line-height: 1.1;
  padding: 0 1rem;
}

.side-deco-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  transform: translate(-30%, 0%);
  width: auto;
  height: 70vh;
  aspect-ratio: 1 / 3;
  background-color: none;
  z-index: 299;
}

.side-deco-img {
  height: 100%;
  width: auto;
  display: block;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  z-index: 400;
}

.footer a {
  color: var(--font-color);
  margin: 0 1rem;
  text-decoration: none;
}

.footer-content {
  text-align: center;
  font-size: 1rem;
}

.marquee-container {
  width: 100%;
  background-color: #001f3f;
  position: fixed;
  bottom: 3rem;
  z-index: 350;
  padding: 0.5rem 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  width: auto;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  color: white;
  text-align: left;
  padding: 0 1rem;
  transform: translateX(0);
  will-change: transform;
}


/* Responsive Optimierung für gängige Bildschirmgrößen */

/* Smartphones Hochformat */
@media (max-width: 480px) {
  .headline-text,
  .countdown {
    font-size: clamp(1.2rem, 6vw, 4rem);
  }
  .countdown-container {
    top: 65%;
  }
}

/* Smartphones Querformat */
@media (max-width: 812px) and (orientation: landscape) {
  .headline-text,
  .countdown {
    font-size: clamp(1.2rem, 5vw, 3.5rem);
  }
  .countdown-container {
    top: 70%;
  }
}

/* Tablets Hochformat */
@media (min-width: 481px) and (max-width: 1024px) and (orientation: portrait) {
  .headline-text,
  .countdown {
    font-size: clamp(2rem, 6vw, 6rem);
  }
  .countdown-container {
    top: 60%;
  }
}

/* Tablets Querformat */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  .headline-text,
  .countdown {
    font-size: clamp(2rem, 5vw, 5rem);
  }
  .countdown-container {
    top: 55%;
  }
}

/* Laptops (klein) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .headline-text,
  .countdown {
    font-size: clamp(2.5rem, 5vw, 6rem);
  }
  .countdown-container {
    top: 50%;
  }
}

/* Full HD (Standard-Desktop) */
@media (min-width: 1441px) and (max-width: 1920px) {
  .headline-text,
  .countdown {
    font-size: clamp(3rem, 5vw, 7rem);
  }
  .countdown-container {
    top: 48%;
  }
}

/* WQHD bis 4K */
@media (min-width: 1921px) and (max-width: 3840px) {
  .headline-text,
  .countdown {
    font-size: clamp(3.5rem, 4vw, 8rem);
  }
  .countdown-container {
    top: 45%;
  }
}

/* 5K und größer */
@media (min-width: 3841px) {
  .headline-text,
  .countdown {
    font-size: clamp(4rem, 3.5vw, 9rem);
  }
  .countdown-container {
    top: 42%;
  }
}
