/* ════════════════════════════════════════════════════════════════
   S³ STUTZ SYSTEMATIC SOLUTIONS — style.css
   Eine gemeinsame Stylesheet-Datei für alle Seiten (DE + EN).
   Ersetzt die pro Seite duplizierten <style>-Blöcke.
   ════════════════════════════════════════════════════════════════ */

:root {
  --ink:     #1c1917;
  --cream:   #f5f1ea;
  --warm:    #eae5db;
  --gold:    #7d612d;
  --gold-lt: #c9a45e;
  --sage:        #4c5f43;
  --sage-tint:   #e7ece1;
  --petrol:      #003540;
  --petrol-tint: #e0e7e8;
  --muted:   #7a7068;
  --rule:    rgba(28,25,23,0.15);
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV (alle Seiten) ──────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 12px rgba(28,25,23,0.05);
}
.nav-inner {
  max-width: 1032px; margin: 0 auto; padding: 18px 56px;
  display: flex; align-items: center; gap: 44px;
}
.nav-brand {
  font-weight: 500; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.nav-brand sup { font-size: 8px; vertical-align: super; letter-spacing: 0; }
.nav-logo { height: 40px; width: auto; display: block; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-weight: 400; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--ink); }
.lang-switch { display: flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.nav-inner .lang-switch { margin-left: auto; }
.lang-btn {
  /* War auf Index 12px, auf allen 4 Unterseiten 13px — vereinheitlicht auf 13px */
  font-weight: 400; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; background: none; border: none;
  cursor: pointer; padding: 6px 13px; color: var(--muted); text-decoration: none; display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active { background: rgba(28,25,23,0.10); color: var(--ink); }

/* ─── HERO — nur Startseite ──────────────── */
.hero {
  max-width: 1032px;
  margin: 0 auto;
  padding: 160px 56px 40px;
}
.hero-inner { width: 100%; }
.hero-title {
  font-weight: 300; font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.1; color: var(--ink); letter-spacing: -0.02em;
  max-width: none; margin-bottom: 26px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-title .gold { color: var(--gold); }

/* ─── PAGE HERO — Unterseiten ─────────────── */
.page-hero {
  /* War auf Lösungen "0", auf Mission/Partner/About "28px" — vereinheitlicht auf 28px */
  padding: 160px 56px 28px; max-width: 1032px; margin: 0 auto;
}
.hero-label {
  font-weight: 500; font-size: 18px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 24px;
}
.page-hero-title {
  font-weight: 300; font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 24px; margin-top: 16px;
}
.page-hero-sub {
  font-size: 19px; color: var(--muted); line-height: 1.6; margin-bottom: 0; max-width: 520px;
}
/* Variante: About-Hero mit Foto-Grid */
.about-hero-grid { display: grid; grid-template-columns: 1fr clamp(190px, 22vw, 300px); gap: clamp(32px, 4vw, 64px); align-items: start; }
.about-hero-text .page-hero-sub { margin-bottom: 0; }
.about-hero-photo { width: 100%; }
.about-hero-photo img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; object-position: center top; display: block; filter: grayscale(10%);
}

/* ─── SECTION (Basis) ─────────────────────── */
section { max-width: 1032px; margin: 0 auto; padding: 28px 56px; }
/* Startseite braucht mehr Luft zwischen den Teaser-Blöcken — via body-Klasse */
body.home section { padding: 40px 56px; }

section[id] { scroll-margin-top: 96px; }

.section-label {
  font-weight: 500; font-size: 18px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); display: block;
  padding-top: 6px; margin-bottom: 16px;
}

/* ─── TEASER-LINK (überall, wo ein CTA-Link steht) ─── */
.teaser-link {
  display: inline-block; font-weight: 500; font-size: 15px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding-bottom: 5px; border-bottom: 1px solid var(--gold); transition: color 0.2s;
  align-self: flex-start; /* verhindert, dass Flex-Kinder auf volle Breite gestreckt werden */
}
.teaser-link:hover { color: var(--gold); }

/* ─── SEITENENDE: Absatz + CTA-Link, konsistent ──────
   Ersetzt das bisherige Inline-margin-Muster. Der Abstand
   ist eine Eigenschaft des Containers, nicht des Inhalts —
   kann nicht mehr vergessen oder falsch gesetzt werden.
   (Die margin-bottom:0-Regel für die Kinder steht bewusst
   ganz am Ende der Datei, siehe dort — sonst gewinnt bei
   gleicher Spezifität die zuletzt definierte Komponente,
   z.B. .content-text, und die 24px stimmen nicht mehr.) */
.cta-block { display: flex; flex-direction: column; gap: 24px; }

/* ─── TEASER GRID (Startseite) ────────────── */
.teaser-title {
  font-weight: 300; font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 24px;
}
.teaser-text { font-size: 18px; line-height: 1.8; color: var(--muted); }

/* ─── TÄTIGKEITSFELDER (Startseite, Sektion 02) ── */
.fields-stack { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.field-item {
  display: block; text-decoration: none; color: inherit;
  padding: 26px 30px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(28,25,23,0.05);
  border-left: 2px solid var(--gold-lt); border-right: 2px solid var(--gold-lt);
  background: #fdfcf9; transition: background 0.06s, box-shadow 0.06s, transform 0.06s, border-left-width 0.06s, border-right-width 0.06s;
}
.field-item:hover { box-shadow: 0 10px 28px rgba(28,25,23,0.18); transform: translateY(-5px); border-left-width: 4px; border-right-width: 4px; }
.field-item:nth-child(1) { background: var(--sage-tint); border-left-color: var(--sage); border-right-color: var(--sage); }
.field-item:nth-child(3) { background: var(--warm); border-left-color: var(--gold); border-right-color: var(--gold); }
.field-text { display: flex; flex-direction: column; gap: 2px; }
.field-title { font-weight: 500; font-size: 20px; color: var(--gold); line-height: 1.3; transition: color 0.2s; display: block; margin-bottom: 8px; }
.field-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.field-list li {
  font-size: 17px; color: var(--muted); line-height: 1.6;
  padding-left: 18px; position: relative;
}
.field-list li strong { color: var(--ink); font-weight: 600; }
.field-list li::before {
  content: "·"; position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}

/* In-Page-Navigation zu den drei Tätigkeitsfeldern (nur Lösungen) */
.field-index { margin-top: 56px; max-width: 480px; }
.field-index-label { display: block; font-size: 19px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.field-index-link { display: flex; align-items: center; gap: 9px; width: fit-content; font-size: 18px; color: var(--gold); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.field-index-link:hover { color: var(--ink); }
.field-index-link:last-child { padding-bottom: 0; }
section#systematische-strategien { padding-top: 56px; }

/* ─── PARTNER-TEASER (Startseite) ─────────── */
.partner-block {
  display: block; text-decoration: none; color: inherit;
  margin-top: 44px; padding: 32px 36px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(28,25,23,0.05); border-left: 2px solid var(--petrol);
  background: var(--petrol-tint); transition: background 0.06s, box-shadow 0.06s, transform 0.06s, border-left-width 0.06s;
}
.partner-block:hover { box-shadow: 0 10px 28px rgba(28,25,23,0.16); transform: translateY(-5px); border-left-width: 4px; }
.partner-name { font-size: 21px; font-weight: 500; color: var(--petrol); margin-bottom: 10px; }
.partner-desc { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ─── PARTNER-KARTE (partner.html) ────────── */
.partner-card {
  padding: 32px 36px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(28,25,23,0.05); border-left: 2px solid var(--petrol);
  background: var(--petrol-tint);
}
.partner-card-subtitle {
  font-weight: 500; font-size: 19px; color: var(--petrol); line-height: 1.3; margin: 0 0 14px;
}
.partner-website-link {
  display: inline-block; font-weight: 500; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--petrol); text-decoration: none;
  transition: color 0.2s;
}
.partner-website-link:hover { color: var(--ink); }

/* ─── CONTENT BLOCKS (Unterseiten) ────────── */
.content-block { display: block; }
.content-block-body { max-width: 920px; }
.content-title {
  font-weight: 300; font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 24px; color: var(--gold);
}
.content-text { font-size: 18px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.content-text:last-child { margin-bottom: 0; }
.content-subtitle {
  font-weight: 500; font-size: 19px; color: var(--ink);
  margin-bottom: 16px; margin-top: 48px;
}
.content-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.content-list li { font-size: 18px; line-height: 1.7; color: var(--muted); padding-left: 20px; position: relative; }
.content-list li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.content-list li strong { color: var(--gold); font-weight: 600; }

/* Angebots-Boxen (Lösungen) */
.offers { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.offer { padding: 26px 30px; border-radius: 6px; box-shadow: 0 2px 8px rgba(28,25,23,0.05); border-left: 2px solid var(--gold-lt); border-right: 2px solid var(--gold-lt); }
#systematische-strategien .offer { background: var(--sage-tint); border-left-color: var(--sage); border-right-color: var(--sage); }
#asset-owner .offer { background: #fdfcf9; }
#asset-manager .offer { background: var(--warm); border-left-color: var(--gold); border-right-color: var(--gold); }
.offer > .content-subtitle { margin-top: 0; }
.offer > :last-child { margin-bottom: 0; }

/* Unterboxen für einzelne Themen innerhalb eines Angebots (z.B. Entwicklung) */
.sub-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.sub-card { background: var(--cream); border-radius: 6px; padding: 18px 20px; }
.sub-card-title { font-weight: 500; font-size: 17px; color: var(--ink); margin-bottom: 8px; }

/* CV-Liste (About) */
.cv-intro { font-size: 18px; line-height: 1.7; color: var(--muted); margin-bottom: 14px; }
.cv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cv-list li { font-size: 18px; line-height: 1.5; color: var(--muted); padding-left: 20px; position: relative; }
.cv-list li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.cv-list li strong { color: var(--ink); font-weight: 500; }

/* Fussnoten (Mission) */
.footnote-ref { font-size: 12px; line-height: 1; margin-left: 1px; }
.footnote-ref a { color: var(--gold); text-decoration: none; }
.footnote-ref a:hover { color: var(--ink); }
.footnotes {
  list-style: decimal; margin: 28px 0 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.footnotes li { font-size: 14px; line-height: 1.6; color: var(--muted); }
.footnotes a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(168,130,60,0.4); }
.footnotes a:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ─── CREDENTIALS (CFA/CAIA/HSG-Badges) ───── */
.credentials { display: flex; flex-wrap: wrap; gap: 8px; }
.cred {
  font-weight: 400; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px;
  border: 1px solid var(--rule); color: var(--muted);
}

/* ─── ABOUT-TEASER (Startseite) ───────────── */
.about-photo {
  width: 100%; max-width: 220px; aspect-ratio: 1/1; object-fit: cover;
  object-position: center top; display: block; filter: grayscale(12%);
}
.about-name { font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.about-row { display: flex; gap: 28px; align-items: flex-start; }
.about-text { font-size: 18px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.about-text strong { color: var(--ink); font-weight: 500; }

/* ─── CONTACT (Startseite) ────────────────── */
.contact-title {
  font-weight: 300; font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2; letter-spacing: -0.02em;
}
.contact-detail { font-size: 18px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color 0.2s;
}
.contact-link:hover { color: var(--gold); }
.contact-link svg { flex-shrink: 0; }

/* ─── FOOTER (alle Seiten) ────────────────── */
footer {
  background: #ffffff;
  border-top: 1px solid var(--rule);
  box-shadow: 0 -2px 12px rgba(28,25,23,0.05);
  margin-top: auto;
}
.footer-inner {
  /* War auf Index 26px, auf allen 4 Unterseiten 28px — vereinheitlicht auf 28px */
  max-width: 1032px; margin: 0 auto; padding: 28px 56px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-legal { font-weight: 400; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-legal:hover { color: var(--gold); }
.footer-copy { font-weight: 400; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

/* ─── ANIMATIONEN ──────────────────────────── */
.fade-in { opacity: 1; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── MOBILE NAV ──────────────────────────── */
.nav-burger {
  display: none; flex-direction: column; justify-content: center;
  width: 30px; height: 30px; padding: 0; background: none; border: none; cursor: pointer; z-index: 1001; margin-left: auto;
}
.nav-burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.nav-burger span:not(:first-child) { margin-top: 6px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-links { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-menu-links a {
  display: block; padding: 16px 0; font-weight: 300; font-size: clamp(28px, 7vw, 40px);
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none; transition: color .2s;
}
.mobile-menu-links a:hover, .mobile-menu-links a.nav-active { color: var(--gold); }
.mobile-menu .lang-switch { margin-top: 48px; }
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* ─── RESPONSIVE ──────────────────────────── */
/* ─── SEITENENDE-ABSTAND: FINALER OVERRIDE ─────────
   Muss die letzte Regel der Datei sein: bei gleicher
   Spezifität gewinnt die später stehende Regel. Damit
   gewinnt das immer gegen .content-text, .cv-intro etc.,
   egal was künftig noch als CTA-Block-Kind vorkommt. */
.cta-block > * { margin-bottom: 0 !important; }

@media (max-width: 900px) {
  .nav-inner { padding: 16px 28px; }
  .nav-logo { height: 34px; }
  .nav-inner > .nav-links, .nav-inner > .lang-switch { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 120px 28px 48px; }
  .hero-title { max-width: 100%; }
  .page-hero { padding: 140px 28px 60px; }

  .about-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-hero-photo { position: static; }
  .about-hero-photo img { position: static; width: 240px; height: auto; aspect-ratio: 2/3; max-width: 100%; }

  section { padding: 60px 28px; }
  body.home section { padding: 60px 28px; }

  .about-row { flex-direction: column; }
  .teaser-grid, .service-full, .content-block,
  .how-wrap, .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { padding: 24px 28px; flex-direction: column; gap: 12px; text-align: center; }
}
