/* ============================================================
   THEEQUEST CORE — das eine Design-System (v1, 12.07.2026)
   Quelle der Wahrheit: Atelier-Muster der Startseite (index.html).
   Neue Seiten binden ZUERST diese Datei ein und bauen darauf.
   Regel: Tokens und Komponenten werden hier gepflegt, nie
   pro Seite kopiert. Index bleibt (noch) eigenständig.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Paper tones — warm editorial cream */
  --paper: #f4efe3;
  --paper-soft: #ede6d3;
  --paper-warm: #e4dbc0;
  --paper-deep: #d8ccaa;

  /* Ink tones — warm, not black */
  --ink: #1c1a15;
  --ink-soft: #5f584a;
  --ink-mute: #6c6450; /* WCAG-AA auf Cream (4.9:1) */
  --ink-whisper: #b8ae98;

  /* Gold — gedeckt editorial */
  --gold: #b8914a;
  --gold-deep: #8f6f33;
  --gold-light: #d0a862;
  --gold-pale: #e8d9b5;

  /* Dark signature moments */
  --midnight: #0d1628;
  --midnight-deep: #081020;
  --deep-night: #050810;

  /* Utility */
  --hairline: rgba(28, 26, 21, 0.12);
  --hairline-gold: rgba(184, 145, 74, 0.35);
  --hairline-dark: rgba(244, 239, 227, 0.15);

  /* Font stacks — ein Ort, korrekte Fallbacks */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Sacramento', cursive;
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  overflow-wrap: break-word;
}

section[id] { scroll-margin-top: 95px; }
@media (max-width: 768px) {
  section[id] { scroll-margin-top: 78px; }
}

/* ===== FILM GRAIN OVERLAY (Signature Move) ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== EINHEITLICHE BILD-TONALITÄT (warmer DACH-Ton) ===== */
img[src$=".jpg"],
img[src$=".jpeg"],
img[src$=".png"]:not([src*="logo"]) {
  filter: sepia(0.12) saturate(0.90) hue-rotate(-5deg) brightness(0.98);
}
.no-tone,
.no-tone img { filter: none; }

/* ===== TYPOGRAPHIC SYSTEM ===== */
.display-huge {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(52px, 8.5vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display-large {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.display-medium {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* DIE Sektions-Überschrift — statt acht per-Sektion-Varianten */
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.display-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lead {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(19px, 1.4vw, 23px);
  line-height: 1.65;
  color: var(--ink);
}

.body-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Italic emphasis — sparsam, Signatur */
em, .em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: 1.04em;
}

.accent-gold { color: var(--gold-deep); }
.accent-italic { font-style: italic; font-family: var(--font-serif); font-weight: 400; }

/* ===== CONTAINERS (Editorial Grid) ===== */
.wrap        { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 840px;  margin: 0 auto; padding: 0 40px; }
.wrap-tight  { max-width: 640px;  margin: 0 auto; padding: 0 40px; }
.wrap-wide   { max-width: 1480px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) {
  .wrap, .wrap-narrow, .wrap-tight, .wrap-wide { padding: 0 24px; }
}

/* ===== HAIRLINE DIVIDER (Signature Move) ===== */
.hairline {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--gold);
  border: none;
  opacity: 0.6;
}
.hairline.center { margin-left: auto; margin-right: auto; }
.hairline.long   { width: 140px; }
.hairline.dark   { background: var(--gold-light); opacity: 0.4; }

/* ===== SECTION BASE + RHYTHMUS ===== */
section { padding: 160px 0; position: relative; }
section.section-soft { background: var(--paper-soft); }
section.section-warm { background: var(--paper-warm); }
section.section-dark { background: var(--midnight); color: var(--paper); }
section.section-deep { background: var(--deep-night); color: var(--paper); }

section.pad-tight   { padding: 80px 0; }
section.pad-default { padding: 120px 0; }
section.pad-breathe { padding: 160px 0; }
@media (max-width: 768px) {
  section.pad-tight   { padding: 48px 0; }
  section.pad-default { padding: 64px 0; }
  section.pad-breathe { padding: 88px 0; }
}

/* Dunkle Sektionen: Typo-Farben drehen */
section.section-dark .display-huge, section.section-dark .display-large,
section.section-dark .display-medium, section.section-dark .section-title,
section.section-deep .display-huge, section.section-deep .display-large,
section.section-deep .display-medium, section.section-deep .section-title { color: var(--paper); }
section.section-dark .body-text, section.section-dark .lead,
section.section-deep .body-text, section.section-deep .lead { color: rgba(244, 239, 227, 0.92); font-weight: 400; }
section.section-dark em, section.section-deep em { color: var(--gold-light); }
section.section-dark .eyebrow, section.section-deep .eyebrow { color: var(--gold-light); }

/* ===== CTA BUTTONS (Editorial) ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 22px 42px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '→';
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-primary:hover::after { transform: translateX(6px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 36px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.btn-ghost::after { content: '→'; font-family: var(--font-serif); font-size: 18px; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-on-dark { background: var(--gold); color: var(--deep-night); border-color: var(--gold); }
.btn-on-dark:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--deep-night); }

.link-editorial {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: all 0.3s ease;
}
.link-editorial:hover { color: var(--gold-deep); }

/* ===== REVEAL SYSTEM ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger, .reveal > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
