/* =========================================================================
   main.css — Designsystem "Film in Kapiteln"
   Projekt: hypnose-sylvia-manninga.de

   Prinzip: EINE Linie, überall. Jede Seite ist ein Kurzfilm aus
   4–5 Kapiteln, getrennt durch ruhige Establishing-Shots.
     - Cinema-Hero: full-bleed Bild + Headline
     - Chapter:     große Nummer + Titel + schmale Textspalte
     - Shot:        full-bleed Bild mit Zitat-Untertitel
     - Close:       warme CTA-Sektion
   Farbwelt: Warm-Creme mit Navy + Orange als Akzente (aus Logo).
   ========================================================================= */


/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Tinte — weiches Warmbraun, nie hartes Schwarz. */
  --ink:           #2A241F;
  --ink-soft:      #4A4239;
  --ink-mute:      #8C8175;

  /* Paper — Natur-Creme mit leichten Schichten. */
  --paper:         #FAF5EC;
  --paper-warm:    #FFFBF2;
  --paper-deep:    #F2EADB;
  --sand:          #EADFCB;
  --peach:         #F8E8DA;
  --line:          #E0D5C0;
  --line-soft:     #EFE7D6;

  /* Akzente aus dem Logo — spärlich dosiert. */
  --navy:          #14233E;
  --navy-deep:     #0A1529;
  --accent:        #E8632D;
  --accent-deep:   #C74F1D;
  --accent-soft:   #F4A87A;
  --accent-veil:   #FBE8DB;

  /* Film-Tints — dunkle Overlays für Cinema-Hero und Shot. */
  --tint-dark:     rgba(20, 18, 16, 0.55);
  --tint-dark-b:   rgba(20, 18, 16, 0.25);
  --tint-dark-a:   rgba(20, 18, 16, 0.80);

  /* Typografie */
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs:   0.75rem;    /* 12px — Eyebrow/Label */
  --fs-sm:   0.875rem;   /* 14px — Meta */
  --fs-base: 1.0625rem;  /* 17px — Body */
  --fs-md:   1.1875rem;  /* 19px — Lede */
  --fs-lg:   1.375rem;   /* 22px — H4 */
  --fs-xl:   clamp(1.75rem, 1.4rem + 1.6vw, 2.375rem);
  --fs-2xl:  clamp(2.5rem, 1.8rem + 3vw, 4rem);
  --fs-3xl:  clamp(3rem,   1.9rem + 5vw, 6rem);
  --fs-4xl:  clamp(2.5rem, 1.6rem + 4.8vw, 6.5rem);  /* Cinema-Headline */
  --fs-film: clamp(5rem, 3rem + 10vw, 14rem);     /* Riesennummern */

  --lh-tight: 1.02;
  --lh-snug:  1.15;
  --lh-base:  1.65;
  --lh-loose: 1.85;

  --track-tight:  -0.02em;
  --track-xtight: -0.035em;
  --track-wide:    0.12em;
  --track-xwide:   0.22em;

  /* Spacing — 8pt-basiert, mit großzügigen Kino-Intervallen. */
  --s-1:   0.25rem;
  --s-2:   0.5rem;
  --s-3:   0.75rem;
  --s-4:   1rem;
  --s-5:   1.5rem;
  --s-6:   2rem;
  --s-7:   2.75rem;
  --s-8:   3.5rem;
  --s-9:   4.5rem;
  --s-10:  6rem;
  --s-11:  7.5rem;
  --s-12:  9.5rem;
  --s-13:  12rem;

  /* Container */
  --c-xs: 36rem;
  --c-sm: 48rem;
  --c-md: 64rem;
  --c-lg: 80rem;
  --c-xl: 96rem;

  /* Radien — sehr zurückhaltend. */
  --r-sm: 2px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-base: 360ms;
  --t-slow: 720ms;
  --t-film: 1200ms;

  /* Layout */
  --hdr-h:   56px;
  --hdr-h-d: 68px;
  --gutter:  clamp(1.25rem, 3vw, 2rem);

  /* Aliasse für Rückwärtskompatibilität mit altem Markup */
  --color-ink:           var(--ink);
  --color-ink-soft:      var(--ink-soft);
  --color-ink-mute:      var(--ink-mute);
  --color-paper:         var(--paper);
  --color-paper-warm:    var(--paper-warm);
  --color-paper-deep:    var(--paper-deep);
  --color-sand:          var(--sand);
  --color-peach:         var(--peach);
  --color-line:          var(--line);
  --color-line-soft:     var(--line-soft);
  --color-accent:        var(--accent);
  --color-accent-deep:   var(--accent-deep);
  --color-accent-soft:   var(--accent-soft);
  --color-accent-veil:   var(--accent-veil);
  --color-navy:          var(--navy);
  --color-navy-deep:     var(--navy-deep);
  --color-sage:          var(--accent);
  --color-sage-deep:     var(--accent-deep);
  --color-sage-soft:     var(--accent-soft);
  --color-sage-veil:     var(--accent-veil);
  --color-focus:         var(--accent);
  --color-stone:         var(--ink-mute);
  --font-display: var(--font-display);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-pill: var(--r-pill);
  --space-1: var(--s-1);
  --space-2: var(--s-2);
  --space-3: var(--s-3);
  --space-4: var(--s-4);
  --space-5: var(--s-5);
  --space-6: var(--s-6);
  --space-7: var(--s-7);
  --space-8: var(--s-8);
  --space-9: var(--s-9);
  --space-10: var(--s-10);
  --space-11: var(--s-11);
  --space-12: var(--s-12);
  --container-xs: var(--c-xs);
  --container-sm: var(--c-sm);
  --container-md: var(--c-md);
  --container-lg: var(--c-lg);
  --container-xl: var(--c-xl);
  --tracking-tight:   var(--track-tight);
  --tracking-display: var(--track-xtight);
  --tracking-wide:    var(--track-wide);
  --tracking-xwide:   var(--track-xwide);
  --header-h: var(--hdr-h);
  --header-h-sm: var(--hdr-h);
  --shadow-xs: 0 1px 2px rgba(42, 38, 35, 0.04);
  --shadow-sm: 0 2px 8px rgba(42, 38, 35, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(42, 38, 35, 0.14);
  --shadow-lg: 0 30px 60px -24px rgba(42, 38, 35, 0.22);
}


