@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --green: #10b981;
  --green-dark: #0ea271;
  --green-glow: rgba(16,185,129,.3);
  --bg: #0a0f1e;
  --bg2: #0e1425;
  --surface: rgba(255,255,255,.04);
  --surface2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.1);
  --text: #f0f4f8;
  --text-muted: rgba(255,255,255,.48);
  --text-dim: rgba(255,255,255,.28);
  --gold: #f6c500;
  --blue: #009fce;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --radius: 10px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────── GRID OVERLAY ─────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────── NAV ─────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.nav-logo-text span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface2);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: .7em;
  opacity: .5;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 220px;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: .83rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.nav-dropdown-menu a:hover { color: var(--green); background: rgba(16,185,129,.08); }

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--green-glow);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    z-index: 99;
  }
}

/* ─────────────────── HERO ─────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
  text-align: center;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 110%, rgba(16,185,129,.13) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 15% -5%, rgba(16,185,129,.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-chart-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  opacity: .1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 100px;
  padding: 5px 15px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp .45s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  animation: fadeUp .45s .07s ease both;
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
}
.hero-sub {
  font-size: clamp(.9rem, 2.2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 36px;
  animation: fadeUp .45s .14s ease both;
}
.hero-sub strong { color: rgba(255,255,255,.82); font-weight: 600; }
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp .45s .2s ease both;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.25);
  color: var(--text);
  background: var(--surface);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  animation: fadeUp .45s .28s ease both;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover {
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.3);
  color: var(--green);
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
  animation: fadeUp .45s .34s ease both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-dim);
}
.trust-item svg { color: var(--green); }
.trust-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* ─────────────────── TOOL GRID (home) ─────────────────── */
.tools-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  position: relative;
  z-index: 1;
}
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.section-sub {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-card:hover {
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.05);
  transform: translateY(-2px);
}
.tool-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.tool-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.tool-card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.tool-card-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ─────────────────── INFO SECTION ─────────────────── */
.info-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
  position: relative;
  z-index: 1;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .2s;
}
.info-card:hover { border-color: rgba(16,185,129,.3); transform: translateY(-2px); }
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.info-card p { font-size: .87rem; color: var(--text-muted); line-height: 1.65; }
.info-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 12px;
}

/* ─────────────────── PAGE LAYOUT ─────────────────── */
.page-hero {
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(16,185,129,.1) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-hero h1 em { font-style: italic; color: var(--green); }
.page-hero p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  margin: 36px 0 14px;
  line-height: 1.25;
}
.page-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}
.page-content p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.page-content ul, .page-content ol {
  margin: 12px 0 18px 20px;
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.75;
}
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--text); font-weight: 600; }

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.highlight-box {
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.highlight-box strong { color: var(--green); }

.warn-box {
  background: rgba(246,197,0,.06);
  border: 1px solid rgba(246,197,0,.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .87rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
.warn-box strong { color: var(--gold); }

/* ─────────────────── AD PLACEHOLDER ─────────────────── */
.ad-placeholder {
  background: rgba(255,255,255,.025);
  border: 1.5px dashed rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 28px 0;
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ad-placeholder span {
  display: block;
  font-size: .68rem;
  margin-top: 4px;
  opacity: .5;
}

/* ─────────────────── CALCULATOR WRAPPER ─────────────────── */
.calc-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 28px;
}

/* ─────────────────── BREADCRUMB ─────────────────── */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: .78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 6px; }

/* ─────────────────── FAQ ─────────────────── */
.faq-list { margin: 16px 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after { content: '+'; color: var(--green); font-size: 1.2rem; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 16px;
}
.faq-item.open .faq-a { display: block; }

/* ─────────────────── FOOTER ─────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-top: 12px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: .85rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--green); }

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-legal {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-legal p { margin-bottom: 8px; }
.footer-legal strong { color: rgba(255,255,255,.35); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

/* ─────────────────── ANIMATIONS ─────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 20px 56px; }
  .trust-sep { display: none; }
}

/* ─────────────────── ETF RECHNER OVERRIDES FOR DARK ─────────────────── */
.calc-wrapper .etf-rechner {
  background: transparent;
  color: var(--text);
}
.calc-wrapper .etf-rechner .etr-inputs {
  background: rgba(255,255,255,.03);
  border-color: var(--border);
}
.calc-wrapper .etf-rechner .etr-field-label { color: rgba(255,255,255,.85); }
.calc-wrapper .etf-rechner .etr-field-desc  { color: var(--text-muted); }
.calc-wrapper .etf-rechner .etr-freq-btn {
  border-color: rgba(255,255,255,.2);
  background: transparent;
  color: var(--text-muted);
}
.calc-wrapper .etf-rechner .etr-freq-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.calc-wrapper .etf-rechner .etr-stepper {
  border-color: rgba(255,255,255,.2);
}
.calc-wrapper .etf-rechner .etr-stepper input { color: var(--text); }
.calc-wrapper .etf-rechner .etr-step-btn {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
  color: var(--text-muted);
}
.calc-wrapper .etf-rechner .etr-step-btn:hover { background: rgba(255,255,255,.1); }
.calc-wrapper .etf-rechner .etr-select {
  background-color: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E");
}
.calc-wrapper .etf-rechner .etr-result { background: transparent; }
.calc-wrapper .etf-rechner .etr-summary { border-top-color: var(--border); }
.calc-wrapper .etf-rechner .etr-sum-name { color: var(--text-muted); }
.calc-wrapper .etf-rechner .etr-sum-val,
.calc-wrapper .etf-rechner .etr-sum-unit,
.calc-wrapper .etf-rechner .etr-total-label { color: var(--text); }
.calc-wrapper .etf-rechner .etr-total-box { border-color: rgba(255,255,255,.2); }
.calc-wrapper .etf-rechner .etr-total-val,
.calc-wrapper .etf-rechner .etr-total-unit { color: var(--green); }
.calc-wrapper .etf-rechner .etr-total-row { border-top-color: var(--border); }
.calc-wrapper .etf-rechner .etr-summary-text {
  background: rgba(16,185,129,.06);
  border-left-color: var(--green);
  color: var(--text-muted);
}
.calc-wrapper .etf-rechner .etr-summary-text strong { color: var(--text); }
.calc-wrapper .etf-rechner .etr-kest-note {
  background: rgba(246,197,0,.06);
  border-left-color: var(--gold);
  color: rgba(255,255,255,.55);
}
.calc-wrapper .etf-rechner .etr-kest-note strong { color: var(--gold); }
.calc-wrapper .etf-rechner .etr-disclaimer { color: var(--text-dim); border-top-color: var(--border); }
.calc-wrapper .etf-rechner .etr-reset-btn { color: var(--text-muted); }
.calc-wrapper .etf-rechner .etr-y-label { color: var(--text-dim); }
.calc-wrapper .etf-rechner .etr-x-label { color: var(--text-dim); }

/* table */
.etf-table-wrap { overflow-x: auto; margin: 20px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
th {
  text-align: left;
  padding: 10px 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 10px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
td:first-child { color: var(--text); font-weight: 500; }
tr:last-child td { border-bottom: none; }

/* tag */
.tag {
  display: inline-block;
  background: rgba(16,185,129,.1);
  color: var(--green);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
