/* ============================================================
   Kirchsee Consulting GmbH — www.kirchsee-consulting.com
   Statisch · keine externen Requests · Schriften lokal
   ============================================================ */

/* ---------- Schriften (lokal, kein CDN) ---------- */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}

/* ---------- Grundwerte ---------- */

:root {
  --navy: #08203F;
  --navy-soft: rgba(8, 32, 63, 0.62);
  --navy-faint: rgba(8, 32, 63, 0.34);
  --gold: #CB994C;
  --gold-soft: rgba(203, 153, 76, 0.45);
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --measure: 34em;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img { display: block; }

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.serif-h {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.015em;
}

/* Die vertikale Goldlinie aus dem Logo als Gliederungselement */
.goldline {
  width: 1px;
  height: 4.5rem;
  background: linear-gradient(to bottom, var(--gold), rgba(203, 153, 76, 0.15));
  margin: 0 auto;
}

/* Feine goldene Haarlinie als Gliederungselement */
.rule-gold {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

/* ---------- Kopfzeile ---------- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  transition: padding 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Milchglas-Leiste, sobald gescrollt wird */
.site-head.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: rgba(250, 250, 248, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(8, 32, 63, 0.08);
}

.site-head .brand {
  display: flex;
  align-items: center;
}

.site-head .brand img {
  height: 2.75rem;
  width: auto;
}

.site-head nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-head nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-soft);
  padding-bottom: 0.35em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-head nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* ---------- Stage ---------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.5rem, 5vw, 4rem) 6rem;
  overflow: hidden;
  background: var(--paper);
}

/* Animierter Farbverlauf (Firmenfarben), liegt hinter dem Inhalt */
.stage-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
}

.stage-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* weicher Übergang ins Papierweiß der Folgesektion */
.stage::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(250, 250, 248, 0), var(--paper));
  z-index: 0;
  pointer-events: none;
}

.stage-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.stage-logo {
  width: clamp(260px, 38vw, 430px);
  height: auto;
  margin-bottom: 3.25rem;
}

.stage h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  max-width: 17em;
  text-wrap: balance;
}

/* Scroll-Hinweis: laufende Goldlinie, darunter ein feiner Chevron */
.stage-scroll {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.75rem;
  transform: translateX(-50%);
  color: var(--gold);
  transition: opacity 0.4s ease;
}

.stage-scroll:hover { opacity: 0.7; }

.stage-scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 4.5rem;
  overflow: hidden;
}

.stage-scroll-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(203, 153, 76, 0), var(--gold));
  animation: scrollhint 3.2s ease-in-out infinite;
}

.stage-scroll-chevron {
  display: block;
  width: 14px;
  height: auto;
  opacity: 0.85;
}

@keyframes scrollhint {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Zurückhaltende Einblendung beim Laden */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.3s; }
.rise-3 { animation-delay: 0.5s; }
.rise-4 { animation-delay: 0.7s; }
.rise-5 { animation-delay: 0.9s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Einblendung beim Scrollen (per IntersectionObserver) —
   weiches Blur-to-Sharp, gestaffelt über --d */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition:
    opacity 1s ease var(--d, 0s),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s),
    filter 1s ease var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .field .field-num, .field > div > *, .approach-list li { opacity: 1; transform: none; transition: none; }
  .field + .field::before { transform: none; transition: none; }
  .about-portrait::after { clip-path: none; transition: none; }
  .about-name.reveal { letter-spacing: 0.02em; }
  .fields-line { display: none; }
  .stage-scroll { display: none; }
  .stage-canvas { display: none; }
}

/* Fallback ohne JS/Bewegung: Header wie zuvor nur über der Stage */
body.no-motion .site-head { position: absolute; }
body.no-motion .fields-line { display: none; }

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

section {
  padding: clamp(5rem, 12vh, 8.5rem) clamp(1.5rem, 5vw, 4rem);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(3.5rem, 8vh, 5.5rem);
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: 0.02em;
}

/* Beratungsfelder */

.fields {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
}

/* Goldlinie, die sich beim Scrollen von I nach III zeichnet */
.fields-line {
  position: absolute;
  left: 2.75rem;
  top: clamp(2.5rem, 5vh, 3.5rem);
  bottom: clamp(2.5rem, 5vh, 3.5rem);
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(203, 153, 76, 0.25));
  transform: scaleY(0);
  transform-origin: top;
}

.field {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 5vh, 3.5rem) 0;
}

/* Trennlinie wächst von links, wenn das Feld erscheint */
.field + .field::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(8, 32, 63, 0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}

.field.in::before {
  transform: scaleX(1);
}

.field-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
  padding: 0.3rem 0 0.5rem;
  text-align: center;
  letter-spacing: 0.06em;
  background: var(--paper);
  position: relative;
  align-self: start;
}

