/* Homepage remains the reference: pale ground, dark title, accent word. */
:is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-top,.preview-hero){background:var(--paper-light);color:var(--ink)}
:is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-top,.preview-hero) h1{color:var(--petrol-dark)}
:is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-top,.preview-hero) h1 em{color:var(--copper);font-style:normal}
.navigation-intro h1{hyphens:none}
.section.paper.blog-section{background:#fff}
/* Shared title typography and spacing, based on the Themen page. */
body:not(.home-personal) :is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-header,.preview-hero) h1{max-width:950px;margin:0;font-size:clamp(2rem,4vw,3.4rem);line-height:1.16;hyphens:none}
body:not(.home-personal) :is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-header,.preview-hero) .lead{max-width:850px;margin:1rem 0 1.15rem;font-size:1.12rem;line-height:1.58}
body:not(.home-personal) :is(.breadcrumbs,.bio-breadcrumb,.article-top>.back-link){display:flex;flex-wrap:wrap;gap:.45rem;color:var(--copper);font:800 .76rem/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
body:not(.home-personal) :is(.breadcrumbs,.bio-breadcrumb) a{color:inherit;text-decoration:none}
body:not(.home-personal) :is(.breadcrumbs,.bio-breadcrumb) a:hover{text-decoration:underline}
body:not(.home-personal) .breadcrumbs{padding-top:1.5rem}
body:not(.home-personal) :is(.page-hero,.knowledge-hero,.navigation-intro,.preview-hero){padding-block:1rem 1.5rem;margin-bottom:2rem}
body:not(.home-personal) .bio-hero{padding-block:1.5rem;margin-bottom:2rem}
body:not(.home-personal) .bio-breadcrumb{padding:0;margin:0 0 1rem}
@media(max-width:700px){
 body:not(.home-personal) :is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-header,.preview-hero) .lead{font-size:1rem}
 body:not(.home-personal) :is(.breadcrumbs,.bio-breadcrumb,.article-top>.back-link){font-size:.66rem;letter-spacing:.06em}
 body:not(.home-personal) .breadcrumbs{padding-top:1rem}
 body:not(.home-personal) :is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.preview-hero){margin-bottom:1.5rem}
 body:not(.home-personal) .bio-hero{padding-top:1rem}
}
.topic-navigation .navigation-intro{margin-bottom:2rem}
@media(max-width:700px){.topic-navigation .navigation-intro{margin-bottom:1.5rem}}
/* White content canvas; retain the selected pale colour in the title band. */
/* One content gap, rather than adding hero margin and layout padding. */
body:not(.home-personal) .knowledge-hero{margin-bottom:0}
.knowledge-layout{padding-top:2rem}
.knowledge-index{top:95px}
.knowledge-prose>section{scroll-margin-top:100px;margin-top:2.8rem}
.article-body :is(h2,h3),main section[id]{scroll-margin-top:100px}
body:not(.home-personal) .page-hero+.section{padding-top:0}
@media(max-width:850px){.knowledge-layout{grid-template-columns:1fr;gap:1.5rem}.knowledge-index{position:static}}
@media(max-width:550px){.knowledge-prose>section{margin-top:2rem}}
@media(max-width:700px){.knowledge-layout{padding-top:1.5rem}}
/* Full-width blue divider, including title bands inside a shell. */
:is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-top,.preview-hero,.hp-intro){position:relative;border-bottom:0}
:is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-top,.preview-hero,.hp-intro)::after{content:'';position:absolute;bottom:0;left:calc(50% - 50vw);width:100vw;height:1px;background:#b5cbf5;pointer-events:none}
body:not(.home-personal){background:#fff;background-image:none}
body:not(.home-personal) :is(.page-hero,.knowledge-hero,.bio-hero,.navigation-intro,.article-top,.preview-hero,.breadcrumbs){box-shadow:0 0 0 100vmax var(--paper-light);clip-path:inset(0 -100vmax);background-color:var(--paper-light)}
/* Shared card surfaces: pale title colour, deeper blue on interaction. */
body :is(.theme-grid .theme-entry,.question-grid .question-card,.hp-topics>a,.knowledge-card-grid a,.article-card,.topic-card){background:var(--paper-light);transition:background .18s,border-color .18s}
body :is(.theme-grid .theme-entry,.question-grid .question-card,.hp-topics>a,.knowledge-card-grid a,.article-card,.topic-card):is(:hover,:focus-visible,:focus-within){background:var(--paper);border-color:#f06400;box-shadow:none}
/* Compact blog cards, with uncropped imagery and no motion. */
body .article-card{min-height:160px;grid-template-columns:150px minmax(0,1fr);box-shadow:none;transform:none}
body .article-card:hover{transform:none;box-shadow:none}
body .article-card-copy{padding:.85rem 1rem}
body .article-thumb{min-height:0;display:flex;align-items:center}
body .article-thumb picture{height:auto}
body .article-thumb img,body .article-thumb picture img,body .article-card:hover .article-thumb img{width:100%;height:auto;object-fit:contain;aspect-ratio:auto;transform:none;filter:none;transition:none}
@media(max-width:520px){body .article-card{grid-template-columns:100px minmax(0,1fr);min-height:0}body .article-card-copy{padding:.75rem}}
/* Mobile thumbnails fill the narrow image column without letterboxing. */
@media(max-width:520px){
body .article-card .article-thumb{position:relative;align-self:stretch;overflow:hidden;aspect-ratio:auto}
body .article-card .article-thumb picture{position:absolute;inset:0;display:block;width:100%;height:100%}
body .article-card .article-thumb img,body .article-card:hover .article-thumb img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;aspect-ratio:auto}
}
/* Extend the existing title link over the complete blog card. */
body .article-card{position:relative;cursor:pointer}
body .article-card h2 a::after{content:'';position:absolute;inset:0;z-index:2;border-radius:inherit}
body .article-card:focus-within{outline:2px solid #f06400;outline-offset:3px}
body .article-card-grid{gap:1.25rem}
body .article-card::after{content:'↗';position:absolute;top:.75rem;right:.85rem;color:var(--copper);font-size:1.3rem;line-height:1;pointer-events:none}
body .article-card .article-meta{padding-right:1.5rem}
body .article-shell{padding-top:0}
body .article-top{padding-top:1.5rem;padding-bottom:2rem}
body .article-top h1 em{color:inherit;font-style:normal}
body .blog-hero h1 em{color:var(--copper);font-style:normal}
@media(max-width:700px){body .article-top{padding-top:1rem;padding-bottom:1.5rem}}
body .article-top>.article-breadcrumb{grid-column:1/-1;padding-top:0;margin:0 0 .25rem;box-shadow:none;clip-path:none;overflow-wrap:anywhere}
@media(max-width:820px){body .article-top>.article-breadcrumb{margin-bottom:1rem}}
body .chronology-navigation>:first-child{order:2;text-align:right;align-items:flex-end}
body .chronology-navigation>:nth-child(2){order:1;text-align:left;align-items:flex-start}
body .chronology-navigation a{background:var(--paper-light);transition:background .18s,border-color .18s}
body .chronology-navigation a:is(:hover,:focus-visible){background:var(--paper);border-color:#f06400;transform:none;box-shadow:none}
body .chronology-navigation a:first-child small::after{content:' →';font-size:1rem}
body .chronology-navigation a:nth-child(2) small::before{content:'← ';font-size:1rem}
/* Blog filters use the same quiet navigation language as the header. */
body .category-strip{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.75rem;padding:0 0 1rem;border-bottom:1px solid var(--line)}
body .category-strip button{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:.65rem .85rem;border:1px solid transparent;border-bottom:3px solid transparent;border-radius:9px;background:var(--paper-light);color:var(--petrol-dark);font-family:inherit;font-size:.88rem;font-weight:600;line-height:1.3;letter-spacing:0;cursor:pointer;transition:background .18s,border-color .18s;transform:none}
body .category-strip button b{display:inline-grid;place-items:center;min-width:1.35rem;height:1.35rem;padding:0 .25rem;border-radius:5px;background:var(--paper);color:var(--muted);font-family:inherit;font-size:.72rem;font-weight:500;line-height:1}
body .category-strip button:hover{background:var(--paper);border-bottom-color:#f06400;transform:none}
body .category-strip button[aria-pressed="true"]{background:#fff0e4;color:#a33e00;border-bottom-color:#f06400}
body .category-strip button[aria-pressed="true"] b{background:#ffe0c7;color:#8e3600}
body .category-strip button:focus-visible{outline:2px solid #f06400;outline-offset:3px}
@media(max-width:600px){body .category-strip{gap:.4rem}body .category-strip button{font-size:.82rem;padding:.55rem .7rem}}
body .category-strip button{border-width:1px}
body .category-strip button:hover,body .category-strip button[aria-pressed="true"]{border-color:#f06400}
.contact-reveal{font:inherit;color:var(--petrol-dark);background:var(--paper-light);border:1px solid var(--line);border-radius:8px;padding:.65rem 1rem;cursor:pointer}
.contact-reveal:hover{background:var(--paper);border-color:#f06400}
.contact-reveal:focus-visible{outline:2px solid #f06400;outline-offset:3px}
/* Decorative topic marker: outside document flow, no heading displacement. */
body :is(.knowledge-hero,.page-hero,.navigation-intro):has(>.topic-hero-icon){position:relative}
.topic-hero-icon{position:absolute;top:8px;left:calc(50% + min((100vw - 2.5rem)/2,var(--max)/2));right:auto;transform:translateX(-100%);width:44px;height:44px;color:var(--petrol-dark);pointer-events:none}
.topic-hero-icon svg{display:block;width:100%;height:100%}
@media(max-width:700px){.topic-hero-icon{top:0;left:calc(50% + (100vw - 2.5rem)/2);width:22px;height:22px}}
/* Gemeinsamer Werkstatt-Hintergrund; Titelbänder behalten ihre Fläche. */
body.home-personal main,body:not(.home-personal){
  background-color:#fcfcfa;
  background-image:linear-gradient(rgba(42,86,139,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(42,86,139,.018) 1px,transparent 1px),linear-gradient(90deg,transparent,white max(0px,calc(50% - 600px)),white calc(50% + 600px),transparent),url('/assets/workshop-notes.svg'),linear-gradient(rgba(42,86,139,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(42,86,139,.045) 1px,transparent 1px);
  background-size:24px 24px,24px 24px,100% 100%,max(1600px,100%) auto,24px 24px,24px 24px;
  background-position:center top;
  background-repeat:repeat,repeat,no-repeat,repeat-y,repeat,repeat;
}
body.home-personal main>.hp-light{background:transparent}
body.home-personal .hp-intro{background:var(--paper-light);box-shadow:0 0 0 100vmax var(--paper-light);clip-path:inset(0 -100vmax)}
@media(max-width:700px){
  body.home-personal main,body:not(.home-personal){background-image:linear-gradient(rgba(42,86,139,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(42,86,139,.018) 1px,transparent 1px),linear-gradient(90deg,transparent,#fff 16px,#fff calc(100% - 16px),transparent),url('/assets/workshop-notes.svg'),linear-gradient(rgba(42,86,139,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(42,86,139,.045) 1px,transparent 1px);background-size:20px 20px,20px 20px,100% 100%,900px 1100px,20px 20px,20px 20px}
}
/* Buttons bleiben bei Hover und Tastaturfokus an ihrer Position. */
body .button,body .button:hover,body .button:focus-visible,
body .blog-pagination button:hover:not(:disabled),body .blog-pagination button:focus-visible{transform:none}
body .button{transition:background .18s,border-color .18s,color .18s}

/* Inhaltsflächen lassen das Papier durchscheinen; Karten und Titel unverändert. */
body:not(.home-personal) main,body:not(.home-personal) main>.section:not(.petrol){background:transparent}
/* Kontaktabschluss: durchgehendes Titelblau mit oberer Trennlinie. */
body.home-personal .hp-end{position:relative;background:var(--paper-light);box-shadow:0 0 0 100vmax var(--paper-light);clip-path:inset(0 -100vmax)}
body.home-personal .hp-end::before{content:'';position:absolute;top:0;left:calc(50% - 50vw);width:100vw;height:1px;background:#b5cbf5;pointer-events:none}

/* Themenüberschriften bleiben einfarbig, auch auf den Inhalts-Unterseiten. */
body.topic-navigation h1 em,
body:has(.breadcrumbs a[href="/themen/"]) main h1 em{color:inherit;font-style:normal}

/* Gezielt hervorgehobene Wörter auf den Themenübersichten. */
body.topic-navigation main .navigation-intro h1 em.hero-word{color:var(--copper);font-style:normal}
