/* Finanz Gym — shared site CSS.
 *
 * Brand: deep forest green #133D2F background / amber #F5A623 accent.
 * (CSS variable is still named --navy for backward-compat with all 20
 *  pages; only the value changed.) System fonts. No external CSS,
 *  Google Fonts, Tailwind, or JS framework. One file, used by every
 *  DE + EN page. < 8 KB target.
 */

:root {
  --navy: #133D2F;
  --navy-soft: #1C4D3D;
  --amber: #F5A623;
  --amber-deep: #e09313;
  --grey-cool: #E8ECF3;
  --grey-text: #4a5470;
  --white: #ffffff;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--amber-deep); text-decoration: none; }
a:hover { color: var(--amber); }
img, svg { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--dark { background: var(--navy); color: var(--white); }
/* Style only plain links inside dark sections amber; do NOT touch buttons,
 * which carry their own colours and were rendering amber-on-amber here. */
.section--dark a:not(.btn) { color: var(--amber); }
.section--dark a:not(.btn):hover { color: var(--white); }
.section--cool { background: var(--grey-cool); }

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--white); }
.brand:hover { color: var(--amber); }
.brand .brand-mark { color: var(--amber); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-list a:hover { color: var(--white); border-bottom-color: var(--amber); }

/* Active nav indicator: matches the hover state but persistent so the
 * visitor knows which top-level section they're in. Set via
 * aria-current="page" on the matching link in each subpage's nav. */
.nav-list a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--amber);
}

.nav-cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  border-bottom: 0 !important;
  font-weight: 600;
}

.nav-cta:hover { background: var(--amber-deep); color: var(--navy) !important; }

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.5rem;
}

.lang-switch a, .lang-switch span {
  color: rgba(255, 255, 255, 0.55);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border-bottom: 0;
}

.lang-switch a:hover { color: var(--white); }
.lang-switch .active { color: var(--amber); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-soft);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-list.open { display: flex; }
  .nav-cta { text-align: center; }
}

.hero { background: var(--navy); color: var(--white); padding: 5rem 0 4rem; }

/* Breadcrumb inside the hero (subpages only). Sits above the H1.
 * Amber on the current page, low-contrast white for the parent links. */
.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "›";
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--white);
  border-bottom-color: var(--amber);
}

.breadcrumb [aria-current="page"] {
  color: var(--amber);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 22ch;
}

.hero h1 em { color: var(--amber); font-style: normal; }

.hero p.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 2rem;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-deep); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Home-page hero: two-column layout (content + launch card).
 * Only used on / and /en/ via an explicit .hero-grid wrapper, so other
 * pages' heroes are untouched. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.launch-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  color: var(--white);
  max-width: 360px;
  justify-self: end;
}

@media (max-width: 900px) {
  .launch-card { justify-self: stretch; max-width: none; }
}

.launch-card__eyebrow {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.launch-card__dot { color: var(--amber); font-size: 0.875rem; line-height: 1; }

.launch-card__date {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--white);
}

.launch-card__caption {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.25rem;
}

.launch-card__rule {
  width: 3rem;
  height: 2px;
  background: var(--amber);
  margin: 0 0 1rem;
  border: 0;
}

.launch-card__note {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.launch-card__investor {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.launch-card__investor-eyebrow {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;
  color: var(--amber);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.375rem;
}

.launch-card__investor-link {
  color: var(--amber);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 166, 35, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.launch-card__investor-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(15, 27, 61, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
}

.feature-card .num {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;
  color: var(--amber);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.feature-card p { margin: 0; color: var(--grey-text); }

.section-heading { text-align: center; margin-bottom: 2rem; }

.section-heading .eyebrow {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--amber-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section--dark .section-heading .eyebrow { color: var(--amber); }

.section-heading h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-heading p { max-width: 60ch; margin: 0 auto; color: var(--grey-text); }
.section--dark .section-heading p { color: rgba(255, 255, 255, 0.75); }

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

/* .muted is a dark-grey "secondary text" colour intended for light
 * backgrounds. Inside the dark footer it'd render near-invisible —
 * override to a low-opacity white so the brand blurb stays legible. */
.site-footer .muted { color: rgba(255, 255, 255, 0.6); }

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: rgba(255, 255, 255, 0.7); }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

/* Investor Relations band — home-page-only (DE / and EN /en/).
 * Lives between the last content section and the site footer.
 * Discreet, no second amber CTA so the customer-funnel buttons in
 * the hero stay primary. */
.investor-cta {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.investor-cta .container {
  display: flex;
  align-items: center;
  gap: 1.75rem 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.investor-cta .ic-eyebrow {
  display: block;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.375rem;
}

.investor-cta p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 60ch;
  color: inherit;
}

.investor-cta a.ic-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.investor-cta a.ic-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Persistent legal disclaimer — must appear on every page per MG-208 AC #d */
.legal-disclaimer {
  background: rgba(245, 166, 35, 0.08);
  border-top: 1px solid rgba(245, 166, 35, 0.25);
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.muted { color: var(--grey-text); }
