/* ============================================================
   IMAGO ATELIER — Shared Stylesheet
   Default: Original · Pergament & Dunkelgrün
   Cormorant Garamond · DM Mono · DM Sans
   ============================================================ */

/* ── DEFAULT THEME: PERGAMENT (Hell) ── */
:root {
  --ink: #0f0f0f;
  --paper: #f5f2ed;
  --warm: #f0ebe2;
  --surface: #1a3a2a;
  --accent: #1a3a2a;
  --gold: #b8933a;
  --copper: #9e6b3a;
  --muted: #4a4540;
  --line: rgba(15,15,15,0.12);
  --line-strong: rgba(15,15,15,0.22);
  --nav-bg: rgba(245,242,237,0.94);
  --btn-hover: #0f2419;
  --nav-hover-bg: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

/* ── DARK MODE: WALDGRÜN ── */
html[data-theme="dark"] {
  --ink: #e6e0d4;
  --paper: #1a2e28;
  --warm: #162822;
  --surface: #0f1f1b;
  --accent: #c9a84c;
  --gold: #c9a84c;
  --copper: #b87850;
  --muted: #8aaa9a;
  --line: rgba(201,168,76,0.14);
  --line-strong: rgba(201,168,76,0.28);
  --nav-bg: rgba(26,46,40,0.96);
  --btn-hover: #a88830;
  --nav-hover-bg: #162822;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.06;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  letter-spacing: 0.06em; color: var(--accent); text-decoration: none;
}
.nav-logo .dot { color: var(--gold); }
.nav-links { display: flex; gap: 0.1rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 0.35rem 0.75rem; border: 1px solid transparent; border-radius: 2px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); border-color: var(--line); background: var(--nav-hover-bg); }
.nav-contact {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--accent);
  border: 1px solid var(--gold); padding: 0.35rem 0.8rem; border-radius: 2px;
  transition: all 0.2s;
}
.nav-contact:hover { background: var(--accent); color: white; border-color: var(--accent); }
.lock-btn {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); background: none;
  border: 1px solid var(--line); padding: 0.35rem 0.7rem; border-radius: 2px;
  cursor: pointer; transition: all 0.2s;
}
.lock-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ── DARK MODE TOGGLE ── */
.theme-toggle {
  font-family: var(--mono); font-size: 0.95rem; line-height: 1;
  background: none; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0; margin-left: 0.4rem;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ── SECTIONS ── */
.section { position: relative; z-index: 1; }
.section-inner { max-width: 1040px; margin: 0 auto; padding: 4.5rem 2.5rem; }
.section.dark { background: var(--surface); }
.section.warm { background: var(--warm); }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 300; color: var(--accent); margin-bottom: 1.2rem; line-height: 1.15;
}
h2 em { font-style: italic; }
.section.dark h2 { color: white; }
p { font-size: 1rem; color: var(--ink); line-height: 1.85; margin-bottom: 0.85rem; }
.section.dark p { color: rgba(255,255,255,0.75); }
.lead {
  font-size: 1.08rem; font-weight: 300; line-height: 1.8;
  color: var(--muted); max-width: 700px; margin-bottom: 2.5rem;
}
.section.dark .lead { color: rgba(255,255,255,0.65); }
hr.div { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
.section.dark hr.div { border-color: rgba(255,255,255,0.12); }
blockquote {
  border-left: 3px solid var(--gold); padding: 1rem 1.5rem;
  font-family: var(--serif); font-size: 1.4rem;
  font-weight: 300; line-height: 1.55; color: white; font-style: italic;
}

/* ── PAGE HEADER (dark — whitepapers, keynotes) ── */
.page-header {
  position: relative; z-index: 1;
  padding: 8rem 2.5rem 4rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface); overflow: hidden;
}
.page-header::before {
  position: absolute; bottom: -2.5rem; right: -1rem;
  font-family: var(--serif); font-size: 11rem; font-weight: 300;
  color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none; white-space: nowrap;
}
.page-header-inner { max-width: 1040px; margin: 0 auto; position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300; color: white; line-height: 1.1; margin-bottom: 1.2rem;
}
.page-header h1 em { font-style: italic; color: var(--gold); }
.page-header .lead {
  font-size: 1.05rem; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,0.7); max-width: 600px; margin-bottom: 0;
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--serif); font-size: 1rem; color: var(--accent); letter-spacing: 0.04em; }
.footer-logo .dot { color: var(--gold); }
.footer-note { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

/* ── BACK FIXED BUTTON ── */
.back-fixed {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 200;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--muted); background: var(--nav-bg);
  border: 1px solid var(--line); padding: 0.35rem 0.8rem; border-radius: 2px;
  backdrop-filter: blur(6px); transition: color 0.2s, border-color 0.2s;
}
.back-fixed:hover { color: var(--ink); border-color: var(--ink); }

