/* ==========================================================================
   Games-Fest, Basis, Abschnitte 07 News und 08 Mitmachen
   Werte aus dem Figma (Layout-Platzhalter), Breiten 1440 / 768 / 390
   ========================================================================== */

/* ---- Schriften (selbst gehostet, OFL) ------------------------------------ */
@font-face {
  font-family: "Unbounded";
  src: url("Fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("Fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Token ---------------------------------------------------------------- */
:root {
  --nachtelbe: #111941;
  --pixelgold: #fedd00;
  --uferlicht: #fcf7ee;
  --zwielicht: #ef3f73;
  --elbaue: #ada453;
  --karte: #ffffff;
  --bild-platzhalter: #e3ded6;
  --linie-hell: #e2e3e8;
  --header-h: 96px;

  --abstand-8: 8px;
  --abstand-12: 12px;
  --abstand-16: 16px;
  --abstand-24: 24px;
  --abstand-32: 32px;
  --abstand-48: 48px;
  --abstand-64: 64px;
  --abstand-96: 96px;

  --radius-s: 8px;
  --radius-m: 24px;
  --radius-voll: 999px;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --inhalt-breite: 1248px;
  --rand: 96px;
  --abschnitt-oben: 96px;
  --raster-abstand: 24px;

  /* Schriftgrößen-Skala. Gleiche Rolle = gleiche Größe, die Rollen werden am Dateiende zugewiesen.
     Titel 1: Abschnitts- und Seitenüberschriften
     Titel 2: Überschriften in Kästen und kompakten Bereichen (Countdown, Für Unternehmen, Kontakt, Footer)
     Titel 3: große Namen (Hauptsponsor, Zwischenüberschrift im Fließtext)
     Titel 4: Überschriften von Karten, Fragen, Zwischenüberschriften, Hinweisband
     Lead:    Einleitungstexte unter Überschriften
     Text:    Fließtext in Absätzen (kleine Kartentexte bleiben 16 px) */
  --titel-1: 52px;
  --titel-2: 40px;
  --titel-3: 26px;
  --titel-4: 22px;
  --text-lead: 22px;
  --text: 18px;
}

@media (max-width: 1199px) {
  :root {
    --rand: 48px;
    --abschnitt-oben: 64px;
    --header-h: 81.6px;
    --titel-1: 44px;
    --titel-2: 32px;
    --text-lead: 20px;
  }
}

@media (max-width: 767px) {
  :root {
    --rand: 24px;
    --header-h: 67.2px;
    --raster-abstand: 16px;
    --titel-1: 32px;
    --titel-2: 28px;
    --titel-3: 24px;
    --titel-4: 20px;
    --text-lead: 18px;
    --text: 16px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Sprungmarken (#mitmachen, #faq ...) landen unterhalb des fixierten Kopfbereichs */
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--uferlicht);
  color: var(--nachtelbe);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* vererbt auf alle Texte: möglichst kein einzelnes Wort in der letzten Zeile (wo der Browser das kann) */
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--zwielicht);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Leere Startseite: Hinweis, bis Inhalte angelegt sind */
main > .neos-contentcollection:empty::before {
  content: "Unsere Website ist im Aufbau.";
  display: block;
  padding: var(--abschnitt-oben) var(--rand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

/* ---- Abschnitt-Rahmen ----------------------------------------------------- */
/* Der Abstand zwischen zwei Abschnitten ist der obere Abstand des folgenden (96 px, Tablet und Mobil 64 px),
   wie im Figma. Nur der letzte Abschnitt vor dem Footer bekommt auch unten Abstand. */
.section {
  padding: var(--abschnitt-oben) max(var(--rand), calc((100% - var(--inhalt-breite)) / 2)) 0;
}

main > .neos-contentcollection > .section:last-child,
main > .section:last-child {
  padding-bottom: var(--abschnitt-oben);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-48);
  width: 100%;
  max-width: var(--inhalt-breite);
  margin-inline: auto;
}

/* ---- Buttons -------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--abstand-16) var(--abstand-32);
  border: 2px solid var(--nachtelbe);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--nachtelbe);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
  background: var(--nachtelbe);
  color: var(--uferlicht);
}

.button--primary:hover {
  background: #1d2a66;
  border-color: #1d2a66;
}

.button--secondary:hover {
  background: var(--nachtelbe);
  color: var(--uferlicht);
}

.button--gold {
  background: var(--pixelgold);
  border-color: var(--pixelgold);
  color: var(--nachtelbe);
}

.button--gold:hover {
  background: #ffe84d;
  border-color: #ffe84d;
}

.button--accent {
  background: var(--zwielicht);
  border-color: var(--zwielicht);
  color: var(--nachtelbe);
}

.button--accent:hover {
  background: #f4668f;
  border-color: #f4668f;
}

/* Button ohne Ziel (z. B. "Vorverkauf startet bald") wirkt nicht klickbar */
.button:not([href]) {
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* ==========================================================================
   03 Infoleiste (Laufband)
   Rosa Band über die volle Breite, Einträge in Endlosschleife (site.js verdoppelt sie und setzt
   --ticker-shift und --ticker-dauer). Ohne JavaScript steht die Zeile ruhig und wird abgeschnitten.
   ========================================================================== */
.ticker {
  overflow: hidden;
  padding-block: 21.5px;
  background: var(--zwielicht);
  color: var(--nachtelbe);
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__track > .neos-contentcollection,
.ticker__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--abstand-32);
}

/* Der Abstand nach dem letzten Eintrag gehört zur Gruppe, sonst ruckelt die Schleife am Übergang */
.ticker.is-running .ticker__group {
  padding-right: var(--abstand-32);
}

.ticker__item {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--abstand-32);
}

.ticker__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  /* pre statt nowrap: doppelte Leerzeichen um den Mittelpunkt bleiben wie im Figma erhalten */
  white-space: pre;
}

/* Trenner: zwei Pixel-Quadrate über Eck */
.ticker__pixel {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.ticker__pixel::before,
.ticker__pixel::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--nachtelbe);
}

.ticker__pixel::before {
  top: 0;
  left: 0;
}

.ticker__pixel::after {
  top: 7px;
  left: 7px;
}

.ticker.is-running .ticker__track {
  animation: ticker-lauf var(--ticker-dauer, 40s) linear infinite;
}

@keyframes ticker-lauf {
  to {
    transform: translateX(calc(-1 * var(--ticker-shift, 50%)));
  }
}

/* Anhalten, solange die Maus darüber steht oder ein Eintrag den Fokus hat */
.ticker.is-running:hover .ticker__track,
.ticker.is-running:focus-within .ticker__track {
  animation-play-state: paused;
}

/* Backend: Einträge umbrechen und bleiben bearbeitbar */
.ticker--edit .ticker__track {
  width: auto;
}

.ticker--edit .ticker__track > .neos-contentcollection {
  flex-wrap: wrap;
  row-gap: var(--abstand-16);
  min-height: 29px;
}

@media (min-width: 1200px) {
  .ticker {
    padding-block: 29.5px;
  }
}

/* "Bewegung reduzieren": keine Schleife, die Einträge stehen ruhig und umbrechen mittig */
@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    width: auto;
  }

  .ticker__track > .neos-contentcollection {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--abstand-16);
  }

  .ticker.is-running .ticker__track {
    animation: none;
  }

  .ticker__group[data-clone],
  .ticker__item[data-clone] {
    display: none;
  }
}

