/* ============================================================
   ZERO — WEB THEME
   Abgeleitet aus dem NUI-Theme des Servers (nui-theme.css).
   Gleiche Tokens, gleiche Sprache: dunkel, schmale Linien,
   grau-pastellorangener Akzent, nie geflutet.
   ============================================================ */

/* ------------------------------------------------------------
   SCHRIFTEN — lokal eingebunden.
   Keine Verbindung zu Google, keine IP-Übertragung, kein Flackern
   beim ersten Laden. Die Dateien liegen in assets/fonts/.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-600.woff2") format("woff2");
}

:root {
  /* ----------------------------------------------------------
     MASSSTAB — der einzige Regler für die Gesamtgröße.
     1    = Shop-Größe (Voreinstellung, nachgemessen auf shop.zero-rp.de)
     0.94 = sechs Prozent dichter
     0.90 = deutlich kompakter

     Hängt daran: die Grundschriftgröße (und damit alle rem-Werte
     wie Überschriften und Lead), das Abstandsraster --s1 bis --s9,
     die Navigationshöhe, der Seitenrand und die Abschnittspolster.
     Ein Wert, und die ganze Oberfläche skaliert mit.
     ---------------------------------------------------------- */
  --ui: 1;
  font-size: calc(16px * var(--ui));

  /* — Flächen ——————————————————————————————— */
  --ink:              #0B0C0D;
  --ink-2:            #0F1011;
  --panel:            rgba(30, 32, 35, 0.60);
  --panel-strong:     rgba(30, 32, 35, 0.86);
  --panel-raised:     rgba(46, 49, 53, 0.55);
  --panel-sunken:     rgba(14, 15, 17, 0.55);
  --scrim:            rgba(12, 13, 15, 0.72);

  /* — Kanten ———————————————————————————————— */
  --line:             rgba(231, 229, 225, 0.10);
  --line-strong:      rgba(231, 229, 225, 0.18);
  --line-faint:       rgba(231, 229, 225, 0.06);

  /* — Text —————————————————————————————————— */
  --text:             #E7E5E1;
  --text-muted:       rgba(231, 229, 225, 0.56);
  --text-faint:       rgba(231, 229, 225, 0.32);

  /* — Akzent ————————————————————————————————— */
  --accent:           #D9A87F;
  --accent-300:       #EBC9AB;
  --accent-600:       #B98B65;
  --accent-soft:      rgba(217, 168, 127, 0.12);
  --accent-softer:    rgba(217, 168, 127, 0.06);
  --accent-line:      rgba(217, 168, 127, 0.55);
  --accent-glow:      0 0 0 1px rgba(217, 168, 127, 0.35), 0 0 24px rgba(217, 168, 127, 0.14);

  /* — Status ————————————————————————————————— */
  --ok:               #8CA886;
  --bad:              #C4776D;
  --info:             #8E9BA6;
  --violet:           #9A8AA8;

  /* — Form —————————————————————————————————— */
  --radius:           4px;
  --radius-sm:        2px;
  --shadow:           0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:        0 24px 70px rgba(0, 0, 0, 0.6);

  /* — Raster ————————————————————————————————— */
  --s1: calc(4px  * var(--ui));  --s2: calc(8px  * var(--ui));
  --s3: calc(12px * var(--ui));  --s4: calc(16px * var(--ui));
  --s5: calc(24px * var(--ui));  --s6: calc(32px * var(--ui));
  --s7: calc(48px * var(--ui));  --s8: calc(72px * var(--ui));
  --s9: calc(112px * var(--ui));
  --wrap: 1200px;
  --gutter: clamp(calc(20px * var(--ui)), 5vw, calc(56px * var(--ui)));

  /* — Typo —————————————————————————————————— */
  --font:             "Inter", system-ui, -apple-system, sans-serif;
  --mono:             "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* — Motion ————————————————————————————————— */
  --in:               220ms cubic-bezier(.2, .7, .3, 1);
  --out:              140ms cubic-bezier(.4, 0, 1, 1);
  --spring:           620ms cubic-bezier(.22, 1, .36, 1);
  --nav-h:            calc(72px * var(--ui));
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font: 400 calc(16px * var(--ui))/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent-soft); color: var(--accent-300); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

* { scrollbar-width: thin; scrollbar-color: var(--accent-line) rgba(231, 229, 225, 0.05); }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: rgba(231, 229, 225, 0.03); }
*::-webkit-scrollbar-thumb { background: rgba(217, 168, 127, 0.35); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent-line); }

