/* ==========================================================================
   claudio-baettig.ch — Cinematic Relaunch (Matterhorn / Navy-Gold)
   ========================================================================== */

:root {
  --navy-deep: #050a13;
  --navy: #0a1322;
  --navy-soft: #0f1c31;
  --navy-card: #0e1a2d;
  --gold: #c9a24b;
  --gold-bright: #e2bd6f;
  --gold-dim: rgba(201, 162, 75, 0.35);
  --text: #eaeef6;
  --muted: #98a5bb;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(201, 162, 75, 0.25);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --pad: clamp(1.5rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #f0d296; }

::selection { background: var(--gold); color: var(--navy-deep); }

/* ---------- Typografie ---------- */

h1, h2, h3, .display, .display-xl, .display-lg, .display-md {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text);
}

.display-xl { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
.display-lg { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.display-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.muted { color: var(--muted); }
.gold { color: var(--gold-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn:hover { background: var(--gold); color: var(--navy-deep); }
.btn--solid { background: var(--gold); color: var(--navy-deep); }
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy-deep); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); background: transparent; color: var(--gold-bright); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 10, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--text); }
.brand img { height: 34px; width: auto; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand__name span { color: var(--gold-bright); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--gold-bright); }
.site-nav .btn { padding: 0.6rem 1.2rem; font-size: 0.7rem; }
.site-nav a.btn--solid, .site-nav a.btn--solid.is-active { color: var(--navy-deep); }
.site-nav a.btn--solid:hover { background: var(--gold-bright); color: var(--navy-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background: rgba(5, 10, 19, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    margin-left: 0;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.45s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .site-nav a { font-size: 1rem; }
  .nav-toggle { display: block; position: relative; z-index: 101; }
}

/* ---------- Scrub-Sektionen (Canvas-Frame-Scrubbing) ---------- */

.scrub { position: relative; }
.scrub__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.scrub__canvas, .scrub__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scrub__poster { object-fit: cover; }
.scrub__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,10,19,0.55) 0%, rgba(5,10,19,0.05) 30%, rgba(5,10,19,0.05) 62%, var(--navy) 100%);
  pointer-events: none;
}
.scrub__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--pad);
}
.scrub-stage {
  grid-area: 1 / 1;
  max-width: 900px;
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
  pointer-events: none;
  text-shadow: 0 2px 30px rgba(5, 10, 19, 0.75);
}
.scrub-stage.is-live { pointer-events: auto; }

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  opacity: 0.85;
}
.scroll-hint__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Hero-Typografie */
.hero-name-kicker { margin-bottom: 1.3rem; }
.hero-title { text-shadow: 0 2px 40px rgba(5, 10, 19, 0.8); }
.hero-title .line { display: block; }
.hero-sub {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--gold-bright);
}
.hero-trust {
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sektionen ---------- */

.section { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); position: relative; }
.section--tight { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .label { display: block; margin-bottom: 1.1rem; }
.section__head p { margin-top: 1.2rem; }

.section--panel { background: var(--navy-deep); }

/* Zitatband */
.quote-band {
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(201, 162, 75, 0.08), transparent),
    var(--navy-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
}
.quote-band blockquote .gold { font-style: italic; }
.quote-band figcaption {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Intro / Kurzvorstellung */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.portrait-frame { position: relative; }
.portrait-frame img { border-radius: 2px; filter: saturate(0.92); }
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  pointer-events: none;
}
@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 340px; }
}

/* Leistungs-Kacheln */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  background: var(--navy);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background 0.4s ease;
  position: relative;
  color: var(--text);
  display: block;
}
.tile:hover { background: var(--navy-soft); }
.tile__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-dim);
  font-size: 1rem;
  display: block;
  margin-bottom: 1.4rem;
}
.tile h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.tile p { color: var(--muted); font-size: 0.95rem; }
.tile__more {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Callouts (Zahlenband) */
.callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}
.callout__value {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--gold-bright);
  line-height: 1;
}
.callout__label {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* stratAI Wortmarke */
.stratai-mark {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stratai-mark .ai { color: var(--gold-bright); }

/* Module (stratAI) */
.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.module {
  background: var(--navy);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.6rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  align-items: start;
}
.module__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold-dim);
  line-height: 1;
}
.module h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.module p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 640px) { .module { grid-template-columns: 1fr; gap: 0.6rem; } }

/* Referenzen-Band */
.ref-band {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
}
.ref-band span {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Listen */
.check-list { list-style: none; }
.check-list li {
  padding: 0.55rem 0 0.55rem 1.8rem;
  position: relative;
  color: var(--muted);
}
.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Editorial-Hero der Unterseiten */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(7rem, 14vh, 10rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center 30%;
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,19,0.6), rgba(5,10,19,0.35) 45%, var(--navy) 100%);
}
.page-hero__inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.page-hero .label { display: block; margin-bottom: 1rem; }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; }
.contact-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.contact-list .k {
  min-width: 92px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35em;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* CTA-Block */
.cta-block {
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(201, 162, 75, 0.09), transparent),
    var(--navy-deep);
  border-top: 1px solid var(--line);
}
.cta-block .display-lg { max-width: 760px; margin: 0 auto 1.2rem; }
.cta-block p { max-width: 560px; margin: 0 auto 2.2rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 2rem;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer p, .site-footer a { font-size: 0.85rem; color: var(--muted); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* ---------- Mobile: Luft & kuerzere Scroll-Strecken ---------- */

@media (max-width: 820px) {
  /* Scrub-Sektionen zeigen auf Mobile Posterbilder — kuerzere Strecke,
     damit die Text-Stages zuegig durchlaufen (ueberschreibt inline height) */
  .scrub { height: 190vh !important; }

  .section { padding-top: clamp(3.5rem, 14vw, 5rem); padding-bottom: clamp(3.5rem, 14vw, 5rem); }
  .section__head { margin-bottom: 2.2rem; }

  .display-xl { font-size: clamp(2.2rem, 9.5vw, 2.9rem); }
  .display-lg { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }

  .tile { padding: 1.9rem 1.6rem; }
  .callouts { gap: 2.4rem; padding-top: 2.6rem; }

  .ref-band { gap: 1.1rem; flex-direction: column; }
  .ref-band span { white-space: normal; text-align: center; }

  .quote-band { padding-left: var(--pad); padding-right: var(--pad); }

  .page-hero { min-height: 46vh; padding-top: 6.5rem; }

  .contact-grid, .intro-grid { gap: 2.8rem; }

  .site-footer__inner { flex-direction: column; text-align: center; gap: 1.2rem; }
  .site-footer nav { justify-content: center; }
}

/* ---------- Reveals ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced Motion / Fallbacks ---------- */

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint__line { animation: none; }
  .scrub-stage { transition: opacity 0.4s ease; transform: none !important; }
  * { scroll-behavior: auto !important; }
}
