/* ==========================================================================
   Teamworks – Teaser
   ========================================================================== */

/* Inter (lokal, variabel 300–800) ------------------------------------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-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;
}

/* Tokens ------------------------------------------------------------------- */
:root {
  --accent: #592c8f;
  --accent-dark: #47226f;
  --accent-soft: rgba(89, 44, 143, .06);
  --line: rgba(89, 44, 143, .16);
  --text: #000000;
  --text-soft: rgba(0, 0, 0, .68);
  --bg: #ffffff;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Base --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Intro-Bereich (erster Viewport) ---------------------------------------- */
.intro {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* Bis GSAP übernimmt, bleibt der Intro-Bereich unsichtbar (kein Aufblitzen).
   Fallback: Falls JavaScript scheitert, wird er nach 2,5 s trotzdem gezeigt. */
.js [data-intro] {
  visibility: hidden;
  animation: intro-fallback 0s 2.5s forwards;
}
@keyframes intro-fallback { to { visibility: visible; } }

/* Header ------------------------------------------------------------------- */
.site-header { position: relative; }

.topbar {
  display: block;
  height: 4px;
  background: var(--accent);
  transform-origin: left center;
}

.site-header__inner {
  display: flex;
  justify-content: center;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.brand {
  display: inline-block;
  border-radius: 6px;
}
.brand img { width: clamp(210px, 26vw, 320px); }
.brand:focus-visible { outline: 3px solid rgba(89, 44, 143, .35); outline-offset: 8px; }

/* Hero --------------------------------------------------------------------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: .5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow__dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Headline + Textanimation ------------------------------------------------- */
.headline {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 9.2vw, 7.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.headline__accent {
  color: var(--accent);
  font-style: normal;
}

/* Wörter dienen als Maske, aus der die Buchstaben aufsteigen */
.headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .045em .14em;
  margin: 0 -.045em -.14em;
}

.headline .char {
  display: inline-block;
  will-change: transform;
}

/* „Neues“: erst Kontur (wie das S im Logo), dann gefüllt */
.headline .word--accent .char {
  color: var(--accent);
  -webkit-text-stroke: var(--stroke, 0) var(--accent);
}

.headline .char--dot { color: var(--accent); }

/* Lead --------------------------------------------------------------------- */
.lead {
  max-width: 40rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.7;
}
.lead p { margin: 0; }
.lead p + p { margin-top: 1rem; }

.lead__cta {
  color: var(--accent);
  font-weight: 600;
}

/* Countdown ---------------------------------------------------------------- */
.countdown {
  width: min(100%, 46rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.5rem, 1.8vw, 1.25rem);
}

.countdown__unit {
  position: relative;
  padding: clamp(1rem, 2.6vw, 1.6rem) .35rem clamp(.9rem, 2.2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.countdown__unit::after {
  /* feine Akzentlinie am unteren Rand */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 28%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}
.countdown__unit:hover {
  border-color: rgba(89, 44, 143, .35);
  box-shadow: 0 18px 40px -28px rgba(89, 44, 143, .55);
}

.countdown__value {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(2rem, 6.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.countdown__num { display: inline-block; }

.countdown__label {
  display: block;
  margin-top: .3rem;
  color: var(--accent);
  font-size: clamp(.62rem, 1.1vw, .78rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.countdown__note {
  margin: 1.1rem 0 0;
  color: var(--text-soft);
  font-size: .95rem;
}
.countdown__note time { color: var(--text); font-weight: 600; }

.countdown.is-finished .countdown__note { color: var(--accent); font-weight: 600; }

/* CTA ---------------------------------------------------------------------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .8rem 1.6rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 30px -14px rgba(89, 44, 143, .75);
  transform: translateY(-2px);
}

.btn--ghost { background: var(--bg); color: var(--accent); }
.btn--ghost:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn:focus-visible { outline: 3px solid rgba(89, 44, 143, .35); outline-offset: 3px; }

/* Partner ------------------------------------------------------------------ */
.partner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.partner__label {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.partner__logo {
  width: clamp(200px, 22vw, 270px);
  mix-blend-mode: multiply; /* JPG-Hintergrund verschmilzt mit dem Weiß */
}

/* Footer ------------------------------------------------------------------- */
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: clamp(2.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  font-size: .95rem;
  line-height: 1.7;
}

.site-footer__col:nth-child(2) { text-align: center; }
.site-footer__col:nth-child(3) { text-align: right; }

.site-footer__title {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer address { margin: 0; font-style: normal; }

.site-footer a {
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease), color .35s var(--ease);
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  background-size: 100% 1.5px;
}
.site-footer a:focus-visible { outline: 2px solid rgba(89, 44, 143, .35); outline-offset: 3px; border-radius: 2px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .site-footer__col:nth-child(3) { text-align: center; }
}

@media (max-width: 480px) {
  .countdown__label { letter-spacing: .06em; }
  .countdown__unit { border-radius: 14px; }
  .btn { width: 100%; }
  .cta { width: 100%; }
}

/* Bewegung reduzieren ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .eyebrow__dot::after { animation: none; }
  .btn, .countdown__unit, .site-footer a { transition: none; }
}
