/*
 * Shared styles for the static Ratgeber pages under /ratgeber/.
 * These pages are plain HTML (no React, no JS) so that AI crawlers that do not
 * execute JavaScript (GPTBot, OAI-SearchBot, ...) can read them. Tokens mirror
 * the SPA's "Refined Blue" look (tailwind.config.js: homeTextGradient, font-pp).
 */

:root {
  --blue: #0062d6;
  --blue-dark: #0050b3;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --card-shadow: 0 10px 30px -12px rgba(0, 32, 80, 0.18);
  --radius: 16px;
  --max: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 48px 0 12px;
}

h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 1100px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--blue);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin: 28px 0 20px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
}

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

/* Article */
.lead {
  font-size: 19px;
  color: var(--ink);
}

.meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Short, quotable answer box at the top of every guide */
.answer {
  background: var(--bg-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.answer p {
  margin: 0;
}

.answer strong:first-child {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  margin-bottom: 6px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  outline: 1px solid rgba(15, 23, 42, 0.05);
  padding: 20px 24px;
  margin: 16px 0;
}

.card h3 {
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.note {
  font-size: 14px;
  color: var(--muted);
}

/* FAQ uses native <details> so it works without JS */
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

details p {
  margin: 10px 0 0;
}

/* Call to action */
.cta {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin: 48px 0;
}

.cta h2 {
  color: #fff;
  margin-top: 0;
}

.cta a.button {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
}

.cta .note,
.cta .note a {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.related {
  margin: 40px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 560px) {
  .site-header nav {
    display: none;
  }

  .answer,
  .card,
  .cta {
    padding: 18px;
  }
}
