/* booklover.ai – minimal editorial style for static pages */
@import url('/fonts/fonts.css');

/* Once the SPA mounts, hide the static prerender body. Crawler still sees it
   in the initial HTML response; user gets the React-rendered UI on top. */
html.app-ready #static-prerender { display: none; }
html.app-ready body { background: transparent; }

:root {
  --fg: #1a1a1a;
  --muted: #555;
  --bg: #fefcf9;
  --accent: #7c3aed;      /* "Empfohlen" */
  --spiegel: #dc2626;     /* SPIEGEL red */
  --border: #e7e2d8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lora', system-ui, -apple-system, sans-serif;
  --max-w: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg);
  background: var(--bg);
}

header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 18px 0;
}
header nav, footer p {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
header a { color: var(--fg); text-decoration: none; font-weight: 600; font-family: var(--serif); }

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

[aria-label="Breadcrumb"] ol {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}
[aria-label="Breadcrumb"] li { display: inline; }
[aria-label="Breadcrumb"] li + li::before { content: " · "; color: var(--border); }
[aria-label="Breadcrumb"] a { color: var(--muted); text-decoration: none; }
[aria-label="Breadcrumb"] a:hover { color: var(--fg); }

h1 {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  margin: 40px 0 14px;
}
h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 22px 0 8px;
}

article > p:first-of-type { font-size: 18px; color: var(--muted); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img {
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
  border-radius: 6px;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.25);
}

ul, ol { padding-left: 20px; }
li { margin-bottom: 6px; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0 22px;
  font-size: 15px;
}
table th, table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table th {
  width: 38%;
  color: var(--muted);
  font-weight: 500;
}

section { margin-bottom: 28px; }

aside {
  margin-top: 48px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
aside h2 { margin-top: 0; }
aside h3 { font-size: 20px; margin-top: 0; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 22px 0 44px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
footer a { color: var(--muted); }

blockquote {
  margin: 22px 0;
  padding: 14px 22px;
  border-left: 3px solid var(--accent);
  background: #fff;
  font-family: var(--serif);
  font-style: italic;
}

small { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  main { padding: 22px 16px 48px; }
}
