/* BELARO main.css — Design System v1.0
   Tokens + Basis stehen zentral in belaro-system.css
   (https://cashflow.belaro.eu/static/belaro-system.css, vor dieser Datei geladen).
   Hier nur site-spezifisches Layout + Komponenten, ausschließlich über Tokens parametrisiert. */

/* ─── SECTION BACKGROUND UTILITIES ───
   .sec-navy/.sec-deep/.sec-cream/.sec-white kommen jetzt zentral aus belaro-system.css.
   Hier nur die Legacy-Abdeckung für .section-dark/.section-navy und .section-title,
   die das zentrale System nicht kennt. */
.on-dark, .sec-navy, .sec-deep,
.section-dark, .section-navy {
  color: var(--cream);
}
.on-dark .section-title, .sec-navy .section-title, .sec-deep .section-title,
.section-dark .section-title, .section-navy .section-title { color: var(--cream); }

/* ─── NAV / TOPBAR ───
   Die Navigation nutzt jetzt die zentrale .topnav aus belaro-system.css
   (identisch auf belaro.eu / cashflow / os). Kein eigenes Nav-CSS mehr hier.

   Mobile-Menü-Fix: Die zentrale .topnav hat backdrop-filter:blur() — das
   erzeugt einen Containing Block, wodurch das fixed Vollbild-Overlay
   (.topnav-links.open) auf die 64px-Leiste eingesperrt wird (nur schmaler
   Streifen). Auf Mobil den Filter neutralisieren, damit das Overlay den
   ganzen Viewport füllt. Desktop behält den Blur.
   (Eigentliche Ursache liegt zentral in belaro-system.css — betrifft auch
   cashflow/os und sollte dort behoben werden.) */
@media (max-width: 1023.98px) {
  .topnav { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ─── MAIN ─── */
main { padding-top: 64px; }

/* ─── HERO ─── */
.hero {
  background: var(--navy); color: var(--cream);
  border-bottom: 3px solid var(--gold);
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.035;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,169,74,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

.hero-label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny); letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cream); line-height: 1.1; margin-bottom: 22px; max-width: 780px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: var(--fs-body-lg); margin-bottom: 44px; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ─── BUTTONS ─── (Basis in belaro-system.css; hier nur Legacy-Alias btn-ghost) */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--gold);
  font-size: var(--fs-small); font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: gap 0.2s;
}
.btn-ghost:hover { gap: 10px; text-decoration: none; }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--navy); color: var(--cream);
  border-bottom: 1px solid rgba(212,169,74,0.08);
  padding: var(--space-6) var(--space-7);
}
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-label { font-size: 12px; color: rgba(245,245,240,0.6); margin-top: 6px; line-height: 1.5; }
.stat-source {
  font-family: var(--font-mono);
  font-size: 10px; color: rgba(245,245,240,0.32); margin-top: 4px;
}

/* ─── SECTIONS ─── (.section-Padding kommt zentral: 64px 24px) */
.section-dark { background: var(--navy); }
.section-navy { background: #050817; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny); letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 14px; display: block;
}
.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2); font-weight: 700; line-height: 1.15;
  margin-bottom: 18px;
}
.section-title-light { color: var(--cream); }
.section-sub {
  font-size: var(--fs-body); color: var(--mute); line-height: 1.75;
  max-width: 540px; margin-bottom: 44px;
}
.sec-navy .section-sub, .sec-deep .section-sub,
.section-dark .section-sub, .section-navy .section-sub,
.on-dark .section-sub { color: rgba(245,245,240,0.65); }

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── FUNNEL (dunkler Eyecatcher-Block) ─── */
.funnel {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(212,169,74,0.12); border-radius: var(--radius-box);
  overflow: hidden; gap: 1px; background: rgba(212,169,74,0.08);
}
.funnel-step {
  background: var(--navy); padding: var(--space-6) var(--space-5);
  position: relative; cursor: pointer; transition: background 0.2s;
  text-decoration: none; display: block;
}
.funnel-step:hover { background: var(--navy-2); text-decoration: none; }
.funnel-step-num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--gold); letter-spacing: 2px; margin-bottom: 14px;
  text-transform: uppercase;
}
.funnel-step-title {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  color: var(--cream); margin-bottom: 8px;
}
.funnel-step-desc { font-size: var(--fs-caption); color: rgba(245,245,240,0.6); line-height: 1.6; margin-bottom: 16px; }
.funnel-price { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--gold); }
.funnel-arrow {
  position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; background: var(--gold); color: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-tiny); font-weight: 700; z-index: 2;
}

