/* ============================================================
   CAFÉ THEO — Editorial-Column Architecture
   Mid-Column Long-Form (max 640px) · Skandi-Minimal
   Ein Akzent: Teal · Full-Bleed-Foto-Spreads als Kapitel-Trenner
   ============================================================ */

/* --- 0 · Reset cinematic legacy --- */
.hero-cinematic, .bg, .haze, .dust, .vignette, .letterbox,
.eagle-watermark, .chapter-card, .bleed-strip, .timeline,
.cinematic, .scroll-cue { display: none !important; }

/* --- 1 · Tokens --- */
:root {
  --c-teal:        #4c7a82;
  --c-teal-deep:   #2f565d;
  --c-teal-soft:   #6e96a3;
  --c-paper:       #fafaf7;
  --c-paper-muted: #efece4;
  --c-ink:         #1f1f1c;
  --c-ink-soft:    #565350;
  --c-rule:        rgba(31, 31, 28, 0.12);

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Source Serif 4', Georgia, serif;
  --f-ui:      'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* --- 2 · Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; }

/* --- 3 · Progress --- */
.ec-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--c-teal); z-index: 200;
}

/* --- 4 · Nav --- */
.ec-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-rule);
}
.ec-nav .nav-inner {
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { width: 40px; height: 40px; border-radius: 7px; }
.nav-logo span {
  font-family: var(--f-display); font-size: 1.35rem; font-style: italic; color: var(--c-teal-deep);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-ink-soft);
  padding: 5px 0; position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--c-teal); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-teal-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--c-teal); color: var(--c-paper) !important;
  padding: 8px 17px !important; border-radius: 22px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--c-teal-deep); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--c-teal-deep); margin: 5px 0; }
.nav-mobile { display: none; flex-direction: column; background: var(--c-paper); border-bottom: 1px solid var(--c-rule); }
.nav-mobile a {
  padding: 13px 28px; font-family: var(--f-ui); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink-soft);
  border-top: 1px solid var(--c-rule);
}
.nav-mobile.open { display: flex; }

/* --- 5 · Editorial frame (mid-column) --- */
.editorial-frame { max-width: 640px; margin: 0 auto; padding: 0 28px; }

/* --- 6 · Initial cover --- */
.initial-cover { text-align: center; padding: 80px 28px 64px; }
.initial-cover .cover-logo { width: 96px; height: 96px; border-radius: 14px; margin: 0 auto 26px; }
.initial-cover .eyebrow {
  font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--c-teal); margin-bottom: 18px;
}
.initial-cover h1 {
  font-style: italic; font-size: clamp(3rem, 8vw, 5.4rem); color: var(--c-ink);
  margin-bottom: 22px;
}
.initial-cover .cover-quote {
  font-family: var(--f-display); font-style: italic; font-size: 1.5rem;
  color: var(--c-teal-deep); max-width: 460px; margin: 0 auto;
}
.initial-cover .cover-quote::before,
.initial-cover .cover-quote::after { content: "—"; color: var(--c-teal); margin: 0 8px; }
.scroll-hint {
  font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--c-ink-soft);
  margin-top: 44px; opacity: 0.7;
}

/* --- 7 · Full-bleed photo (chapter divider) --- */
.full-bleed-photo {
  width: 100vw; position: relative; left: 50%;
  transform: translateX(-50%); margin: 76px 0;
  overflow: hidden;
}
.full-bleed-photo img {
  width: 100%; height: 64vh; min-height: 360px; object-fit: cover; display: block;
}
.full-bleed-photo figcaption {
  font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--c-teal);
  text-align: center; padding: 16px 24px 0;
}

