/* urka.de – gemeinsame Stylesheet (Runde 2, 2026-08-10)
   Typostufen: body 1rem | meta/nav 0.875rem | h3 1.125rem | h2 1.35rem | h1 1.75rem | brand 1.75rem
*/
:root {
  --bg: #f7f4ec;
  --bg-alt: #efe9db;
  --ink: #1f2430;
  --muted: #4a5160;
  --line: #c9c1ae;
  --accent: #3f4f80;
  --accent-soft: #e5e1f4;
  --highlight: #d9e4d0;
  --max: 46rem;
  --fs-body: 1rem;
  --fs-meta: 0.875rem;
  --fs-h3: 1.125rem;
  --fs-h2: 1.35rem;
  --fs-h1: 1.75rem;
}

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

html {
  font-size: 112.5%; /* ~18px Basis → body wirkt wie 18px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top left, #fffdf7 0%, transparent 55%),
    linear-gradient(180deg, #fbf8f0 0%, var(--bg) 40%, #f3eee3 100%);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  color: #24325a;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(4px);
}

.site-header-inner,
.site-main,
.site-footer-inner {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 0 1rem;
}

.brand a {
  color: var(--accent);
  text-decoration: none;
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tag {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: var(--fs-meta);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: var(--fs-meta);
}

.nav-main a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.75rem 0 3rem;
}

.site-nav {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 1rem 1rem 1.25rem;
  align-self: start;
}

.site-nav h2 {
  margin: 1rem 0 0.4rem;
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.site-nav h2:first-child {
  margin-top: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0.25rem 0;
}

.site-nav a {
  text-decoration: none;
  font-size: var(--fs-body);
}

.content {
  min-width: 0;
}

.content > * {
  max-width: var(--max);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-h1);
  line-height: 1.25;
  color: var(--accent);
}

h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: var(--fs-h2);
  line-height: 1.3;
}

h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: var(--fs-h3);
}

p,
li {
  color: var(--ink);
}

.lead {
  font-size: var(--fs-h3);
  color: var(--muted);
}

.meta-note,
.ki-disclaimer,
.footnote {
  font-size: var(--fs-meta);
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
  max-width: none !important;
}

.mystic-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.9rem;
}

.mystic-card h2 {
  margin-top: 0.4rem;
  font-size: var(--fs-h3);
}

.mystic-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.portrait {
  display: block;
  margin: 0 auto;
  border-radius: 0.2rem;
}

.callout {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  background: var(--highlight);
  border-left: 4px solid var(--accent);
}

.callout h2 {
  margin-top: 0;
  font-size: var(--fs-h3);
}

.editorial {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  background: var(--accent-soft);
  border: 1px solid #c9c3dd;
}

.editorial h2 {
  margin-top: 0;
  font-size: var(--fs-h3);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ebe4d4;
  padding: 1.25rem 0 1.75rem;
  font-size: var(--fs-meta);
}

.site-footer p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none !important;
}

.download-list li {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}

.download-list h2 {
  margin: 0 0 0.35rem;
  font-size: var(--fs-h3);
}

.link-list {
  list-style: disc;
  padding-left: 1.2rem;
}

.link-list li {
  margin: 0.45rem 0;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  max-width: none !important;
}

table.simple th,
table.simple td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

table.simple th {
  background: var(--bg-alt);
}

.compare-table {
  font-size: var(--fs-meta);
}

@media (max-width: 800px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-nav {
    order: 2;
  }

  .content {
    order: 1;
  }

  h1 {
    font-size: 1.5rem;
  }
}


/* Quellentexte / lange Kapitel */
.source-text {
  max-width: none !important;
}

.source-text h1 {
  max-width: var(--max);
}

.source-chapter {
  max-width: 42rem;
  font-size: var(--fs-body);
  line-height: 1.75;
}

.source-chapter p {
  margin: 0.55rem 0;
}

.source-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-meta);
  margin: 0.75rem 0 1.25rem;
}

.source-text table th,
.source-text table td {
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

.source-text table th {
  background: var(--bg-alt);
}


/* Studien / Monografie */
.study-toc {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: var(--fs-meta);
}
.study-toc ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.study-toc li { margin: 0.25rem 0; }
.study-ref { font-size: 0.75em; vertical-align: super; }

/* Zitatziffern optisch trennen: [11][23] darf nicht wie 1123 wirken */
sup.cite {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.12em;
  margin-right: 0.18em;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
sup.cite + sup.cite {
  margin-left: 0.35em; /* Abstand zwischen aufeinanderfolgenden Ziffern */
}
sup.cite a {
  text-decoration: none;
  padding: 0 0.08em;
}
ol.footnotes {
  font-size: var(--fs-meta);
  padding-left: 1.2rem;
}
ol.footnotes li { margin: 0.35rem 0; }
ol.footnotes .fn-num {
  font-weight: 600;
  margin-right: 0.25em;
}
blockquote.primary-quote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: #fffdf8;
}
.ki-disclaimer {
  margin-top: 2rem;
  font-size: var(--fs-meta);
  color: var(--muted);
}
ol.sources { padding-left: 1.2rem; }
ol.sources li { margin: 0.4rem 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  margin: 0.45rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
}
.content.study-wide { max-width: none; }
.content.study-wide > * { max-width: var(--max); }
.content.study-wide table.simple,
.content.study-wide .study-toc { max-width: none; }
.axis-block { margin: 1.5rem 0; }
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: var(--fs-meta);
}
