/* Tracelle Ratgeber – shared styles (built pages in /ratgeber/) */
@font-face { font-family: "Hanken Grotesk"; font-weight: 300; font-display: swap; src: url("/assets/fonts/hanken-grotesk-300.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk-600.woff2") format("woff2"); }
:root {
  --bg: #F4F6F5; --surface: #FFFFFF; --surface-alt: #EDF1F0; --text: #161C1D; --muted: #596466; --faint: #88918F;
  --border: #E1E6E5; --petrol: #0F6B6B; --petrol-deep: #0A4F4F; --petrol-subtle: #DDEBE8; --coral: #E8896B;
  --shadow: 16, 50, 52; --radius-s: 12px; --radius-m: 20px; --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65;
       background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--petrol); }
:focus-visible { outline: 2.5px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4.5vw, 64px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--petrol); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { left: 12px; }

/* header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 245, .9); backdrop-filter: saturate(1.4) blur(14px);
              -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.wordmark { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: var(--petrol); }
.wordmark span { color: var(--coral); }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; text-decoration: none;
       height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 999px; background: var(--petrol); color: #fff; }
.btn:hover { background: var(--petrol-deep); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 24px) 80px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.overline { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.article h1 { font-weight: 300; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 12px 0 18px; text-wrap: balance; }
.byline { font-size: 14.5px; color: var(--muted); }
.byline a { color: var(--muted); }
.tldr { margin: 32px 0 8px; background: var(--petrol-subtle); border-radius: var(--radius-m); padding: 22px 24px; }
.tldr strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol-deep); margin-bottom: 6px; }
.tldr p { color: var(--text); }
.prose { margin-top: 28px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 44px; text-wrap: balance; }
.prose h3 { font-weight: 600; font-size: 18px; margin-top: 28px; }
.prose p, .prose li { color: #2D3739; text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose blockquote { background: var(--surface); border-left: 4px solid var(--coral); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 16px 20px; }
.prose .table-wrap { overflow-x: auto; border-radius: var(--radius-s); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--surface); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-alt); font-weight: 600; }
.prose .sources ol, .prose ol.sources { font-size: 14.5px; }
.prose .sources li, .prose ol.sources li { color: var(--muted); word-break: break-word; }
.box { margin-top: 40px; border-radius: var(--radius-m); padding: 22px 24px; }
.box.disclaimer { background: var(--surface-alt); font-size: 15px; color: var(--muted); }
.box.cta { background: var(--surface); border: 1px solid var(--border); }
.box.cta h2 { font-weight: 400; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.box.cta p { color: #2D3739; }
.box.cta .btn { margin-top: 14px; height: 46px; padding: 0 22px; font-size: 15.5px; }
.made { margin-top: 22px; font-size: 14px; color: var(--faint); }
.made a { color: var(--faint); }

/* hub */
.hub-head { padding-top: clamp(28px, 5vw, 64px); max-width: 760px; }
.hub-head h1 { font-weight: 300; font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 10px 0 16px; }
.hub-head p { color: var(--muted); font-size: 18px; max-width: 60ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 40px 0 90px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 22px; text-decoration: none; color: var(--text);
        display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { box-shadow: 0 14px 30px -18px rgba(var(--shadow), .45); transform: translateY(-2px); }
.card .tag { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); }
.card h2 { font-weight: 400; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--muted); }

/* footer */
footer.site { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer.site .foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); text-decoration: none; }
footer.site .disclaimer { margin-top: 18px; max-width: 80ch; font-size: 13.5px; color: var(--faint); }

/* checklists ("- [ ]" in Markdown) */
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose li.check { position: relative; padding-left: 30px; }
.prose li.check::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px;
                          border: 1.5px solid var(--petrol); border-radius: 4px; background: var(--surface); }