/* ─── CARDS ─── (.card / .card-dark vollständig zentral aus belaro-system.css) */
.card-light {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: var(--space-6);
}
.card-title {
  font-family: var(--font-heading); font-size: 17px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.card-title-dark {
  font-family: var(--font-heading); font-size: 17px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.card-body { font-size: var(--fs-small); color: var(--mute); line-height: 1.7; }
.card-body-dark { font-size: var(--fs-small); color: var(--mute); line-height: 1.7; }

/* ─── PROMISE (dunkler Akzent) ─── */
.promise-block {
  background: linear-gradient(135deg, #050817 0%, #0d1535 100%);
  border: 1px solid var(--gold); border-radius: var(--radius-card); padding: var(--space-7);
  text-align: center; position: relative; overflow: hidden;
}
.promise-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(212,169,74,0.1) 0%, transparent 70%);
}
.promise-number {
  font-family: var(--font-heading); font-size: 72px; font-weight: 700;
  color: var(--gold); line-height: 1; position: relative; z-index: 1;
}
.promise-text {
  font-size: 20px; color: var(--cream); font-weight: 500;
  margin: 12px 0 8px; position: relative; z-index: 1;
}
.promise-sub { font-size: var(--fs-small); color: rgba(245,245,240,0.6); position: relative; z-index: 1; }

/* ─── STUDY CARDS ─── */
.study-card {
  padding: var(--space-6); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius-card);
}
.study-num {
  font-family: var(--font-heading); font-size: 34px; font-weight: 700;
  color: var(--navy); line-height: 1; margin-bottom: 10px;
}
.study-num em { color: var(--gold); font-style: normal; }
.study-desc { font-size: var(--fs-small); color: var(--mute); line-height: 1.6; margin-bottom: 10px; }
.study-source { font-family: var(--font-mono); font-size: 10px; color: var(--mute-2); }

