@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Farben aus dem Logo: Blau #2148FF, Periwinkle #9BADFE */
  --brand: #2148ff;
  --brand-soft: #9badfe;
  --bg: oklch(0.985 0.008 270);
  --ink: var(--brand);
  --body: oklch(0.32 0.11 266);
  --line: oklch(0.9 0.03 270);
  --wind: rgb(155 173 254 / 0.5);
  --focus: var(--brand);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 7vw, 112px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.22 0.1 266);
    --ink: oklch(0.97 0.012 270);
    --body: oklch(0.87 0.04 270);
    --line: oklch(0.33 0.09 266);
    --wind: rgb(155 173 254 / 0.16);
    --focus: var(--brand-soft);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--body);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.logo { display: inline-block; }
.logo img { display: block; height: auto; }

/* Startseite */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(36px, 6vh, 56px);
  padding: clamp(40px, 9vh, 96px) var(--gutter);
  isolation: isolate;
  overflow: clip;
}
.hero .logo img { width: clamp(220px, 30vw, 400px); }
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Das Windsymbol aus dem Logo, gross angeschnitten am rechten Rand */
.wind {
  position: absolute;
  z-index: -1;
  right: -6vw;
  top: 50%;
  width: min(64vw, 900px);
  aspect-ratio: 1157 / 734;
  translate: 0 -50%;
  background: var(--wind);
  -webkit-mask: url("assets/wind.png") center / contain no-repeat;
          mask: url("assets/wind.png") center / contain no-repeat;
  pointer-events: none;
}

/* Rechtstexte */
.page {
  flex: 1;
  padding: clamp(32px, 6vh, 64px) var(--gutter) clamp(48px, 8vh, 96px);
}
.page .logo img { width: clamp(140px, 14vw, 180px); }
.page h1 {
  margin: clamp(40px, 7vh, 72px) 0 28px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page h2 {
  margin: 36px 0 8px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 650;
}
.page p { margin: 0 0 14px; max-width: 68ch; text-wrap: pretty; }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter) 20px;
  font-size: 0.9375rem;
}
footer .name { margin-right: auto; }
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
footer a[aria-current="page"] { text-decoration: underline; }

@media (max-width: 720px) {
  .hero { justify-content: flex-start; padding-bottom: 60vw; }
  .wind { right: -22vw; top: auto; bottom: 4vw; width: 100vw; translate: 0 0; }
  footer .name { flex-basis: 100%; padding-top: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .logo, .hero h1 { animation: rise 900ms var(--ease-out) both; }
  .hero h1 { animation-delay: 140ms; }
  .wind {
    animation: blow-in 1400ms var(--ease-out) both, drift 9s ease-in-out 1400ms infinite alternate;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes blow-in { from { opacity: 0; transform: translateX(-8vw); } }
@keyframes drift { to { transform: translateX(-2.5vw); } }
