/* pwp-authored-additional-v1-20261028: technical foundation only */
@layer pwp-runtime-foundation {
  :root {
    --bg:#fbfbfd; --text:#1d1d1f;
    --surface:#ffffff; --text-muted:#86868b;
    --primary:#0071e3; --primary-fg:#ffffff;
    --border:#d2d2d7;
  }
  *, *::before, *::after { box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body { margin:0; background:var(--bg); color:var(--text); }
  img, video { max-inline-size:100%; block-size:auto; }
  button, input, select, textarea { font:inherit; }
  button, summary { cursor:pointer; }
  :where(a,button,input,select,textarea,summary):focus-visible { outline:2px solid currentColor; outline-offset:4px; }
  .skip { position:fixed; inset-block-start:-10rem; inset-inline-start:1rem; z-index:10000; padding:.75rem; background:var(--bg); color:var(--text); }
  .skip:focus { inset-block-start:1rem; }
  /* Legal prose is a separate utility; never constrain the author's main site. */
  .legal-container { max-inline-size:76ch; margin-inline:auto; padding:clamp(1rem,4vw,3rem); }
  .legal-body { line-height:1.7; overflow-wrap:anywhere; }
  .legal-body p + p, .legal-body section + section { margin-block-start:1.25em; }
  .legal-body table { display:block; overflow-x:auto; max-inline-size:100%; }
  .legal-body h1, .legal-body h2, .legal-body h3, .legal-title { line-height:1.2; }
  .cookie-banner { position:fixed; inset-inline:1rem; inset-block-end:1rem; z-index:9999; max-inline-size:34rem; padding:1rem; border:1px solid var(--border); background:var(--bg); color:var(--text); }
  .cookie-text { font:14px/1.5 system-ui,sans-serif; }
  .cookie-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-block-start:.75rem; }
  .cookie-actions button { min-block-size:44px; padding:.6rem 1rem; border:1px solid var(--border); background:var(--surface); color:var(--text); }
  .cookie-actions [data-action="accept-cookie"] { background:var(--primary); color:var(--primary-fg); }
}
/* Required state, not a visual layout. Expanded pages may be grid/flex/block. */
[hidden], .cookie-banner.hidden { display:none !important; }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* === AUTHOR-OWNED SITE STYLES === */
:root{--canvas:#fbfbfd;--surface:#fff;--ink:#1d1d1f;--muted:#64646c;--line:#d2d2d7;--blue:#0071e3;--blue-soft:#eaf3ff;--fixed:#0071e3;--variable:#7cb9f5;--remaining:#b9dfd0;--radius:26px}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-underline-offset:4px}
button,input,select{font:inherit}
button,a,input,summary{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
[hidden]{display:none!important}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:"Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.035em}
p,li{line-height:1.75}
.site-header{border-bottom:1px solid #e8e8ed;background:var(--canvas);position:relative;z-index:10}
.nav-inner{max-width:1240px;margin:auto;padding:22px 38px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.wordmark{text-decoration:none;color:var(--ink);font-size:17px;font-weight:750;letter-spacing:-.6px;line-height:1.2}
.wordmark span{display:block;font-size:11px;letter-spacing:2.5px;font-weight:500;margin-top:5px}
.nav-links{display:flex;align-items:center;gap:30px;font-size:13px}
.nav-links>a{color:var(--ink);text-decoration:none;padding:10px 0}
.topic-menu{position:relative}
.topic-menu summary{cursor:pointer;padding:10px 0}
.topic-menu summary::marker{font-size:10px}
.topic-menu-panel{position:absolute;right:0;top:42px;width:280px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 30px #1d1d1f0c}
.topic-menu-panel a{display:block;padding:13px 12px;border-radius:8px;text-decoration:none;color:var(--ink);line-height:1.4}
.topic-menu-panel a:hover{background:var(--blue-soft)}
.language-links{display:flex;gap:12px;border-left:1px solid var(--line);padding-left:24px;font-size:12px}
.language-links a{color:var(--muted);text-decoration:none;padding:10px 0}
.language-links a[hreflang=de]{color:var(--ink)}
.wrap{width:min(1120px,calc(100% - 64px));margin-inline:auto}
.hero{text-align:center;padding:72px 24px 43px}
.eyebrow{font-size:14px;font-weight:600;color:var(--muted);margin-bottom:19px}
.hero h1{font-size:clamp(43px,6.3vw,78px);line-height:1.08;letter-spacing:-.055em;margin-bottom:23px}
.hero h1 span{color:var(--blue)}
.hero .intro{max-width:600px;margin:0 auto 25px;font-size:18px;line-height:1.65;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 24px;border-radius:99px;background:var(--blue);color:#fff;text-decoration:none;font-size:14px;font-weight:500;border:0;cursor:pointer}
.button:hover{background:#0066cc}
.text-link{text-decoration:none;font-size:14px}
.budget-stage{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:34px 40px;margin-bottom:18px}
.stage-heading{display:flex;justify-content:space-between;align-items:start;gap:24px;margin-bottom:28px}
.stage-heading h2{font-size:25px;margin-bottom:7px}
.stage-heading p{color:var(--muted);font-size:13px;margin:0}
.stage-note{font-size:12px;color:var(--muted);padding:8px 12px;background:#f5f5f7;border-radius:20px;white-space:nowrap}
.budget-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:60px;align-items:center}
.budget-fields{display:grid;gap:13px}
.money-field{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:14px}
.money-entry{display:flex;align-items:center;gap:10px;background:#fbfbfd;border:1px solid var(--line);border-radius:10px;padding:10px 13px}
.money-entry input{width:95px;border:0;background:transparent;color:var(--ink);font-weight:600;text-align:right;min-height:23px}
.money-entry span{color:var(--muted)}
.budget-result{border-left:1px solid #e5e5ea;padding-left:45px}
.result-label{font-size:14px;color:var(--muted);margin-bottom:4px}
.result-value{font-family:"Plus Jakarta Sans",sans-serif;font-size:56px;letter-spacing:-3px;line-height:1.2;font-weight:650;display:block}
.result-caption{font-size:13px;color:var(--muted);margin:10px 0 0;max-width:300px}
.allocation-track{display:flex;gap:4px;height:22px;margin-top:29px;overflow:hidden;border-radius:7px;background:#f0f0f3}
.allocation-track span{display:block;min-width:0}
.allocation-fixed{background:var(--fixed);flex:1100}
.allocation-variable{background:var(--variable);flex:700}
.allocation-remaining{background:var(--remaining);flex:600}
.allocation-legend{display:flex;gap:25px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:14px}
.allocation-legend span{display:flex;align-items:center;gap:7px}
.dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:var(--fixed)}
.dot.variable{background:var(--variable)}.dot.remaining{background:var(--remaining)}
.example-note{color:var(--muted);font-size:12px;line-height:1.6;max-width:850px;margin:0 0 0 6px}
.learning{padding:100px 0 86px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}
.section-head h2{font-size:clamp(30px,4vw,43px);line-height:1.15;margin:0}
.section-head p{color:var(--muted);font-size:14px;margin:0;max-width:300px}
.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.topic-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:30px;display:flex;flex-direction:column;align-items:start;min-height:300px}
.topic-card .topic-label{font-size:12px;color:var(--muted);margin-bottom:28px}
.topic-card h3{font-size:25px;line-height:1.2;margin-bottom:14px}
.topic-card p{font-size:14px;color:var(--muted);margin-bottom:25px}
.topic-card a{margin-top:auto}
.editorial-note{border-top:1px solid var(--line);padding:30px 0 65px;display:grid;grid-template-columns:1fr 2fr;gap:50px}
.editorial-note h2{font-size:22px}
.editorial-note p{font-size:14px;color:var(--muted);margin:0}
.article-header{max-width:860px;margin:auto;text-align:center;padding:76px 28px 48px}
.article-header h1{font-size:clamp(38px,5.4vw,64px);line-height:1.12;margin-bottom:23px;letter-spacing:-.045em}
.article-header .lead{color:var(--muted);font-size:19px;line-height:1.65;margin-bottom:0}
.article-body{width:min(720px,calc(100% - 48px));margin:auto;padding-bottom:80px}
.article-body h2{font-size:27px;line-height:1.3;margin:39px 0 17px}
.article-body p,.article-body li{font-size:16px}
.article-body ul,.article-body ol{padding-left:24px}
.article-body li{padding-left:5px;margin-bottom:10px}
.callout{border:1px solid var(--line);border-radius:20px;background:#fff;padding:26px 30px;margin:29px 0}
.callout h2{margin-top:0;font-size:23px}
.callout p:last-child{margin-bottom:0}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:15px;margin:25px 0;background:white}
table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6;text-align:left}
th,td{padding:15px 18px;border-bottom:1px solid #e5e5ea;vertical-align:top}
th{font-weight:600;background:#f5f5f7}
tr:last-child td{border-bottom:0}
.source-note{font-size:13px!important;color:var(--muted);border-top:1px solid var(--line);padding-top:22px;margin-top:32px}
.article-next{display:flex;justify-content:space-between;align-items:center;gap:25px;border-top:1px solid var(--line);margin-top:44px;padding-top:24px;font-size:14px}
.contact-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:65px;padding-bottom:85px;align-items:start}
.contact-card{border:1px solid var(--line);border-radius:var(--radius);background:white;padding:35px}
.contact-card h2,.contact-copy h2{font-size:26px;margin-bottom:20px}
.contact-card address{font-style:normal;font-size:15px;line-height:1.9}
.contact-card .contact-email{overflow-wrap:anywhere;display:inline-block;margin:12px 0}
.contact-card .hours{color:var(--muted);font-size:13px;margin:24px 0 0}
.contact-copy p{color:var(--muted);font-size:15px}
.contact-copy .button{margin:10px 0 17px}
.contact-copy small{display:block;color:var(--muted);line-height:1.7}
.site-footer{background:#f5f5f7;border-top:1px solid #e5e5ea}
.footer-inner{max-width:1120px;margin:auto;padding:42px 32px 25px}
.footer-main{display:grid;grid-template-columns:1.25fr 1fr .7fr;gap:40px;padding-bottom:30px}
.footer-brand{font-size:15px;font-weight:650;margin-bottom:12px}
.footer-main p,.footer-main address{font-size:12px;line-height:1.85;color:var(--muted);font-style:normal;margin:0}
.footer-main a{color:var(--muted);overflow-wrap:anywhere}
.footer-topics{display:flex;flex-direction:column;align-items:start;gap:11px;font-size:12px}
.footer-topics a{text-decoration:none}
.footer-bottom{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;gap:25px;font-size:11px;color:var(--muted)}
.legal-links{display:flex;gap:16px;flex-wrap:wrap}
.legal-links a{color:var(--muted);text-decoration:none}
@media(min-width:1500px){.hero{padding-top:95px}}
@media(max-width:800px){
.nav-inner{padding:20px 24px;gap:20px;flex-wrap:wrap}
.nav-links{gap:23px;flex-wrap:wrap}
.language-links{padding-left:18px}
.budget-stage{padding:28px}
.budget-layout{gap:25px}
.budget-result{padding-left:25px}
.result-value{font-size:46px}
.topic-grid{grid-template-columns:1fr}
.topic-card{min-height:0;display:grid;grid-template-columns:1fr 1.2fr;gap:0 28px;padding:28px}
.topic-card .topic-label{grid-column:1/-1;margin-bottom:15px}
.topic-card h3{grid-row:2/4;margin:0}
.topic-card p{margin-bottom:15px}
.section-head{align-items:start}
.contact-layout{gap:30px}
.footer-main{grid-template-columns:1fr 1fr}
.footer-topics{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:20px}
}
@media(max-width:560px){
.nav-inner{padding:18px 20px;gap:17px}
.wordmark{font-size:16px}
.nav-links{width:100%;justify-content:space-between;gap:12px;font-size:12px}
.language-links{gap:10px;padding-left:12px;font-size:11px}
.topic-menu-panel{left:-65px;right:auto;width:260px}
.wrap{width:calc(100% - 32px)}
.hero{padding:49px 19px 32px}
.hero h1{font-size:43px}
.hero .intro{font-size:16px}
.eyebrow{font-size:12px}
.budget-stage{padding:24px 20px;border-radius:22px}
.stage-heading{gap:10px;margin-bottom:25px;flex-wrap:wrap}
.stage-heading h2{font-size:23px}
.stage-note{font-size:11px;padding:5px 9px}
.budget-layout{grid-template-columns:1fr;gap:25px}
.budget-result{border-left:0;border-top:1px solid #e5e5ea;padding:22px 0 0}
.result-value{font-size:49px}
.result-caption{max-width:none}
.money-field{font-size:13px}
.money-entry{padding:9px}
.money-entry input{width:80px}
.allocation-legend{gap:12px;font-size:10px}
.learning{padding:65px 0 45px}
.section-head{display:block}
.section-head h2{font-size:32px;margin-bottom:16px}
.section-head p{max-width:none}
.topic-card{display:flex;padding:26px}
.topic-card h3{margin-bottom:14px;font-size:26px}
.editorial-note{grid-template-columns:1fr;gap:0;padding-bottom:45px}
.article-header{padding:50px 20px 28px}
.article-header h1{font-size:38px}
.article-header .lead{font-size:17px}
.article-body{width:calc(100% - 40px);padding-bottom:55px}
.article-body p,.article-body li{font-size:15px}
.article-body h2{font-size:25px}
.callout{padding:22px}
th,td{padding:12px;font-size:12px}
.article-next{align-items:start;flex-direction:column;gap:20px}
.contact-layout{grid-template-columns:1fr;padding-bottom:55px}
.contact-card{padding:26px}
.footer-inner{padding:32px 22px 25px}
.footer-main{grid-template-columns:1fr;gap:25px}
.footer-topics{grid-column:auto}
.footer-bottom{flex-direction:column;gap:16px;line-height:1.7}
.legal-links{gap:10px 16px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* === OPEN NAVIGATION SURFACE SAFETY === */
/* Position, shadows, borders and scroll treatment belong to the author.
   Only an OPEN mobile menu gets a mandatory opaque readable surface. */
header.site-header[data-pwp-nav-open] {
  background-color: var(--bg, #ffffff) !important;
  isolation: isolate;
}
[data-pwp-mobile-menu][data-pwp-menu-open] {
  background-color: var(--bg, #ffffff);
  color: var(--text, #0f172a);
  max-block-size: var(--pwp-nav-available-height, calc(100dvh - 6rem));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pwp-source-note {
  margin-block-start: 1rem;
  font-size: .875em;
  line-height: 1.5;
}
.pwp-source-note a { text-decoration: underline; text-underline-offset: .2em; }