/* --- 8 · Article --- */
.ec-article { padding: 8px 0; }
.section-num {
  font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--c-teal);
  margin: 8px 0 18px; text-align: center;
}
.section-num::before, .section-num::after {
  content: ""; display: inline-block;
  width: 26px; height: 1px; background: var(--c-teal);
  vertical-align: middle; margin: 0 14px;
}
.ec-article h2 {
  font-style: italic; font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--c-ink); text-align: center; margin-bottom: 14px;
}
.ec-article .lede {
  font-family: var(--f-display); font-style: italic;
  font-size: 1.42rem; line-height: 1.5; color: var(--c-teal-deep);
  text-align: center; margin: 0 auto 34px; max-width: 540px;
  padding-bottom: 30px; border-bottom: 1px solid var(--c-rule);
}
.ec-article p { font-size: 1.06rem; line-height: 1.85; margin-bottom: 20px; color: var(--c-ink); }
.ec-article p.muted { color: var(--c-ink-soft); }
.ec-article .drop p:first-of-type::first-letter {
  font-family: var(--f-display); font-style: italic;
  font-size: 4.6em; float: left; line-height: 0.78;
  margin: 0.04em 0.1em 0 0; color: var(--c-teal);
}
.inline-quote {
  font-family: var(--f-display); font-style: italic;
  font-size: 1.6rem; line-height: 1.42; color: var(--c-teal-deep);
  padding: 8px 0 8px 26px; margin: 34px 0;
  border-left: 2px solid var(--c-teal);
}
.ec-article h3 {
  font-style: italic; font-size: 1.7rem; color: var(--c-ink);
  margin: 36px 0 12px;
}

/* --- 9 · Triad (the three brand statements) --- */
.theo-triad { margin: 36px 0; }
.triad-item {
  padding: 22px 0; border-bottom: 1px solid var(--c-rule);
  display: flex; gap: 20px; align-items: baseline;
}
.triad-item:first-child { border-top: 1px solid var(--c-rule); }
.triad-item .ti-mark {
  font-family: var(--f-display); font-style: italic; font-size: 2rem;
  color: var(--c-teal); flex-shrink: 0; width: 38px;
}
.triad-item .ti-body h4 {
  font-family: var(--f-display); font-style: italic; font-size: 1.5rem;
  color: var(--c-ink); margin-bottom: 2px;
}
.triad-item .ti-body p { font-size: 0.98rem; color: var(--c-ink-soft); margin: 0; }

/* --- 10 · Buttons --- */
.btn {
  font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 14px 28px; border-radius: 26px;
  display: inline-block; transition: background 0.25s, transform 0.25s, color 0.25s;
}
.btn-teal { background: var(--c-teal); color: var(--c-paper); }
.btn-teal:hover { background: var(--c-teal-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--c-teal); color: var(--c-teal-deep); }
.btn-ghost:hover { background: rgba(76,122,130,0.08); }
.btn-row { text-align: center; margin: 36px 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- 11 · Contact lines --- */
.contact-lines { margin: 30px 0; }
.contact-line {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--c-rule);
}
.contact-line:first-child { border-top: 1px solid var(--c-rule); }
.contact-line .cl-label {
  font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-teal); flex-shrink: 0;
}
.contact-line .cl-value { font-family: var(--f-display); font-size: 1.25rem; text-align: right; }
.contact-line .cl-value a { color: var(--c-teal-deep); }

/* --- 12 · Menu list (editorial, not cards) --- */
.menu-block { margin: 28px 0; }
.menu-block .mb-head {
  font-family: var(--f-display); font-style: italic; font-size: 1.6rem;
  color: var(--c-teal-deep); margin-bottom: 6px;
}
.menu-block .mb-rule { width: 48px; height: 2px; background: var(--c-teal); margin-bottom: 16px; }
.menu-line {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--c-rule);
}
.menu-line .ml-name { font-family: var(--f-display); font-size: 1.22rem; }
.menu-line .ml-dots { flex: 1; border-bottom: 1px dotted var(--c-rule); transform: translateY(-4px); }
.menu-line .ml-note { font-size: 0.86rem; color: var(--c-ink-soft); font-style: italic; }

