/* Viridel Blog — shared stylesheet. Viridian Wealth palette, premium typography.
   All colours are CSS custom properties — zero hardcoded hex in component rules. */

/* ── Google Fonts loaded via <link> in each HTML file ── */

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

/* ── Viridel Wealth palette — rich emerald presence ─────────────────────────── */
:root {
  --bg: #f2f6f3; /* green-breath ivory */
  --bg2: #e4efe9; /* raised band / footer */
  --bg3: #d5e8df; /* deeper inset */
  --card: #ffffff; /* card surface */
  --border: rgba(15, 92, 71, 0.14);
  --border-hi: rgba(15, 92, 71, 0.32);
  --green: #0f5c47; /* rich emerald primary */
  --green-dk: #0a3d2e; /* hover / push */
  --green-lt: #c8a95a; /* champagne gold accent */
  --green-dim: rgba(15, 92, 71, 0.1);
  --green-pill: rgba(15, 92, 71, 0.12);
  --text: #0a1f18; /* primary text */
  --text-soft: #2a4a3c; /* secondary text */
  --muted: #5a7268; /* tertiary / meta */
  --nav-glass: rgba(242, 246, 243, 0.92);
  --shadow: 0 2px 12px rgba(10, 61, 46, 0.07), 0 1px 3px rgba(10, 61, 46, 0.04);
  --shadow-md: 0 8px 28px rgba(10, 61, 46, 0.09), 0 2px 6px rgba(10, 61, 46, 0.05);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --font-body: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Mono", ui-monospace, monospace;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--green-lt);
}
strong {
  color: var(--text);
  font-weight: 600;
}
em {
  font-style: italic;
}

/* ── Nav ────────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.nav-logo img,
.footer-logo img {
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--green-pill);
}
.nav-links a.active {
  color: var(--green);
  font-weight: 600;
}
.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 3px 0 0 var(--green-dk);
  transition:
    filter 0.15s,
    transform 0.1s;
  flex-shrink: 0;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.nav-lang-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-lang select {
  appearance: none;
  background: var(--bg2);
  border: 1px solid var(--line, #d5e0d9);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 6px 28px 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c72' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  max-width: 9.5rem;
}
.nav-lang select:hover,
.nav-lang select:focus {
  border-color: var(--green);
  outline: none;
}
.nav-cta:hover {
  filter: brightness(1.06);
  color: #fff;
}
.nav-cta:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* ── Blog index layout ─────────────────────────────────────────────────────── */
.page-hero {
  padding: clamp(64px, 10vw, 100px) 24px clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-label {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.1;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

.blog-layout {
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
  padding: 0 24px clamp(64px, 8vw, 96px);
  display: block;
}

.blog-main {
  width: 100%;
}

.blog-layout:has(.blog-sidebar) {
  max-width: 1160px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Post cards ─────────────────────────────────────────────────────────────── */
.featured-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.featured-post:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.featured-thumb {
  background: var(--green-dim);
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.featured-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-body {
  padding: 28px 32px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.post-card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-thumb {
  background: var(--green-dim);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
}
.post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-body h2,
.post-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.featured-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.post-body p,
.featured-body > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* ── Post meta (tags + date + read time) ─────────────────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.post-tag {
  background: var(--green-pill);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--border-hi);
}
.post-date,
.post-read {
  color: var(--muted);
  font-size: 0.8rem;
}
.read-link {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-link:hover {
  color: var(--green-lt);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.sidebar-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: default;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.sidebar-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}
.sidebar-recent {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-recent li a {
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
}
.sidebar-recent li a:hover {
  color: var(--green);
}
.sidebar-recent li span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 3px;
  font-weight: 400;
}

/* ── CTA box ─────────────────────────────────────────────────────────────────── */
.cta-box {
  background: var(--green-dim);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 18px;
}
.cta-box h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-box p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 18px;
}
.cta-box a {
  background: var(--green);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 3px 0 0 var(--green-dk);
  transition: filter 0.15s;
}
.cta-box a:hover {
  filter: brightness(1.06);
  color: #fff;
}

/* ── Article layout ─────────────────────────────────────────────────────────── */
article {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) 24px clamp(56px, 8vw, 88px);
}
.post-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.back-link:hover {
  color: var(--green);
  border-color: var(--border-hi);
}

article h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}
.post-lede {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}
article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
article p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}
article ul,
article ol {
  color: var(--text-soft);
  padding-left: 22px;
  margin-bottom: 20px;
}
article li {
  margin-bottom: 10px;
  line-height: 1.7;
}

blockquote {
  border-left: 3px solid var(--green);
  padding: 16px 24px;
  background: var(--green-dim);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 28px 0;
}
blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.callout-label {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.callout p {
  margin: 0;
  color: var(--text-soft);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 64px) 24px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: var(--text-soft);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col ul a:hover {
  color: var(--green);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom a {
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom a:hover {
  color: var(--green);
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.site-crumbs {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(243, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.site-crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1160px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  height: 36px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.1px;
}
.site-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-crumbs a:hover {
  color: var(--green);
}
.site-crumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}
.site-crumbs .sep {
  color: var(--border-hi);
  font-size: 11px;
}

/* ── Magazine kit: TOC, tables, FAQ ─────────────────────────────────────────── */
.blog-toc {
  margin: 8px 0 32px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.blog-toc-label,
.blog-toc > summary {
  margin: 0;
  padding: 12px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.blog-toc > summary::-webkit-details-marker {
  display: none;
}
.blog-toc > summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
}
.blog-toc[open] > summary::after {
  content: "−";
}
.blog-toc ol {
  margin: 0 0 14px;
  padding: 0 0 4px 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  column-gap: 28px;
}
.blog-toc li {
  margin: 0;
  line-height: 1.35;
}
.blog-toc a {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.blog-toc a:hover {
  color: var(--green);
}
@media (max-width: 640px) {
  .blog-toc ol {
    grid-template-columns: 1fr;
  }
}
.blog-table-wrap {
  margin: 20px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
}
.blog-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.blog-table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.blog-table-wrap th,
.blog-table-wrap td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  line-height: 1.5;
}
.blog-table-wrap thead th {
  border-top: none;
  background: var(--bg2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.blog-faq {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.blog-faq > h2 {
  margin-bottom: 18px;
}
.blog-faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.blog-faq-item:last-child {
  border-bottom: none;
}
.blog-faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.blog-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-layout:has(.blog-sidebar) {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    display: none;
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nav-links {
    display: none;
  }
  /* Long CTAs (FR Essayer…, PT Experimentar…, DE Kostenlos…) must not force
     page-level horizontal scroll — flex-shrink + fluid padding, not English px. */
  nav {
    padding-inline: 12px;
  }
  .nav-inner {
    gap: 10px;
  }
  .nav-end {
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  .nav-cta {
    flex-shrink: 1;
    min-width: 0;
    max-width: min(12rem, 48vw);
    padding: 0.5rem clamp(0.55rem, 2.2vw, 0.9rem);
    font-size: clamp(0.72rem, 2.6vw, 0.875rem);
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
  }
  .nav-lang select {
    max-width: min(8.5rem, 36vw);
  }
  .blog-table-wrap {
    max-width: 100%;
  }
  .post-card {
    grid-template-columns: 1fr;
  }
  .post-thumb {
    width: 72px;
    height: 72px;
  }
  .featured-thumb {
    height: 160px;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .blog-layout {
    padding-left: 16px;
    padding-right: 16px;
  }
  article {
    padding-left: 16px;
    padding-right: 16px;
  }
}
