/* Blog (Übersicht und Artikel). Navigation, Footer und Schlusskarte sind
   1:1 aus index.html übernommen (Stand Version 3), damit die Seiten gleich aussehen. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root { color-scheme: dark; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { background-color: #1A1B1E; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: #F0EDE6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.accent { color: #86A883; }

a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(134, 168, 131, 0.7);
  outline-offset: 2px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { width: auto; display: block; }

/* ===== Navigation (wie Startseite) ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 0;
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.site-nav-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 7px 7px 22px;
  border-radius: 999px;
  background: rgba(30, 31, 35, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  transition: max-width .45s cubic-bezier(.22,.8,.24,1), background-color .3s ease, border-color .3s ease;
}
.site-nav.is-scrolled .site-nav-inner { max-width: 860px; background: rgba(30, 31, 35, 0.82); border-color: rgba(255, 255, 255, 0.14); }
.site-nav .brand-logo { height: 28px; }
.site-nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.site-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(240, 237, 230, 0.72);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav-links a:hover { color: #F0EDE6; background-color: rgba(255, 255, 255, 0.06); }
.site-nav-links a[aria-current="page"] { color: #F0EDE6; background-color: rgba(134, 168, 131, 0.16); }
.site-nav-right { display: flex; align-items: center; gap: 10px; }
.site-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background-color: #86A883;
  color: #1A1B1E;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease;
}
.site-nav-cta:hover { background-color: #96B693; }
.site-nav-cta svg { width: 15px; height: 17px; }
.site-nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(26, 27, 30, 0.5);
  color: #F0EDE6;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.site-nav-burger svg { width: 18px; height: 18px; }
.site-nav-sheet {
  max-width: 980px;
  margin: 12px auto 0;
  padding: 8px;
  border-radius: 26px;
  background: rgba(30, 31, 35, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
}
.site-nav-sheet[hidden] { display: none; }
.site-nav-sheet > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  color: #F0EDE6;
  font-size: 17px;
  text-decoration: none;
}
.site-nav-sheet > a:hover { background: rgba(255, 255, 255, 0.05); }
.site-nav-sheet > a[aria-current="page"] { color: #A4C2A1; }
@media (max-width: 880px) {
  .site-nav { padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 0; }
  .site-nav-inner { padding: 6px 6px 6px 16px; }
  .site-nav .brand-logo { height: 24px; }
  .site-nav-links { display: none; }
  .site-nav-burger { display: inline-flex; width: 38px; height: 38px; }
  .site-nav-cta { height: 38px; padding: 0 14px; font-size: 13px; gap: 7px; }
  .site-nav-cta svg { width: 12px; height: 14px; }
}

/* QR-Fenster unter «Bald im App Store» (nur Desktop) */
.site-nav-cta-wrap { position: relative; }
.qr-pop {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 248px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(30, 31, 35, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  transition: opacity .22s ease, transform .3s cubic-bezier(.22,.8,.24,1), visibility 0s linear .3s;
}
.qr-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.site-nav-cta-wrap:hover .qr-pop,
.site-nav-cta-wrap:focus-within .qr-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .22s ease, transform .3s cubic-bezier(.22,.8,.24,1), visibility 0s;
}
.qr-tile { background: #F0EDE6; border-radius: 16px; padding: 14px; display: flex; justify-content: center; }
.qr-tile--soon { aspect-ratio: 1 / 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #1A1B1E; border: 1px dashed rgba(26, 27, 30, 0.25); }
.qr-tile--soon svg { width: 30px; height: 36px; }
.qr-tile--soon span { font-size: 18px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-align: center; }
.qr-text { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.qr-text strong { font-size: 14px; font-weight: 600; color: #F0EDE6; }
.qr-text span { font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 880px), (hover: none) { .qr-pop { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .qr-pop, .site-nav-cta-wrap:hover .qr-pop { transition: none; transform: none; }
}

/* ===== Seitenrahmen ===== */
.blog-main { max-width: 1200px; margin: 0 auto; padding: 156px 32px 0; }
@media (max-width: 880px) { .blog-main { padding: calc(env(safe-area-inset-top, 0px) + 104px) 16px 0; } }

/* ===== Gemeinsame Bausteine ===== */
.blog-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(134, 168, 131, 0.14);
  color: #A4C2A1;
  font-size: 13px;
  font-weight: 600;
}
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: rgba(240, 237, 230, 0.55); }
.blog-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 24px; background: #232428; }

/* ===== Übersicht ===== */
.blog-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(240, 237, 230, 0.55); }
.blog-head h1 { margin-top: 14px; font-size: clamp(40px, 5.4vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.blog-filters { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(240, 237, 230, 0.82);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.blog-filter:hover { border-color: rgba(255, 255, 255, 0.28); }
.blog-filter[aria-pressed="true"] { background: #86A883; border-color: #86A883; color: #1A1B1E; font-weight: 600; }

.blog-featured {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 20px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.blog-featured:hover { border-color: rgba(134, 168, 131, 0.35); background: rgba(134, 168, 131, 0.05); }
.blog-featured .blog-cover { border-radius: 20px; }
.blog-featured-body { display: flex; flex-direction: column; gap: 16px; padding-right: 20px; }
.blog-featured h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.blog-featured p { font-size: 17px; line-height: 1.55; color: rgba(240, 237, 230, 0.72); }
.blog-readmore { font-size: 15px; font-weight: 600; color: #A4C2A1; }
.blog-featured:hover .blog-readmore { color: #C0D6BE; }

.blog-all { margin-top: 96px; }
.blog-all[hidden] { display: none; }
.blog-all h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.025em; }
.blog-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.blog-card:hover { border-color: rgba(134, 168, 131, 0.35); background: rgba(134, 168, 131, 0.05); }
.blog-card .blog-cover { border-radius: 16px; }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 8px 0; }
.blog-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.blog-card p { font-size: 15px; line-height: 1.5; color: rgba(240, 237, 230, 0.65); }
.blog-empty { margin-top: 40px; font-size: 16px; color: rgba(240, 237, 230, 0.6); }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) {
  .blog-head h1 { font-size: clamp(34px, 10vw, 44px); }
  .blog-filters { margin-top: 28px; }
  .blog-featured { grid-template-columns: 1fr; gap: 22px; padding: 12px 12px 24px; border-radius: 26px; }
  .blog-featured .blog-cover { border-radius: 16px; }
  .blog-featured-body { padding: 0 8px; gap: 14px; }
  .blog-featured p { font-size: 16px; }
  .blog-all { margin-top: 64px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== Schlusskarte (wie Startseite) ===== */
.blog-end { max-width: 1080px; margin: 0 auto; padding: 120px 24px calc(env(safe-area-inset-bottom, 0px) + 40px); }
.v3-final {
  width: 100%;
  border-radius: 36px;
  background: #86A883;
  color: #1A1B1E;
  padding: clamp(40px, 6vw, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  scroll-margin-top: 110px;
}
.v3-final-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.v3-final-text h2 { margin: 0; color: #1A1B1E; font-size: clamp(34px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.v3-final-text p { margin: 0; font-size: 19px; color: rgba(26, 27, 30, 0.78); }
.v3-final-actions { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.v3-final-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; background: #1A1B1E; color: #F0EDE6; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s ease; }
.v3-final-btn:hover { background: #26272B; }
.v3-final-btn svg { width: 16px; height: 19px; flex-shrink: 0; }
.v3-final-btn:focus-visible { outline: 2px solid #1A1B1E; outline-offset: 3px; }
.blog-end--article { padding-top: 48px; }
@media (max-width: 880px) {
  .blog-end { padding: 80px 16px calc(env(safe-area-inset-bottom, 0px) + 40px); }
  .blog-end--article { padding-top: 32px; }
  .v3-final { border-radius: 28px; gap: 28px; }
  .v3-final-text h2 { font-size: clamp(30px, 9vw, 40px); }
  .v3-final-text p { font-size: 17px; }
  .v3-final-btn { height: 50px; padding: 0 20px; font-size: 15px; }
}

/* ===== Footer (wie Startseite) ===== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 72px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}
.footer-divider { width: 100%; max-width: 900px; height: 1px; background-color: rgba(240, 237, 230, 0.12); }
.made-in { margin-bottom: 12px; font-size: 17px; }
footer a { color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.2s ease; }
footer a:hover { color: #86A883; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: rgba(134, 168, 131, 0.65); transition: color 0.2s ease, background-color 0.2s ease; }
.footer-social-link svg { width: 22px; height: 22px; display: block; }
.footer-social-link:hover { color: #86A883; background-color: rgba(134, 168, 131, 0.1); }
.footer-copyright { margin-top: 14px; font-size: 13px; }
@media (max-width: 880px) { footer { gap: 32px; padding-top: 56px; } }

/* ===== Artikel ===== */
.article-head { max-width: 760px; }
/* Desktop: header as wide as the cover banner below it; the subtitle keeps a readable line length. */
@media (min-width: 881px) {
  .article-head { max-width: none; }
  .article-sub { max-width: 46em; }
  .article-cover .blog-cover { aspect-ratio: 1200 / 500; }
}
.article-crumb { display: flex; gap: 8px; font-size: 14px; color: rgba(240, 237, 230, 0.55); }
.article-crumb a { color: rgba(240, 237, 230, 0.72); text-decoration: none; }
.article-crumb a:hover { color: #A4C2A1; }
.article-head h1 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.article-sub { margin-top: 18px; font-size: 20px; line-height: 1.5; color: rgba(240, 237, 230, 0.72); text-wrap: pretty; }
.article-author { margin-top: 28px; display: flex; align-items: center; gap: 12px; }
.article-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: rgba(134, 168, 131, 0.18); color: #A4C2A1; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.article-author-text { display: flex; flex-direction: column; gap: 2px; }
.article-author-name { font-size: 15px; font-weight: 600; color: #F0EDE6; }
.article-author .blog-meta { font-size: 13px; gap: 4px 12px; }
.article-cover { margin-top: 44px; }
.article-cover .blog-cover { border-radius: 28px; }

.article-layout { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 680px) 240px; justify-content: space-between; gap: 64px; }
.article-body { min-width: 0; font-size: 18px; line-height: 1.7; color: rgba(240, 237, 230, 0.82); }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { margin-top: 56px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: #F0EDE6; scroll-margin-top: 110px; text-wrap: balance; }
.article-body h2 + p { margin-top: 16px; }
.article-body strong { color: #F0EDE6; font-weight: 600; }
.article-body ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 12px; }
.article-body ol li::marker { color: #86A883; font-weight: 600; }
.article-note { font-size: 15px; font-style: italic; line-height: 1.6; color: rgba(240, 237, 230, 0.55); }

.article-summary { padding: 28px 30px; border-radius: 24px; background: rgba(134, 168, 131, 0.08); border: 1px solid rgba(134, 168, 131, 0.24); }
.article-summary-label { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #A4C2A1; }
.article-summary-label + p { margin-top: 12px; color: #F0EDE6; }

.article-table-wrap { border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03); overflow-x: auto; }
.article-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.article-table th, .article-table td { padding: 16px 18px; text-align: right; white-space: nowrap; }
.article-table th:first-child { text-align: left; white-space: normal; min-width: 180px; }
.article-table thead th { font-size: 13px; font-weight: 600; color: rgba(240, 237, 230, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.article-table tbody tr + tr > * { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.article-table tbody th { font-weight: 400; color: rgba(240, 237, 230, 0.82); }
.article-table td { color: #F0EDE6; font-variant-numeric: tabular-nums; }

.article-filo { margin-top: 56px !important; padding: 32px; border-radius: 26px; background: #232428; border: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.article-filo img { height: 30px; width: auto; display: block; }
.article-filo h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(240, 237, 230, 0.55); }
.article-filo p { color: #F0EDE6; font-size: 19px; line-height: 1.5; margin: 0; }
.article-filo .site-nav-cta { height: 48px; padding: 0 22px; font-size: 15px; }

.article-sources { margin-top: 64px !important; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.10); font-size: 14px; line-height: 1.6; color: rgba(240, 237, 230, 0.5); }
.article-sources h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: rgba(240, 237, 230, 0.72); }
.article-sources ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.article-sources a { color: rgba(240, 237, 230, 0.72); text-decoration: underline; text-underline-offset: 2px; }
.article-sources a:hover { color: #A4C2A1; }

.article-toc { position: sticky; top: 112px; align-self: start; }
.article-toc h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(240, 237, 230, 0.55); }
.article-toc ol { margin-top: 14px; list-style: none; display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, 0.10); }
.article-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: rgba(240, 237, 230, 0.6); text-decoration: none; transition: color .2s, border-color .2s; }
.article-toc a:hover { color: #F0EDE6; }
.article-toc a.is-active { color: #A4C2A1; border-left-color: #86A883; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; }
}
@media (max-width: 880px) {
  .article-head h1 { font-size: clamp(32px, 9vw, 42px); }
  .article-sub { font-size: 18px; }
  .article-cover { margin-top: 32px; }
  .article-cover .blog-cover { border-radius: 18px; }
  .article-layout { margin-top: 40px; grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .article-body { font-size: 17px; }
  .article-body h2 { margin-top: 44px; }
  .article-summary { padding: 22px; border-radius: 20px; }
  .article-filo { padding: 24px; }
  .article-filo p { font-size: 17px; }
  .article-table th, .article-table td { padding: 14px; }
}
