/* ============================================================
   global.css – Aletheia · Zentrale Styles für alle Seiten
   Einbindung im <head> jeder Seite:
   <link rel="stylesheet" href="/global.css" />
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── Reset & Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown-deep: #3D2B1F;
  --brown-mid:  #7A5C46;
  --sand:       #C4A08A;
  --cream:      #F5EDE5;
  --cream-dark: #EDE0D4;
  --graphite:   #5A5A58;
  --nav-h:      72px;
  --content-max: 900px;
  --page-gutter: clamp(1.5rem, 5vw, 4rem);

  /* Typografie-Basis (hier zentral anpassen) */
  --font-base:  17px;   /* Basis-Schriftgröße – für 28" empfohlen */
  --font-body:  clamp(0.9rem, 1.6vw, 1rem);
  --font-small: 0.82rem;
  --font-label: 0.6rem;
}

html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
}

body {
  background: #1e1208;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Canvas-Hintergrund ── */
#bgCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.color-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg,
    rgba(61,43,31,0.72) 0%,
    rgba(122,92,70,0.42) 55%,
    rgba(196,160,138,0.20) 100%);
}
.noise {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Navigation ── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
#mainNav.scrolled {
  background: rgba(30,18,8,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(196,160,138,0.15);
}
.nav-wordmark { text-decoration: none; display: flex; flex-direction: column; }
.nav-wordmark-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--cream); letter-spacing: 0.03em; line-height: 1;
}
.nav-wordmark-sub {
  font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sand); margin-top: 3px;
}
.nav-links {
  display: flex; align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem); list-style: none;
}
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,237,229,0.65); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover  { color: var(--cream); }
.nav-links a.active { color: var(--sand); }
.nav-portal {
  width: 30px; height: 30px; border-radius: 50%;
  border: 0.5px solid rgba(196,160,138,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(196,160,138,0.55); text-decoration: none;
  transition: border-color 0.2s, color 0.2s; cursor: pointer; position: relative;
}
.nav-portal:hover { border-color: var(--sand); color: var(--sand); }
.nav-portal-tooltip {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(30,18,8,0.95); border: 0.5px solid rgba(196,160,138,0.2);
  border-radius: 6px; padding: 6px 10px; white-space: nowrap;
  font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(196,160,138,0.7);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.nav-portal:hover .nav-portal-tooltip { opacity: 1; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1px;
  background: var(--cream); transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(20,12,6,0.97); backdrop-filter: blur(20px);
  z-index: 99; flex-direction: column; align-items: center;
  justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  font-weight: 300; color: var(--cream); text-decoration: none;
  letter-spacing: 0.04em; transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--sand); }

/* ── Site-Wrapper ── */
.site { position: relative; z-index: 3; }
.site > * {
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* ── Seiten-Header ── */
.page-header {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  opacity: 0; animation: fadeUp 0.9s ease forwards 0.3s;
}
.page-header-label {
  font-size: var(--font-label); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sand); opacity: 0.75; margin-bottom: 1rem;
}
.page-header-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.95;
  letter-spacing: -0.015em; color: var(--cream);
}
.page-header-title em { font-style: italic; color: var(--sand); }
.page-header-divider {
  width: clamp(60px,10vw,100px); height: 1px;
  background: var(--sand); opacity: 0.45; margin: 2rem 0;
}
.page-header-sub {
  font-size: clamp(0.95rem,1.8vw,1.1rem); line-height: 1.8;
  color: rgba(245,237,229,0.7); max-width: 540px;
}

/* ── Sektionen ── */
section { padding: clamp(3rem,6vw,5rem) 0; }

.section-label {
  display: inline-block;
  font-size: var(--font-label); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sand); opacity: 0.75;
  border: 0.5px solid rgba(196,160,138,0.45);
  border-radius: 999px; padding: 0.35rem 1rem;
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--cream); margin-bottom: 0.4rem;
}
.section-title em { font-style: italic; color: var(--sand); }
.section-divider {
  width: clamp(50px,8vw,80px); height: 1px;
  background: var(--sand); opacity: 0.4; margin: 1.5rem 0 2.2rem;
}

/* ── Fließtext ── */
.body-text {
  font-size: var(--font-body); line-height: 1.9;
  color: rgba(245,237,229,0.72); margin-bottom: 1.2rem;
}
.body-text strong { color: var(--cream); font-weight: 500; }
.body-text:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background: var(--sand); color: var(--brown-deep);
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 0.85rem 2rem; text-decoration: none;
  transition: background 0.3s; white-space: nowrap;
}
.btn-primary:hover { background: var(--cream); }
.btn-ghost {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,237,229,0.55); text-decoration: none;
  border-bottom: 1px solid rgba(196,160,138,0.3); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
.btn-ghost:hover { color: var(--sand); border-color: var(--sand); }

/* ── Quote-Block ── */
.quote-block {
  border-left: 1.5px solid rgba(196,160,138,0.35);
  padding: 1.2rem 1.8rem; margin: 2rem 0;
}
.quote-block p {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.05rem,2vw,1.3rem); color: var(--cream);
  line-height: 1.7; margin-bottom: 0.6rem; opacity: 0.88;
}
.quote-block cite {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand); font-style: normal; opacity: 0.75;
}

/* ── Quote-Break (zentriert, zwischen Sektionen) ── */
.quote-break { text-align: center; }
.quote-break blockquote {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.6;
  color: var(--cream); max-width: 620px; margin: 0 auto 1rem; opacity: 0.85;
}
.quote-break cite {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand); font-style: normal; opacity: 0.75;
}

/* ── CTA-Band ── */
.cta-band {
  border-top: 0.5px solid rgba(196,160,138,0.15);
  border-bottom: 0.5px solid rgba(196,160,138,0.15);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-band-text {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--cream); line-height: 1.3;
}
.cta-band-text em { font-style: italic; color: var(--sand); }

/* ── Footer ── */
footer {
  position: relative; z-index: 3;
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: var(--content-max); margin-left: auto; margin-right: auto;
  padding: 2.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 0.5px solid rgba(196,160,138,0.12);
}
.footer-copy {
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(196,160,138,0.45);
}
.footer-imprint {
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(196,160,138,0.35); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer-imprint:hover { color: var(--sand); border-color: rgba(196,160,138,0.4); }

/* ── Deko-Element rechts ── */
.deco-right {
  position: fixed; right: clamp(1.5rem,4vw,3.5rem); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeIn 1s ease forwards 1.2s; z-index: 10;
}
.deco-right-text {
  writing-mode: vertical-rl; font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(196,160,138,0.4);
}
.deco-right-line {
  width: 1px; height: 55px;
  background: linear-gradient(to bottom, rgba(196,160,138,0.35), transparent);
}

/* ── Scroll-Reveal ── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Animationen ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Canvas-Animations-Script (wird per JS eingebunden) ── */

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .deco-right { display: none; }
  .two-col    { grid-template-columns: 1fr !important; }
}
