/* A005 / V12 — shared light shell and existing subpages only.
   Load after site.css + integration.css. Homepage scene overrides remain separate.
   Existing local Inter @font-face declarations and all menu/reader logic remain intact. */
:root{
  --ink:#172638;--ink-70:#52606d;--ink-40:#8695a2;--ink-15:#e3e8eb;
  --accent:#172638;--accent-dark:#28435c;--accent-text:#914d28;--accent-ink:#fff;
  --bg:#f7f5f0;--bg-alt:#ecefeb;--white:#fff;--line:#7e8b96;
  --font-head:"Inter",Arial,sans-serif;--font-body:"Inter",Arial,sans-serif;
  --focus:#914d28;--focus-inverse:#eecaa9;--line-inverse:#9eacb8;
  --shell-paper:#fffdfa;--shell-copper:#a75f33;--shell-ice:#dbe8f0;
  --shell-edge:#d6d8d7;--shell-radius:20px;
  --shell-shadow:0 1px 0 #ffffff inset,0 18px 45px -32px #17263835;
  color-scheme:light;
}
html[data-ts-integration]{--ts-satin:#f7f5f0;--ts-blur:0px;--ts-radius:18px}
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);text-rendering:optimizeLegibility}
h1,h2,h3{font-family:var(--font-head);letter-spacing:-.035em}
h1,h2{font-weight:600}h3{letter-spacing:-.02em}
a{text-underline-offset:.22em;text-decoration-thickness:1px}
button,input,select,textarea{font-family:var(--font-body)}
html[data-ts-integration] :focus-visible,:focus-visible{outline:3px solid var(--focus);outline-offset:5px}
.skip-link{border-radius:0 0 12px 12px;min-height:48px}
.btn{min-height:52px;padding:15px 25px;border:1px solid var(--ink);border-radius:999px;font-size:16px;font-weight:600;line-height:1.35;gap:10px;box-shadow:0 1px 0 #ffffff70 inset;transition:background 180ms ease,color 180ms ease,box-shadow 180ms ease,transform 180ms ease}
.btn-primary{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 1px 0 #ffffff26 inset,0 8px 18px -12px #17263880}
.btn-primary:hover{background:#28435c;border-color:#28435c;box-shadow:0 1px 0 #ffffff38 inset,0 10px 24px -12px #17263866}
.btn-secondary{background:var(--shell-paper);color:var(--ink);border-color:var(--line)}
.btn-secondary:hover{background:var(--shell-ice);color:var(--ink);border-color:var(--ink)}
.btn-ghost-dark{background:transparent;color:#fff;border-color:#dbe8f0;box-shadow:none}
.btn-ghost-dark:hover{background:#fffdfa;color:var(--ink);border-color:#fffdfa}
.btn:disabled,.btn[aria-disabled="true"]{cursor:default;box-shadow:none}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{border-radius:12px;border:1px solid var(--line);min-height:48px}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--ink)}

/* Navigation: preserve existing display, ARIA, inert and WAAPI-controlled states. */
.site-header,html[data-ts-integration] .site-header{background:var(--bg);color:var(--ink);border-bottom:1px solid var(--shell-edge);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 1px 0 #ffffff inset}
.site-header.is-scrolled,html[data-ts-integration] .site-header.is-scrolled{background:var(--bg);border-bottom-color:var(--shell-edge);box-shadow:0 1px 0 #ffffff inset,0 12px 32px -27px #17263855}
html[data-ts-integration] .site-header::after{height:1px;background:linear-gradient(90deg,transparent,#ffffff 25%,#dce8ef 74%,transparent)}
.nav-row{gap:22px;height:88px}.site-header.is-scrolled .nav-row{height:64px}
.brand{gap:10px;flex-shrink:0}.brand-word{font-size:22px;font-weight:600;letter-spacing:-.06em}.brand-mark{width:25px;height:25px}
.brand-mark rect,.brand-mark path{fill:var(--ink)}
.nav-links{gap:clamp(15px,2vw,30px)}
.nav-links a,html[data-ts-integration] .nav-links a{font-size:14px;font-weight:600;color:var(--ink);min-height:48px;padding-block:12px;white-space:nowrap}
.nav-links a::after{height:2px;background:var(--shell-copper);bottom:6px;border-radius:2px}
.nav-right{gap:14px}.nav-cta{font-size:14px;padding:12px 19px;min-height:48px;white-space:nowrap}
.nav-toggle,.offcanvas__close,html[data-ts-integration] .nav-toggle,html[data-ts-integration] .offcanvas__close{width:48px;height:48px;border:1px solid var(--line);border-radius:50%;background:var(--shell-paper);color:var(--ink);box-shadow:0 1px 0 white inset}
.nav-toggle:hover,.offcanvas__close:hover{background:var(--shell-ice)}
.offcanvas__scrim{background:#172638}
.offcanvas__panel,html[data-ts-integration] .offcanvas__panel{background:var(--shell-paper);color:var(--ink);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 1px 0 #fff inset,0 32px 90px -35px #17263866;backdrop-filter:none;-webkit-backdrop-filter:none}
.offcanvas__top{margin-bottom:28px}
.offcanvas__links{gap:4px}
.offcanvas__links a,html[data-ts-integration] .offcanvas__links a{font-size:21px;font-weight:500;letter-spacing:-.025em;line-height:1.25;min-height:60px;padding:17px 12px;border:0;border-radius:10px;color:var(--ink);box-shadow:inset 0 -1px var(--shell-edge)}
.offcanvas__links a:hover,html[data-ts-integration] .offcanvas__links a:hover{color:var(--ink);background:#eaf0f3}
.offcanvas__cta{margin-top:30px;flex-shrink:0;text-align:center}
.subnav,html[data-ts-integration] .subnav{background:var(--bg);border-bottom:1px solid var(--shell-edge)}
.subnav__track{gap:28px;scroll-padding-inline:20px}
.subnav a{font-size:14px;color:var(--ink);font-weight:500}
.subnav a.is-active{color:var(--ink);border-color:var(--shell-copper)}
.ts-preview-bar{background:#eae8e2;border-color:var(--shell-edge);color:var(--ink)}
.ts-preview-bar a,.ts-preview-bar button{border-radius:999px;border-color:var(--line);background:var(--shell-paper);font-weight:500}
.ts-preview-bar button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}

/* Footer: warm, editorial and deliberately quieter than the product scenes. */
.site-footer{position:relative;background:#ece9e2;color:var(--ink);border-top:1px solid var(--shell-edge);padding-block:72px 38px}
.site-footer::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#fff 30%,#d7e6ef 75%,transparent);pointer-events:none}
.footer-grid{gap:38px 32px;margin-top:34px}
.footer-col .footer-h{font-size:14px;font-weight:600;letter-spacing:.025em;margin-bottom:14px}
.footer-col ul{gap:1px}
.footer-col a{min-height:44px;display:inline-flex;align-items:center;padding:10px 0;margin:0;color:#52606d;font-size:14px;line-height:1.5;border:0;text-decoration:none;text-underline-offset:5px;max-width:100%}
.footer-col a:hover{color:var(--ink);text-decoration:underline;text-decoration-color:var(--shell-copper)}
.footer-brand{gap:10px;margin-bottom:18px}.footer-brand .brand-word{font-size:25px}
.footer-col .caption{font-size:14px;line-height:1.65;color:#52606d}
.footer-legal{border-color:#a2a8aa;margin-top:44px;padding-top:24px;line-height:1.65;font-size:13px;color:#52606d}
.footer-changelog{font-size:13px;line-height:1.65;color:#52606d}

/* Six knowledge introductions use .hero-band. Homepage #hero is out of scope. */
.hero-band{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);column-gap:40px;max-width:1280px;min-height:460px;height:auto;max-height:none;margin:40px auto 0;padding:0 24px;background:var(--bg);overflow:visible}
.hero-band::before{display:none}
.hero-band .hero-bg{position:relative!important;inset:auto!important;grid-column:2;grid-row:1;min-height:430px;align-self:stretch;border:1px solid #b4bec5;border-radius:28px;overflow:hidden;box-shadow:0 1px 0 #ffffff inset,0 22px 55px -37px #17263870}
.hero-band .hero-bg picture{display:block;width:100%;height:100%}
.hero-band img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-band .hero-overlay{position:relative;inset:auto;grid-column:1;grid-row:1;display:flex;align-items:center;min-height:0;padding:32px 0 42px;background:none}
.hero-band .hero-overlay .wrap{padding:0;width:100%}
.hero-band .hero-copy{width:100%;max-width:none;color:var(--ink);text-shadow:none}
.hero-band .hero-copy h1{font-size:clamp(32px,3.65vw,51px)!important;line-height:1.08;font-weight:600;letter-spacing:-.055em;color:var(--ink);text-shadow:none;margin-bottom:24px!important;overflow-wrap:break-word}
.hero-band .hero-copy p,.hero-band .hero-copy .lead{color:#52606d;text-shadow:none}
.hero-band .hero-copy .lead{font-size:18px;line-height:1.6;margin:22px 0 0;max-width:52ch}
.hero-band .breadcrumb,.hero-band .breadcrumb a{font-size:13px;line-height:1.5;color:#52606d;text-shadow:none}
.hero-band .breadcrumb{margin-bottom:24px}
.hero-band .breadcrumb a:hover{border-color:var(--shell-copper)}
.hero-band .ki-mark{top:auto;right:12px;bottom:12px;left:12px;max-width:fit-content;background:var(--shell-paper);color:var(--ink);border:1px solid var(--line);padding:7px 10px;border-radius:7px;font-size:13px;line-height:1.45;z-index:2;text-shadow:none}
.hero-band+.subnav{margin-top:38px}

/* Article and legal reading surfaces: fully opaque, no transformation. */
.article-grid{gap:64px;min-width:0}
.article-body,.legal-body{min-width:0;overflow-wrap:break-word}
.article-body{font-size:17px;line-height:1.75}
.article-body h2,.legal-body h2{font-size:clamp(27px,2.7vw,35px);line-height:1.2;letter-spacing:-.035em;font-weight:600;margin-top:64px;margin-bottom:20px;max-width:30ch}
.article-body h3{font-size:23px;margin-top:32px;margin-bottom:14px}
.article-body p,.legal-body p{max-width:69ch}
.article-body p+p,.legal-body p+p{margin-top:18px}
.article-body ul,.article-body ol{gap:12px;max-width:69ch;margin-block:24px}
.article-body ul li:before{background:var(--shell-copper);height:2px;width:8px}
.article-body a:not(.btn),.legal-body a{color:#914d28;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.article-body a:not(.btn):hover,.legal-body a:hover{color:var(--ink)}
.article-body figure img{border-radius:18px;border-color:var(--line)}
.article-body figcaption{font-size:14px;line-height:1.65;color:#52606d}
.article-body table,.legal-body table{margin-block:28px;border-color:var(--line);background:var(--shell-paper)}
.article-body th,.article-body td,.legal-body th,.legal-body td{border-color:var(--line);padding:14px 16px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.article-body th,.legal-body th{background:#e5edf1;color:var(--ink);font-weight:600}
.article-qa{border-top:1px solid var(--line);padding-top:26px;margin-top:30px}
.article-qa+.article-qa{margin-top:30px}
.article-qa__q{font-size:19px;font-weight:600;line-height:1.45}
.article-qa__a{font-size:17px;line-height:1.7;color:#52606d}
.article-download{padding:26px;border:1px solid var(--line);border-radius:20px;gap:24px;background:var(--shell-paper);box-shadow:var(--shell-shadow)}
.article-download img{border-radius:5px}
.article-body .img-placeholder{border:1px solid var(--line);background:#e6edf0;border-radius:20px}
.kurz-box{position:relative;margin:40px 0 12px;padding:28px 32px;background:var(--shell-paper);border:1px solid var(--shell-edge);border-left:3px solid var(--shell-copper);border-radius:0 20px 20px 0;box-shadow:var(--shell-shadow)}
.kurz-box ul{font-size:16px;line-height:1.7}.kurz-box .overline{color:#914d28;margin-bottom:13px}
.sidebar{top:112px;gap:24px}
.sidebar-card{background:var(--shell-paper);border:1px solid var(--shell-edge);padding:28px;border-radius:20px;box-shadow:var(--shell-shadow)}
.sidebar-card h3{font-size:17px;letter-spacing:-.025em;margin-bottom:18px}
.sidebar-card ul li{font-size:14px;line-height:1.7;color:#52606d}
.sidebar-card--related a{min-height:44px;padding:10px 0;font-size:14px;line-height:1.5;font-weight:500}
.sidebar-card--related a:hover{color:#914d28;text-decoration:underline;text-underline-offset:4px}
.author-line{padding-top:24px;margin-top:44px;border-color:var(--shell-edge);font-size:14px;line-height:1.7;color:#52606d}
.article-body .hinweis-box{background:#f0e6db;border:1px solid #9b7a60;border-radius:16px;padding:24px}
.article-body .hinweis-box__label{color:#754223;font-size:13px;font-weight:600;line-height:1.5}
.legal-body{margin-top:44px;font-size:17px;line-height:1.75}
.legal-body .adresse{background:var(--shell-paper);border:1px solid var(--shell-edge);border-radius:20px;padding:28px;box-shadow:var(--shell-shadow)}
.legal-body .table-wrap{overflow-x:auto;max-width:100%;border-radius:12px}
.legal-stand{font-size:14px;line-height:1.65;color:#52606d}
/* 404 is the sole page whose main itself carries .wrap and a hard-coded typeface. */
main.wrap{background:var(--shell-paper);border:1px solid var(--shell-edge);border-radius:28px;box-shadow:var(--shell-shadow);padding:clamp(26px,5vw,56px)!important}
main.wrap h1{font-family:var(--font-head)!important;font-size:clamp(36px,5vw,54px);letter-spacing:-.05em;margin-block:20px 28px}
main.wrap p{line-height:1.7}main.wrap ul{margin-block:26px}main.wrap li a{display:inline-block;min-height:44px;padding-block:10px;color:#914d28;line-height:1.5}

@media(min-width:960px){.article-grid{grid-template-columns:minmax(0,1fr) minmax(270px,.42fr)}}
/* Desktop nav changes at 960px in source; hide CTA only while space is tight. */
@media(min-width:960px) and (max-width:1120px){.nav-links{gap:16px}.nav-right .nav-cta{display:none}.nav-row{gap:20px}}
@media(max-width:959px){.hero-band{column-gap:26px;min-height:400px}.hero-band .hero-bg{min-height:380px}.hero-band .hero-copy h1{font-size:36px!important}.hero-band .hero-copy .lead{font-size:17px}.article-grid{gap:40px}.sidebar{position:static}.sidebar-card{padding:26px}}
@media(max-width:680px){
  .nav-row{height:76px;gap:16px}.site-header.is-scrolled .nav-row{height:64px}.brand-word{font-size:21px}
  html[data-ts-integration] .offcanvas__panel{top:12px;right:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;border-radius:22px}
  .offcanvas__links a,html[data-ts-integration] .offcanvas__links a{min-height:60px;font-size:22px}
  .offcanvas__cta{margin-top:24px}.btn{font-size:16px;min-height:52px;padding-inline:22px}
  .site-footer{padding-block:48px 30px}.footer-grid{gap:28px;margin-top:28px}.footer-col a,.footer-col .caption,.footer-col .footer-h,.footer-legal,.footer-changelog{font-size:16px}.footer-col a{min-height:48px}.footer-legal{margin-top:30px}
  .hero-band{display:grid;grid-template-columns:minmax(0,1fr);row-gap:22px;min-height:0;margin-top:18px;padding:0 20px}
  .hero-band .hero-overlay{grid-column:1;grid-row:1;padding:20px 0 0}
  .hero-band .hero-bg{grid-column:1;grid-row:2;min-height:280px;aspect-ratio:1.35;border-radius:22px}
  .hero-band .hero-copy h1{font-size:clamp(32px,8.5vw,42px)!important;line-height:1.1;letter-spacing:-.045em}
  .hero-band .hero-copy .lead{font-size:17px;line-height:1.65;margin-top:18px}
  .hero-band .breadcrumb,.hero-band .breadcrumb a,.hero-band .ki-mark{font-size:14px}.hero-band .breadcrumb{margin-bottom:18px}.hero-band+.subnav{margin-top:28px}
  .subnav__track{gap:22px}.subnav a{font-size:14px}.kurz-box{margin-top:30px;padding:24px 22px}.kurz-box ul{font-size:16px}
  .article-body,.legal-body{font-size:17px;line-height:1.7}.article-body h2,.legal-body h2{font-size:28px;margin-top:46px}.article-body h3{font-size:22px}
  .article-body th,.article-body td,.legal-body th,.legal-body td{font-size:14px;padding:10px 9px}.article-body table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
  .sidebar-card ul li,.sidebar-card--related a,.author-line,.legal-stand,.article-body figcaption{font-size:16px}.sidebar-card--related a{min-height:48px}.legal-body .adresse{padding:24px}
  main.wrap{margin:28px 16px!important;width:calc(100% - 32px);border-radius:22px}main.wrap p[style]{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){
 .site-header,.nav-row,.btn,.nav-links a:after,.offcanvas__links a,.offcanvas__panel{transition:none!important;animation:none!important}
}
html[data-ts-motion=reduced] .site-header,html[data-ts-motion=reduced] .nav-row,html[data-ts-motion=reduced] .btn,html[data-ts-motion=reduced] .offcanvas__links a{transition:none!important;animation:none!important}
@media(prefers-contrast:more){
 :root{--ink-70:#293c50;--shell-edge:#687888;--line:#687888}
 .site-header,.offcanvas__panel,.sidebar-card,.kurz-box,.legal-body .adresse,.site-footer{box-shadow:none;border-color:var(--line)}
 .footer-col a,.footer-col .caption,.footer-legal,.footer-changelog{color:#293c50}
}
@media(forced-colors:active){
 .site-header,html[data-ts-integration] .site-header,.offcanvas__panel,html[data-ts-integration] .offcanvas__panel,.site-footer,.sidebar-card,.kurz-box,.article-download,.legal-body .adresse,main.wrap{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}
 .site-footer:before,html[data-ts-integration] .site-header:after{display:none}
 .btn,.btn-primary,.btn-secondary,.btn-ghost-dark,.nav-toggle,.offcanvas__close,.ts-preview-bar button,.ts-preview-bar a{background:ButtonFace;color:ButtonText;border:1px solid ButtonText;box-shadow:none}
 .nav-links a:after,.offcanvas__close:before,.offcanvas__close:after{background:ButtonText}
 .brand-mark rect,.brand-mark path{fill:CanvasText}
 html[data-ts-integration] :focus-visible,:focus-visible{outline-color:Highlight}
 .article-body a:not(.btn),.legal-body a,.footer-col a,.hero-band .breadcrumb a,main.wrap li a{color:LinkText}
 .hero-band,.hero-band .hero-copy,.hero-band .hero-copy h1,.hero-band .hero-copy p,.hero-band .breadcrumb,.hero-band .ki-mark{background:Canvas;color:CanvasText}
}
