/* ============================================================
   JBconvest – Ökosystem-Stylesheet
   Drei Marken, ein System. Gold (#C9A84C) verbindet alle.
   ============================================================ */

:root {
  /* JBconvest – Dachmarke (Default) */
  --primary: #1E3A5F;        /* Deep Navy */
  --accent: #C9A84C;         /* Warm Gold – systemischer Verbinder */
  --bg: #F5F0E8;             /* Ivory */
  --surface: #ffffff;
  --text: #2D2D2D;           /* Anthrazit */
  --muted: #555555;
  --on-primary: #F5F0E8;

  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 8px 30px rgba(30, 58, 95, 0.10);
  --ff: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --transition: 220ms cubic-bezier(.2,.7,.3,1);
}

/* LONGVESTI – Investment-Submarke */
body.longvesti {
  --primary: #1A4A7A;        /* Stahl-Navy */
  --accent: #5B9BD5;         /* Stahl-Blau */
  --secondary: #8A9BB5;      /* Platin */
  --bg: #E8F0F8;             /* Eis-Weiß */
  --surface: #ffffff;
  --text: #2D2D2D;
  --muted: #5d6b80;
  --gold: #C9A84C;
  --on-primary: #E8F0F8;
}

/* Slow Aging Vital – Gesundheits-Submarke */
body.slowaging {
  --primary: #0F3D2E;        /* Forst-Dunkel */
  --accent: #4A9E7F;         /* Salbei-Grün */
  --secondary: #D4C5A9;      /* Warm Sand */
  --bg: #EDF5F1;             /* Mint-Ivory */
  --surface: #ffffff;
  --text: #2D2D2D;
  --muted: #4c5b54;
  --gold: #C9A84C;
  --on-primary: #EDF5F1;
}

/* On the umbrella brand, --gold equals --accent */
body { --gold: var(--accent); }
body.longvesti, body.slowaging { --gold: #C9A84C; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--primary); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--primary); line-height: 1.6; }

/* Gold divider – das Ökosystem-Signal */
.gold-rule { width: 64px; height: 4px; background: var(--gold); border: 0; margin: 1.4rem 0; }
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--primary) 96%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201,168,76,.4);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand-mark {
  font-weight: 700; font-size: 1.2rem; letter-spacing: .02em;
  color: var(--on-primary); display: inline-flex; align-items: baseline; gap: .12em;
}
.brand-mark .dot { color: var(--gold); }
.brand-mark small { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-left:.5rem; font-weight:700; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--on-primary); font-size: .95rem; font-weight: 600;
  opacity: .85; transition: opacity var(--transition); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { opacity: 1; border-bottom-color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--primary) !important;
  padding: 9px 18px !important; border-radius: var(--radius); opacity: 1 !important;
  border-bottom: 0 !important; font-weight: 700;
}
.nav-cta:hover { filter: brightness(1.06); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display:block; width: 26px; height: 2px; background: var(--gold); margin: 5px 0; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--on-primary);
  background-color: var(--primary);
  background-image:
    radial-gradient(120% 120% at 85% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%),
    linear-gradient(150deg, color-mix(in srgb, var(--primary) 90%, transparent) 8%, color-mix(in srgb, var(--primary) 62%, transparent) 55%, color-mix(in srgb, #000 62%, transparent) 120%),
    var(--hero-img, none);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  padding: clamp(70px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--gold);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--on-primary); max-width: 16ch; }