/* ==========================================================================
   07 News
   ========================================================================== */
/* Überschrift und Button teilen sich die erste Zeile, auf dem Smartphone steht der Button unter den Karten */
.news__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--abstand-24);
  row-gap: var(--abstand-48);
}

.news__inner > * {
  grid-column: 1 / -1;
}

.news__heading {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.news__all {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.news--overview .neos-contentcollection:empty {
  display: none;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--raster-abstand);
  align-items: stretch;
}

.news[data-count="2"] .news__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Karte */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--karte);
}

.news-card__media {
  flex: 0 0 auto;
  height: 210px;
  background: var(--bild-platzhalter);
}

.news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--abstand-12);
  padding: var(--abstand-24) var(--abstand-32) var(--abstand-32);
  overflow-wrap: break-word;
}

.news-card__category {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.news-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.news-card__teaser {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.7;
}

.news-card__link {
  margin-top: auto;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ganze Karte klickbar, ohne verschachtelte Links */
.news-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-card:focus-within {
  outline: 3px solid var(--zwielicht);
  outline-offset: 3px;
}

.news-card__link:focus-visible {
  outline: none;
}

@media (max-width: 1199px) {
  .news__heading {
    font-size: 34px;
  }

  .news__grid,
  .news[data-count="2"] .news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Tablet und Mobil zeigen auf der Startseite nur 2 Karten */
  .news:not(.news--overview) .news-card:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 767px) {
  .news__heading {
    font-size: 28px;
  }

  .news__grid,
  .news[data-count="2"] .news__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news__all {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
  }
}

/* ==========================================================================
   08 Mitmachen
   ========================================================================== */
.join {
  --spalten: 3;
}

.join[data-columns="2"] {
  --spalten: 2;
}

.join__head {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
}

.join__eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.join__lead {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
}

/* Raster: Karten teilen sich die Zeile, die letzte Reihe füllt den Platz aus */
.join__grid > .neos-contentcollection {
  display: flex;
  flex-wrap: wrap;
  gap: var(--raster-abstand);
}

.join-card {
  display: flex;
  flex: 1 1 calc((100% - (var(--spalten) - 1) * var(--raster-abstand)) / var(--spalten));
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--karte);
}

.join-card__media {
  flex: 0 0 auto;
  height: 200px;
  background: var(--bild-platzhalter);
}

.join-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--abstand-16);
  padding: var(--abstand-32);
}

/* Textbereich füllt die Karte, damit die Frist immer direkt über dem Button steht */
.join-card__top {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--abstand-16);
}

.join-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.join-card__price {
  padding: var(--abstand-8) var(--abstand-16);
  border-radius: var(--radius-voll);
  background: var(--pixelgold);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.join-card__content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: var(--abstand-16);
  width: 100%;
}

.join-card__text {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.7;
  overflow-wrap: break-word;
}

.join-card__text > * + *,
.join-card__text p + p {
  margin-top: var(--abstand-12);
}

.join-card__text ul,
.join-card__text ol {
  margin: 0;
  padding-left: 1.25em;
}

.join-card__text a {
  text-underline-offset: 0.2em;
}

.join-card__deadline {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Button sitzt immer am Kartenende, auch bei unterschiedlich langen Texten */
.join-card__button {
  width: 100%;
  margin-top: auto;
}

.join__note {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   Hinweisband (Text und Button auf dunklem Grund)
   ========================================================================== */
.band__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-24);
  padding: var(--abstand-32) var(--abstand-48);
  border-radius: var(--radius-m);
  background: var(--nachtelbe);
  color: var(--uferlicht);
}

.band__text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.band__box .button {
  flex: 0 0 auto;
}

.band__box :focus-visible {
  outline-color: var(--pixelgold);
}

/* Steht das Band direkt unter dem Mitmachen-Abschnitt, bleibt der Abstand wie im Figma bei 48 px.
   Ohne negative Ränder, damit sich die Abschnitte (und ihre Rahmen im Backend) nicht überlappen. */
.join:has(+ .band) {
  padding-bottom: var(--abstand-48);
}

.join + .band {
  padding-top: 0;
}

@media (max-width: 1199px) {
  .band__text {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .band__box {
    flex-direction: column;
    align-items: flex-start;
  }

  .band__text {
    font-size: 18px;
  }
}

@media (max-width: 1199px) {
  .join {
    --spalten: 2;
  }

  .join[data-columns] {
    --spalten: 2;
  }

  .join__heading {
    font-size: 44px;
  }

  .join__lead {
    font-size: 20px;
  }

}

@media (max-width: 767px) {
  .join[data-columns] {
    --spalten: 1;
  }

  .join__heading {
    font-size: 32px;
  }

  .join__lead {
    font-size: 18px;
  }

}

/* ==========================================================================
   News-Beitrag
   ========================================================================== */
.article__inner {
  max-width: 800px;
}

.article__head {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand-16);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.article__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.article__teaser {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
}

.article__media {
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--bild-platzhalter);
}