/* ─── BLOG CARDS ─── */
.blog-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: block;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(10,16,40,0.08); text-decoration: none; }
.blog-card-body { padding: var(--space-6); }
.blog-card-cat {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(212,169,74,0.1); color: var(--gold);
  padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.blog-card-title {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px; line-height: 1.3;
}
.blog-card-excerpt { font-size: var(--fs-small); color: var(--mute); line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { font-size: 12px; color: var(--mute-2); }

/* ─── REF CARD ─── */
.ref-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
}
.ref-card-top { background: #050817; padding: var(--space-5) var(--space-6); }
.ref-badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(212,169,74,0.3); color: var(--gold);
  padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.ref-num {
  font-family: var(--font-heading); font-size: 38px; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.ref-num-label { font-size: 12px; color: rgba(245,245,240,0.6); margin-top: 4px; }
.ref-card-body { padding: var(--space-5) var(--space-6); }
.ref-metrics { display: flex; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.ref-metric-val { font-family: var(--font-mono); font-size: 16px; color: var(--navy); font-weight: 500; }
.ref-metric-key { font-size: var(--fs-tiny); color: var(--mute); margin-top: 2px; }
.ref-quote {
  font-size: var(--fs-caption); color: var(--mute); line-height: 1.6; font-style: italic;
  border-left: 2px solid var(--gold); padding-left: 14px; margin-top: 14px;
}
.ref-quote-src { font-size: var(--fs-tiny); color: var(--mute-2); margin-top: 6px; font-style: normal; }

/* ─── SCORE BADGES (Score-Palette für Referenzen) ─── */
.score-badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px; color: #fff;
}
.score-stabil   { background: var(--score-stabil); }
.score-wachstum { background: var(--score-wachstum); color: var(--navy); }
.score-druck    { background: var(--score-druck); }
.score-risiko   { background: var(--score-risiko); }

/* ─── CTA SECTION (deep) ─── */
.cta-section {
  background: #050817; color: var(--cream); padding: var(--space-9) var(--space-7); text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(212,169,74,0.06) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }

/* ─── QUOTE ─── */
.quote-block {
  border-left: 3px solid var(--gold); padding: 20px 24px;
  background: rgba(212,169,74,0.05); border-radius: 0 var(--radius-btn) var(--radius-btn) 0; margin: 24px 0;
}
.quote-text { font-size: var(--fs-body); color: var(--navy); line-height: 1.7; font-style: italic; margin-bottom: 10px; }
.on-dark .quote-text, .sec-navy .quote-text, .sec-deep .quote-text { color: var(--cream); }
.quote-source { font-size: 12px; color: var(--mute); }

/* ─── BADGE ─── */
.badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}
.badge-gold { background: rgba(212,169,74,0.12); color: var(--gold); }
.badge-gray { background: rgba(10,16,40,0.06); color: var(--mute); }

/* ─── ARTICLE ─── */
.article-content { max-width: 720px; }
.article-content h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; margin: 36px 0 14px; }
.article-content p { font-size: var(--fs-body); color: var(--navy); line-height: 1.85; margin-bottom: 20px; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: var(--radius-box); }
.article-content h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.article-content ul, .article-content ol { margin: 0 0 20px 22px; }
.article-content li { font-size: var(--fs-body); color: var(--navy); line-height: 1.7; margin-bottom: 6px; }
.article-content a { color: var(--gold); }

/* ─── PLACEHOLDER ─── */
.placeholder-block {
  background: #050817; border: 1px dashed rgba(212,169,74,0.3);
  border-radius: var(--radius-box); padding: 60px; text-align: center;
}

/* ─── FOOTER (deep) ─── */
footer {
  background: #050817; color: var(--cream);
  border-top: 1px solid rgba(212,169,74,0.08);
  padding: 60px var(--space-7) var(--space-6);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7); margin-bottom: var(--space-7);
}
.footer-brand { margin-bottom: 14px; }
.footer-brand img { opacity: 0.95; }
.footer-tagline { font-size: var(--fs-caption); color: rgba(245,245,240,0.6); line-height: 1.7; margin-bottom: 10px; }
.footer-address { font-size: 12px; color: rgba(245,245,240,0.4); }
.footer-col-title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: var(--fs-caption); color: rgba(245,245,240,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: var(--space-5);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-legal { font-size: var(--fs-tiny); color: rgba(245,245,240,0.42); line-height: 1.6; }
.footer-mark { font-family: var(--font-mono); font-size: 10px; color: rgba(212,169,74,0.35); letter-spacing: 1px; }

/* ─── COOKIE-CONSENT-BANNER ─── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  padding: 0 clamp(12px, 3vw, 24px) clamp(12px, 3vw, 24px);
  transform: translateY(130%); transition: transform 0.35s ease;
  pointer-events: none;
}
.cookie-banner.show { transform: translateY(0); pointer-events: auto; }
.cookie-inner {
  max-width: 1080px; margin: 0 auto;
  background: var(--navy); color: var(--cream);
  border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-card);
  box-shadow: 0 18px 48px rgba(10,16,40,0.35);
  padding: 20px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong { font-family: var(--font-heading); font-weight: 700; font-size: 16px; display: block; margin-bottom: 4px; }
.cookie-text p { font-size: 13px; line-height: 1.6; color: rgba(245,243,236,0.75); margin: 0; }
.cookie-text a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cookie-inner { padding: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn-primary, .cookie-actions .btn-secondary { flex: 1; text-align: center; }
}

/* ─── NEWSLETTER-FORMULAR (Liquiditäts-Brief) ─── */
.nl-form { max-width: 640px; }
.nl-inline { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.nl-lead strong { font-family: var(--font-heading); font-weight: 700; font-size: 20px; display: block; margin-bottom: 6px; color: var(--navy); }
.nl-lead p { font-size: var(--fs-small); color: var(--mute); line-height: 1.6; margin-bottom: 18px; }
.nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-input {
  flex: 1; min-width: 220px; font-family: var(--font-body); font-size: var(--fs-body);
  color: var(--navy); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-box); padding: 13px 15px; transition: border-color .15s, box-shadow .15s;
}
.nl-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,76,.18); }
.nl-legal { font-size: 12px; color: var(--mute-2); line-height: 1.5; margin-top: 12px; }
.nl-legal a { color: var(--gold); }
.nl-msg { font-size: var(--fs-small); margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-box); }
.nl-msg.ok  { background: rgba(31,122,61,.10);  border: 1px solid var(--score-stabil); color: var(--score-stabil); }
.nl-msg.err { background: rgba(199,62,46,.10);  border: 1px solid var(--score-risiko); color: var(--score-risiko); }
/* Footer-Variante auf dunklem Grund — ausbalancierte Zeile über volle Breite */
.footer-newsletter {
  border-top: 1px solid rgba(255,255,255,0.08); margin: 40px 0 28px; padding-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 22px 56px;
}
.footer-nl-head { flex: 1 1 300px; max-width: 440px; }
.footer-nl-lead { font-size: var(--fs-small); color: rgba(245,243,236,0.55); line-height: 1.6; margin-top: 8px; }
.footer-newsletter .nl-form { flex: 0 1 480px; max-width: 480px; }
@media (max-width: 720px) {
  .footer-newsletter { gap: 16px; }
  .footer-nl-head, .footer-newsletter .nl-form { flex-basis: 100%; max-width: none; }
}
.nl-footer .nl-input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: var(--cream); }
.nl-footer .nl-input::placeholder { color: rgba(245,243,236,0.45); }
.nl-footer .nl-legal { color: rgba(245,243,236,0.45); }
.nl-footer .nl-legal a { color: var(--gold); }
.nl-footer .nl-msg.ok, .nl-footer .nl-msg.err { color: var(--cream); }

