/* Schriften */
@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

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

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Grundwerte */
:root {
  --bg: #0b0b10;
  --bg-raised: #121219;
  --surface: #17171f;
  --line: rgba(242, 240, 236, 0.13);
  --line-strong: rgba(242, 240, 236, 0.3);
  --text: #f2f0ec;
  --text-body: #d0ced6;
  --muted: #9d9ba6;
  --red: #ff264a;
  --red-light: #ff4a68;
  --red-deep: #c8102e;
  --ink: #0b0b10;
  --ink-raised: #23232c;
  --ink-line: rgba(11, 11, 16, 0.32);
  --paper: #eeece7;
  --paper-text: #2b2a31;
  --paper-line: rgba(11, 11, 16, 0.18);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --edge: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --header: 68px;
  --section: clamp(56px, 7.5vw, 112px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

/* Bildquellen ohne eigene Box, das Bild bleibt direkt im Layout */
picture {
  display: contents;
}

source {
  display: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: var(--edge);
  top: 8px;
  z-index: 300;
  padding: 12px 16px;
  background: var(--red);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.nowrap {
  white-space: nowrap;
}

.red {
  color: var(--red);
}

/* Raster */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* Schrift */
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}

.line {
  display: block;
}

.lead {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text);
  max-width: 32em;
}

/* Kleines V aus dem Zeichen als Kennzeichen */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 11px;
  height: 9px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Wortmarke */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.wordmark__bar {
  width: 2px;
  height: 1em;
  margin-inline: 0.5em;
  background: var(--red);
}

.wordmark__area {
  color: var(--red);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: auto;
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn__arrow {
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
}

.btn--red:hover {
  background: var(--red-light);
  border-color: var(--red-light);
}

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text);
}

.btn--ink:hover {
  background: var(--ink-raised);
  border-color: var(--ink-raised);
}

.btn--line {
  justify-content: flex-start;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--line:hover {
  border-color: var(--text);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.icon-link:hover {
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.text-link svg {
  color: var(--red);
  transition: transform 0.2s var(--ease);
}

.text-link:hover svg {
  transform: translateY(3px);
}

/* Ladebildschirm, nur sichtbar wenn das Skript im Kopf ihn einschaltet */
.loader {
  display: none;
}

.is-loading .loader {
  --fortschritt: 0;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  border-bottom: 2px solid var(--red);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Am Ende zieht der Ladebildschirm wie ein Vorhang nach oben weg */
.loader.is-gone {
  transform: translateY(calc(-100% - 2px));
  pointer-events: none;
}

.loader__inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}

/* Das Zeichen füllt sich von unten mit dem Fortschritt */
.loader__mark {
  position: relative;
  width: 56px;
  height: 64px;
}

.loader__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.loader__mark-grund {
  opacity: 0.16;
}

.loader__fuellung {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateY(calc((1 - var(--fortschritt)) * 100%));
}

.loader__fuellung img {
  transform: translateY(calc((var(--fortschritt) - 1) * 100%));
}

.loader__wordmark {
  font-size: 22px;
}

.loader__fortschritt {
  display: flex;
  align-items: center;
  gap: 14px;
}

.loader__zahl {
  min-width: 5ch;
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-align: right;
  color: var(--text);
}

.loader__bar {
  position: relative;
  display: block;
  width: 220px;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.loader__bar span {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.loader__steps {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader__steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s var(--ease);
}

.loader__steps li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.loader__steps .is-done {
  color: var(--text);
}

.loader__steps .is-done::before {
  border-color: var(--red);
  background: var(--red);
}

/* Bewegungen warten, bis der Ladebildschirm weg ist */
.is-waiting *,
.is-waiting *::before,
.is-waiting *::after {
  animation-play-state: paused;
}

@keyframes wipe {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