.article__img {
  display: block;
  width: 100%;
  height: auto;
}

.article__body > .neos-contentcollection > * + * {
  margin-top: var(--abstand-24);
}

.article__body a {
  text-underline-offset: 0.2em;
}

/* Textelement (Fließtext mit Überschriften, Listen, Links) */
.richtext > * + * {
  margin-top: var(--abstand-16);
}

.richtext h2,
.richtext h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.richtext h2 {
  font-size: 26px;
}

.richtext h3 {
  font-size: 22px;
}

.richtext ul,
.richtext ol {
  margin: 0;
  padding-left: 1.25em;
}

.richtext a {
  text-underline-offset: 0.2em;
}

/* Bildelement */
.figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--bild-platzhalter);
}

.figure__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Kopfbereich (01 Header)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--abstand-16);
  z-index: 100;
  padding: var(--abstand-12) var(--abstand-24);
  border-radius: var(--radius-s);
  background: var(--pixelgold);
  color: var(--nachtelbe);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--abstand-16);
}

/* Der Kopfbereich bleibt beim Scrollen oben stehen, damit das Menü immer erreichbar ist.
   Im Backend steht er normal im Fluss. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-24);
  min-height: var(--header-h);
  /* Inhalt steht auf derselben Breite wie die Abschnitte (max. 1248 px), Hintergrund und Linie laufen durch */
  padding: 0 max(var(--rand), calc((100% - var(--inhalt-breite)) / 2));
  border-bottom: 1px solid var(--linie-hell);
  background: var(--uferlicht);
  color: var(--nachtelbe);
}

.site-header.is-edit {
  position: relative;
}

.site-header__brand {
  display: flex;
  flex: none;
  align-items: center;
}

.site-header__logo {
  display: block;
  width: 100px;
  height: auto;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--abstand-32);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--abstand-32);
}

.site-header__nav > .neos-contentcollection {
  display: flex;
  align-items: center;
  gap: var(--abstand-32);
}

.nav__cta {
  display: none;
}

.site-header__toggle {
  display: none;
}

.nav__link,
.site-header__toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--nachtelbe);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav__link:hover,
.site-header__toggle:hover {
  text-decoration: underline;
  text-decoration-color: var(--zwielicht);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Button im Kopfbereich: Primär ohne Rahmen (51 px hoch wie im Figma) */
.site-header .button {
  border: 0;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Brücke, damit das Untermenü beim Wechsel der Maus offen bleibt */
.nav__item--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -16px;
  left: -16px;
  height: 64px;
}

.nav__dropdown {
  display: none;
}

.nav__dropdown > .neos-contentcollection {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--abstand-12) var(--abstand-16);
  border-radius: var(--radius-s);
  text-decoration: none;
  white-space: nowrap;
}

.nav__sub:hover {
  background: rgba(17, 25, 65, 0.06);
}

.nav__sub-title {
  color: var(--nachtelbe);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.nav__sub-text {
  color: rgba(17, 25, 65, 0.7);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 1200px) {
  .nav__dropdown {
    position: absolute;
    top: calc(50% + 56px);
    left: -16px;
    min-width: 302px;
    padding: var(--abstand-16);
    border: 1px solid var(--linie-hell);
    border-radius: var(--radius-m);
    background: var(--uferlicht);
    box-shadow: 0 16px 32px rgba(17, 25, 65, 0.12);
  }

  .nav__item:hover .nav__dropdown,
  .nav__item:focus-within .nav__dropdown,
  .nav__item.is-open .nav__dropdown {
    display: block;
  }

  /* Im Backend immer offen und im Fluss, damit Einträge bearbeitet werden können */
  .site-header.is-edit .nav__item {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--abstand-8);
  }

  .site-header.is-edit .nav__dropdown {
    position: static;
    display: block;
    min-width: 0;
  }
}

/* Tablet und Smartphone: Menü als Fläche unter dem Kopfbereich, füllt die Höhe und scrollt in sich.
   Untermenüs sind einklappbare Zeilen, immer nur eine ist offen (site.js). */
@media (max-width: 1199px) {
  .site-header__logo {
    width: 85px;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--abstand-12);
    min-height: 44px;
    order: 1;
  }

  /* Symbol: drei Striche, bei offenem Menü ein X */
  .site-header__toggle::after {
    content: "";
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23111941' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M3 6h16M3 11h16M3 16h16'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .site-header__toggle[aria-expanded="true"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23111941' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M5 5l12 12M17 5L5 17'/%3E%3C/svg%3E");
  }

  .site-header__cta {
    order: 2;
  }

  .site-header__nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 0 var(--rand);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--uferlicht);
  }

  .site-header.is-open .site-header__nav {
    display: flex;
  }

  /* Solange das Menü offen ist, scrollt die Seite dahinter nicht */
  html.has-menu-open {
    overflow: hidden;
  }

  .site-header__nav > .neos-contentcollection {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-bottom: var(--abstand-16);
  }

  .nav__item {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--linie-hell);
  }

  /* Große Tippflächen: jede Zeile mindestens 56 px hoch */
  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    text-align: left;
  }

  .nav__link:hover {
    text-decoration: none;
  }

  .nav__link--toggle::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .nav__item.is-open .nav__link--toggle::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .nav__dropdown {
    padding: 0 0 var(--abstand-16) var(--abstand-16);
  }

  .nav__item.is-open .nav__dropdown {
    display: block;
  }

  .nav__dropdown > .neos-contentcollection {
    gap: 0;
  }

  .nav__sub {
    justify-content: center;
    min-height: 48px;
    padding: var(--abstand-12) 0;
    white-space: normal;
  }

  .nav__sub:hover {
    background: none;
  }

  /* Im Backend steht das Menü offen im Fluss, damit alles bearbeitet werden kann */
  .site-header.is-edit .site-header__nav {
    position: static;
    display: flex;
    height: auto;
    padding-block: var(--abstand-24);
    overflow: visible;
  }

  .site-header.is-edit .nav__dropdown {
    display: block;
  }
}

