/* Styles für die statischen Ratgeber-Seiten (/ratgeber/*).
   Keine Fonts oder CDNs: Die Seiten bauen keine Verbindungen zu Drittanbietern auf.
   Große Schrift und begrenzte Zeilenlänge, damit auch ältere Leser gut lesen können. */

:root {
  --bg: #05080f;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #c4c4cc;
  --muted: #8b8b95;
  --heading: #ffffff;
  --primary: #1adb8a;
  --primary-soft: rgba(26, 219, 138, 0.1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
}
.site-header .inner {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  color: var(--heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.55rem;
  vertical-align: -0.4rem;
  border-radius: 0.45rem;
  background: url(/logo-64.png) center / contain no-repeat;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #04120b;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.breadcrumb { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }

h1 {
  color: var(--heading);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h2 { color: var(--heading); font-size: 1.5rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { color: var(--heading); font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--heading); }

.lead { font-size: 1.25rem; color: var(--text); }
.meta { font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; }

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.box > :last-child { margin-bottom: 0; }
.box-title { color: var(--heading); font-weight: 700; margin-bottom: 0.4rem; }

.cta {
  background: var(--primary-soft);
  border: 1px solid rgba(26, 219, 138, 0.35);
  border-radius: 0.9rem;
  padding: 1.4rem 1.4rem;
  margin: 2.5rem 0;
}
.cta h2 { margin-top: 0; font-size: 1.3rem; }
.cta .small { font-size: 0.95rem; color: var(--muted); margin-top: 0.9rem; margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { border-bottom: 1px solid var(--border); padding: 0.55rem 0.6rem; text-align: left; vertical-align: top; }
th { color: var(--heading); }

figure { margin: 2rem 0; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
figure svg { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; }
figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.7rem; line-height: 1.5; }
figure.diagram figcaption { text-align: center; }

.sources { font-size: 0.95rem; color: var(--muted); }
.sources h2 { font-size: 1.15rem; }

.article-list { list-style: none; padding: 0; }
.article-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.article-list a { font-weight: 700; font-size: 1.2rem; }
.article-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 1rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .inner { max-width: 46rem; margin: 0 auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
figure picture { display: block; }