/* -------------------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  accent-color: var(--accent);
  -webkit-tap-highlight-color: rgba(20, 35, 62, 0.08);
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  background-image:
    radial-gradient(80rem 55rem at 110% -10%, rgba(248, 232, 218, 0.7), transparent 58%),
    radial-gradient(72rem 50rem at -15% 110%, rgba(234, 223, 203, 0.55), transparent 60%);
  background-attachment: fixed;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}
svg { fill: currentColor; }

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast) var(--ease-std),
              text-decoration-color var(--t-fast) var(--ease-std);
}
a:hover { text-decoration-color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

button { font: inherit; cursor: pointer; }

hr { border: 0; height: 1px; background: var(--line); margin: var(--s-8) 0; }


/* -------------------------------------------------------------------------
   3. Typografie
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-xtight);
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 {
  font-size: var(--fs-lg);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: var(--lh-snug);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
}

p {
  margin: 0 0 var(--s-5);
  max-width: 62ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--track-xwide);
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 var(--s-5);
}
.eyebrow::before {
  content: "";
  width: var(--s-8);
  height: 1px;
  background: var(--accent-deep);
  opacity: 0.6;
}

blockquote {
  margin: 0 0 var(--s-6);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: var(--lh-snug);
  color: var(--ink);
  padding-left: var(--s-5);
  border-left: 2px solid var(--accent);
}

ul, ol { margin: 0 0 var(--s-5); padding-left: 1.15em; color: var(--ink-soft); }
ul li, ol li { margin: 0 0 var(--s-3); }

ul { list-style: none; padding-left: 0; }
ul li { position: relative; padding-left: 1.25em; }
ul li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.8em;
  width: 0.5em;
  height: 1px;
  background: var(--accent-deep);
}

small { font-size: var(--fs-sm); color: var(--ink-mute); }


/* -------------------------------------------------------------------------
   4. Layout-Container & Section
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  max-width: var(--c-md);
}
.container--xs { max-width: var(--c-xs); }
.container--sm { max-width: var(--c-sm); }
.container--lg { max-width: var(--c-lg); }
.container--xl { max-width: var(--c-xl); }

.section {
  padding-block: clamp(4rem, 8vw, 6rem);
}
@media (min-width: 48rem) {
  .section { padding-block: clamp(6rem, 10vw, 9rem); }
}
@media (min-width: 72rem) {
  .section { padding-block: clamp(7rem, 12vw, 11rem); }
}

.section--tight { padding-block: var(--s-8); }
.section--loose { padding-block: var(--s-12); }
.section--warm   { background: var(--paper-warm); }
.section--deep   { background: var(--paper-deep); }
.section--sand   { background: var(--sand); }
.section--peach  { background: var(--peach); }
.section--ink    { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p  { color: rgba(250, 245, 236, 0.82); }

.split {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-9);
    align-items: center;
  }
  .split--wide    { grid-template-columns: 1.25fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--s-6); }
}


/* -------------------------------------------------------------------------
   5. Reading-Progress — dünner Fortschrittsbalken ganz oben.
   ------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  z-index: 250;
  pointer-events: none;
  transition: width 80ms linear;
}


/* -------------------------------------------------------------------------
   6. Header & Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: background var(--t-base) var(--ease-std),
              box-shadow var(--t-base) var(--ease-std);
}
body[data-scroll-lock] .site-header { z-index: 200; }

.site-header.is-scrolled {
  background: rgba(250, 245, 236, 0.90);
  box-shadow: 0 1px 0 var(--line-soft);
}
/* Nach cinema-Hero: Header auf transparent-invert (weiße Schrift auf dunklem Hero). */
.site-header.is-atop {
  background: transparent;
  box-shadow: none;
}
.site-header.is-atop .brand__logo { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
.site-header.is-atop .nav__link { color: rgba(250, 246, 238, 0.9); }
.site-header.is-atop .nav__link:hover { color: #fff; }
.site-header.is-atop .nav-toggle { color: #faf6ee; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--hdr-h);
}
@media (min-width: 56rem) {
  .site-header__inner { height: var(--hdr-h-d); }
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: opacity var(--t-fast) var(--ease-std);
}
.brand:hover { opacity: 0.85; }
.brand__logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  border-radius: 2px;
}
@media (min-width: 56rem) { .brand__logo { height: 38px; } }
@media (max-width: 30rem) { .brand__logo { height: 26px; } }

.nav { display: none; }
@media (min-width: 56rem) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2.6vw, 2.25rem);
  }
}
.nav__link {
  position: relative;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 4px;
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: color var(--t-fast) var(--ease-std);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.nav__link--accent { color: var(--ink); font-weight: 500; }


/* -------------------------------------------------------------------------
   7. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: #1A1613;
  color: rgba(250, 245, 236, 0.82);
  padding-block: var(--s-10) var(--s-7);
  margin-top: var(--s-11);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.5;
}
.site-footer a { color: inherit; text-decoration-color: rgba(245, 240, 232, 0.3); }
.site-footer a:hover { color: var(--paper); text-decoration-color: var(--paper); }

.site-footer__grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8); }
}

.site-footer__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--track-xwide);
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--s-4);
}
.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: var(--track-tight);
  margin-bottom: var(--s-3);
}
.site-footer__meta {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(245, 240, 232, 0.55);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}
.site-footer__nav a {
  padding: 6px 14px;
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  position: relative;
  transition: color var(--t-fast) var(--ease-std);
}
.site-footer__nav a:hover { color: var(--paper); }
.site-footer__nav a + a::before {
  content: "";
  position: absolute;
  left: -3px; top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.25);
  transform: translateY(-50%);
}