@media (max-width: 767px) {
  .site-header__logo {
    width: 70px;
  }

  /* Der Button steckt auf dem Smartphone im Menü und bleibt unten sichtbar, auch wenn die Liste scrollt */
  .site-header__cta {
    display: none;
  }

  .nav__cta {
    position: sticky;
    bottom: var(--abstand-16);
    display: inline-flex;
    margin-block: var(--abstand-16);
    margin-top: auto;
    box-shadow: 0 0 0 var(--abstand-16) var(--uferlicht);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__link--toggle::after {
    transition: none;
  }
}

/* ==========================================================================
   Fußbereich (13 Footer): zentriert, Breiten nach dem Spaltenraster
   Desktop 12 Spalten, Tablet 8, Mobil 4 (Figma "01 Website", 14 Footer)
   ========================================================================== */
.site-footer {
  padding: var(--abstand-96) max(var(--rand), calc((100% - var(--inhalt-breite)) / 2)) var(--abstand-48);
  background: var(--pixelgold);
  color: var(--nachtelbe);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--abstand-48);
  width: 100%;
  max-width: var(--inhalt-breite);
  margin-inline: auto;
}

.site-footer__logo-link {
  display: block;
  line-height: 0;
}

.site-footer__logo {
  display: block;
  width: 188px; /* Spalten 6 und 7 */
  height: auto;
}

.site-footer__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--abstand-32);
  width: 100%;
  text-align: center;
}

.site-footer__head {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
  width: 100%;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--titel-2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.site-footer__sub {
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
  opacity: 0.9;
}

.site-footer__part {
  display: inline-block;
}

.site-footer__social {
  display: block;
  line-height: 0;
}

.site-footer__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "nav nav"
    "line line"
    "copy legal";
  align-items: center;
  gap: var(--abstand-24);
  width: 100%;
}

.site-footer__nav {
  grid-area: nav;
  justify-self: center;
  width: min(100%, 1036px); /* Spalten 2 bis 11 */
}

.site-footer__nav > .neos-contentcollection,
.site-footer__legal > .neos-contentcollection {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand-16) var(--abstand-32);
}

.site-footer__nav > .neos-contentcollection {
  justify-content: center;
}

.site-footer__legal {
  grid-area: legal;
}

.site-footer__line {
  grid-area: line;
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: rgba(17, 25, 65, 0.2);
}

.site-footer__copy {
  grid-area: copy;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.6;
}

.footer-link {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-link[href]:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 1199px) {
  .site-footer {
    padding-top: var(--abstand-64);
  }

  .site-footer__logo {
    width: 150px; /* Spalten 4 und 5 */
  }

  /* Tablet: Ort in eigener Zeile */
  .site-footer__sep:nth-last-of-type(2) {
    display: none;
  }

  .site-footer__part:last-of-type {
    display: block;
  }

  .site-footer__button {
    width: calc(50% - 12px); /* 4 von 8 Spalten */
    min-width: max-content;
  }

  .site-footer__nav {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .site-footer__logo {
    width: 163px; /* Spalten 2 und 3 */
  }

  /* Smartphone: jede Angabe in eigener Zeile */
  .site-footer__sep {
    display: none;
  }

  .site-footer__part {
    display: block;
  }

  .site-footer__button {
    width: 100%;
    min-width: 0;
  }

  /* Zwei Listen über je 2 Spalten, darunter Linie und Copyright */
  .site-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "nav legal"
      "line line"
      "copy copy";
    align-items: start;
    column-gap: var(--abstand-16);
  }

  .site-footer__nav > .neos-contentcollection,
  .site-footer__legal > .neos-contentcollection {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
  }

  /* Tippfläche 44 px */
  .site-footer__links .footer-link {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ==========================================================================
   Rechtliche Seiten (Impressum, Datenschutz)
   ========================================================================== */
.legal {
  padding-inline: max(var(--rand), calc((100% - var(--inhalt-breite)) / 2));
}

.legal__head,
.legal__body {
  width: 100%;
  max-width: var(--inhalt-breite);
  margin-inline: auto;
}

.legal__head {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
  padding-top: var(--abstand-64);
}

.legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand-8);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.legal__crumbs a {
  text-decoration: none;
}

.legal__crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal__eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.legal__lead {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
}

.legal__body > .neos-contentcollection {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-32);
  padding-top: var(--abstand-64);
  padding-bottom: var(--abschnitt-oben);
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-8);
}

.legal-block__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.legal-block__text {
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.legal-block__text > * + * {
  margin-top: var(--abstand-12);
}

.legal-block__text ul,
.legal-block__text ol {
  margin: 0;
  padding-left: 1.25em;
}

.legal-block__text a {
  text-underline-offset: 0.2em;
}

/* Offene Stellen im Text, bis sie ausgefüllt sind */
.platzhalter {
  color: var(--zwielicht);
}

/* ==========================================================================
   Fehlerseite 404
   ========================================================================== */
.error404 {
  position: relative;
  overflow: hidden;
  padding: var(--abstand-96) max(var(--rand), calc((100% - var(--inhalt-breite)) / 2)) 120px;
  background-color: var(--nachtelbe);
  background-image: url("Images/404-pixel-desktop.svg");
  background-repeat: no-repeat;
  background-position: center top;
  color: var(--uferlicht);
}

.error404__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--abstand-48);
  width: 100%;
  max-width: var(--inhalt-breite);
  margin-inline: auto;
}

.error404__text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--abstand-24);
  min-width: 0;
}