.hero .lead { color: color-mix(in srgb, var(--on-primary) 90%, transparent); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--radius); cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--primary); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--on-primary); border-color: rgba(245,240,232,.5); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--primary); color: var(--on-primary); }
.btn-dark:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- Sections ---------- */
section { padding: clamp(60px, 9vw, 110px) 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.bg-surface { background: var(--surface); }
.bg-bg { background: var(--bg); }

/* ---------- Profile / Wer ich bin ---------- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 9px; background: var(--gold); border-radius: 50%; }
.portrait-card {
  background: var(--primary); color: var(--on-primary);
  padding: 38px; border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
}
.portrait-card .big { font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--gold); }
.portrait-card p { margin: .2rem 0 0; opacity: .9; }
.portrait-card .meta { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; opacity: .7; margin-top: 1.4rem; }
.portrait-card .avatar { width: 200px; height: 200px; border-radius: 14px; object-fit: cover; object-position: center; display: block; margin: 0 auto 1.5rem; border: 3px solid var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.portrait-card.profile { text-align: center; }

/* ---------- Ökosystem cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.brand-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,.05);
}
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(30,58,95,.16); }
.brand-card .photo {
  height: 210px; width: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}
.brand-card .band { height: 8px; }
.band-longvesti { background: linear-gradient(90deg, #1A4A7A, #5B9BD5); }
.band-slowaging { background: linear-gradient(90deg, #0F3D2E, #4A9E7F); }
.brand-card .body { padding: 34px; display: flex; flex-direction: column; flex: 1; }
.brand-card h3 { font-size: 1.5rem; letter-spacing: .02em; }
.brand-card .tag { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .4rem; }
.brand-card .arrow { margin-top: auto; padding-top: 1.4rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .5rem; }
.brand-card:hover .arrow { color: var(--gold); }
.brand-card .arrow::after { content: "→"; transition: transform var(--transition); }
.brand-card:hover .arrow::after { transform: translateX(5px); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 48px; }
.principle { border-left: 3px solid var(--gold); padding-left: 22px; }
.principle h3 { color: var(--primary); margin-bottom: .3em; }
.principle p { color: var(--muted); margin: 0; }

/* ---------- Topic chips / lists ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.topic { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.topic h3 { font-size: 1.12rem; }
.topic p { color: var(--muted); margin: 0; font-size: .96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.chip { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--primary); font-weight: 600; font-size: .86rem; padding: 7px 14px; border-radius: 100px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--primary), color-mix(in srgb, var(--primary) 75%, #000));
  color: var(--on-primary); text-align: center; border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold);
}
.cta-band h2 { color: var(--on-primary); }
.cta-band p { color: color-mix(in srgb, var(--on-primary) 88%, transparent); max-width: 50ch; margin-left:auto; margin-right:auto; }

/* ---------- Media figure (split image) ---------- */
.media {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border-top: 5px solid var(--gold); background: var(--primary);
}
.media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; }
.media figcaption {
  padding: 14px 20px; font-size: .82rem; color: color-mix(in srgb, var(--on-primary) 80%, transparent);
  background: var(--primary); letter-spacing: .04em;
}

/* ---------- Feature band (full-width image with text) ---------- */
.feature-band {
  position: relative; color: var(--on-primary); text-align: center;
  background-color: var(--primary);
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 78%, transparent), color-mix(in srgb, #000 55%, transparent)),
    var(--feature-img, none);
  background-size: cover; background-position: center; background-attachment: fixed;
}
.feature-band h2 { color: var(--on-primary); }
.feature-band p { color: color-mix(in srgb, var(--on-primary) 90%, transparent); max-width: 54ch; margin-left:auto; margin-right:auto; }
.feature-band .quote { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.35; max-width: 24ch; margin: 0 auto; }
@media (max-width: 860px) { .feature-band { background-attachment: scroll; } }

/* ---------- Image credits ---------- */
.credits { font-size: .78rem; opacity: .6; margin-top: 8px; }
.credits a { color: color-mix(in srgb, var(--on-primary) 80%, transparent); text-decoration: underline; }

/* ---------- Back link ---------- */
.subnav-back { display:inline-flex; align-items:center; gap:.5rem; color: var(--gold); font-weight:700; font-size:.9rem; }
.subnav-back::before { content:"←"; }

