/* Trainingslogik Blog – shares the design tokens of the app (src/styles.css). */
:root {
  color-scheme: light;
  --ink: #123c3b;
  --ink-deep: #092d2d;
  --ink-soft: #275653;
  --text: #173432;
  --muted: #667b78;
  --accent: #b8e986;
  --accent-strong: #89c851;
  --accent-soft: #eef9df;
  --peach: #ffb68f;
  --peach-soft: #fff0e7;
  --sky: #dceef0;
  --cream: #f6f4ec;
  --surface-soft: #f8faf7;
  --border: #dce5e1;
  --border-strong: #c9d7d1;
  --success: #34774a;
  --shadow-sm: 0 8px 24px rgba(18, 60, 59, 0.07);
  --shadow-md: 0 18px 50px rgba(18, 60, 59, 0.11);
  --page-width: 1220px;
  font-family: "Avenir Next", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 50% -220px, rgba(184, 233, 134, .34), transparent 620px), var(--cream);
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid rgba(137, 200, 81, .45); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.02em; }

.shell { width: min(var(--page-width), calc(100% - 48px)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--light { color: var(--accent); }

.button { border: 0; border-radius: 999px; padding: 13px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; line-height: 1.15; text-align: center; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(18, 60, 59, .22); }
.button--primary:hover { background: var(--ink-deep); box-shadow: 0 14px 32px rgba(18, 60, 59, .28); }
.button--dark { background: var(--ink); color: #fff; }
.button--accent { background: var(--accent); color: var(--ink-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.button--large { min-height: 54px; padding: 17px 25px; font-size: 1rem; }
.button--small { min-height: 42px; padding: 12px 17px; font-size: .875rem; }
.button svg { flex: 0 0 auto; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-weight: 750; }
.text-link:hover { color: var(--ink-deep); }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(246, 244, 236, .86); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(18, 60, 59, .08); }
.site-nav__inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-nav nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav nav a { color: var(--ink-soft); font-size: .9rem; font-weight: 650; }
.site-nav nav a:hover, .site-nav nav a[aria-current] { color: var(--ink-deep); }
.site-nav nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent-strong); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.brand { display: inline-flex; align-items: baseline; color: var(--ink-deep); font-size: 1.58rem; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
.brand__strong { font-weight: 760; }
.brand__light { font-weight: 480; opacity: .92; }

/* Blog index */
.blog-hero { padding-block: 74px 46px; text-align: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 9px; margin-bottom: 23px; border: 1px solid rgba(18, 60, 59, .12); border-radius: 999px; background: rgba(255, 255, 255, .56); color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.hero-pill > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 5px rgba(137, 200, 81, .16); }
.blog-hero h1 { max-width: 820px; margin: 0 auto 20px; color: var(--ink-deep); font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.blog-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }

.post-list { padding-block: 10px 80px; }
.post-list__heading { margin: 64px 0 22px; color: var(--ink-deep); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-list__empty { padding: 40px; border: 1px dashed var(--border-strong); border-radius: 24px; color: var(--muted); text-align: center; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 200ms ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; }
.post-card h2, .post-card h3 { margin: 0; color: var(--ink-deep); line-height: 1.14; }
.post-card h3 { font-size: 1.3rem; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent-strong); text-underline-offset: 5px; }
.post-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.post-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card--featured { border: 0; border-radius: 34px; background: linear-gradient(125deg, #dcefe3, #e7edd7 60%, #f5e5d8); }
.post-card--featured h2, .post-card--featured p { max-width: 820px; }
.post-card--featured .post-card__copy { justify-content: center; gap: 16px; padding: clamp(26px, 4vw, 52px); }
.post-card--featured h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); letter-spacing: -.035em; }
.post-card--featured p { font-size: 1.05rem; }

/* Article */
.post-hero { padding-block: 44px 36px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.breadcrumb a:hover { color: var(--ink-deep); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-soft); }
.post-hero h1 { max-width: 940px; margin-bottom: 20px; color: var(--ink-deep); font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.post-hero__lead { max-width: 760px; margin-bottom: 28px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.6; }
.post-meta { display: flex; align-items: center; gap: 13px; }
.post-meta__avatar { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: .85rem; font-weight: 800; letter-spacing: .02em; }
.post-meta div > strong, .post-meta div > span { display: block; }
.post-meta strong { color: var(--ink-deep); font-size: .95rem; }
.post-meta div > span { color: var(--muted); font-size: .84rem; }

.post-layout { display: grid; grid-template-columns: 270px minmax(0, 760px); justify-content: space-between; gap: 56px; padding-block: 34px 90px; border-top: 1px solid rgba(18, 60, 59, .1); }
.post-aside { position: sticky; top: 104px; align-self: start; display: grid; gap: 16px; }
.toc { padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255, 255, 255, .72); }
.toc strong { display: block; margin-bottom: 12px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 7px 8px; border-radius: 10px; color: var(--ink-soft); font-size: .86rem; font-weight: 650; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent-strong); font-size: .7rem; font-weight: 800; line-height: 1.7; }
.toc a:hover { background: var(--accent-soft); color: var(--ink-deep); }
.aside-cta { padding: 22px; border-radius: 22px; background: var(--accent-soft); border: 1px solid #d8eebd; }
.aside-cta strong { display: block; color: var(--ink-deep); font-size: 1.05rem; line-height: 1.25; }
.aside-cta p { margin: 6px 0 14px; color: var(--ink-soft); font-size: .84rem; }
.aside-cta .button { width: 100%; }

.takeaways { margin-bottom: 40px; padding: 26px 28px; border: 1px solid #d8eebd; border-radius: 24px; background: var(--accent-soft); }
.takeaways h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--ink-deep); font-size: 1.22rem; }
.takeaways h2 svg { color: var(--success); }
.takeaways ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.takeaways li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--ink-soft); line-height: 1.5; }
.takeaways li svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #fff; color: var(--success); }

.prose { color: var(--text); font-size: 1.09rem; line-height: 1.78; overflow-wrap: break-word; }
.prose > p:first-child { color: var(--ink-deep); font-size: 1.22rem; line-height: 1.65; }
.prose p { margin-bottom: 1.15em; }
.prose h2 { margin: 2.3em 0 .6em; color: var(--ink-deep); font-size: clamp(1.65rem, 3.1vw, 2.25rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.prose h3 { display: flex; align-items: center; gap: 12px; margin: 1.9em 0 .55em; color: var(--ink-deep); font-size: 1.32rem; line-height: 1.25; }
.h-num { flex: 0 0 auto; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--ink-deep); font-size: .95rem; font-weight: 800; }
.prose a { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink-deep); text-decoration-color: var(--ink); }
.prose strong { color: var(--ink-deep); }
.prose ul, .prose ol { display: grid; gap: .55em; margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 30px; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px rgba(137, 200, 81, .18); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 13px 15px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, .7); }
.prose ol > li::before { content: counter(step); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--accent); font-size: .9rem; font-weight: 800; line-height: 1; }

