/* ============================================================
   FMP – Financial Market Partners
   Shared Stylesheet — style.css
   Used by: index.html, imprint.html, privacy.html
   ============================================================ */

/* ── FONTS ── */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter/Inter_18pt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter/Inter_18pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter/Inter_18pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter/Inter_18pt-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --navy:       #023350;
  --navy-mid:   #02294A;
  --navy-light: #033D63;
  --navy-accent:#04497A;
  --blue:       #0169C8;
  --blue-light: #2E85D8;
  --white:      #F4F2EE;
  --white-dim:  rgba(244,242,238,0.65);
  --white-faint:rgba(244,242,238,0.18);
  --border:     rgba(244,242,238,0.12);
  --sans:       'Inter', system-ui, sans-serif;
  --max:        1200px;
  --pad:        clamp(1.5rem, 5vw, 4rem);
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(2,51,80,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--border);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 28px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--white-dim);
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  font-weight: 400;
}
.lang-btn.active { background: var(--blue); color: #fff; font-weight: 500; }
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}
.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--blue);
  color: #fff;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(244,242,238,0.3);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--white);
}
h1 em { font-style: normal; color: var(--blue-light); font-weight: 800; }
h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
h2 em { font-style: normal; color: var(--blue-light); font-weight: 800; }
h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
}
p { color: var(--white-dim); line-height: 1.85; }
a { color: var(--blue-light); }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue);
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 3rem var(--pad);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo-img { height: 24px; width: auto; display: block; opacity: 0.75; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(244,242,238,0.3);
  letter-spacing: 0.04em;
}

/* ── LANGUAGE TOGGLE ── */
[lang-de] { display: none; }
body.de [lang-en] { display: none; }
body.de [lang-de] { display: revert; }
body.de li.en { display: none; }
body.de li.de { display: flex; }
li.de { display: none; }
.block-en { display: block; }
.block-de { display: none; }
body.de .block-en { display: none; }
body.de .block-de { display: block; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2,51,80,0.98);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.1rem; }
  .nav-mobile-btn { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}

/* ── SUBPAGE LAYOUT (imprint, privacy) ── */
.subpage-header {
  padding: 2rem var(--pad);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
}
.subpage-back {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.subpage-back:hover { color: var(--blue); }
.subpage-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem var(--pad) 8rem;
}
.subpage-main h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.subpage-main h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2.5rem 0 0.8rem;
  color: var(--white);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 1.2rem;
}
.subpage-main h2:first-of-type { border-top: none; padding-top: 0; }
.subpage-main p { color: var(--white-dim); line-height: 1.85; margin-bottom: 0.8rem; }
.subpage-main ul { color: var(--white-dim); padding-left: 1.5rem; margin-bottom: 0.8rem; }
.subpage-main li { margin-bottom: 0.4rem; }
.subpage-main a { color: var(--blue-light); }
.subpage-subtitle { color: var(--white-dim); font-size: 0.85rem; margin-bottom: 3rem; }
.subpage-notice {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(1,105,200,0.04);
}
.subpage-warning {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(244,242,238,0.35);
}

/* ── NAV JS ── */
