/* =========================================================================
   CONNECT-Proben — gemeinsame Basis (Tokens, Schriften, Kopfzeile, Cursor)
   1:1 aus dem Design-System von siteupgra.de (src/app/globals.css) abgeleitet.
   ========================================================================= */
@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("fonts/sofia-condensed-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("fonts/sofia-condensed-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/spline-mono-latin.woff2") format("woff2");
}

:root {
  --ink: #101010;
  --ink-soft: #1c1c1a;
  --muted: #6b6b66;
  --line: #e4e3df;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --night: #101010;
  --night-soft: #1a1a18;
  --rot: #d4152b; /* das Rot des Herz-Ostereis — einziger Akzent, nur wo er etwas bedeutet */
  --display: "Sofia Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 1.5rem;
}
@media (min-width: 640px) { :root { --pad: 2rem; } }
@media (min-width: 1024px) { :root { --pad: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.dunkel ::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.spalte { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--pad); }
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.4;
}
.nur-vorleser {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Rauschtextur wie auf der Hauptseite (.grain) */
.korn { position: relative; }
.korn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* Kopfzeile — Aufbau wie die Nav der Hauptseite. Weiß + „difference": kontrastiert von selbst
   auf hellen wie dunklen Flächen (dasselbe Prinzip wie der Wegweiser der Hauptseite). */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.kopf__innen {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; max-width: 82rem; margin-inline: auto; padding-inline: var(--pad);
}
.kopf a, .kopf button { pointer-events: auto; }
.kopf__logo img { display: block; height: 22px; width: auto; user-select: none; -webkit-user-drag: none; filter: brightness(0) invert(1); }
.kopf__links { display: flex; align-items: center; gap: 1.5rem; }
.kopf__links a, .kopf__links button {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: underline; text-underline-offset: 4px; transition: opacity 0.2s;
  padding-block: 0.9rem;
}
.kopf__links a:hover, .kopf__links button:hover { opacity: 0.6; }
@media (max-width: 639px) { .kopf__links .nur-breit { display: none; } }

/* Meta-Zeile bei 112px — wie in jeder Sektion der Hauptseite */
.meta {
  position: absolute; inset: 7rem 0 auto 0; z-index: 5;
  pointer-events: none;
}
.meta__innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.meta, .meta .mono { color: var(--muted); }
.dunkel .meta, .dunkel .meta .mono { color: rgba(247, 247, 245, 0.55); }

/* Eigener Cursor-Punkt (nur Maus) — wie Cursor.tsx */
.cursor-punkt {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 9999px;
  background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 90; opacity: 0;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.3s ease; will-change: transform;
}
.hat-cursor .cursor-punkt { opacity: 1; }
.cursor-punkt.ist-aktiv { width: 44px; height: 44px; }
@media (pointer: coarse) { .cursor-punkt { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-punkt { display: none; } }

/* Probe-Umschalter — NUR Hilfsmittel für die Auswahl, kein Teil der Gestaltung */
.probe-leiste {
  position: fixed; left: 50%; bottom: 0.75rem; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 0.15rem;
  padding: 0.2rem 0.35rem; border-radius: 9999px;
  background: rgba(16, 16, 16, 0.86); color: var(--paper);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(247, 247, 245, 0.16);
  font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap;
}
.probe-leiste a { text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 9999px; opacity: 0.6; }
.probe-leiste a:hover { opacity: 1; }
.probe-leiste a[aria-current="page"] { opacity: 1; background: var(--paper); color: var(--ink); }

/* Schlussblock (Einladung) — in allen drei Proben gleich aufgebaut */
.einladung { position: relative; padding-block: clamp(5rem, 14vh, 10rem); }
.einladung__kicker { color: var(--muted); }
.dunkel-block { background: var(--night); color: var(--paper); }
.dunkel-block .einladung__kicker { color: rgba(247, 247, 245, 0.55); }
.einladung h2 {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 6.2vw, 5.4rem); font-weight: 700; line-height: 1.0; letter-spacing: -0.02em;
  text-wrap: balance;
}
.einladung__text {
  margin-top: 2.2rem; max-width: 46rem;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem); font-weight: 500; line-height: 1.32;
}
.einladung__text p + p { margin-top: 0.9em; }
.einladung__text .leise { color: var(--muted); }
.dunkel-block .einladung__text .leise { color: rgba(247, 247, 245, 0.6); }
.knopf {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.6rem;
  padding: 1.05rem 1.9rem; border-radius: 9999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.24em;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.knopf:hover { opacity: 0.85; }
.knopf:active { transform: scale(0.98); }
.dunkel-block .knopf { background: var(--paper); color: var(--ink); }
.probe-hinweis { margin-top: 1rem; color: var(--muted); }
.dunkel-block .probe-hinweis { color: rgba(247, 247, 245, 0.5); }

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