/* Clever Mangos Blog. Systemschriften (keine Google Fonts → DSGVO-freundlich, schnell) */
:root {
  --mango: #f26522;
  --mango-dark: #c94e12;
  --mango-soft: #fff3eb;
  --leaf: #2f7d4f;
  --ink: #030712;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mango-dark); text-underline-offset: 3px; }
a:hover { color: var(--mango); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--mango); }
.btn { display: inline-block; background: var(--mango); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 8px; line-height: 1.2; }
.btn:hover { background: var(--mango-dark); color: #fff; }
.btn-small { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
}

/* Typo */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; margin: 12px 0 14px; }
.lead { font-size: 19px; color: #374151; margin: 0 0 22px; }
.meta { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; background: var(--mango-soft); color: var(--mango-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; }

/* Artikel */
.post { padding: 28px 0 64px; }
.breadcrumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--mango); }
.byline { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; margin-bottom: 28px; }
.byline img { border-radius: 50%; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mango); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.hero { margin: 0 auto 32px; max-width: 1000px; }
.hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 32px; font-size: 15px; }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.toc ol { margin: 10px 0 4px; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--mango); }

.prose h2 { font-size: 28px; margin: 48px 0 14px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--mango); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--mango); color: #374151; font-style: italic; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: .9em; }
.prose pre { background: var(--ink); color: #f3f4f6; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

/* Boxen  :::kurz / :::info / :::cta / :::warnung */
.box { border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; background: var(--bg-soft); border: 1px solid var(--line); }
.box > :last-child { margin-bottom: 0; }
.box-title { font-weight: 800; color: var(--ink); margin: 0 0 8px !important; }
.box-kurz { background: var(--mango-soft); border-color: #fbd3bc; }
.box-cta { background: var(--ink); border: 0; color: #e5e7eb; }
.box-cta .box-title, .box-cta strong { color: #fff; }
.box-cta a { color: #ffb48a; }
.box-warnung { background: #fef3c7; border-color: #fcd34d; }

/* Newsletter + Autor */
.newsletter { margin: 48px 0 32px; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, var(--mango-soft), #fff); border: 1px solid #fbd3bc; }
.newsletter-title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 8px; line-height: 1.3; }
.newsletter p { margin: 0 0 16px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); font-size: 15px; }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0 0 6px; }
.author-name { font-weight: 800; color: var(--ink); }

/* Übersicht */
.intro { padding: 48px 20px 24px; }
.intro .lead { max-width: 720px; }
.featured a { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; text-decoration: none; color: inherit; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.featured img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; }
.featured div { padding: 24px 28px 24px 0; }
.featured h2 { font-size: 28px; margin: 10px 0; }
.featured a:hover h2 { color: var(--mango); }
@media (max-width: 760px) { .featured a { grid-template-columns: 1fr; gap: 0; } .featured div { padding: 20px; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card a:hover { box-shadow: 0 8px 24px rgba(3,7,18,.08); transform: translateY(-2px); }
.card img, .card-placeholder { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--mango-soft); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 19px; margin: 4px 0 0; }
.card a:hover h3 { color: var(--mango); }
.card p { margin: 0; font-size: 15px; color: #4b5563; line-height: 1.55; flex: 1; }
.related { margin-top: 48px; }
.related h2 { font-size: 24px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 36px 0; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 48px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--mango); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .prose h2 { font-size: 24px; }
  .lead { font-size: 17px; }
  .newsletter { padding: 22px; }
}

/* Autor, Hubs */
.author-link { color: var(--ink); text-decoration: none; }
.author-link:hover strong { color: var(--mango); }
.hub-link { font-weight: 600; margin: 32px 0 0; padding: 14px 18px; border-left: 4px solid var(--mango); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.hub-intro { margin-bottom: 40px; }
.hubs { margin: 8px auto 40px; }
.hubs h2 { font-size: 24px; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hub-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: 15px; line-height: 1.45; }
.hub-list a:hover { border-color: var(--mango); }
.hub-list strong { color: var(--ink); font-size: 17px; }
.author-hero { padding-top: 32px; }
.author-hero .avatar-lg, .author-hero img { width: 96px; height: 96px; font-size: 28px; border-radius: 50%; margin-top: 16px; }
.author-links { display: flex; gap: 16px; }