.error404__eyebrow {
  color: var(--zwielicht);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error404__code {
  padding-bottom: 0.2em;
  color: var(--pixelgold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 220px;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-shadow: 8px 8px 0 var(--zwielicht);
}

.error404__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.error404__lead {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
}

.error404__lead a {
  text-underline-offset: 0.2em;
}

.error404__hint {
  font-size: 18px;
  line-height: 1.55;
}

.error404__links > .neos-contentcollection {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand-12);
}

.chip {
  display: inline-flex;
  padding: var(--abstand-12) 22px;
  border: 1px solid var(--uferlicht);
  border-radius: var(--radius-voll);
  color: var(--uferlicht);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.chip[href]:hover {
  background: var(--uferlicht);
  color: var(--nachtelbe);
}

.error404 :focus-visible {
  outline-color: var(--pixelgold);
}

/* Maskottchen: gespiegelt und leicht gekippt wie im Figma, mit rosa Schein dahinter */
.error404__mascot {
  position: relative;
  flex: 0 0 420px;
  height: 440px;
}

.error404__cat {
  position: absolute;
  top: 115px;
  left: 63px;
  width: 363px;
  height: 338px;
}

.error404__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 880px;
  max-width: none;
  height: 740px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.error404__img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(8.66deg) scaleX(-1);
}

.error404__bubble {
  position: absolute;
  top: 0;
  left: 0;
  padding: 14px 22px;
  border-radius: var(--radius-m);
  background: var(--karte);
  color: var(--nachtelbe);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(4deg);
}

@media (max-width: 1199px) {
  .error404 {
    padding-top: var(--abstand-64);
    padding-bottom: 80px;
    background-image: url("Images/404-pixel-tablet.svg");
  }

  .error404__inner {
    flex-direction: column;
    gap: var(--abstand-40, 40px);
  }

  .error404__text {
    width: 100%;
  }

  .error404__code {
    font-size: 170px;
  }

  .error404__title {
    font-size: 44px;
  }

  .error404__lead {
    font-size: 20px;
  }

  .error404__mascot {
    flex: 0 0 auto;
    width: 100%;
    height: 380px;
  }

  .error404__cat {
    top: 103px;
    left: 21px;
    width: 330px;
    height: 307px;
  }

  .error404__glow {
    width: 640px;
    height: 620px;
  }

  .error404__bubble {
    top: 10px;
  }
}

@media (max-width: 767px) {
  .error404 {
    background-image: url("Images/404-pixel-mobil.svg");
  }

  .error404__code {
    font-size: 112px;
  }

  .error404__title {
    font-size: 30px;
  }

  .error404__lead {
    font-size: 18px;
  }

  .error404__actions {
    width: 100%;
  }

  .error404__actions .button {
    width: 100%;
  }

  .error404__mascot {
    height: 300px;
  }

  .error404__cat {
    top: 78px;
    left: 17px;
    width: 264px;
    height: 246px;
  }
}

@media (max-width: 1199px) {
  .legal__head {
    padding-top: var(--abstand-48);
  }

  .legal__title {
    font-size: 44px;
  }

  .legal__lead {
    font-size: 20px;
  }

  .legal__body > .neos-contentcollection {
    gap: 28px;
    padding-top: 40px;
  }

  .legal-block__heading {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .legal__title {
    font-size: 32px;
  }

  .legal__lead {
    font-size: 18px;
  }

  .legal-block__heading {
    font-size: 18px;
  }

  .legal-block__text {
    font-size: 16px;
  }
}

@media (max-width: 1199px) {
  .article__title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .article__title {
    font-size: 28px;
  }

  .article__teaser {
    font-size: 18px;
  }
}

/* ==========================================================================
   Einheitliche Überschriftengröße ("Titel 1")
   Gilt für alle Abschnitts- und Seitenüberschriften, damit sie überall gleich groß sind.
   Die Größe steht oben in --titel-1 (Desktop 52, Tablet 44, Mobil 32).
   Steht bewusst am Ende der Datei und überschreibt die Einzelwerte weiter oben.
   ========================================================================== */
.news__heading,
.join__heading,
.article__title,
.legal__title,
.faq__heading,
.feature__heading,
.sponsors__heading,
.error404__title {
  font-size: var(--titel-1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   11 Häufige Fragen
   ========================================================================== */
.faq__inner {
  gap: var(--abstand-32);
}

.faq__heading {
  font-family: var(--font-display);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.faq__list > .neos-contentcollection {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid rgba(17, 25, 65, 0.2);
}

.faq-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-24);
  padding: var(--abstand-24) 0;
  list-style: none;
  cursor: pointer;
}

.faq-item__head::-webkit-details-marker {
  display: none;
}

.faq-item__q {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Symbol: gelber Kreis mit Plus, geöffnet dunkler Kreis mit gelbem Minus */
.faq-item__icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-voll);
  background: var(--pixelgold);
  color: var(--nachtelbe);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.faq-item__icon::before {
  content: "+";
}

.faq-item[open] > .faq-item__head,
.faq-item--edit > .faq-item__head {
  padding-bottom: var(--abstand-16);
}

.faq-item[open] .faq-item__icon,
.faq-item--edit .faq-item__icon {
  background: var(--nachtelbe);
  color: var(--pixelgold);
}

.faq-item[open] .faq-item__icon::before,
.faq-item--edit .faq-item__icon::before {
  content: "\2212";
}

.faq-item__a {
  max-width: 824px;
  padding-bottom: var(--abstand-24);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.7;
  overflow-wrap: break-word;
}

.faq-item__a > * + * {
  margin-top: var(--abstand-12);
}

.faq-item__a ul,
.faq-item__a ol {
  margin: 0;
  padding-left: 1.25em;
}

.faq-item__a a {
  text-underline-offset: 0.2em;
}

.faq-item__head:focus-visible {
  outline-offset: -3px;
}

/* ==========================================================================
   06 Was ist das Games-Fest (Überschrift, Einleitung, Merkmal-Karten)
   ========================================================================== */
.feature {
  --feature-spalten: 3;
}

.feature__head {
  display: flex;
  align-items: flex-start;
  gap: var(--abstand-24);
}

.feature__heading {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.feature__intro {
  flex: 1 1 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.feature__intro > * + * {
  margin-top: var(--abstand-12);
}

.feature__intro a {
  text-underline-offset: 0.2em;
}

/* Karten teilen sich die Zeile, eine unvollständige letzte Reihe füllt den Platz aus */
.feature__grid > .neos-contentcollection {
  display: flex;
  flex-wrap: wrap;
  gap: var(--raster-abstand);
}

.feature-card {
  display: flex;
  flex: 1 1 calc((100% - (var(--feature-spalten) - 1) * var(--raster-abstand)) / var(--feature-spalten));
  flex-direction: column;
  align-items: flex-start;
  gap: var(--abstand-16);
  min-width: 0;
  padding: var(--abstand-32);
  border-radius: var(--radius-m);
  background: var(--karte);
}

.feature-card__number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 64px;
  height: 64px;
  padding-inline: var(--abstand-8);
  border-radius: var(--radius-voll);
  background: var(--pixelgold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  white-space: nowrap;
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.feature-card__text {
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.7;
  overflow-wrap: break-word;
}

.feature-card__text > * + * {
  margin-top: var(--abstand-12);
}

.feature-card__text ul,
.feature-card__text ol {
  margin: 0;
  padding-left: 1.25em;
}

.feature-card__text a {
  text-underline-offset: 0.2em;
}

@media (max-width: 1199px) {
  .feature {
    --feature-spalten: 1;
  }

  .feature__head {
    flex-direction: column;
    gap: var(--abstand-16);
  }

  .feature__intro {
    flex: 0 0 auto;
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .feature__intro {
    font-size: 16px;
  }
}

/* ==========================================================================
   04 Countdown (Variante 1, Kacheln)
   ========================================================================== */
.countdown {
  padding-top: var(--abstand-48);
  padding-bottom: var(--abstand-48);
}

.countdown__inner {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-32);
  width: 100%;
  max-width: var(--inhalt-breite);
  margin-inline: auto;
}

.countdown__text {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
  min-width: 0;
}

.countdown__kicker {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--titel-2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

/* Drei Kacheln (Tage, Stunden, Minuten) immer in einer Reihe */
.countdown__tiles {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--abstand-24);
}

.countdown__tile {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: var(--abstand-8);
  min-width: 0;
  padding: 28px var(--abstand-12) var(--abstand-24);
  border-radius: var(--radius-m);
  background: var(--nachtelbe);
  white-space: nowrap;
}

.countdown__num {
  color: var(--pixelgold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.countdown__unit {
  color: var(--uferlicht);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Breit genug für Text links und drei Kacheln rechts */
@media (min-width: 1360px) {
  .countdown {
    padding-top: var(--abstand-64);
    padding-bottom: var(--abstand-64);
  }

  .countdown__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--abstand-24);
  }

  /* Textspalte fest, damit "Games-Fest" in einer Zeile bleibt; die Kacheln nehmen den Rest */
  .countdown__text {
    flex: 0 0 312px;
  }

  .countdown__tiles {
    flex: 0 1 912px;
  }

  .countdown__tile {
    flex: 1 1 0;
    max-width: 288px;
    padding-inline: var(--abstand-16);
  }

  .countdown__num {
    font-size: 96px;
  }
}

@media (max-width: 767px) {
  .countdown {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .countdown__inner {
    gap: 28px;
  }

  .countdown__tiles {
    gap: var(--abstand-16);
  }

  .countdown__tile {
    flex: 1 1 0;
    padding: 20px var(--abstand-8) 18px;
  }

  .countdown__num {
    font-size: 40px;
  }
}

/* ==========================================================================
   10 Sponsoren und Partner (Hauptsponsor und Sponsoren-Kacheln)
   ========================================================================== */
.sponsors__inner {
  gap: var(--abstand-48);
}

.sponsors__head {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
}

.sponsors__kicker {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sponsors__heading {
  font-family: var(--font-display);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.sponsors__group {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
}

.sponsors__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

/* Logo-Platz: grauer Platzhalter, mit hochgeladenem Logo ohne Hintergrund */
.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #e4dfd6;
}

.logo-slot--filled {
  background: transparent;
}

.logo-slot__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-slot__hint {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.5;
}

/* Hauptsponsor */
.sponsor-main {
  display: flex;
  align-items: center;
  gap: var(--abstand-48);
  padding: var(--abstand-48);
  border-radius: var(--radius-m);
  background: var(--karte);
}

.sponsor-main__logo {
  flex: 0 1 506px;
  height: 220px;
}

.sponsor-main__text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--abstand-12);
  min-width: 0;
}

.sponsor-main__kicker {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sponsor-main__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.sponsor-main__description {
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.sponsor-main__link {
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Sponsoren-Kacheln: drei pro Reihe, bei weniger Einträgen bleiben sie schmal links stehen */
.sponsors__tiles > .neos-contentcollection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--raster-abstand);
}

.sponsor-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--abstand-16);
  min-width: 0;
  padding: 28px;
  border-radius: var(--radius-m);
  background: var(--karte);
}

.sponsor-tile__logo {
  height: 96px;
}

.sponsor-tile__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ganze Kachel anklickbar, wenn ein Ziel gesetzt ist */
.sponsor-tile__cover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.sponsor-tile--linked:hover {
  box-shadow: 0 0 0 2px var(--nachtelbe);
}

@media (max-width: 1199px) {
  .sponsors__inner {
    gap: var(--abstand-40, 40px);
  }

  .sponsor-main {
    flex-direction: column;
    align-items: stretch;
    gap: var(--abstand-24);
    padding: 36px;
  }

  .sponsor-main__logo {
    flex: 0 0 auto;
    height: 200px;
  }

  .sponsor-tile {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .sponsors__inner {
    gap: var(--abstand-32);
  }

  .sponsors__subtitle {
    font-size: 20px;
  }

  .sponsor-main {
    padding: var(--abstand-24);
  }

  .sponsor-main__logo {
    height: 160px;
  }

  .sponsor-main__name {
    font-size: 24px;
  }

  .sponsors__tiles > .neos-contentcollection {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--abstand-16);
  }

  .sponsor-tile {
    padding: 28px;
  }

  .sponsor-tile__logo {
    height: 88px;
  }
}

/* ==========================================================================
   Partner und Aussteller (Kacheln wie bei den Sponsoren, Tablet und Mobil zwei pro Reihe)
   ========================================================================== */
@media (max-width: 1199px) {
  .partners .sponsors__tiles > .neos-contentcollection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners .sponsor-tile {
    padding: 28px;
  }
}

@media (max-width: 767px) {
  .partners .sponsors__tiles > .neos-contentcollection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--abstand-16);
  }

  .partners .sponsor-tile {
    padding: 14px;
  }

  .partners .sponsor-tile__logo {
    height: 56px;
  }

  .partners .sponsor-tile__name {
    font-size: 14px;
  }
}

/* ==========================================================================
   Einheitliche Schriftgrößen nach Rolle (Werte oben in :root)
   Steht bewusst am Ende der Datei und überschreibt die Einzelwerte weiter oben.
   ========================================================================== */

/* Lead: Einleitung unter einer Überschrift (22 / 20 / 18) */
.join__lead,
.legal__lead,
.article__teaser,
.error404__lead,
.site-footer__sub {
  font-size: var(--text-lead);
}

/* Titel 4: Überschriften in Karten, Fragen, Zwischenüberschriften, Hinweisband (22 / 22 / 20) */
.legal-block__heading,
.band__text,
.sponsors__subtitle,
.faq-item__q,
.join-card__title,
.news-card__title,
.feature-card__title,
.richtext h3 {
  font-size: var(--titel-4);
}

/* Titel 3: große Namen und Zwischenüberschrift im Fließtext (26 / 26 / 24) */
.sponsor-main__name,
.richtext h2 {
  font-size: var(--titel-3);
}

/* Fließtext in Absätzen (18 / 18 / 16) */
.legal-block__text,
.feature__intro,
.sponsor-main__description {
  font-size: var(--text);
}

/* ==========================================================================
   Kontakt als Ticket ("Noch Fragen?")
   Figma "Kontakt 6 · Ticket" (Desktop 1440, Tablet 768, Mobil 390):
   Desktop und Tablet: gelber Abriss links, Perforation senkrecht.
   Mobil: Abriss oben, Perforation waagerecht.
   Die Überschrift nutzt Titel 2 (40 / 32 / 28 px), weil sie im Ticket steht.
   ========================================================================== */
.contact__ticket {
  --abriss: 264px;
  position: relative;
  display: flex;
  border-radius: 32px;
  background: var(--karte);
}

/* Ausschnitte an Ober- und Unterkante der Perforation (Farbe wie der Seitenhintergrund) */
.contact__ticket::before,
.contact__ticket::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--abriss) - 16px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--uferlicht);
  pointer-events: none;
}

.contact__ticket::before {
  top: -16px;
}

.contact__ticket::after {
  bottom: -16px;
}

.contact__stub {
  position: relative;
  flex: 0 0 var(--abriss);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-radius: 32px 0 0 32px;
  background: var(--pixelgold);
  color: var(--nachtelbe);
}

/* Perforation: 4 px breite Striche, 8 px lang, 8 px Abstand */
.contact__stub::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -2px;
  bottom: 32px;
  z-index: 1;
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--uferlicht) 0 8px, transparent 8px 16px);
  pointer-events: none;
}

