:root {
  --bg: #000000;
  --text: #ffffff;
  --accent: #55c3e9;
  --anthrazit: #1d1d1b;
  --muted: rgba(255, 255, 255, 0.55);
  --font-headline: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  padding: 3rem 2rem 0;
  text-align: center;
}

/* Logo */
header {
  margin-bottom: 3.5rem;
}

.logo {
  width: 300px;
  max-width: 65%;
}

/* Headline */
h1 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 5rem);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.subheadline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  white-space: nowrap;
  margin-bottom: 0.5rem;
}

/* Countdown */
.countdown {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 3rem;
  background: #ffffff;
  border-radius: 3px;
  padding: 1rem 1.5rem 0.75rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-number {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}

.countdown-label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--anthrazit);
  margin-top: 0.5rem;
}

.countdown-divider {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
  padding-top: 0.3em;
}

/* Description */
.description {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  line-height: 1.8;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 0.5rem;
}

.description-cta {
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: none;
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  line-height: 1.2;
}

/* Footer-Kontakt */
.footer-contact {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-align: center;
  margin: 0.75rem 0;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* OCTIV Lead-Widget — Moving Glow Border */
.octiv-widget {
  position: relative;
  max-width: 600px;
  margin: 0 auto 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(85, 195, 233, 0.25), 0 0 60px rgba(85, 195, 233, 0.1);
}

/* Spinning gradient that creates the moving border */
.octiv-widget::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    #55c3e9 50deg,
    #aae4f7 90deg,
    #55c3e9 130deg,
    transparent 180deg,
    transparent 360deg
  );
  animation: glow-spin 4s linear infinite;
  z-index: 0;
}

/* Black fill that sits above the gradient, creating "border only" look */
.octiv-widget::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #000000;
  border-radius: 4px;
  z-index: 1;
}

.octiv-widget iframe {
  position: relative;
  display: block;
  border: none;
  z-index: 2;
}

@keyframes glow-spin {
  to { transform: rotate(360deg); }
}

/* CTA Scroll-Button */
.cta-scroll-btn {
  margin: 1.5rem auto 2.5rem;
  box-shadow: 0 0 18px rgba(85, 195, 233, 0.7), 0 0 55px rgba(85, 195, 233, 0.3);
}

.cta-scroll-btn:hover {
  box-shadow: none;
  color: var(--anthrazit);
}

/* Social — Buttons */
.social {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: var(--anthrazit);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35), 0 0 40px rgba(255, 255, 255, 0.12);
  color: var(--anthrazit);
}

.social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Description Meta — Kurzinfos unter Einleitungstext */
.description-meta {
  margin: 1.25rem auto 0;
  max-width: 560px;
  text-align: center;
}

.description-meta .narrative-tags {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0;
  line-height: 1.8;
}

.description-meta .narrative-who {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  letter-spacing: 0;
  line-height: 1.8;
}

/* Narrative Liste */
.narrative-list {
  width: 100%;
  margin: 3rem 0;
  text-align: left;
}

.narrative-rule {
  width: 100%;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
  opacity: 0.7;
}

.narrative-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding: 1.1rem 0;
  align-items: start;
}

.narrative-label {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1.1;
  padding-top: 0.1rem;
}

.narrative-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.45rem;
}

.narrative-tags {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 0.45rem;
}

.narrative-who {
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section blocks */
.section-block {
  width: 100%;
  margin: 3rem 0;
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Tile grids */
.tile-grid {
  display: grid;
  gap: 0.6rem;
}

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

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

/* Tiles */
.tile {
  background: var(--anthrazit);
  border-radius: 4px;
  padding: 1.5rem 1rem;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.tile:hover {
  border-color: rgba(85, 195, 233, 0.5);
  box-shadow: 0 0 16px rgba(85, 195, 233, 0.12);
}

.tile-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.25;
  transition: color 0.25s ease;
}

.tile:hover .tile-title {
  color: var(--accent);
}

.tile-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.45rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tile:hover .tile-sub {
  opacity: 1;
  transform: translateY(0);
}

.tile--small {
  min-height: 68px;
  padding: 1rem 0.75rem;
}

.tile--small .tile-title {
  font-size: clamp(0.75rem, 1.1vw, 0.88rem);
}

/* Abschlussversprechen */
.tagline-promise {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  white-space: nowrap;
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 15px rgba(85, 195, 233, 0.75), 0 0 40px rgba(85, 195, 233, 0.35);
}

/* Footer */
footer {
  width: 100%;
  background: var(--bg);
  padding: 1.5rem 2rem 1.75rem;
  text-align: center;
}

.footer-rule {
  width: 40%;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1.25rem;
  opacity: 0.7;
}

.footer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.footer-bar a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-bar a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.footer-divider {
  margin: 0 0.5rem;
  opacity: 0.35;
}

.footer-mobile-break {
  display: none;
  width: 100%;
  height: 0;
}

/* Subpages — Zurück-Link */
.back-link {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: color 0.2s ease;
  z-index: 10;
}

.back-link:hover {
  color: var(--accent);
}

/* Subpages — Legal Content */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  white-space: normal;
  margin-bottom: 2.5rem;
  color: var(--accent);
}

.legal-content h2 {
  font-family: var(--font-headline);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

.legal-content p,
.legal-content address {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
  font-style: normal;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-decoration: none;
}

.legal-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

@media (max-width: 800px) {
  .footer-mobile-break {
    display: block;
  }

  .footer-divider-break {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .countdown {
    gap: 0.4rem;
  }

  .countdown-unit {
    min-width: 64px;
    padding: 0.75rem 0.75rem 0.6rem;
  }

  .countdown-divider {
    padding-top: 0.2em;
  }

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

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

  .narrative-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.5rem 0;
  }
}
