/* ============================================================
   umsgeld.de — Design System
   v2 · Editorial. Navy + Gold-Akzentlinie. Haarlinien statt Schatten.
   Bewusst sachlich-redaktionell, nicht "SaaS-Template".
   ============================================================ */

:root {
  /* --- Marke --- */
  --navy-900: #0a1f44;
  --navy-800: #0e2e63;   /* Primär */
  --navy-700: #1a3c74;
  --gold-600: #b8923f;   /* Akzenttext auf Weiß */
  --gold-500: #c9a253;
  --gold-400: #d8b673;   /* Linien / Akzent */
  --gold-200: #ecd9ab;
  --gold-50:  #f6efe0;   /* sehr dezente Fläche */

  /* --- Neutral --- */
  --ink-900: #1a1a18;    /* Haupttext, fast schwarz, leicht warm */
  --ink-700: #4a4a46;
  --ink-500: #75756e;    /* sekundär */
  --line-300: #d9d6cd;   /* sichtbare Trennlinie (warm) */
  --line-200: #e7e4db;   /* feine Haarlinie */
  --paper-50: #faf9f5;   /* warmes Off-White für Sektionen */
  --white: #ffffff;
  --positive-700: #1f6b50;

  /* --- Typografie --- */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.6rem, 5.2vw, 4rem);
  --fs-h1: clamp(2rem, 3.6vw, 2.6rem);
  --fs-h2: clamp(1.55rem, 2.6vw, 2rem);
  --fs-h3: 1.22rem;
  --fs-body: 1.06rem;
  --fs-small: 0.9rem;
  --fs-kicker: 0.74rem;

  --lh-tight: 1.12;
  --lh-body: 1.68;

  /* --- Layout: bewusst kleine Radien (editorial, nicht "App") --- */
  --maxw: 1160px;
  --radius: 3px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: 5.5rem;
}

/* ============================================================
   Reset / Basis
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-2); }

/* ============================================================
   Layout-Helfer
   ============================================================ */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-3); }
.container--narrow { max-width: 760px; }
.section { padding-block: var(--space-5); }
.section--tint { background: var(--paper-50); }
.section + .section { border-top: 1px solid var(--line-200); }

/* Kicker: kleines Label mit kurzer Goldlinie davor — sparsam einsetzen */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans); font-size: var(--fs-kicker);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-600); margin-bottom: var(--space-2);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold-400); }

.lead { font-size: 1.18rem; color: var(--ink-700); max-width: 62ch; line-height: 1.6; }
.section__head { max-width: 60ch; margin-bottom: var(--space-4); }
.muted { color: var(--ink-500); }

/* ============================================================
   Buttons — sachlich, fast eckig, ohne Bounce
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.98rem;
  padding: 0.72rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--navy-800); color: var(--white); }
.btn--primary:hover { background: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line-300); }
.btn--ghost:hover { border-color: var(--navy-800); }
.btn--link { padding: 0; color: var(--navy-800); font-weight: 600; border: 0; background: none; }
.btn--link:hover { color: var(--gold-600); }

/* Pfeil-Link für "Weiterlesen" etc. */
.arrow { font-weight: 600; font-size: var(--fs-small); color: var(--navy-800); }
.arrow svg { vertical-align: -1px; margin-left: 0.25rem; transition: transform 0.15s ease; }
.arrow:hover { text-decoration: none; color: var(--gold-600); }
.arrow:hover svg { transform: translateX(3px); }

/* Strich-Icons */
.ico { width: 28px; height: 28px; stroke: var(--navy-800); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 22px; height: 22px; }

/* ============================================================
   Bilder — natürliche, helle Fotografie mit dezentem Lift.
   Volle Farbe, leicht aufgehellt: lebendig statt getönt/schwermütig.
   (Die ungenutzten #umsgeld-duotone-Defs bleiben via .duotone-defs versteckt.)
   ============================================================ */
.duotone-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fig { position: relative; overflow: hidden; background: var(--paper-50); border-radius: var(--radius); }
.fig img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.02) brightness(1.02); }
.fig--accent { border-bottom: 2px solid var(--gold-400); }

/* Akzent-Band: breiter Bildstreifen mit hellem Text-Panel (kein dunkler Schleier) */
.band { position: relative; }
.band .fig { aspect-ratio: 5 / 1; min-height: 200px; }
.band__caption {
  position: absolute; top: 50%; left: var(--space-4); transform: translateY(-50%);
  background: rgba(255,255,255,0.93); border-left: 3px solid var(--gold-400);
  padding: var(--space-3) var(--space-4); max-width: 44ch;
}
.band__caption .kicker { color: var(--gold-600); }
.band__caption .kicker::before { background: var(--gold-400); }
.band__caption h2 { color: var(--navy-900); margin: 0; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header { border-bottom: 1px solid var(--line-200); background: var(--white); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: flex; gap: var(--space-3); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--font-sans); font-weight: 500; font-size: 0.96rem; color: var(--ink-700); }
.nav__links a:hover { color: var(--navy-900); text-decoration: none; }