/* ============================================================
   TYPO-PRIMITIVE
   ============================================================ */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font: 600 0.625rem/1 var(--font);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-line);
  flex: none;
}
.kicker.is-plain::before { display: none; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }

.h-display {
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.h-1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
.h-2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
.h-3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
}
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.accent-text { color: var(--accent-300); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1440px; }

/* Etwas knapper als zuvor: die Abschnittspolster waren der größte
   Platzfresser, hier gewinnt die Seite am meisten Dichte. */
.section {
  padding-block: clamp(calc(64px * var(--ui)), 11vw, calc(132px * var(--ui)));
  position: relative;
}
.section-head { margin-bottom: clamp(calc(32px * var(--ui)), 5vw, calc(56px * var(--ui))); }
.section-head .kicker { margin-bottom: var(--s4); }
.section-head p { margin-top: var(--s4); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   BUTTONS — Outline, nie gefüllt. Hover = Licht, nicht Farbe.
   ============================================================ */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--text);
  font: 500 0.7812rem/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition:
    border-color var(--in),
    color var(--in),
    box-shadow var(--in),
    transform 380ms cubic-bezier(.22, 1, .36, 1);
}

/* Füllung wischt von unten herein */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--accent-soft);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}

/* Lichtreflex folgt dem Cursor */
.btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    180px circle at var(--mx, 50%) var(--my, 50%),
    rgba(217, 168, 127, 0.22),
    transparent 62%
  );
  transition: opacity var(--in);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--accent-line);
  color: var(--accent-300);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(0.985); }

.btn .ico {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform var(--spring);
}
.btn:hover .ico { transform: translateX(3px); }
.btn:hover .ico.ico-static { transform: none; }

/* Label-Rolle: Text steigt nach oben, Klon kommt nach */
.btn .lbl {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}
.btn .lbl span {
  display: block;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}
.btn .lbl span::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  color: var(--accent-300);
}
.btn:hover .lbl span { transform: translateY(-100%); }

/* Primär: Akzentkante + Puls */
.btn-primary {
  border-color: var(--accent-line);
  color: var(--accent-300);
}
.btn-primary::before { background: rgba(217, 168, 127, 0.16); }
.btn-primary:hover {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

/* Geist: nur Text, Linie zieht sich beim Hover */
.btn-ghost {
  border-color: transparent;
  color: var(--text-muted);
  padding-inline: 18px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }

.btn-sm { padding: 11px 18px; font-size: 0.6875rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}

/* Textlink mit wischender Unterlinie */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--in);
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 380ms cubic-bezier(.22, 1, .36, 1);
}
.link:hover { color: var(--accent-300); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link .ico { width: 14px; height: 14px; transition: transform var(--spring); }
.link:hover .ico { transform: translateX(3px); }

/* ============================================================
   KARTE — Eckwinkel zeichnen sich beim Hover
   ============================================================ */
.card {
  position: relative;
  padding: clamp(calc(20px * var(--ui)), 2.4vw, calc(30px * var(--ui)));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--in),
    background var(--in),
    transform var(--spring),
    box-shadow var(--in);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-softer),
    transparent 70%
  );
  transition: opacity var(--in);
}
/* obere Akzentlinie fährt aus */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }

.card-num {
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: .1em;
  color: var(--text-faint);
  margin-bottom: var(--s5);
  display: block;
  transition: color var(--in);
}
.card:hover .card-num { color: var(--accent); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--text-muted); font-size: 0.9062rem; line-height: 1.7; }

.card-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--s5);
  color: var(--accent);
  transition: border-color var(--in), background var(--in), transform var(--spring);
}
.card-ico svg { width: 19px; height: 19px; }
.card:hover .card-ico {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ============================================================
   CHIP / TAG / PILL
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 500 0.6562rem/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--panel-sunken);
  transition: border-color var(--in), color var(--in), background var(--in);
}
.chip.is-accent { border-color: var(--accent-line); color: var(--accent-300); background: var(--accent-soft); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--ok);
  flex: none;
  position: relative;
}
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 99px;
  border: 1px solid currentColor;
  color: var(--ok);
  opacity: 0;
  animation: ping 2.4s cubic-bezier(.22, 1, .36, 1) infinite;
}
@keyframes ping {
  0%   { opacity: .6; transform: scale(.6); }
  70%  { opacity: 0;  transform: scale(1.5); }
  100% { opacity: 0;  transform: scale(1.5); }
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 760ms cubic-bezier(.22, 1, .36, 1),
    transform 760ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.rv.is-in { opacity: 1; transform: none; }

.rv-line {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}
.rv-line.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .rv-line { clip-path: none; }
}