/* labelled app box inside an article ("So geht's in Tracelle") */
.prose .app-tip { background: var(--petrol-subtle); border-radius: var(--radius-s); padding: 16px 20px; }
.prose .app-tip > p:first-child { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol-deep); }
.prose .app-tip > * + * { margin-top: 8px; }
.prose blockquote > p:first-child > strong:first-child { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* sample doctor report (/arzt-bericht-beispiel/) – mirrors the PDF layout from the app */
.article.wide { max-width: 980px; }
.report { margin-top: 28px; display: grid; gap: 22px; }
.rpage { background: #fff; color: #1E2426; border: 1px solid var(--border); border-radius: 10px; padding: clamp(18px, 4vw, 40px);
         box-shadow: 0 18px 40px -28px rgba(var(--shadow), .5); font-family: -apple-system, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.45; }
.rpage .headrow { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; border-bottom: 2px solid #1E2426; padding-bottom: 8px; }
.rpage .right { text-align: right; }
.rpage .rt { font-size: 19px; margin: 0 0 2px; }
.rpage h4 { font-size: 12.5px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1.5px solid #1E2426; padding-bottom: 3px; }
.rpage p { margin: 5px 0; }
.rpage .muted { color: #666; font-size: 11.5px; }
.rpage .ident { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 10px; line-height: 1.7; }
.rpage .tw { overflow-x: auto; }
.rpage table { width: 100%; border-collapse: collapse; }
.rpage th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: #555; padding: 4px 10px 4px 0; border-bottom: 1px solid #999; }
.rpage td { font-size: 12.5px; padding: 5px 10px 5px 0; border-bottom: .5px solid #ddd; vertical-align: top; }
.rpage .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.rpage .kpi { border: 1px solid #999; border-radius: 6px; padding: 8px 10px; }
.rpage .kpiL { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: #555; }
.rpage .kpiV { font-size: 18px; font-weight: 700; margin-top: 2px; color: #999; }
.rpage .kpiS { font-size: 10px; color: #777; margin-top: 1px; }
.rpage .qbox { border: 1px solid #999; border-radius: 6px; padding: 8px 10px; }
.rpage .rchart { width: 100%; height: auto; display: block; }

/* about page */
.founder-photo { margin: 24px 0 8px; max-width: 360px; }
.founder-photo img { width: 100%; height: auto; border-radius: var(--radius-m); aspect-ratio: 4 / 5; object-fit: cover; }
.prose .signoff { font-size: 22px; font-weight: 300; letter-spacing: -0.01em; margin-top: 18px; }
.prose .small { font-size: 14px; color: var(--muted); }

/* mobile nav row (header nav is hidden below 720px) */
.nav-mobile { display: none; }
@media (max-width: 720px) {
  .nav-mobile { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
                padding: 0 clamp(18px, 4.5vw, 64px) 12px; font-size: 14px; }
  .nav-mobile::-webkit-scrollbar { display: none; }
  .nav-mobile a { color: var(--muted); text-decoration: none; font-weight: 500; }
  .nav-mobile a[aria-current="page"] { color: var(--text); }
}

/* ---------- layout v2 (15.10.2026): use the width, text next to images ---------- */
.article-wrap, .about { max-width: 1160px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(18px, 4.5vw, 48px) 90px; }
.article-wrap h1, .about h1 { font-weight: 300; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.03em; margin: 12px 0 18px; text-wrap: balance; }
.article-head { max-width: 860px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 6px; }
.article-main { max-width: 760px; min-width: 0; }
.article-main .tldr { margin-top: 18px; }
.article-aside { position: sticky; top: 88px; display: grid; gap: 16px; margin-top: 18px; }
.toc, .aside-author, .aside-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 18px 20px; font-size: 14.5px; }
.toc-title { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 22px 1fr; line-height: 1.35; }
.toc li::before { content: counter(toc); color: var(--faint); font-size: 13px; padding-top: 1px; }
.toc li + li { margin-top: 9px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--petrol); }
.aside-author { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; color: var(--muted); }
.aside-author img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; }
.aside-author a { color: var(--text); font-weight: 600; }
.aside-cta p + p { margin-top: 6px; color: var(--muted); }
.aside-cta .btn { margin-top: 14px; width: 100%; }
.prose h2 { scroll-margin-top: 90px; }
@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; margin-top: 0; }
  .aside-author, .aside-cta { display: none; }
  .toc { padding: 16px 18px; }
}

/* about page */
.about-hero { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 24px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-m); display: block; }
.about-intro .lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--text); }
.about-intro p + p { margin-top: 16px; color: #2D3739; }
.about-row { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(20px, 5vw, 72px); border-top: 1px solid var(--border);
             padding: clamp(28px, 4vw, 48px) 0; margin-top: clamp(28px, 4vw, 48px); }
.about-hero + .about-row { margin-top: clamp(40px, 6vw, 80px); }
.about-row + .about-row { margin-top: 0; }
.about-row h2 { font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.about-row p { color: #2D3739; max-width: 68ch; }
.about-row p + p { margin-top: 14px; }
.about-row a { color: var(--petrol); }
.about-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-values > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px; }
.about-values h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.about-values p { font-size: 15.5px; }
.about .signoff { font-size: 24px; font-weight: 300; margin-top: 18px; }
.about .small { font-size: 14px; color: var(--muted); }
.about-cta { max-width: 760px; }
@media (max-width: 820px) {
  .about-hero, .about-row { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
  .about-values { grid-template-columns: 1fr; }
}

/* header right side + language switch (DE/EN pages) */
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--border);
               border-radius: 999px; padding: 6px 12px; }
.lang-switch:hover { color: var(--text); border-color: var(--text); }