/* ---------- Legal pages ---------- */
.page-head {
  background: linear-gradient(150deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000));
  color: var(--on-primary); padding: clamp(54px, 8vw, 92px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 4px solid var(--gold);
}
.page-head h1 { color: var(--on-primary); margin: 0; }
.page-head .eyebrow { color: var(--gold); }
.legal { background: var(--surface); }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(0,0,0,.08); }
.legal h2:first-of-type { border-top: 0; margin-top: 1rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; color: var(--text); }
.legal p, .legal li { color: var(--text); font-size: 1rem; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal a:hover { color: var(--gold); }
.legal address { font-style: normal; line-height: 1.8; }
.legal .ph {
  background: color-mix(in srgb, var(--gold) 26%, transparent);
  padding: 1px 7px; border-radius: 3px; font-weight: 700; color: var(--text);
}
.legal .note {
  background: var(--bg); border-left: 3px solid var(--gold);
  padding: 14px 18px; margin: 1.4rem 0; font-size: .94rem; color: var(--muted);
}
.legal .updated { color: var(--muted); font-size: .9rem; margin-top: 2.6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }

/* ---------- Insights / Artikel ---------- */
.article { background: var(--surface); }
.article .container { max-width: 760px; }
.article-meta { font-size: .85rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 1.8rem; }
.article-lead { font-size: 1.18rem; color: var(--primary); line-height: 1.6; margin: 0 0 2rem; border-left: 3px solid var(--gold); padding-left: 20px; }
.article-body { font-size: 1.12rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.3em; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.article-body .kicker { font-style: italic; color: var(--muted); }
.disclaimer {
  background: var(--bg); border-left: 4px solid var(--gold);
  padding: 18px 22px; margin: 2.6rem 0 0; font-size: .9rem; color: var(--muted);
  line-height: 1.6; border-radius: var(--radius);
}
.disclaimer strong { color: var(--text); }
.article-body ul.summary { padding-left: 1.2rem; }
.article-body ul.summary li { margin-bottom: .6rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .96rem; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.1); vertical-align: top; }
.article-body th { color: var(--primary); font-weight: 700; }
.article-body .sources { font-size: .84rem; color: var(--muted); line-height: 1.65; }
.article-body .sources a { word-break: break-word; }

.insights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.insight-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--gold); padding: 28px 30px;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.insight-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(30,58,95,.16); }
.insight-card .cat { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .5rem; }
.insight-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.insight-card .date { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.insight-card p { color: var(--muted); font-size: .96rem; margin: 0 0 1.2rem; }
.insight-card .more { margin-top: auto; font-weight: 700; color: var(--primary); display: inline-flex; gap: .4rem; }
.insight-card .more::after { content: "→"; transition: transform var(--transition); }
.insight-card:hover .more::after { transform: translateX(4px); }
.insight-card.soon .more { color: var(--muted); }

.faq .qa { border-top: 1px solid rgba(0,0,0,.08); padding-top: 1.3rem; margin-top: 1.3rem; }
.faq .qa:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.faq h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.faq p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--on-primary); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--gold); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer a { color: color-mix(in srgb, var(--on-primary) 85%, transparent); display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,.3); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; opacity: .75;
}

/* ---------- Newsletter ---------- */
.newsletter { background: var(--bg); }
.newsletter-card {
  background: var(--primary); color: var(--on-primary);
  border-top: 5px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.newsletter-intro .eyebrow { margin-bottom: .8rem; }
.newsletter-intro h2 { color: var(--on-primary); margin: 0 0 1rem; }
.newsletter-intro p { color: color-mix(in srgb, var(--on-primary) 86%, transparent); margin: 0; max-width: 46ch; }
.newsletter-form { width: 100%; }
.newsletter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-row input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: 15px 18px; font-size: 1rem; font-family: var(--ff);
  border: 1px solid rgba(245,240,232,.35); border-radius: var(--radius);
  background: rgba(255,255,255,.07); color: var(--on-primary);
}
.newsletter-row input[type="email"]::placeholder { color: color-mix(in srgb, var(--on-primary) 58%, transparent); }
.newsletter-row input[type="email"]:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.12); }
.newsletter-row .btn { flex: 0 0 auto; cursor: pointer; border: 0; }
.newsletter-consent { font-size: .8rem; line-height: 1.55; margin: 14px 0 0; color: color-mix(in srgb, var(--on-primary) 72%, transparent); }
.newsletter-consent a { color: var(--gold); text-decoration: underline; }
.newsletter-success {
  margin: 4px 0 0; padding: 16px 18px; border-radius: var(--radius);
  background: rgba(201,168,76,.16); border-left: 3px solid var(--gold);
  color: var(--on-primary); font-size: .95rem; line-height: 1.6;
}
.nl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.nl-frame { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .cards, .principles, .footer-grid { grid-template-columns: 1fr; }
  .newsletter-card { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--primary); border-bottom: 3px solid var(--gold);
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-links .nav-cta { margin: 14px 24px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