/* Kaskade innerhalb eines Feldes: Ziffer, Titel, Stichzeile, Text */
.field .field-num,
.field > div > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.field .field-num { transform: translateY(0) scale(0.7); }

.field.in .field-num,
.field.in > div > * {
  opacity: 1;
  transform: none;
}

.field.in .field-num { transition-delay: 0.05s; }
.field.in > div > :nth-child(1) { transition-delay: 0.18s; }
.field.in > div > :nth-child(2) { transition-delay: 0.3s; }
.field.in > div > :nth-child(3) { transition-delay: 0.42s; }

/* Das Feld selbst blendet nicht doppelt — nur seine Kinder */
.field.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.field h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.field .field-lead {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.field p {
  max-width: var(--measure);
  color: rgba(8, 32, 63, 0.82);
}

/* Über — Navy-Band wie ein Briefkopf */

.about {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
}

.about .eyebrow {
  color: var(--gold);
}

.about .section-head {
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.about-portrait {
  position: relative;
  display: block;
  margin: 0 auto 2.5rem;
  width: clamp(200px, 26vw, 300px);
}

.about-portrait img {
  width: 100%;
  height: auto;
  padding: 6px;
  background: rgba(250, 250, 248, 0.04);
}

/* Goldrahmen zeichnet sich nach dem Erscheinen des Porträts */
.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(203, 153, 76, 0.55);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s;
  pointer-events: none;
}

.about-portrait.in::after {
  clip-path: inset(0);
}

.about-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Name läuft beim Erscheinen sanft in seine Laufweite */
.about-name.reveal {
  letter-spacing: 0.16em;
  transition:
    opacity 1.1s ease var(--d, 0s),
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s),
    filter 1.1s ease var(--d, 0s),
    letter-spacing 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s);
}

.about-name.reveal.in {
  letter-spacing: 0.02em;
}

.about-meta {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.about .rule-gold {
  margin: 2.75rem auto;
}

.approach-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 0;
}

.approach-list li {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(250, 250, 248, 0.72);
  padding: 0 1.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.approach-list.in li { opacity: 1; transform: none; }
.approach-list.in li:nth-child(1) { transition-delay: 0.1s; }
.approach-list.in li:nth-child(2) { transition-delay: 0.28s; }
.approach-list.in li:nth-child(3) { transition-delay: 0.46s; }

.approach-list li + li {
  border-left: 1px solid rgba(203, 153, 76, 0.45);
}

/* Kontakt */

.contact {
  text-align: center;
}

.contact-card {
  max-width: 30rem;
  margin: 0 auto;
}

.contact .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.contact .seat {
  font-style: normal;
  line-height: 1.65;
  color: var(--navy-soft);
  margin-bottom: 2.5rem;
}

.contact-lines {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

.contact-lines a {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.15em;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.contact-lines a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* ---------- Fußzeile ---------- */

.site-foot {
  border-top: 1px solid rgba(8, 32, 63, 0.1);
  padding: 2.25rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--navy-soft);
}

.site-foot nav {
  display: flex;
  gap: 1.75rem;
}

.site-foot a {
  transition: color 0.25s ease;
}

.site-foot a:hover {
  color: var(--gold);
}

/* ---------- Rechtliche Unterseiten ---------- */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(7rem, 16vh, 10rem) clamp(1.5rem, 5vw, 2.5rem) 5rem;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 2.9rem);
  margin-bottom: 0.75rem;
}

.legal .legal-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem 0 3rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 2.75rem 0 0.85rem;
}

.legal p, .legal address {
  font-style: normal;
  color: rgba(8, 32, 63, 0.82);
  margin-bottom: 1rem;
  max-width: var(--measure);
}

.legal a {
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.legal a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.legal .backlink {
  display: inline-block;
  margin-top: 3.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-soft);
  border-bottom: none;
}

.legal .backlink:hover {
  color: var(--gold);
}

/* Kopfzeile auf Unterseiten: statisch, nicht absolut */
.site-head.static {
  position: static;
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
  html {
    scroll-padding-top: 8.5rem;
  }
  .site-head {
    padding: 1.5rem 1.5rem 0;
    flex-direction: column;
    gap: 1.1rem;
  }
  .site-head .brand img {
    height: 2.3rem;
  }
  .site-head nav {
    gap: 1.4rem;
  }
  .site-head nav a {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }
  .stage {
    padding-top: 9.5rem;
  }
  .stage h1 {
    line-height: 1.18;
  }
  .field {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .field-num {
    text-align: left;
    padding: 0;
    background: transparent;
  }
  .fields-line {
    display: none;
  }
  .site-foot {
    flex-direction: column;
    text-align: center;
  }
  .approach-list {
    flex-direction: column;
  }
  .approach-list li + li {
    border-left: none;
  }
}
