/* Login presentation only. portal.js and the consent / account flows stay intact. */
body.portal-redesign:has(#signed-out-view:not([hidden])) {
  background: radial-gradient(ellipse at 72% 39%,#0078ad24,transparent 46%),radial-gradient(ellipse at 46% 8%,#00415f18,transparent 40%),#020b12;
  min-height:100svh;display:flex;flex-direction:column;
}
.portal-redesign:has(#signed-out-view:not([hidden]))>.shell:not(.site-header){width:min(1280px,calc(100% - var(--gutter)*2))}
.portal-redesign:has(#signed-out-view:not([hidden])) main{min-height:0;flex:none}
.portal-redesign:has(#signed-out-view:not([hidden])) .site-footer{font-size:12px;padding:25px 0 28px;flex:none}
#signed-out-view.landing{grid-template-columns:minmax(0,42fr) minmax(0,58fr);column-gap:26px;row-gap:0;padding-top:6px;align-items:center}
#signed-out-view .landing-copy{padding:38px 0 42px;min-width:0}
#signed-out-view .eyebrow{font-size:13px;letter-spacing:.22em;margin-bottom:20px}
#signed-out-view h1{font-size:clamp(56px,6.1vw,88px);letter-spacing:-.045em;line-height:1.05;white-space:nowrap;margin:0 0 15px;font-weight:700}
#signed-out-view .landing-lead{font-size:clamp(30px,2.85vw,41px);line-height:1.19;letter-spacing:-.035em;margin-bottom:22px;max-width:490px}
#signed-out-view .landing-detail{font-size:16px;line-height:1.7;color:var(--body);margin-bottom:28px;max-width:460px}
#signed-out-view .apple-link{width:400px;border-radius:11px;max-width:100%;cursor:pointer;background:#fff;overflow:hidden}
#signed-out-view .apple-link:hover{opacity:1;filter:brightness(.93);transform:translateY(-1px)}
#signed-out-view .apple-link:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
#signed-out-view .apple-link:active{transform:none}
#signed-out-view .apple-button:disabled{cursor:not-allowed;transform:none;filter:none}
#signed-out-view .apple-link img{width:100%;height:auto}
#signed-out-view .login-microcopy{max-width:425px;margin-top:18px}
#signed-out-view .login-microcopy p{font-size:13px;line-height:1.6;color:var(--body);margin:0 0 3px}
#signed-out-view .auth-switch{font-size:12px;padding:10px 0;min-height:44px;color:var(--muted)}
#signed-out-view .auth-switch:hover{color:var(--accent)}
#signed-out-view .registration-view{max-width:470px}
#signed-out-view .registration-view h2{font-size:23px}
#signed-out-view .registration-view .account-info{font-size:13px}
#signed-out-view .landing-bottom{margin-top:5px;gap:30px;padding:25px 0;min-height:85px;font-size:12px}
#signed-out-view .landing-bottom>p{display:flex;gap:14px;align-items:center;max-width:780px;line-height:1.6;color:var(--body)}
#signed-out-view .landing-bottom .text-link{font-size:12px;flex:none;white-space:nowrap;min-height:44px;display:flex;align-items:center}
#signed-out-view .kmcid-info{width:21px;height:21px;border:1px solid #c5cfd8b3;display:grid;place-items:center;border-radius:50%;font-family:Georgia,serif;font-size:15px;line-height:1;flex:none;color:var(--text)}
.kmcid-ecosystem{position:relative;aspect-ratio:640/650;width:100%;max-width:660px;justify-self:center;display:grid;place-items:center;isolation:isolate;container-type:inline-size}
.kmcid-ecosystem::before{content:"";position:absolute;inset:5% 6%;background:radial-gradient(ellipse,#008ee822,transparent 68%);z-index:-1;pointer-events:none}
.kmcid-orbits{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.kmcid-orbit{fill:none;stroke:var(--accent);stroke-width:1.1;opacity:.48}
.kmcid-orbit-dotted{stroke:#46bcf3;stroke-dasharray:2 6;opacity:.5;animation:kmcid-orbit-dash 28s linear infinite}
.kmcid-orbit-soft{stroke:#3b9dde;opacity:.25;stroke-dasharray:200 50;animation:kmcid-orbit-dash 32s linear infinite reverse}
.kmcid-node{fill:#a5f3ff;filter:drop-shadow(0 0 5px #00d4ff);transform-box:fill-box;transform-origin:center;animation:kmcid-node-glow 3.7s ease-in-out infinite}
.kmcid-node-b{animation-delay:-1.2s}.kmcid-node-c{animation-delay:-2.4s}.kmcid-node-d{animation-delay:-.5s}
.kmcid-card{position:relative;z-index:1;width:56%;max-width:365px;aspect-ratio:.74;padding:5.4%;display:flex;flex-direction:column;border:1px solid #9ce8ff99;border-radius:25px;color:var(--text);background:linear-gradient(135deg,#23638aac 0%,#0c283ced 25%,#061925f7 56%,#144766c7 100%);box-shadow:0 25px 60px #0006,0 0 25px #00b9ff1c,inset 0 1px 2px #e6f9ffa8,inset 0 0 30px #2c97d52e;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);transform:rotate(5deg);animation:kmcid-card-float 9s ease-in-out infinite}
.kmcid-card::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(155deg,#adf0ff16,transparent 30%,transparent 70%,#47afff13);pointer-events:none}
.kmcid-card-logo{width:55%;height:auto;margin-bottom:10%;position:relative}
.kmcid-card-monogram{display:grid;place-items:center;flex:none;width:28%;aspect-ratio:1;border:1px solid #00cce8b3;background:linear-gradient(135deg,#096a963d,#06182761);box-shadow:inset 0 0 20px #008dce25,0 3px 14px #00162133;border-radius:20%;font-size:clamp(28px,6.9cqw,47px);line-height:1;margin-bottom:8%}
.kmcid-card h2{font-size:clamp(21px,4.7cqw,30px);letter-spacing:-.02em;margin:0 0 9px}
.kmcid-card .kmcid-card-claim{font-size:clamp(16px,3.4cqw,22px);line-height:1.3;letter-spacing:-.015em;color:var(--text);margin:0 0 9%}
.kmcid-benefits{list-style:none;padding:9% 0;margin:0;border-top:1px solid #64cffa45;border-bottom:1px solid #64cffa45;display:grid;gap:12px}
.kmcid-benefits li{display:flex;gap:10px;align-items:center;font-size:clamp(10px,2.4cqw,15px);line-height:1.4;white-space:nowrap;color:var(--text)}
.kmcid-benefits .kmcid-check{display:grid;place-items:center;width:19px;height:19px;flex:none;border-radius:50%;font-size:12px;font-weight:bold;background:linear-gradient(#45e6ff,#009dcc);color:#002535}
.kmcid-card .kmcid-card-motto{font-size:clamp(7px,1.6cqw,10px);letter-spacing:.2em;font-weight:600;color:#32dcff;margin:auto 0 0;padding-top:10%;white-space:nowrap}
.kmcid-app{position:absolute;z-index:2;object-fit:contain;height:auto;aspect-ratio:1;border-radius:23%;border:0;box-shadow:0 7px 20px #0005,0 0 20px #008ee831;animation:kmcid-icon-drift 7.5s ease-in-out infinite}
.kmcid-app-wartezeiten{width:16%;left:3%;top:18%;aspect-ratio:768/755;animation-delay:-1s;--tilt:-9deg}
.kmcid-app-remote{width:17.5%;left:1%;bottom:19%;animation-duration:9s;animation-delay:-4s;--tilt:-7deg}
.kmcid-app-k{width:15.5%;right:1%;top:25%;animation-duration:10.5s;animation-delay:-6s;--tilt:8deg}
.kmcid-app-keyfall{width:17%;right:2%;bottom:12%;animation-duration:12s;animation-delay:-2s;--tilt:9deg}
.kmcid-motion-toggle{position:absolute;bottom:0;right:0;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--muted);cursor:pointer;z-index:3}
.kmcid-motion-toggle input{position:absolute;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.kmcid-motion-toggle span{width:30px;height:30px;display:grid;place-items:center;border:1px solid #7894a44d;border-radius:50%;pointer-events:none}
.kmcid-motion-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}
.kmcid-motion-toggle .kmcid-play{display:none}
.kmcid-motion-toggle:has(input:checked) .kmcid-pause{display:none}.kmcid-motion-toggle:has(input:checked) .kmcid-play{display:block}
.kmcid-motion-toggle:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.kmcid-motion-toggle:hover{color:var(--accent)}
.kmcid-ecosystem:has(.kmcid-motion-toggle input:checked) *{animation-play-state:paused!important}
@keyframes kmcid-card-float{0%,100%{transform:translateY(0) rotate(5deg)}50%{transform:translateY(-7px) rotate(4.4deg)}}
@keyframes kmcid-icon-drift{0%,100%{transform:translate(0,0) rotate(var(--tilt))}50%{transform:translate(3px,-6px) rotate(calc(var(--tilt) + 1deg))}}
@keyframes kmcid-orbit-dash{to{stroke-dashoffset:128}}
@keyframes kmcid-node-glow{0%,100%{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}
@media(min-width:1600px){#signed-out-view.landing{padding-top:22px}}
@media(min-width:800px) and (max-width:1179px){
  .portal-redesign:has(#signed-out-view:not([hidden]))>.shell:not(.site-header){width:calc(100% - 64px)}
  #signed-out-view.landing{column-gap:12px;grid-template-columns:minmax(0,44fr) minmax(0,56fr)}
  #signed-out-view .landing-copy{padding:40px 0}
  #signed-out-view h1{font-size:clamp(56px,6.1vw,72px)}
  #signed-out-view .landing-lead{font-size:clamp(29px,3.2vw,36px)}
  #signed-out-view .landing-detail{font-size:15px}
  .kmcid-card{border-radius:20px}
  .kmcid-benefits{gap:9px}.kmcid-benefits li{gap:7px}.kmcid-benefits .kmcid-check{width:15px;height:15px;font-size:10px}
  #signed-out-view .landing-bottom{gap:20px}#signed-out-view .landing-bottom>p{max-width:62%}#signed-out-view .landing-bottom .text-link{white-space:normal;max-width:30%}
}
@media(max-width:799px){
  .portal-redesign:has(#signed-out-view:not([hidden]))>.shell:not(.site-header){width:calc(100% - max(22px,env(safe-area-inset-left)) - max(22px,env(safe-area-inset-right)))}
  #signed-out-view.landing{grid-template-columns:minmax(0,1fr);padding-top:0;gap:0}
  #signed-out-view .landing-copy{max-width:510px;justify-self:center;width:100%;padding:39px 0 16px}
  #signed-out-view .eyebrow{font-size:12px;margin-bottom:17px}
  #signed-out-view h1{font-size:clamp(56px,11vw,76px);margin-bottom:15px}
  #signed-out-view .landing-lead{font-size:clamp(30px,5.7vw,38px);max-width:470px;margin-bottom:18px}
  #signed-out-view .landing-detail{font-size:16px;margin-bottom:24px}
  #signed-out-view .apple-link{width:400px}
  #signed-out-view .login-microcopy{margin-top:16px}
  .kmcid-ecosystem{max-width:530px;margin:0 auto 20px}
  .kmcid-card{width:58%;border-radius:22px;padding:5.4%}
  .kmcid-card h2{font-size:clamp(18px,4.7cqw,25px)}
  .kmcid-card .kmcid-card-claim{font-size:clamp(14px,3.8cqw,20px)}
  .kmcid-card-logo{width:62%;margin-bottom:8%}
  .kmcid-card-monogram{margin-bottom:7%;font-size:clamp(24px,7cqw,36px)}
  .kmcid-benefits{gap:8px;padding:8% 0}
  .kmcid-benefits li{font-size:clamp(9px,2.65cqw,13px);gap:6px}
  .kmcid-benefits .kmcid-check{width:14px;height:14px;font-size:9px}
  .kmcid-card .kmcid-card-motto{font-size:clamp(6px,1.6cqw,8px);padding-top:8%}
  .kmcid-app-wartezeiten{left:1%;top:18%;width:17%}.kmcid-app-remote{left:0;bottom:17%;width:18%}.kmcid-app-k{right:0;top:24%;width:16.5%}.kmcid-app-keyfall{right:0;bottom:10%;width:18%}
  #signed-out-view .landing-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:11px;margin-top:0;padding:22px 0 18px}
  #signed-out-view .landing-bottom>p{align-items:flex-start;max-width:none;font-size:12px;gap:12px}
  #signed-out-view .landing-bottom .text-link{font-size:12px;white-space:normal;min-height:44px;margin-left:33px}
  .portal-redesign:has(#signed-out-view:not([hidden])) .site-footer{flex-direction:column;gap:16px;padding:23px 0 28px}
  .portal-redesign:has(#signed-out-view:not([hidden])) .site-footer nav{gap:14px 21px;flex-wrap:wrap}
  .portal-redesign:has(#signed-out-view:not([hidden])) .site-footer a{display:inline-flex;align-items:center;min-height:35px}
}
@media(max-width:359px){
  #signed-out-view h1{font-size:56px}#signed-out-view .landing-lead{font-size:28px}
  .kmcid-card{width:59%;border-radius:16px}.kmcid-orbit-soft{display:none}
}
@media(prefers-reduced-motion:reduce){
  .kmcid-ecosystem *{animation:none!important;transition:none!important}
  .kmcid-card{transform:rotate(5deg)}.kmcid-app{transform:rotate(var(--tilt))}
  .kmcid-motion-toggle{display:none}
  #signed-out-view .apple-link{transition:none;transform:none!important}
}