.contact__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 160px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.contact__content {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "kicker reasons"
    "title reasons"
    "action reasons";
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: 48px;
  row-gap: 20px;
  padding: 48px 56px;
}

.contact__kicker {
  grid-area: kicker;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--titel-2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact__reasons {
  grid-area: reasons;
  align-self: center;
}

.contact__reasons > .neos-contentcollection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__action {
  grid-area: action;
  justify-self: start;
}

.contact-reason {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Pixel-Aufzählungszeichen: zwei 7-px-Quadrate versetzt in einem 24-px-Feld */
.contact-reason__pixel {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background:
    linear-gradient(var(--nachtelbe), var(--nachtelbe)) 4px 5px / 7px 7px no-repeat,
    linear-gradient(var(--nachtelbe), var(--nachtelbe)) 11px 12px / 7px 7px no-repeat;
}

.contact-reason__text {
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Tablet und Mobil: Inhalt untereinander (Überschrift, Anliegen, Button) */
@media (max-width: 1199px) {
  .contact__ticket {
    --abriss: 237px;
  }

  .contact__stub {
    padding: 48px 16px;
  }

  .contact__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 40px;
  }

  .contact__kicker {
    margin-bottom: 20px;
  }

  .contact__title {
    margin-bottom: 28px;
  }

  .contact__reasons {
    align-self: stretch;
    margin-bottom: 28px;
  }

  .contact__action .button {
    width: 100%;
  }

  .contact__action {
    justify-self: stretch;
  }
}

/* Mobil: Abriss oben, Perforation waagerecht, Ausschnitte links und rechts */
@media (max-width: 767px) {
  .contact__ticket {
    --abriss: 176px;
    flex-direction: column;
  }

  .contact__ticket::before,
  .contact__ticket::after {
    top: calc(var(--abriss) - 16px);
    bottom: auto;
    left: -16px;
  }

  .contact__ticket::after {
    left: auto;
    right: -16px;
  }

  .contact__stub {
    flex: 0 0 var(--abriss);
    padding: 8px 40px;
    border-radius: 32px 32px 0 0;
  }

  .contact__stub::after {
    top: auto;
    right: 32px;
    bottom: -2px;
    left: 32px;
    width: auto;
    height: 4px;
    background: repeating-linear-gradient(to right, var(--uferlicht) 0 8px, transparent 8px 16px);
  }

  .contact__mark {
    font-size: 144px;
  }

  .contact__content {
    padding: 32px 28px;
  }
}

/* ==========================================================================
   Für Unternehmen (grüner Block in Elbaue)
   Figma "Für Unternehmen · Grün (Elbaue) · Platzhalter" (Desktop; Tablet und Mobil wie die dunkle
   Variante, nur mit den Farben der grünen). Oberzeile 80 %, Text und Punkte 90 % Deckkraft.
   Die Überschrift nutzt Titel 2 (40 / 32 / 28 px), Text und Punkte die Rolle Text (18 / 18 / 16 px).
   ========================================================================== */
.business__box {
  display: grid;
  grid-template-columns: minmax(0, 612fr) minmax(0, 444fr);
  grid-template-areas:
    "kicker points"
    "title points"
    "text points"
    "action points";
  align-content: center;
  column-gap: 96px;
  row-gap: 24px;
  padding: 48px;
  border-radius: 48px;
  background: var(--elbaue);
  color: var(--nachtelbe);
}

.business__kicker {
  grid-area: kicker;
  opacity: 0.8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.business__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--titel-2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.business__text {
  grid-area: text;
  opacity: 0.9;
  font-size: var(--text);
  line-height: 1.55;
}

.business__points {
  grid-area: points;
  align-self: center;
}

.business__points > .neos-contentcollection {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.business__action {
  grid-area: action;
  justify-self: start;
}

.business-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Pixel-Aufzählungszeichen in Nachtelbe, 24-px-Feld leicht nach unten versetzt (Figma y = 2) */
.business-point__pixel {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background:
    linear-gradient(var(--nachtelbe), var(--nachtelbe)) 4px 5px / 7px 7px no-repeat,
    linear-gradient(var(--nachtelbe), var(--nachtelbe)) 11px 12px / 7px 7px no-repeat;
}

.business-point__text {
  min-width: 0;
  opacity: 0.9;
  font-size: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 1359px) {
  .business__box {
    column-gap: 48px;
  }
}

/* Tablet und Mobil: untereinander, Button am Ende in voller Breite */
@media (max-width: 1199px) {
  .business__box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 40px;
  }

  .business__kicker {
    margin-bottom: 24px;
  }

  .business__title {
    margin-bottom: 24px;
  }

  .business__text {
    margin-bottom: 32px;
  }

  .business__points {
    align-self: stretch;
    margin-bottom: 32px;
  }

  .business__action {
    justify-self: stretch;
  }

  .business__action .button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .business__box {
    padding: 28px;
  }

  .business__text {
    margin-bottom: 28px;
  }

  .business__points {
    margin-bottom: 28px;
  }
}

/* ==========================================================================
   Ticket-Störer (Band in Elbaue)
   Figma "Ticket-Störer 3 · Elbaue" (Desktop 1440, Tablet 768, Mobil 390).
   Das Band geht über die volle Breite; der Abstand nach oben ist der Abschnittsabstand,
   nach unten liefert der folgende Abschnitt seinen oberen Abstand.
   ========================================================================== */
.ticket-banner {
  display: block;
  margin-top: var(--abschnitt-oben);
  padding: 48px max(var(--rand), calc((100% - var(--inhalt-breite)) / 2));
  background: var(--elbaue);
  color: var(--nachtelbe);
  text-align: center;
  text-decoration: none;
}

.ticket-banner__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  white-space: pre-wrap;
}

a.ticket-banner:hover .ticket-banner__text {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

@media (max-width: 1199px) {
  .ticket-banner {
    padding-block: 40px;
  }

  .ticket-banner__text {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .ticket-banner {
    padding-block: 32px;
  }

  .ticket-banner__text {
    font-size: 20px;
  }
}

/* ==========================================================================
   02 Hero: Text links, Bildkomposition rechts (Figma "01 Website", 02 Hero)
   Die Komposition ist 600 x 651 Einheiten groß. Alle Teile sind darin prozentual
   gesetzt und skalieren gemeinsam. Schriften darin wachsen mit (cqw).
   ========================================================================== */
.hero {
  padding: var(--abstand-96) max(var(--rand), calc((100% - var(--inhalt-breite)) / 2)) 0;
  overflow-x: clip;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 706fr) minmax(0, 542fr);
  align-items: start;
  width: 100%;
  max-width: var(--inhalt-breite);
  margin-inline: auto;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--abstand-32);
  min-width: 0;
  padding-bottom: var(--abstand-48);
}

.hero__kicker {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  /* wächst mit der Textspalte: "spielt. Du auch?" ist rund 9,7-mal so breit wie die Schrift groß ist */
  font-size: clamp(56px, calc((100vw - 220px) * 0.0575), 72px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.hero__lead {
  max-width: 612px;
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand-16);
}

.hero__footnote {
  max-width: 560px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.7;
}

/* Ragt wie im Entwurf rechts in den Seitenrand und reicht bis zur Unterkante */
.hero__media {
  position: relative;
  container-type: inline-size;
  width: 110.7%;
  margin-top: -17px;
  aspect-ratio: 600 / 651;
}

.hero__frame {
  position: absolute;
  top: 12.14%;
  left: 3.14%;
  width: 87.28%;
  aspect-ratio: 524 / 372;
  padding: 2.665cqw;
  border-radius: 1.33cqw;
  background: var(--karte);
  box-shadow: 0 2.33cqw 5.33cqw rgba(0, 0, 0, 0.2);
  transform: rotate(3deg);
}

.hero__picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e3ded6;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__hint {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

.hero__flag {
  position: absolute;
  top: 1.86%;
  left: 0.22%;
  max-width: 96%;
  padding: 2cqw 5.33cqw 2cqw 4cqw;
  border-radius: 1.33cqw;
  background: var(--zwielicht);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 3.664cqw, 22px);
  line-height: 1.25;
  text-transform: uppercase;
  white-space: pre-wrap;
  transform: rotate(-3.64deg);
}

.hero__badge {
  position: absolute;
  z-index: 1;
  top: 2.84%;
  left: 69.7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 21.99%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pixelgold);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(10deg);
}

.hero__badge-title {
  font-size: 4.33cqw;
}

.hero__badge-text {
  font-size: 2.83cqw;
}

.hero__mascot {
  position: absolute;
  z-index: 2;
  top: 49.32%;
  left: 41.5%;
  width: 54.96%;
  height: auto;
  transform: rotate(8.66deg) scaleX(-1);
  pointer-events: none;
}

/* Tablet und Smartphone: Text oben, Komposition darunter */
@media (max-width: 1199px) {
  .hero {
    padding-top: var(--abstand-64);
    padding-bottom: var(--abstand-64);
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--abstand-32);
  }

  /* Textteile einzeln einreihen, damit die Fußnote (mit dem *) unter das Maskottchen rückt */
  .hero__text {
    display: contents;
  }

  .hero__footnote {
    order: 1;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__lead,
  .hero__footnote {
    max-width: none;
  }

  /* 32 px Zeilenabstand plus 8 px = 40 px über und unter der Komposition */
  .hero__media {
    align-self: center;
    width: min(100%, 560px);
    margin-block: var(--abstand-8);
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  /* unter 360 px etwas kleiner, damit lange Wörter in der Zeile bleiben */
  .hero__title {
    font-size: min(40px, 11.2vw);
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--abstand-12);
    width: 100%;
  }

  .hero__actions .button {
    width: 100%;
  }

  /* Sticker auf schmalen Geräten größer, damit die Schrift lesbar bleibt */
  .hero__badge {
    top: 14.3%;
    left: 66.6%;
    width: 28.1%;
  }

  .hero__badge-title {
    font-size: 5.26cqw;
  }

  .hero__badge-text {
    font-size: max(11px, 3.65cqw);
  }
}