/* ============================================================
   Hero — editorial, flach, linksbündig, kein Verlauf, keine Schwebe-Box
   ============================================================ */
.hero { padding-block: var(--space-6) var(--space-5); border-bottom: 1px solid var(--line-200); }
.hero h1 { font-size: var(--fs-display); max-width: 16ch; margin-bottom: var(--space-3); }
.hero .lead { margin-bottom: var(--space-3); }
.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.hero__meta { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line-200); display: flex; gap: var(--space-5); flex-wrap: wrap; }
.hero__meta div { max-width: 22ch; }
.hero__meta dt { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy-900); font-weight: 600; }
.hero__meta dd { margin: 0.15rem 0 0; font-size: var(--fs-small); color: var(--ink-500); }

/* ============================================================
   Themen-Index — Liste mit Haarlinien (redaktionell, kein Kachel-Grid)
   ============================================================ */
.index-list { border-top: 1px solid var(--line-300); }
.index-row {
  display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--line-200);
  transition: padding-left 0.18s ease;
}
.index-row:hover { padding-left: 0.5rem; text-decoration: none; }
.index-row__fig { aspect-ratio: 4 / 3; align-self: stretch; }
.index-row__no { font-family: var(--font-serif); font-size: 0.95rem; color: var(--gold-600); margin-bottom: 0.3rem; display: block; }
.index-row__title { display: flex; align-items: center; gap: 0.6rem; }
.index-row h3 { margin: 0; font-size: 1.3rem; }
.index-row__title .ico { width: 22px; height: 22px; }
.index-row__desc { margin: 0.35rem 0 0; color: var(--ink-500); font-size: var(--fs-small); max-width: 58ch; }
.index-row .arrow { white-space: nowrap; }

/* ============================================================
   Karten — flach, Haarlinie, kein Schatten, kein Lift, mit Bild
   ============================================================ */
.grid { display: grid; gap: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards { border: 1px solid var(--line-200); border-radius: var(--radius); overflow: hidden; }
.cards .grid--3 > * { border-right: 1px solid var(--line-200); }
.cards .grid--3 > *:last-child { border-right: 0; }

.card { padding: 0; display: flex; flex-direction: column; background: var(--white); transition: background-color 0.15s ease; }
.card:hover { background: var(--paper-50); text-decoration: none; }
.card__fig { aspect-ratio: 16 / 10; border-radius: 0; }
.card:hover .card__fig img { filter: saturate(1.14) contrast(1.03) brightness(1.04); }
.card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__kicker { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); }
.card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; color: var(--navy-900); margin: 0; line-height: 1.25; }
.card p { font-size: var(--fs-small); color: var(--ink-500); margin: 0; }
.card .arrow { margin-top: auto; padding-top: 0.4rem; }

/* ============================================================
   Rechner-Liste
   ============================================================ */
.tool-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-200); }
.tool-row { display: flex; align-items: center; gap: 0.9rem; padding: var(--space-2) var(--space-1); border-bottom: 1px solid var(--line-200); }
.tool-row:hover { color: var(--gold-600); text-decoration: none; }
.tool-row span { font-weight: 500; font-size: 1rem; }

/* ============================================================
   Prinzipien
   ============================================================ */
.principle { padding-right: var(--space-2); }
.principle__no { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold-600); display: block; margin-bottom: 0.6rem; }
.principle h3 { font-family: var(--font-serif); color: var(--navy-900); margin-bottom: 0.4rem; font-size: 1.22rem; }
.principle p { font-size: var(--fs-small); color: var(--ink-500); margin: 0; }
.rule-top { border-top: 2px solid var(--navy-800); padding-top: var(--space-2); }

/* ============================================================
   CTA — flach, Navy, eckig
   ============================================================ */