/* --- 13 · Photo column (galerie) --- */
.photo-stack { margin: 30px 0; }
.photo-stack figure { margin-bottom: 30px; }
.photo-stack img { width: 100%; border-radius: 4px; }
.photo-stack figcaption {
  font-family: var(--f-display); font-style: italic; font-size: 1.1rem;
  color: var(--c-teal-deep); text-align: center; margin-top: 10px;
}

/* --- 14 · Note box --- */
.note-box {
  background: var(--c-paper-muted); border-left: 2px solid var(--c-teal);
  padding: 22px 26px; margin: 30px 0;
}
.note-box p { margin: 0; font-size: 1rem; color: var(--c-ink-soft); }
.note-box strong { color: var(--c-ink); }

/* --- 15 · Prose (legal) --- */
.prose h2 {
  font-family: var(--f-display); font-style: italic; font-size: 1.6rem;
  color: var(--c-teal-deep); margin: 30px 0 10px; text-align: left;
}
.prose p { font-size: 1.02rem; margin-bottom: 13px; color: var(--c-ink-soft); }
.prose a { color: var(--c-teal-deep); border-bottom: 1px solid var(--c-teal); }
.prose hr { border: 0; border-top: 1px solid var(--c-rule); margin: 24px 0; }
.prose ul { list-style: none; margin: 12px 0; }
.prose ul li { padding: 8px 0 8px 22px; position: relative; color: var(--c-ink-soft); }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--c-teal); }
.dateline { font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--c-ink-soft); }

/* --- 16 · Footer --- */
.ec-footer {
  background: var(--c-teal-deep); color: var(--c-paper);
  margin-top: 80px; padding: 64px 28px 30px;
}
.ec-footer .foot-inner { max-width: 640px; margin: 0 auto; }
.ec-footer .foot-quote {
  font-family: var(--f-display); font-style: italic;
  font-size: 1.9rem; text-align: center; color: var(--c-paper);
  margin-bottom: 8px;
}
.ec-footer .foot-sig {
  font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--c-teal-soft);
  text-align: center; margin-bottom: 40px;
}
.ec-footer .foot-logo { width: 60px; height: 60px; border-radius: 9px; margin: 0 auto 26px; display: block; }
.foot-cols {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px;
  padding: 30px 0; border-top: 1px solid rgba(250,250,247,0.18);
  border-bottom: 1px solid rgba(250,250,247,0.18);
}
.foot-col h4 {
  font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-teal-soft); margin-bottom: 12px;
}
.foot-col a, .foot-col p { display: block; font-size: 0.92rem; color: var(--c-paper); opacity: 0.86; padding: 4px 0; margin: 0; }
.foot-col a:hover { opacity: 1; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; font-family: var(--f-ui); font-size: 0.7rem;
  letter-spacing: 0.06em; color: var(--c-teal-soft);
}
.foot-bottom a { color: var(--c-paper); opacity: 0.86; }

/* --- 17 · Map --- */
.ec-map { width: 100%; aspect-ratio: 16/8; border: 1px solid var(--c-rule); border-radius: 4px; overflow: hidden; margin: 26px 0; }
.ec-map iframe { width: 100%; height: 100%; border: 0; }

/* --- 18 · Demo notice --- */
.demo-notice {
  position: fixed; bottom: 16px; left: 16px; z-index: 150;
  background: var(--c-teal-deep); color: var(--c-paper);
  font-family: var(--f-ui); font-size: 0.64rem; letter-spacing: 0.04em;
  padding: 9px 13px; border-radius: 6px;
  max-width: 286px; line-height: 1.5;
}
.demo-notice strong { color: var(--c-teal-soft); }

/* --- 19 · Reveal --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- 20 · Responsive --- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .full-bleed-photo img { height: 48vh; }
  .contact-line { flex-direction: column; gap: 4px; }
  .contact-line .cl-value { text-align: left; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .initial-cover { padding: 56px 24px 44px; }
  .full-bleed-photo { margin: 52px 0; }
}

/* --- 21 · Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
