/* =========================================================================
   NEW EUROPE FRUITS — Design Tokens, Fonts & Reset
   Marke der New Cheng Europe GmbH, Hamburg
   ------------------------------------------------------------------------
   Schriften sind lokal eingebunden (DSGVO: keine Verbindung zu Google Fonts)
   ========================================================================= */

/* ---------- Fraunces (Display / Headlines) — variabel ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/fraunces-italic-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;
}

/* ---------- Karla (Fließtext / UI) — variabel ---------- */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/karla-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: 'Karla';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/karla-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/karla-italic-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;
}

/* =========================================================================
   TOKENS
   ========================================================================= */
:root {
  /* --- Grundflächen: Sommerdunst, nicht Weiß --- */
  --paper: #f3f6f1;          /* Basis: kühles Sommergrün-Weiß */
  --paper-2: #fbfcfa;        /* Karten / erhabene Flächen */
  --paper-warm: #fdf5ea;     /* Butter */
  --paper-blush: #fdf0ee;    /* Guave-Milch */
  --paper-sky: #edf4f9;      /* Himmel */
  --paper-mint: #eef6ee;     /* Pistazie-Milch */
  --paper-lilac: #f4f0fa;    /* Litschi-Milch */

  /* --- Tinte: tiefe Feige, niemals Schwarz --- */
  --ink: #2a1e2e;
  --ink-80: #4a3b4f;
  --ink-60: #6e6072;
  --ink-40: #9a8f9d;
  --ink-20: #cdc6cf;
  --ink-08: rgba(42, 30, 46, 0.08);
  --ink-12: rgba(42, 30, 46, 0.12);

  /* --- Pastelle: das Fruchtregal --- */
  --mango: #ffd8a8;
  --papaya: #ffc39a;
  --guave: #fbb5af;
  --litschi: #f7d3e2;
  --drachen: #ecc0dd;
  --pistazie: #cde3be;
  --limette: #e3efa6;
  --himmel: #c6dcf0;
  --heidelbeere: #cfc6e8;
  --kokos: #f6ecdd;

  /* --- Akzent: Blutorange (sparsam, nur für Handlung) --- */
  --accent: #ee5b33;
  --accent-deep: #c8421f;
  --accent-soft: #ffe4dc;

  /* --- Typografie --- */
  --font-display: 'Fraunces', 'Superclarendon', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Karla', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --wonk: 'SOFT' 60, 'WONK' 1;

  /* Fluide Typoskala (Basis 1.25 / clamp) */
  --t-mega: clamp(3rem, 8.6vw, 8.8rem);
  --t-xxl: clamp(2.4rem, 5.6vw, 4.9rem);
  --t-xl: clamp(2rem, 4vw, 3.4rem);
  --t-lg: clamp(1.6rem, 2.7vw, 2.4rem);
  --t-md: clamp(1.18rem, 1.5vw, 1.42rem);
  --t-base: clamp(1.02rem, 1.06vw, 1.14rem);
  --t-sm: 0.935rem;
  --t-xs: 0.78rem;

  /* --- Raster & Raum --- */
  --wrap: 1280px;
  --wrap-narrow: 860px;
  --gutter: clamp(1.35rem, 5vw, 4.5rem);
  --section: clamp(5.5rem, 11vw, 10.5rem);
  --radius: 22px;
  /* handgezeichnete, unregelmäßige Rundung */
  --radius-hand: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --radius-hand-alt: 15px 225px 15px 255px / 225px 15px 255px 15px;

  /* --- Schatten: weich, sommerlich, nie grau --- */
  --shadow-sm: 0 2px 10px rgba(42, 30, 46, 0.045);
  --shadow: 0 18px 44px -22px rgba(42, 30, 46, 0.28), 0 3px 12px rgba(42, 30, 46, 0.04);
  --shadow-lg: 0 46px 90px -40px rgba(42, 30, 46, 0.34), 0 6px 20px rgba(42, 30, 46, 0.05);

  /* --- Bewegung --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.9s;

  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* KEIN `scroll-behavior: smooth`. Der Scroller in js/core.js ruft pro Bild
     window.scrollTo() auf — mit weichem Scrollverhalten im CSS würde jeder
     dieser Aufrufe eine eigene Browser-Animation starten. Zwei Glättungen
     übereinander ergeben ein zähes, nachfederndes Scrollen.
     Ankersprünge übernimmt initAnchors() in js/motion.js. */
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 1.1s var(--ease-soft);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.022em;
  font-variation-settings: var(--wonk);
  text-wrap: balance;
}

::selection { background: var(--mango); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Korn — liegt über allem, nimmt keine Klicks */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  /* das Korn wandert minimal mit — nimmt dem Verlauf das Digitale */
  background-position: 0 calc(var(--grain, 0px));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

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