/* JK AXIS · Integration auf Portfolio v5.2.29. Primärgeometrie unverändert aus freigegebenem SVG. */
:root{
  --brand-carbon:#0B192B;
  --brand-graphite:#15283E;
  --brand-steel:#34506A;
  --brand-silver:#CFD9E6;
  --brand-paper:#F7F9FC;
  --brand-blue:#315FFA;
  --brand-gold:#315FFA; /* Alias zur Abwärtskompatibilität, kein Gold-Akzent im neuen Design */
  --bg:#F7F9FC;
  --surface:#FFFFFF;
  --surface-2:#E9F0FB;
  --surface-3:#DCE7F6;
  --text:#0B192B;
  --muted:#516176;
  --line:#CFDBEC;
  --accent:#315FFA;
  --accent-strong:#1B47AA;
  --accent-soft:#E9F0FB;
  --accent-contrast:#FFFFFF;
  --secondary:#1B47AA;
  --holo-blue:#315FFA;
  --holo-cyan:#557CFF;
  --holo-violet:#7C97ED;
  --holo-magenta:#B1C2F7;
  --holo-gold:#315FFA;
  --holo-gradient:linear-gradient(118deg,#315FFA 0%,#557CFF 55%,#8DA7FF 100%);
  --holo-soft:linear-gradient(118deg,rgba(49,95,250,.11),rgba(113,143,250,.07));
  --header:rgba(11,25,43,.98);
  --shadow:0 14px 38px rgba(11,25,43,.10);
  --card-shadow:0 14px 36px rgba(11,25,43,.09);
  --card-shadow-hover:0 22px 48px rgba(11,25,43,.15);
}
:root[data-theme="dark"]{
  --bg:#0B192B;
  --surface:#15283E;
  --surface-2:#1C344D;
  --surface-3:#23415B;
  --text:#F7F9FC;
  --muted:#BECADE;
  --line:#34506A;
  --accent:#89A5FF;
  --accent-strong:#A8BCFF;
  --accent-soft:#1C345F;
  --accent-contrast:#0B192B;
  --secondary:#A8BCFF;
  --holo-blue:#315FFA;
  --holo-cyan:#89A5FF;
  --holo-violet:#A8BCFF;
  --holo-magenta:#CAD8FF;
  --holo-gold:#89A5FF;
  --holo-gradient:linear-gradient(118deg,#315FFA,#6F92FF 60%,#A8BCFF);
  --header:rgba(11,25,43,.98);
  --shadow:0 18px 42px rgba(0,0,0,.30);
  --card-shadow:0 18px 42px rgba(0,0,0,.22);
  --card-shadow-hover:0 24px 55px rgba(0,0,0,.33);
}
html{background:var(--bg)}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; background-color:var(--bg);}
:is(h1,h2,h3,h4){font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;}
/* Header bleibt in beiden Themes ein ruhiges, opakes Navy-Segment. */
.site-header,
:root:not([data-theme="dark"]) .site-header,
:root[data-theme="dark"] .site-header{background:rgba(11,25,43,.98);border-bottom:1px solid rgba(255,255,255,.13);box-shadow:0 8px 24px rgba(0,0,0,.13);}
@media(max-width:1399px){.site-header,:root:not([data-theme="dark"]) .site-header,:root[data-theme="dark"] .site-header{background:#0B192B;-webkit-backdrop-filter:none;backdrop-filter:none;}}
.site-header .brand,.site-header .brand-copy span,.site-header :is(.site-nav a,.site-nav-nojs a,.nav-toggle,.icon-button){color:#F7F9FC;}
.site-header .brand-copy small,.site-header .site-nav a:not([aria-current="page"]){color:#CFD9E6;}
.site-header .brand-logo,.footer-brand-logo{object-fit:contain;object-position:center;border-radius:0;box-shadow:none;background:transparent;max-width:100%;}
/* Dieselbe freigegebene dunkle SVG-Geometrie wird für den Navy-Header reinweiß dargestellt. */
.site-header .brand-logo{filter:brightness(0) invert(1);width:2.45rem;height:2.45rem;flex-shrink:0;}
.site-header .site-nav a[aria-current="page"]{border-color:#A8BCFF;color:#fff;}
.site-header .site-nav a.nav-pulse{border-color:rgba(168,188,255,.48);}
.site-header .site-nav a.nav-pulse::before{border-color:rgba(168,188,255,.50);}
:is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--accent-strong)!important;outline-offset:3px!important;}
.site-header :is(a,button):focus-visible{outline-color:#A8BCFF!important;}
:is(.nav-toggle,.icon-button,.back-to-top,.carousel-control){min-height:44px;min-width:44px;}
/* Die Brand-Farbwelt soll nicht mit Gold-/Türkis-Dekorationen konkurrieren. */
:where(.hero,.page-intro){background:linear-gradient(130deg,#0B192B 0%,#15283E 66%,#0B192B 100%);}
:where(.hero,.page-intro) :is(h1,h2,.lead){color:#F7F9FC;}
:where(.hero,.page-intro) .eyebrow{color:#A8BCFF;}
:where(.hero,.page-intro) .button--primary{background:#315FFA;color:#fff;border-color:#315FFA;}
:where(.hero,.page-intro) .button--primary:hover{background:#254ED0;border-color:#254ED0;}
/* Mehr Lesbarkeit statt zusätzlicher Effekte */
:where(.case-section,.knowledge-disclosure,.hobby-card){scroll-margin-top:6rem;}
:where(.case-section pre,.case-section code,.code-block,pre){max-width:100%;overflow-x:auto;}
:where(.project-card,.hobby-card,.knowledge-card,.feature-card){min-width:0;}
:where(figure>img){max-width:100%;}
@media(max-width:420px){
 .site-header .brand-logo{width:2.05rem;height:2.05rem}
 .site-main h1{font-size:clamp(1.85rem,7.4vw,2.45rem);line-height:1.14;overflow-wrap:break-word}
 :where(.site-main .cluster,.button-group){flex-wrap:wrap}
 :where(.site-main .button){max-width:100%;white-space:normal}
 :where(.site-main table){display:block;max-width:100%;overflow-x:auto}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media print{.site-header .nav-toggle,.back-to-top,.carousel-control{display:none!important}}
/* JK AXIS: replace legacy gold Praktikum highlight with restrained System Blue. */
:root .site-header .site-nav a.nav-pulse,
:root[data-theme="dark"] .site-header .site-nav a.nav-pulse,
:root:not([data-theme="dark"]) .site-header .site-nav a.nav-pulse:not([aria-current="page"]){
 color:#E1E9FF!important;
 background:rgba(49,95,250,.20)!important;
 border:1px solid rgba(168,188,255,.64)!important;
 box-shadow:inset 0 0 0 1px rgba(168,188,255,.12);
}
:root .site-header .site-nav a.nav-pulse:hover,
:root .site-header .site-nav a.nav-pulse:focus-visible{
 color:#FFFFFF!important;
 background:rgba(49,95,250,.35)!important;
}
@media(max-width:1399px){
 :root:not([data-theme="dark"]) .site-header .site-nav a.nav-pulse:not([aria-current="page"]){
 color:#1B47AA!important;background:#E9F0FB!important;border-color:#7999EB!important;
 }
}
/* Cascade correction: legacy :root:not([data-theme=dark]) tokens outranked :root. */
:root:not([data-theme="dark"]){
 --bg:#F7F9FC;--surface:#FFFFFF;--surface-2:#E9F0FB;--surface-3:#DCE7F6;
 --text:#0B192B;--muted:#516176;--line:#CFDBEC;
 --accent:#315FFA;--accent-strong:#1B47AA;--accent-soft:#E9F0FB;
 --accent-contrast:#FFFFFF;--secondary:#1B47AA;
}
:root:not([data-theme="dark"]) .site-header .brand,
:root[data-theme="dark"] .site-header .brand,
:root:not([data-theme="dark"]) .site-header .brand-copy span,
:root[data-theme="dark"] .site-header .brand-copy span{color:#F7F9FC!important}
:root:not([data-theme="dark"]) .site-header .brand-copy small,
:root[data-theme="dark"] .site-header .brand-copy small{color:#CFD9E6!important}
:root:not([data-theme="dark"]) .site-header .site-nav a[aria-current="page"]{color:#FFFFFF!important;border-color:#A8BCFF!important;background:#213D67!important}
:root[data-theme="dark"] .site-header .site-nav a[aria-current="page"]{color:#FFFFFF!important;border-color:#A8BCFF!important;background:#213D67!important}


/* JK AXIS v5.2.30 · latest supplied master release · 2026-10-28
   White logo variant is authored in the master package, not produced by a CSS filter.
   Maintain the master geometry unchanged. */
.site-header .brand-logo,
:root:not([data-theme="dark"]) .site-header .brand-logo,
:root[data-theme="dark"] .site-header .brand-logo {
    filter:none!important;
    width:2.65rem;
    height:2.65rem;
    display:block;
    object-fit:contain;
    aspect-ratio:540 / 500;
}
/* Same opaque brand header in both modes, with legible navigation and title. */
:root .site-header,
:root:not([data-theme="dark"]) .site-header,
:root[data-theme="dark"] .site-header {
    background-color:#0B192B;
    color:#F7F9FC;
    border-bottom-color:rgba(233,240,251,.18);
    transition: none;
}
:root .site-header .brand-copy span,
:root:not([data-theme="dark"]) .site-header .brand-copy span,
:root[data-theme="dark"] .site-header .brand-copy span,
:root .site-header .brand {color:#F7F9FC!important;}
:root .site-header .brand-copy small {color:#CFD9E6!important;}
:root .site-header .site-nav a:not([aria-current="page"]):not(.nav-pulse) {color:#DEE7F4;}
:root .site-header .site-nav a:not(.nav-pulse):hover,
:root .site-header .site-nav a:not(.nav-pulse):focus-visible {color:#FFFFFF;}
:root .site-header :is(.nav-toggle,.icon-button) {color:#F7F9FC;}
/* Do not allow automatic theme transitions to show an intermediate grey brand bar. */
:root .site-header, :root .site-header::before, :root .site-header::after {transition-property:none!important;}
:root .site-header .brand-logo {transition:none!important;}
/* Footer retains the original master: navy on light, white on dark. */
/* Maintain adequate visual tap area, including the very narrow 320px viewport. */
@media(max-width:1399px){
 :root .site-header .brand-logo {width:2.35rem;height:2.35rem;}
 .site-header .brand-copy {min-width:0;}
 .site-header .brand-copy span {overflow-wrap:anywhere;}
}
@media(max-width:380px){
 :root .site-header .brand-logo {width:2.1rem;height:2.1rem;}
 .site-header .brand {gap:.55rem;min-width:0;}
 .site-header .brand-copy small {font-size:.69rem;}
 .site-header .nav-shell {gap:.35rem;}
}
@media(prefers-reduced-motion:reduce){
 .site-header .site-nav a.nav-pulse::before {animation:none!important;}
}

/* Final cascade resolution: legacy rules use !important; match scope and override last. */
:root:not([data-theme="dark"]) .site-header,
:root[data-theme="dark"] .site-header {
  background:#0B192B!important;
  background-color:#0B192B!important;
  border-bottom-color:rgba(233,240,251,.18)!important;
}
:root[data-theme="dark"] .site-header .site-nav a:not(.nav-pulse),
:root:not([data-theme="dark"]) .site-header .site-nav a:not(.nav-pulse){color:#DEE7F4!important;}
:root[data-theme="dark"] .site-header .site-nav a[aria-current="page"],
:root:not([data-theme="dark"]) .site-header .site-nav a[aria-current="page"] {
 color:#FFFFFF!important;background:#213D67!important;border-color:#A8BCFF!important;
}
:root[data-theme="dark"] .site-header .brand-copy span,
:root:not([data-theme="dark"]) .site-header .brand-copy span {color:#F7F9FC!important;}
