﻿@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;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap");

:root {
  --bg: #f4f7fa;
  --bg-warm: #e8eef4;
  --bg-card: #ffffff;
  --text: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --plum: #1e3a5f;
  --plum-light: #2d4a6f;
  --sage: #e05a4f;
  --sage-light: #fdecea;
  --terracotta: #e05a4f;
  --terracotta-light: #fff0ee;
  --gold: #c9a227;
  --border: #e8ddd4;
  --border-strong: #d4c4b8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(45, 36, 32, 0.08);
  --shadow-soft: 0 4px 20px rgba(45, 36, 32, 0.06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --article-max: 680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta); }

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* ── Masthead ribbon ── */
.masthead-ribbon {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead-ribbon em { font-style: normal; color: var(--gold); }

/* ── Header ── */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  max-width: var(--max);
  margin-inline: auto;
}

.site-brand {
  text-decoration: none;
  line-height: 1.15;
}

.brand-line1 {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: -0.02em;
}

.brand-line2 {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--plum);
  background: var(--sage-light);
}

.nav-toggle {
  display: none;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--plum);
}

/* ── Hero ── */
.hero {
  padding: 3rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 121, 65, 0.15), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74, 124, 111, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--plum);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  line-height: 1.75;
}

.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: border-color 0.2s, transform 0.2s;
}

.pill:hover {
  border-color: var(--plum);
  color: var(--plum);
  transform: translateY(-1px);
}

.pill-sage { border-color: var(--sage); color: var(--sage); background: var(--sage-light); }
.pill-terra { border-color: var(--terracotta); color: var(--terracotta); background: var(--terracotta-light); }
.pill-plum { border-color: var(--plum); color: var(--plum); background: rgba(91, 49, 84, 0.06); }

/* Editorial collage */
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

.collage-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.collage-card:nth-child(1) {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--plum) 0%, #7a4a72 100%);
  color: white;
  border: none;
}

.collage-card:nth-child(1) .collage-label { color: rgba(255,255,255,0.75); }
.collage-card:nth-child(1) h3 { color: white; font-family: var(--serif); font-size: 1.25rem; margin: 0.35rem 0 0; }

.collage-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.collage-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0.35rem 0 0;
  color: var(--text);
  line-height: 1.35;
}

.collage-stat {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}

.collage-stat span { font-size: 0.75rem; font-family: var(--sans); font-weight: 500; color: var(--text-muted); display: block; margin-top: 0.25rem; }

/* ── Sections ── */
.section {
  padding: 3rem 1.25rem;
}

.section-warm { background: var(--bg-warm); }

.section-header {
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 24rem;
}

/* ── Article cards ── */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.article-card a {
  display: grid;
  grid-template-columns: 240px 1fr;
  text-decoration: none;
  color: inherit;
}

.card-accent {
  min-height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.card-accent.vergleich { background: linear-gradient(160deg, #e8f2ef, #d4ebe4); }
.card-accent.recht { background: linear-gradient(160deg, var(--terracotta-light), #f5dcc8); }
.card-accent.setup { background: linear-gradient(160deg, rgba(91,49,84,0.08), rgba(91,49,84,0.15)); }

.card-accent .cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum);
  background: rgba(255,255,255,0.85);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  align-self: flex-start;
}

.card-body { padding: 1.75rem 2rem; display: flex; flex-direction: column; justify-content: center; }

.article-card h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.article-card .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-card p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.read-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-link::after { content: "→"; transition: transform 0.2s; }
.article-card:hover .read-link::after { transform: translateX(4px); }

/* Themen grid */
.themen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin-inline: auto;
}

.thema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.thema-card:hover {
  border-color: var(--plum);
  transform: translateY(-2px);
}

.thema-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.thema-icon.sage { background: var(--sage-light); }
.thema-icon.terra { background: var(--terracotta-light); }
.thema-icon.plum { background: rgba(91, 49, 84, 0.1); }

.thema-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.thema-card span { font-size: 0.85rem; color: var(--text-muted); }

/* Redaktion trust */
.redaktion-box {
  max-width: var(--max);
  margin-inline: auto;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: center;
}

.redaktion-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--plum));
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.redaktion-box h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--plum);
}

.redaktion-box p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Article page ── */
.article-banner {
  background: linear-gradient(180deg, var(--bg-warm), var(--bg));
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.article-banner-inner { max-width: var(--article-max); margin-inline: auto; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--text-secondary); }

.article-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.article-banner h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 1rem;
  color: var(--text);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  max-width: calc(var(--article-max) + 300px);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4rem;
  align-items: start;
}

.article-page { min-width: 0; }

.article-page p, .article-page li { color: var(--text-secondary); }

.article-page h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--plum);
  line-height: 1.3;
}

.article-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}

.article-sidebar { position: sticky; top: 5.5rem; }

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-box h2 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  color: var(--plum);
}

.sidebar-box ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sidebar-box li { margin-bottom: 0.4rem; }

.sidebar-tip {
  background: var(--terracotta-light);
  border-color: rgba(200, 121, 65, 0.3);
}

.sidebar-tip h2 { color: var(--terracotta); }

.disclaimer {
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.35rem;
  font-size: 0.92rem;
  margin: 0 0 2rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.disclaimer strong { color: var(--sage); }

.pullquote {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--plum);
  border-left: 4px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  line-height: 1.5;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison-table th {
  background: var(--plum);
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.comparison-table tr:nth-child(even) td { background: var(--bg-warm); }
.comparison-table td:first-child { font-weight: 600; color: var(--text); }

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  background: var(--sage);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.provider-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--terracotta);
}

.provider-block h2 {
  margin-top: 0 !important;
  font-size: 1.2rem !important;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(91, 49, 84, 0.06), rgba(74, 124, 111, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.highlight-box h2 { margin-top: 0 !important; color: var(--plum) !important; }

.affiliate-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.25rem;
  line-height: 1.6;
}

/* Legal */
.legal-page main {
  max-width: var(--article-max);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-page h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--plum);
  margin-top: 2rem;
}

.legal-page p { color: var(--text-secondary); }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  background: var(--plum);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.25rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .brand-line1 { color: white; font-size: 1.5rem; }
.footer-brand .brand-line2 { color: rgba(255,255,255,0.6); }

.footer-brand p {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
}

.footer-col h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.affiliate-note-block {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { max-width: 420px; }
  .article-card a { grid-template-columns: 1fr; }
  .card-accent { min-height: 120px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .redaktion-box { grid-template-columns: 1fr; text-align: center; }
  .redaktion-avatar { margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
}

.seo-prose { max-width: 42rem; margin: 0 auto; text-align: left; }
.seo-prose h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; font-weight: 700; }
.seo-prose p { color: var(--text-secondary); line-height: 1.65; margin: 0 0 1rem; }
.seo-prose a { color: var(--accent, #c9a227); }
.seo-prose code { font-size: 0.85em; background: rgba(0,0,0,.06); padding: 0.1em 0.35em; border-radius: 4px; }

/* Article preview media — scripts/sync-article-media.mjs */
.card-visual,
.card-accent { overflow: hidden; }

.card-visual:has(.card-media),
.card-accent:has(.card-media) {
  padding: 0;
  align-items: stretch;
  min-height: 200px;
}

.card-visual:has(.card-media)::after { opacity: 0.12; }

.card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.card-visual .tag,
.card-accent .cat {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
}

.article-preview-media {
  max-width: var(--article-max, 720px);
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.04);
}

.article-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
