/* Format Nord – Basis. Layout-Idee: Instagram-Cover als Seite – Wort hinter Person,
   weiße Innenrahmen, weiße Label-Boxen, Papier + Nachtblau, Körnung über allem. */
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/bc-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/bc-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/bc-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/b-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/b-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/b-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../fonts/nr-400i.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --paper: #faf9f6;      /* Text-Slides auf Instagram */
  --paper-2: #edebe6;    /* Profil-Hintergrund */
  --ink: #111111;
  --grey: #78766f;
  --night: #13213a;      /* FN-Avatar */
  --night-2: #0c1628;
  --white: #ffffff;
  --line: rgba(17, 17, 17, .14);
  --line-light: rgba(255, 255, 255, .22);
  --f-display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --f-body: "Barlow", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Newsreader", "Sitka Text", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body); overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
.feed :focus-visible, .check :focus-visible, .foot :focus-visible, .hero :focus-visible { outline-color: var(--white); }

.wrap {
  width: 100%; max-width: 1440px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Typo ---------- */
.display {
  font: 700 clamp(3.2rem, 9vw, 8.5rem)/.86 var(--f-display);
  text-transform: uppercase; letter-spacing: -.01em; margin: 0; text-wrap: balance;
}
.display--light { color: var(--white); }
.display .dot { color: var(--grey); }
.display--light .dot { color: rgba(255, 255, 255, .45); }
.eyebrow {
  font: 600 .75rem/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase;
  color: var(--grey); margin: 0 0 18px;
}
.eyebrow--light { color: rgba(255, 255, 255, .62); }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 64px);
}
.sec-note { max-width: 38ch; margin: 0; color: var(--grey); font-size: 1.05rem; }

/* ---------- Bausteine aus dem IG-Look ---------- */
.frame { position: absolute; inset: clamp(10px, 2.2%, 22px); border: 2px solid var(--white); pointer-events: none; }
.label {
  display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--ink);
  font: 600 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  padding: 9px 12px 8px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.arrow { display: inline-block; width: 22px; height: 2px; background: currentColor; position: relative; }
.arrow::after {
  content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}

.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font: 600 .8rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  padding: 18px 22px 17px; border: 2px solid transparent; transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn--box { background: var(--white); color: var(--ink); }
.btn--box:hover { background: var(--ink); color: var(--white); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: var(--white); color: var(--ink); }
.btn--onDark:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--night); }

/* ---------- Atmosphäre ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 80; background: var(--white);
  mix-blend-mode: difference; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; width: 96px; height: 96px;
  margin: -48px 0 0 -48px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: grid; place-items: center; font: 600 .7rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(var(--s, 0)); transition: transform .35s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; gap: 28px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 14px max(var(--gutter), env(safe-area-inset-left, 0px));
  color: var(--white); transition: background .4s, color .4s, padding .4s;
}
.nav.is-solid { background: rgba(250, 249, 246, .9); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-dark { background: rgba(12, 22, 40, .86); color: var(--white); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__brand { font: 700 .9rem/1 var(--f-body); letter-spacing: .3em; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font: 500 .78rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 12px 16px 11px; font-size: .72rem; }
.nav.is-solid .nav__cta { background: var(--ink); color: var(--white); }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav__burger span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.nav__burger span:nth-child(1) { top: 17px; } .nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--night); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.menu nav { display: grid; gap: 4px; }
.menu a { font: 700 clamp(2.6rem, 13vw, 4.5rem)/1 var(--f-display); text-transform: uppercase; text-decoration: none; }
.menu__foot { margin-top: auto; font: 600 .75rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 420px) { .nav__cta { display: none; } }

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