.cta { background: var(--navy-900); color: var(--white); padding: var(--space-5); border-radius: var(--radius); }
.cta h2 { color: var(--white); max-width: 20ch; }
.cta p { color: rgba(255,255,255,0.72); max-width: 50ch; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta .btn--ghost:hover { border-color: #fff; }

/* ============================================================
   Artikel / Ratgeber-Detail
   ============================================================ */
.article { padding-block: var(--space-5); }
.article__back { display: inline-block; font-size: var(--fs-small); color: var(--ink-500); margin-bottom: var(--space-3); }
.article__back:hover { color: var(--navy-800); }
.article h1 { font-size: var(--fs-h1); max-width: 22ch; margin-bottom: var(--space-2); }
.article .lead { margin-bottom: var(--space-2); }
.article__meta { font-size: var(--fs-small); color: var(--ink-500); margin-bottom: var(--space-4); }
.article__hero { aspect-ratio: 16 / 7; margin-bottom: var(--space-4); }

.prose { font-size: 1.12rem; line-height: 1.75; color: var(--ink-900); }
.prose > * + * { margin-top: var(--space-2); }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-4); margin-bottom: var(--space-1); }
.prose h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: 0.35rem; }
.prose a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-400); }
.prose blockquote {
  border-left: 2px solid var(--gold-400); margin: var(--space-3) 0; padding: 0.2rem 0 0.2rem var(--space-2);
  color: var(--ink-500); font-size: var(--fs-small); font-style: italic;
}
.prose strong { font-weight: 600; color: var(--navy-900); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding-block: var(--space-5) var(--space-3); font-size: var(--fs-small); }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer__grid h4 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-2); font-weight: 600; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__logo img { height: 50px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: var(--space-2); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.16); padding-top: var(--space-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); color: rgba(255,255,255,0.5); }
.footer__disclaimer { color: rgba(255,255,255,0.42); font-size: 0.82rem; margin-top: var(--space-2); max-width: 80ch; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid--3, .grid--2, .tool-list, .sg-grid { grid-template-columns: 1fr; }
  .cards .grid--3 > * { border-right: 0; border-bottom: 1px solid var(--line-200); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .index-row { grid-template-columns: 28px 1fr; }
  .index-row__fig { display: none; }
  .index-row .arrow { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--space-3); }
}

/* ============================================================
   Content-Bausteine (Pillar / Ratgeber-Artikel)
   ============================================================ */
.breadcrumb { font-size: var(--fs-small); color: var(--ink-500); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--navy-800); }
.breadcrumb span { margin: 0 0.45rem; color: var(--line-300); }

.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: var(--fs-small); color: var(--ink-500); margin: var(--space-2) 0 var(--space-3); }
.post-meta .badge { background: var(--gold-50); color: var(--gold-600); padding: 0.2rem 0.65rem; border-radius: 999px; font-weight: 600; font-size: var(--fs-kicker); letter-spacing: 0.08em; text-transform: uppercase; }

/* Antwort-Box / TL;DR — der wichtigste GEO-Baustein */
.answerbox { background: var(--paper-50); border: 1px solid var(--line-200); border-left: 3px solid var(--gold-400); border-radius: var(--radius); padding: var(--space-3); margin: var(--space-3) 0 var(--space-4); }
.answerbox h2 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 0.6rem; }
.answerbox p { margin: 0 0 0.5rem; font-size: 1.08rem; color: var(--ink-900); }
.answerbox p:last-child { margin: 0; }

/* Inhaltsverzeichnis */
.toc { border: 1px solid var(--line-200); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-4); background: var(--white); }
.toc h2 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: var(--space-4); }
.toc li { margin: 0.28rem 0; }

/* Tabellen in Fließtext */
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line-200); vertical-align: top; }
.prose thead th { background: var(--navy-800); color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; }
.prose tbody tr:nth-child(even) { background: var(--paper-50); }

/* Callout / Empfehlung */
.callout { border: 1px solid var(--line-200); border-left: 3px solid var(--navy-800); border-radius: var(--radius); padding: var(--space-3); margin: var(--space-3) 0; background: var(--white); }
.callout--gold { border-left-color: var(--gold-400); background: var(--gold-50); }
.callout h3 { margin: 0 0 0.4rem; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--navy-900); }
.callout p { margin: 0; font-size: var(--fs-small); color: var(--ink-700); }

.stat { font-family: var(--font-serif); color: var(--navy-900); font-weight: 600; }

/* FAQ-Akkordeon */
.faq { border-top: 1px solid var(--line-300); margin-top: var(--space-3); }
.faq details { border-bottom: 1px solid var(--line-200); }
.faq summary { cursor: pointer; padding: var(--space-2) 0; font-family: var(--font-serif); font-size: 1.12rem; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-600); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 var(--space-2); margin: 0; color: var(--ink-700); font-size: var(--fs-small); }

/* Autor-Box */
.authorbox { display: flex; gap: var(--space-2); align-items: center; border: 1px solid var(--line-200); border-radius: var(--radius); padding: var(--space-3); margin-top: var(--space-4); background: var(--paper-50); }
.authorbox__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.2rem; flex-shrink: 0; }
.authorbox__name { font-weight: 600; color: var(--navy-900); }
.authorbox p { margin: 0.15rem 0 0; font-size: var(--fs-small); color: var(--ink-500); }

/* Cluster-Verlinkung (Spokes) */
.cluster { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line-200); border-radius: var(--radius); overflow: hidden; margin: var(--space-3) 0; }
.cluster a { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line-200); border-right: 1px solid var(--line-200); display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--navy-900); font-weight: 500; font-size: var(--fs-small); }
.cluster a:hover { background: var(--paper-50); text-decoration: none; color: var(--gold-600); }
.cluster a span { color: var(--gold-600); }

@media (max-width: 700px) {
  .toc ol { columns: 1; }
  .cluster { grid-template-columns: 1fr; }
}