.table-wrap { margin: 0 0 1.5em; overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.prose table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .98rem; line-height: 1.45; }
.prose th { padding: 15px 20px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.prose td { padding: 15px 20px; border-top: 1px solid var(--border); vertical-align: top; }
.prose td:first-child { color: var(--ink-deep); font-weight: 750; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: var(--surface-soft); }

.callout { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin: 1.6em 0; padding: 20px 22px; border: 1px solid #f6d6c3; border-radius: 20px; background: var(--peach-soft); }
.callout__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--peach); color: #6f3413; }
.callout p { margin: 0; color: #5a3320; font-size: 1rem; line-height: 1.6; }
.callout strong { color: #4a2715; }

.faq { display: grid; gap: 12px; margin-bottom: 1.3em; }
.faq__item { padding: 22px 24px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.faq__item h3 { margin: 0 0 8px; font-size: 1.14rem; }
.faq__item p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.faq__item p + p { margin-top: .8em; }

.cta-row { margin: 1.8em 0 0; }
.prose .cta-row a { color: #fff; text-decoration: none; }

.sources { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); }
.sources h2 { margin-bottom: 10px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sources ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .92rem; }
.sources a { text-decoration: underline; text-decoration-color: var(--accent-strong); text-underline-offset: 3px; }

.post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255, 255, 255, .7); }
.post-footer .text-link { font-size: .86rem; }

/* Call to action band */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-bottom: 100px; padding: clamp(34px, 6vw, 72px); border-radius: 40px; background: var(--ink); color: #fff; }
.cta-band h2 { margin: 14px 0 14px; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.cta-band p { max-width: 560px; margin-bottom: 26px; color: rgba(255, 255, 255, .72); line-height: 1.7; }
.cta-band__orbit { position: relative; width: 220px; height: 220px; margin-right: 50px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255, 255, 255, .05), 0 0 0 76px rgba(255, 255, 255, .03); }
.cta-band__orbit::before { content: ""; position: absolute; inset: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); }
.cta-band__orbit span { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.cta-band__orbit span:nth-child(1) { top: 8px; left: 52px; }
.cta-band__orbit span:nth-child(2) { right: 4px; bottom: 54px; background: var(--peach); }
.cta-band__orbit span:nth-child(3) { left: 6px; bottom: 46px; background: #fff; }

/* Footer */
.site-footer { border-top: 1px solid rgba(18, 60, 59, .1); }
.site-footer__inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 26px; }
.site-footer p { max-width: 560px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; color: var(--ink-soft); font-size: .8rem; font-weight: 650; }
.site-footer nav a:hover { color: var(--ink-deep); text-decoration: underline; }

@media (max-width: 1040px) {
  .post-layout { grid-template-columns: minmax(0, 760px); justify-content: center; gap: 30px; padding-top: 36px; }
  .post-aside { position: static; }
  .aside-cta { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__orbit { display: none; }
}

@media (max-width: 820px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .site-nav__inner { height: 68px; gap: 12px; }
  .site-nav nav { display: none; }
  .brand { font-size: 1.22rem; }
  .site-nav .button { padding-inline: 14px; font-size: .78rem; }
  .site-nav .button svg { display: none; }
  .blog-hero { padding-block: 44px 30px; }
  .blog-hero p { font-size: 1rem; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card__copy { padding: 22px; }
  .post-hero { padding-block: 26px 26px; }
  .breadcrumb { margin-bottom: 18px; }
  .post-layout { padding-block: 26px 60px; }
  .takeaways { padding: 20px; border-radius: 20px; }
  .prose { font-size: 1.03rem; line-height: 1.72; }
  .prose > p:first-child { font-size: 1.12rem; }
  .prose h3 { font-size: 1.2rem; }
  .prose table { min-width: 0; font-size: .92rem; }
  .prose td, .prose th { padding: 12px 13px; }
  .prose td:first-child { width: 38%; white-space: normal; }
  .faq__item { padding: 18px; }
  .callout { grid-template-columns: 1fr; padding: 18px; }
  .cta-row .button { width: 100%; }
  .cta-band { margin-bottom: 60px; border-radius: 28px; }
  .cta-band .button { width: 100%; }
  .post-footer { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .post-card { transition: none; }
}

@media print {
  .site-nav, .post-aside, .cta-band, .site-footer nav { display: none; }
  body { background: #fff; }
  .post-layout { display: block; }
}
