/* ============================================================
   Milchbuechli24 — statische Ankündigungsseite
   Tokens übernommen aus src/app/globals.css (Design-System, approved).
   Naming: BEM. Keine Viewport-Media-Queries ausser prefers-reduced-motion.
   ============================================================ */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --leading-tight: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --text-xs: 0.75rem;
  --text-s: clamp(0.875rem, calc(0.875rem + 0.0625 * (100vw - 20rem) / 70), 0.9375rem);
  --text-m: clamp(1rem, calc(1rem + 0.0625 * (100vw - 20rem) / 70), 1.0625rem);
  --text-l: clamp(1.125rem, calc(1.125rem + 0.125 * (100vw - 20rem) / 70), 1.25rem);
  --text-xl: clamp(1.375rem, calc(1.375rem + 0.375 * (100vw - 20rem) / 70), 1.75rem);
  --text-2xl: clamp(1.75rem, calc(1.75rem + 0.5 * (100vw - 20rem) / 70), 2.25rem);
  --text-4xl: clamp(2.5rem, calc(2.5rem + 2 * (100vw - 20rem) / 70), 4.5rem);

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: clamp(1.25rem, calc(1.25rem + 0.25 * (100vw - 20rem) / 70), 1.5rem);
  --space-l: clamp(1.5rem, calc(1.5rem + 0.5 * (100vw - 20rem) / 70), 2rem);
  --space-xl: clamp(2rem, calc(2rem + 1 * (100vw - 20rem) / 70), 3rem);
  --space-2xl: clamp(3rem, calc(3rem + 1.5 * (100vw - 20rem) / 70), 4.5rem);
  --section-space-m: clamp(3.5rem, calc(3.5rem + 1.5 * (100vw - 20rem) / 70), 5rem);
  --section-space-l: clamp(5rem, calc(5rem + 3 * (100vw - 20rem) / 70), 8rem);

  --container-wide: 72rem;
  --measure: 42rem;
  --gutter: clamp(1.25rem, calc(1.25rem + 0.75 * (100vw - 20rem) / 40), 2rem);
  --control-size: 2.75rem;

  --bg: oklch(0.94 0.035 196);
  --bg-inverse: var(--text);
  --surface: oklch(1 0 0 / 0.56);
  --surface-strong: oklch(1 0 0 / 0.76);
  --surface-border: oklch(1 0 0 / 0.75);
  --text: oklch(0.2 0.035 225);
  --text-muted: oklch(0.38 0.03 221);
  --text-subtle: oklch(0.5 0.03 221);
  --text-inverse: oklch(1 0 0);
  --primary: oklch(0.46 0.105 174);
  --border: oklch(0.8 0.035 194);
  --focus-color: var(--primary);

  --radius-control: 0.35rem 1rem 0.35rem 1rem;
  --radius-card: 0.5rem 1.5rem 0.5rem 1.5rem;
  --radius-panel: 0.75rem 2.5rem 0.75rem 2.5rem;
  --shadow-panel: 0 25px 70px color-mix(in oklab, var(--primary) 14%, transparent);

  --duration-slow: 500ms;
}

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

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

body {
  display: flex;
  min-block-size: 100dvh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: var(--leading-normal);
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

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

h1,
h2,
h3 {
  line-height: var(--leading-tight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary);
}

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

@keyframes settle-in {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

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

/* Layout */
.container {
  inline-size: 100%;
  max-inline-size: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-block-start: var(--space-2xs);
  inset-inline-start: var(--space-2xs);
  z-index: 10;
  border-radius: var(--radius-control);
  background: var(--bg-inverse);
  padding: var(--space-2xs) var(--space-s);
  color: var(--text-inverse);
  transform: translateY(-200%);
}

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

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Brand */
.brand {
  display: inline-flex;
  min-block-size: var(--control-size);
  align-items: center;
  gap: var(--space-xs);
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  display: grid;
  flex: none;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.brand__name {
  font-size: var(--text-m);
  font-weight: var(--weight-heavy);
  overflow-wrap: anywhere;
}

/* Site Header */
.site-header {
  padding-block-start: var(--space-m);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  border-block-end: 1px solid var(--border);
  padding-block-end: var(--space-m);
}

/* Status-Badge */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: var(--space-2xs) var(--space-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.status__dot {
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

/* Hero */
.teaser {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--section-space-l) var(--section-space-m);
  animation: settle-in var(--duration-slow) ease-out both;
}

.teaser__eyebrow {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.teaser__title {
  max-inline-size: 18ch;
  font-size: var(--text-4xl);
  font-weight: var(--weight-heavy);
  letter-spacing: -0.02em;
}

.teaser__highlight {
  color: var(--primary);
}

.teaser__lead {
  max-inline-size: var(--measure);
  color: var(--text-muted);
  font-size: var(--text-l);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-relaxed);
}

.teaser__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
  padding: 0;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  list-style: none;
  text-transform: uppercase;
}

/* Vorteile */
.promises {
  padding-block-end: var(--section-space-m);
}

.promises__heading {
  margin-block-end: var(--space-l);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heavy);
}

.promises__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-m);
  padding: 0;
  list-style: none;
}

.promises__item {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: var(--space-l);
}

.promises__number {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.promises__title {
  font-size: var(--text-l);
  font-weight: var(--weight-bold);
}

.promises__text {
  color: var(--text-muted);
}

/* Hinweis «Wir sind dran» */
.notice {
  display: grid;
  gap: var(--space-s);
  border-radius: var(--radius-panel);
  background: var(--bg-inverse);
  box-shadow: var(--shadow-panel);
  padding: var(--space-xl) var(--space-l);
  color: var(--text-inverse);
}

.notice__eyebrow {
  color: oklch(0.85 0.08 174);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.notice__title {
  max-inline-size: 24ch;
  font-size: var(--text-2xl);
  font-weight: var(--weight-heavy);
}

.notice__text {
  max-inline-size: var(--measure);
  color: oklch(0.9 0.02 200);
}

/* Rechtstext */
.legal {
  display: grid;
  max-inline-size: var(--measure);
  gap: var(--space-s);
  padding-block: var(--section-space-m);
}

.legal__title {
  margin-block-end: var(--space-s);
  font-size: var(--text-4xl);
  font-weight: var(--weight-heavy);
}

.legal__heading {
  margin-block-start: var(--space-m);
  font-size: var(--text-l);
  font-weight: var(--weight-bold);
}

.legal__text {
  color: var(--text-muted);
}

.legal__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-m);
}

.legal__facts dt {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 2;
  text-transform: uppercase;
}

/* Site Footer */
.site-footer {
  margin-block-start: var(--section-space-m);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  border-block-start: 1px solid var(--border);
  padding-block: var(--space-l);
  color: var(--text-subtle);
  font-size: var(--text-s);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.site-footer__link {
  display: inline-flex;
  min-block-size: var(--control-size);
  align-items: center;
}
