/* sebastianreiners.de · Grundbausteine
   Farben und Schrift aus clients/empower-legacy/02-brand/CI-BEFUND.md (Reel-CI).
   Radius-Regel: Karten 28, Knöpfe Pille, Felder 14. */

@font-face { font-family: "Oswald"; src: url("fonts/Oswald-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-DemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0b0e;
  --bg-deep: #070709;
  --surface: #17171c;
  --edge: #2e2e35;
  --ink: #f1ede4;
  --ink-2: #c6c0b4;
  --ink-3: #8f8a80;
  --gold: #d9b865;
  --gold-chip: #e9c877;
  --red: #e0473a;
  --ivory: #f3ede2;
  --ivory-ink: #0b0b0e;
  --ivory-ink-2: #45413a;

  --grad-gold: linear-gradient(150deg, #f9ecc0 0%, #e2c069 22%, #a97f28 52%, #6f4f16 68%, #e8cd84 88%, #fff3cd 100%);
  --grad-gold-text: linear-gradient(180deg, #fff3cf 0%, #e0bd68 55%, #a67c26 100%);
  --grad-gold-btn: linear-gradient(180deg, #f6e3a6 0%, #e2c069 45%, #b98f35 100%);
  --grad-core: linear-gradient(160deg, #1f1f25, #0e0e12);
  --glow: 0 0 34px rgba(255, 201, 102, .35);
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --shadow-soft: 0 22px 48px -28px rgba(0, 0, 0, .9);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-text: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-card: 28px;
  --r-field: 14px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 7vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  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; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold-chip); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Körnung über allem, fest, ohne Klicks abzufangen */
.korn {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Typografie */
.h-display {
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 1.08;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.h-section {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.h-card { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.15; font-weight: 500; }
.gold-text {
  background: var(--grad-gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* Luft für Unterlängen, sonst schneidet der Verlauf das g ab (KARUSSELL-STIL) */
  padding-block: .08em; margin-block: -.08em;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.label {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; font-size: 14px; color: var(--gold-chip);
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform 180ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: var(--grad-gold-btn); color: #17130a;
  box-shadow: inset 0 1px 0 rgba(255, 249, 225, .8), inset 0 -2px 0 rgba(111, 79, 22, .45), 0 14px 34px -14px rgba(255, 201, 102, .55);
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge); }
.btn .pfeil { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 249, 225, .8), inset 0 -2px 0 rgba(111, 79, 22, .45), 0 20px 44px -14px rgba(255, 201, 102, .7); }
  .btn-gold:hover .pfeil { transform: translateX(3px); }
  .btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--gold); }
}

/* Goldrahmen: 3 Pixel Verlauf um einen dunklen Kern (Reel-CI 5) */
.goldrahmen { padding: 3px; border-radius: var(--r-card); background: var(--grad-gold); box-shadow: var(--shadow); }
.goldrahmen.mit-schein { box-shadow: var(--shadow), var(--glow); }
.goldrahmen > .kern { border-radius: calc(var(--r-card) - 3px); background: var(--grad-core); overflow: hidden; height: 100%; }

.karte {
  border-radius: var(--r-card);
  background: var(--grad-core);
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-soft);
}

/* Kopf */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 260ms ease, box-shadow 260ms ease; }
.kopf.ist-unten { background: rgba(11, 11, 14, .97); box-shadow: 0 1px 0 var(--edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.kopf-logo img { height: 40px; width: auto; }
.kopf-nav { display: flex; gap: 34px; }
.kopf-nav a { text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--ink-2); transition: color 160ms ease; }
.kopf-nav a:hover { color: var(--ink); }
.kopf .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
@media (max-width: 900px) {
  .kopf-nav { display: none; }
  .kopf-innen { height: 64px; }
  .kopf-logo img { height: 32px; }
}

/* Fuss */
.fuss { border-top: 1px solid var(--edge); padding: 48px 0 56px; color: var(--ink-3); font-size: 15px; }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.fuss img { height: 34px; width: auto; }
.fuss nav { display: flex; gap: 28px; flex-wrap: wrap; }
.fuss a { text-decoration: none; color: var(--ink-2); }
.fuss a:hover { color: var(--ink); }

/* Rechtsseiten */
.recht { padding: 140px 0 var(--section-y); }
.recht .shell { max-width: 760px; }
.recht h1 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; margin-bottom: 32px; }
.recht h2 { font-size: 24px; margin: 40px 0 12px; }
.recht h3 { font-size: 19px; margin: 28px 0 8px; font-weight: 500; }
.recht p, .recht li { color: var(--ink-2); margin-bottom: 12px; }

/* Eintritt: einmal als Prinzip, nur transform und opacity */
@media (prefers-reduced-motion: no-preference) {
  .js .auftritt { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .auftritt.ist-da { opacity: 1; transform: none; }
}
