@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Montserrat", -apple-system, sans-serif;

  --ink: #16171a;
  --ink-soft: #5b5f66;
  --line: #e8e9ec;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --night: #0b0b0d;
  --accent: #e30921;

  --radius: 18px;
  --radius-card: 4px 44px 4px 4px;
  --nav-h: 64px;
  --nav-top: 34px;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);   /* Abstand oben und unten je Abschnitt */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 999;
  padding: .75rem 1.25rem; background: var(--ink); color: #fff; border-radius: 999px;
}

/* Typografie --- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}
h1.display { font-size: clamp(2rem, 3.8vw, 3.4rem); }
h2.display { font-size: clamp(1.75rem, 3.2vw, 2.85rem); }
h3.display { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.2rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* Buttons --- Zwei Bewegungen greifen ineinander: die Fuellflaeche faehrt von unten hoch, gleichzeitig wandert die Beschriftung nach oben aus und die zweite Fassung rueckt von unten nach */

.btn {
  --fill: var(--accent);
  --fill-ink: #fff;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleY(1); }

.btn--accent { --fill: var(--ink); background: var(--accent); }
.btn--ghost {
  --fill: var(--ink);
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--light { --fill: var(--accent); background: #fff; color: var(--ink); }

/* Beschriftungswechsel */

.swap {
  display: grid;
  overflow: hidden;
  line-height: 1.45;
}
.swap__row {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1) .07s;
}
.swap__row + .swap__row {
  transform: translateY(120%);
  color: var(--fill-ink);
}
.btn:hover .swap__row:first-child,
.btn:focus-visible .swap__row:first-child,
.stack__link:hover .swap__row:first-child,
.stack__link:focus-visible .swap__row:first-child { transform: translateY(-120%); }
.btn:hover .swap__row + .swap__row,
.btn:focus-visible .swap__row + .swap__row,
.stack__link:hover .swap__row + .swap__row,
.stack__link:focus-visible .swap__row + .swap__row { transform: translateY(0); }

.btn__arrow {
  width: 16px; height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .btn::before { display: none; }
  .btn:hover, .btn:focus-visible { background: var(--fill); color: var(--fill-ink); }
  .swap__row + .swap__row { display: none; }
}

/* Scroll-Reveal: Klassen setzt reveal.js */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header --- Dunkle Kapsel ueber der Seite, Logo links, Menue mittig, CTA rechts */

.header {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1120px);
  height: var(--nav-h);
  display: grid;
  /* Logo links, Menue mittig, Handlungsaufforderung rechts */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 1.9rem;
  border-radius: 999px;
  background: rgba(28,29,32,.6);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 14px 40px rgba(0,0,0,.22);
  color: #fff;
  z-index: 300;
}
.header__logo {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}
.header__logo b { color: var(--accent); font-weight: 700; }
/* Kopfzeichen: die Negativfassung im engeren Satz, Funke auf Kapselhoehe, Schriftzug in Lesegroesse */
.header__logo img {
  display: block;
  height: 44px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  list-style: none;
  padding: 0;
}
.header__nav a {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,.72);
  padding-block: .4rem;
  border-bottom: 1.5px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.header__nav a:hover { color: #fff; }
.header__nav [aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

.header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.header__actions .btn {
  --fill: var(--accent);
  --fill-ink: #fff;
  height: 36px;
  padding-inline: 1.1rem;
  font-size: .82rem;
  background: #fff;
  color: var(--ink);
}

.burger { display: none; }

@media (max-width: 1080px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav, .header__actions { display: none; }
  .burger {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    justify-self: end;
    height: 36px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
  }
}

/* Footer --- */

.footer {
  background: var(--night);
  color: #a9adb4;
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  /* minmax(0, ...) statt blossem fr: sonst zieht die nowrap-Pille in der ersten Spalte deren Mindestbreite hoch und das Raster laeuft aus dem Bild */
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.footer h2 {
  margin: 0 0 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a:hover { color: #fff; }
.footer__claim {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  max-width: 18ch;
  margin: 0 0 1.5rem;
}
.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  font-size: .9rem;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Fuß: Wortmarke links, Rechtliches rechts, auf allen Seiten */
.fuss {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #000;
  color: #fff;
}
.fuss__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
.fuss__marke { display: block; line-height: 0; }
.fuss__marke img { width: auto; height: 76px; }
.fuss__nav { display: flex; gap: clamp(1.25rem, 2.5vw, 2rem); }
.fuss__nav a { color: #fff; font-size: .98rem; text-decoration: none; }
.fuss__nav a:hover { color: var(--accent); }

/* Deutschlandkarte als Bühne: Hintergrundbild über 70 vh, Text rechts */
.karte {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: clamp(3rem, 6vw, 5rem) 0;
  overflow: hidden;
  background: #0b0b0d;
  color: #fff;
}
.karte__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.karte .wrap { position: relative; z-index: 1; width: 100%; }
.karte__copy { max-width: 34rem; margin-left: auto; }
.karte h2 { margin: 0 0 1.5rem; color: #fff; }
.karte p { margin: 0 0 1.1rem; color: #cbced3; font-size: 1.05rem; line-height: 1.6; }
.karte p:last-child { margin-bottom: 0; }
.karte .btn { margin-top: 1.5rem; }
.karte p a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.karte p a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .karte { min-height: 0; padding-top: 60vw; }
  .karte__bg { object-position: left top; height: auto; bottom: auto; }
  .karte__copy { max-width: none; margin-left: 0; }
}


/* Logoband der Partner, gehört zum Fuß auf allen Seiten */
.hm-partners { padding-block: clamp(2.5rem, 5vw, 4rem); overflow: hidden; background: #fff; }
.hm-partners__label {
  margin: 0 0 2rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9da2a9;
}
.hm-partners__band { display: flex; width: max-content; }
.hm-partners__row {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
  animation: hm-lauf 38s linear infinite;
}
.hm-partners__row img {
  width: 160px;
  height: auto;
}
.hm-partners:hover .hm-partners__row { animation-play-state: paused; }
@keyframes hm-lauf {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-partners__row { animation: none; flex-wrap: wrap; }
  .hm-partners__band { width: auto; }
  .hm-partners__row + .hm-partners__row { display: none; }
}
