/* Einheitliche Serifen-Typografie: Source Serif 4 trägt alle Text- und
   Bedienelemente, Courier Prime bleibt als serifenbetonte Monospace-Schrift
   ausschließlich dem Code vorbehalten. */
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-prime-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-prime-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f1e8;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffdf9;
  --surface-muted: #efe5d6;
  --surface-elevated: rgba(255, 251, 245, 0.92);
  --border: rgba(93, 74, 51, 0.14);
  --border-strong: rgba(93, 74, 51, 0.22);
  --text: #2b241d;
  --text-muted: #665746;
  --heading: #18120d;
  --accent: #9d5c2f;
  --accent-strong: #7f451f;
  --accent-soft: rgba(157, 92, 47, 0.12);
  --shadow: 0 20px 60px rgba(60, 37, 17, 0.08);
  --content-width: 76rem;
  --prose-width: 54rem;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --font-serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-mono: "Courier Prime", "Courier New", Courier, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --bg-soft: #1d1915;
    --surface: rgba(31, 27, 23, 0.82);
    --surface-strong: #25201b;
    --surface-muted: #2c261f;
    --surface-elevated: rgba(37, 31, 27, 0.92);
    --border: rgba(226, 210, 191, 0.12);
    --border-strong: rgba(226, 210, 191, 0.2);
    --text: #ede2d4;
    --text-muted: #c6b6a3;
    --heading: #fff7ee;
    --accent: #d59b68;
    --accent-strong: #ebb384;
    --accent-soft: rgba(213, 155, 104, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 224, 192, 0.85), transparent
    34%),
    radial-gradient(circle at top right, rgba(225, 214, 193, 0.65), transparent
    28%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 48%, #f1e8da 100%);
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at top left, rgba(117, 79, 48, 0.22), transparent
      30%),
      radial-gradient(circle at top right, rgba(99, 82, 62, 0.16), transparent
      26%),
      linear-gradient(180deg, #1c1814 0%, var(--bg) 46%, #110f0d 100%);
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

body::before {
  width: 22rem;
  height: 22rem;
  left: -7rem;
  top: 5rem;
  background: rgba(214, 173, 119, 0.28);
}

body::after {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: 20rem;
  background: rgba(172, 127, 82, 0.15);
}

main {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.8rem;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-top: 2.8rem;
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  margin-top: 2.2rem;
}

h4 {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
}

h5,
h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

p,
ul,
ol,
table,
blockquote,
pre {
  margin: 0 0 1.35rem;
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(127, 69, 31, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, text-decoration-color 180ms ease, transform
    180ms ease;
}

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

strong,
b {
  font-weight: 600;
  color: var(--heading);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

code {
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  background: rgba(70, 49, 27, 0.08);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

@media (prefers-color-scheme: dark) {
  code {
    background: rgba(255, 245, 233, 0.08);
  }
}

pre {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(43, 36, 29, 0.04);
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
  pre {
    background: rgba(255, 245, 233, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
}

pre > code {
  all: unset;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  line-height: 1.7;
}

blockquote {
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 250, 243, 0.75);
  color: var(--heading);
  font-size: 1.05rem;
}

@media (prefers-color-scheme: dark) {
  blockquote {
    background: rgba(255, 245, 233, 0.05);
  }
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

table {
  display: block;
  overflow-x: auto;
  border-spacing: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.72);
}

@media (prefers-color-scheme: dark) {
  table {
    background: rgba(255, 245, 233, 0.03);
  }
}

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

th {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(70, 49, 27, 0.03);
}

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

small {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--text-muted);
}

textarea,
input,
button {
  font: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
}

.surface-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.sr-only {
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  main {
    width: min(var(--content-width), calc(100% - 1.5rem));
    padding-top: 1.75rem;
  }
}

@media (max-width: 640px) {
  body::before,
  body::after {
    display: none;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  table {
    border-radius: var(--radius-sm);
  }
}

/* --------------------------------------------------------------------------
   TrendRadar layout
   Übernommen aus dem Losamol-Stil (Header, Footer, Hero, Artikel, Prosa).
   -------------------------------------------------------------------------- */

.site-header {
  padding: 1rem 0 0;
}

.site-nav {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 38px rgba(60, 37, 17, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.brand-copy {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.internal-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero {
  padding: clamp(1rem, 2vw, 1.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.95fr);
  gap: 1.4rem;
  align-items: stretch;
  margin-bottom: 1.8rem;
}

.hero-copy,
.hero-featured {
  padding: clamp(1.1rem, 2.5vw, 2rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 40rem;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.button {
  background: var(--heading);
  color: var(--bg);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.secondary-link {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--heading);
}

.secondary-link:hover {
  border-color: var(--border-strong);
}

.hero-featured {
  border-radius: calc(var(--radius-lg) - 10px);
  background: linear-gradient(180deg, var(--surface-elevated),
    var(--surface-muted));
  border: 1px solid var(--border);
  display: grid;
  gap: 1rem;
}

.hero-featured p {
  margin: 0;
}

.hero-featured h2 {
  margin-bottom: 0;
}

a.hero-featured {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

a.hero-featured:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.meta {
  font-family: var(--font-serif);
  font-size: 0.83rem;
  color: var(--text-muted);
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem;
}

.grid-card {
  grid-column: span 6;
  padding: 0.9rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.grid-card > a {
  display: grid;
  gap: 1rem;
  text-decoration: none;
}

.grid-card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  box-shadow: none;
}

.grid-copy {
  padding: 0.35rem 0.25rem 0.55rem;
}

.grid-copy h3 {
  font-size: clamp(1.22rem, 1.9vw, 1.5rem);
  margin-top: 0;
}

.grid-copy p {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.section-head {
  margin: 0 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.article-shell {
  display: grid;
  gap: 1.6rem;
}

.hero-image {
  padding: 1rem;
  width: 100%;
}

.hero-image img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  box-shadow: none;
}

.article-intro {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.95fr);
  gap: 2rem;
  align-items: end;
}

.title-block {
  padding: 1.6rem;
}

.title-block p:not(.eyebrow) {
  max-width: 38rem;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.title-block h1 {
  margin-bottom: 0.9rem;
}

.meta-card {
  padding: 1.6rem;
  border-radius: calc(var(--radius-lg) - 10px);
  background: linear-gradient(180deg, var(--surface-elevated),
    var(--surface-muted));
  border: 1px solid var(--border);
  font-family: var(--font-serif);
}

.meta-label,
.meta-value,
.last-updated-on {
  margin: 0;
}

.meta-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-value {
  margin: 0.35rem 0 0.7rem;
  font-size: 1rem;
  color: var(--heading);
}

.author-name {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--heading);
}

.last-updated-on {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.prose {
  width: min(var(--prose-width), 100%);
  margin: 0 auto;
  padding: 0 0.4rem;
}

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 6rem;
}

.prose p + h2,
.prose ul + h2,
.prose table + h2 {
  margin-top: 3.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.75rem;
}

.prose img {
  margin: 1.75rem auto;
}

.disclosure,
.draft-banner {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 0.88rem;
}

.disclosure {
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
}

.draft-banner {
  border: 1px dashed var(--accent);
  color: var(--accent-strong);
  margin-bottom: 1.5rem;
}

.source-list {
  padding-left: 1.2rem;
}

.source-list li {
  margin-bottom: 0.65rem;
}

.empty {
  color: var(--text-muted);
  font-style: italic;
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-shell {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-label,
.footer-copy {
  margin: 0;
}

.footer-label {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--heading);
}

.footer-copy {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--heading);
}

@media (prefers-color-scheme: dark) {
  .site-nav {
    background: rgba(28, 24, 20, 0.94);
    border-color: rgba(235, 219, 201, 0.16);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  }

  .brand-mark {
    color: #fffaf2;
  }

  .brand-copy {
    color: #dccbbb;
  }
}

@media (max-width: 960px) {
  .hero,
  .article-intro {
    grid-template-columns: 1fr;
  }

  .grid-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-nav,
  .footer-shell {
    width: min(var(--content-width), calc(100% - 1.5rem));
  }
}

@media (max-width: 720px) {
  .site-nav {
    border-radius: var(--radius-md);
    padding: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-copy {
    white-space: normal;
  }

  .hero,
  .grid-card {
    padding: 0.9rem;
  }

  .hero-copy,
  .hero-featured,
  .title-block,
  .meta-card {
    padding: 1rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .prose {
    padding: 0 0.1rem;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.25rem;
  }
}

.page-panel {
  padding: clamp(1.1rem, 2.5vw, 2rem);
}

.grid-section > .empty {
  grid-column: 1 / -1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--heading);
}

.breadcrumbs .sep {
  opacity: 0.45;
}

.breadcrumbs [aria-current="page"] {
  color: var(--heading);
}