/* ── SHARED CTA / KONTAKT ── */
.kontakt-box {
  background: var(--warm); border: 1px solid var(--line);
  border-radius: 4px; padding: 2.5rem; text-align: center;
  max-width: 560px; margin: 0 auto;
}
.kontakt-box h2 { margin-bottom: 0.8rem; }
.kontakt-box p { color: var(--muted); max-width: 420px; margin: 0 auto 1.5rem; }
.cta-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent); border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem; transition: gap 0.3s;
}
.cta-link:hover { gap: 1rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1rem; }
.form-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; padding: 0.75rem 0.9rem;
  font-family: var(--sans); font-size: 0.9rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 3px; color: var(--ink); outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); background: var(--warm); }
textarea.form-input { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-btn {
  width: 100%; padding: 0.85rem 1rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--accent);
  color: white; border: none; border-radius: 3px; cursor: pointer;
  transition: background 0.2s, transform 0.1s; margin-top: 0.3rem;
}
.form-btn:hover { background: var(--btn-hover); }
.form-btn:active { transform: scale(0.98); }
.form-success {
  display: none; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.06em; color: var(--accent);
  background: var(--warm); border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  padding: 0.8rem 1rem; border-radius: 3px; margin-top: 0.75rem; line-height: 1.6;
}
.form-note {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--muted); margin-top: 0.8rem; line-height: 1.6;
}

/* ── GATE SCREEN ── */
#gate {
  position: fixed; inset: 0; z-index: 999;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
#page { display: none; }
.gate-left {
  background: var(--surface);
  padding: 4rem 3.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.gate-left::before {
  position: absolute; bottom: -2rem; right: -1rem;
  font-family: var(--serif); font-size: 10rem; font-weight: 300;
  color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none; white-space: nowrap;
}
.gate-logo {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 300;
  color: white; letter-spacing: 0.06em; position: relative; z-index: 1;
}
.gate-logo .dot { color: var(--gold); }
.gate-body { position: relative; z-index: 1; }
.gate-eyebrow {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.gate-headline {
  font-family: var(--serif); font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  font-weight: 300; line-height: 1.1; color: white; margin-bottom: 1.5rem;
}
.gate-headline em { font-style: italic; color: var(--gold); }
.gate-intro { font-size: 1rem; font-weight: 300; line-height: 1.85; color: rgba(255,255,255,0.65); max-width: 400px; }
.gate-divider { width: 40px; height: 1px; background: var(--gold); margin: 2rem 0; }
.gate-note {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.gate-footer {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25); position: relative; z-index: 1;
}
.gate-right {
  padding: 4rem 3rem; display: flex; flex-direction: column;
  justify-content: center; overflow-y: auto;
}
.gate-right-inner { max-width: 380px; }
.gate-section-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.pw-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.45rem;
}
.pw-input {
  width: 100%; padding: 0.8rem 1rem;
  font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.14em;
  background: var(--warm); border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); outline: none; transition: border-color 0.2s; margin-bottom: 0.75rem;
}
.pw-input:focus { border-color: var(--accent); }
.pw-input.error { border-color: #c62828; animation: shake 0.3s ease; }
.pw-btn {
  width: 100%; padding: 0.8rem 1rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--accent); color: var(--paper);
  border: none; border-radius: 3px; cursor: pointer; transition: background 0.2s;
}
.pw-btn:hover { background: var(--btn-hover); }
.pw-error {
  font-family: var(--mono); font-size: 0.62rem; color: #c62828;
  letter-spacing: 0.06em; margin-top: 0.6rem; min-height: 1rem;
}
.gate-contact { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.gate-contact p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.8rem; }
.gate-contact-link {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent); border-bottom: 1px solid var(--gold); padding-bottom: 0.1rem;
}
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ── DISCLAIMER STRIP ── */
#disclaimer-strip {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: var(--nav-bg); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 0.38rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.ds-text {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.07em;
  color: var(--muted); line-height: 1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ds-link {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.07em;
  color: var(--accent); text-decoration: none; white-space: nowrap;
  flex-shrink: 0; transition: color 0.2s;
}
.ds-link:hover { color: var(--gold); }

/* room for strip at bottom */
body { padding-bottom: 2rem; }
.back-fixed { bottom: 3.5rem; }

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed; bottom: 3rem; right: 1.5rem; z-index: 90;
  width: 32px; height: 32px;
  background: var(--nav-bg); border: 1px solid var(--line);
  border-radius: 50%; cursor: pointer;
  font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, border-color 0.2s, color 0.2s;
  pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 600px) {
  #disclaimer-strip { padding: 0.38rem 1rem; gap: 0.8rem; }
  .ds-text { display: none; }
}

/* ── MEDIA QUERIES ── */
@media (max-width: 900px) {
  nav { padding: 0.9rem 1.5rem; }
  .section-inner { padding: 3.5rem 2rem; }
}
@media (max-width: 768px) {
  nav { padding: 0.9rem 1.2rem; }
  .nav-links { display: none; }
  .section-inner { padding: 3rem 1.2rem; }
  .page-header { padding: 6rem 1.2rem 3rem; }
  #gate { grid-template-columns: 1fr; }
  .gate-left { display: none; }
  .gate-right { padding: 3rem 1.5rem; padding-top: 5rem; }
  .gate-right-inner { max-width: 100%; }
  footer { padding: 1.5rem 1.2rem; }
}