/* ─── ADMIN ─── */
.admin-wrap { max-width: 900px; margin: 100px auto 60px; padding: 0 20px; }
.admin-wrap h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.admin-nav { display: flex; gap: 16px; margin-bottom: 40px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-nav a { font-size: var(--fs-small); color: var(--mute); text-decoration: none; font-weight: 500; }
.admin-nav a:hover, .admin-nav a.active { color: var(--navy); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: var(--fs-caption); font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; font-size: var(--fs-small); font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: #fff; color: var(--navy); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 200px; resize: vertical; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.admin-table th { text-align: left; padding: 10px 14px; background: var(--navy); color: var(--cream); font-size: 12px; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: rgba(212,169,74,0.04); }
.msg-success { background: #e8f5e9; border: 1px solid #4caf50; color: #1b5e20; padding: 12px 16px; border-radius: var(--radius-btn); margin-bottom: 20px; font-size: var(--fs-small); }
.msg-error { background: #ffebee; border: 1px solid #f44336; color: #b71c1c; padding: 12px 16px; border-radius: var(--radius-btn); margin-bottom: 20px; font-size: var(--fs-small); }

/* Mobile-Nav + Burger + Logo-Toggle kommen jetzt zentral über .topnav (belaro-system.css). */

/* ─── MOBILE LAYOUT ─── */
@media (max-width: 768px) {
  .hero { padding: 50px var(--space-4) 40px; }
  .stats-bar { padding: var(--space-6) var(--space-4); }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .funnel { grid-template-columns: 1fr; }
  .funnel-arrow { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-section { padding: var(--space-8) var(--space-4); }
}
