body[data-page="impressum"],body[data-page="datenschutz"],body[data-page="404"]{background:var(--paper)}.legal-main,.error-main{background:var(--paper);color:var(--ink)}.legal-main{padding:168px 32px 96px;min-height:760px}.legal-main h1{font-size:56px;line-height:1;letter-spacing:-.03em;margin:0 0 64px}.legal-content{display:flex;flex-direction:column;gap:32px}.legal-section h2{font-size:24px;line-height:1.2;margin:0 0 16px}.legal-section p{font:400 16px/1.48 'IBM Plex Mono',monospace;white-space:pre-line;margin:0;max-width:1080px;overflow-wrap:anywhere}.error-main{min-height:1280px;display:flex;align-items:end;padding:160px 32px 96px}.error-content h1{font-size:clamp(56px,7.5vw,96px);line-height:1;letter-spacing:-.03em;margin:0 0 32px}.error-content p{font-size:32px;line-height:1.1;letter-spacing:-.03em;margin:0}.error-content a{display:inline-block;margin-top:32px;font:400 16px/1.3 'IBM Plex Mono',monospace;color:var(--ink);text-underline-offset:4px}body[data-page="impressum"] .footer,body[data-page="datenschutz"] .footer,body[data-page="404"] .footer{padding-top:32px}
@media(max-width:800px){.legal-main{padding:128px 16px 72px;min-height:650px}.legal-main h1{font-size:40px;margin-bottom:48px}.legal-section h2{font-size:22px}.legal-section p{font-size:14px}.error-main{min-height:calc(100svh - 48px);padding:120px 16px 64px}.error-content h1{font-size:clamp(42px,10vw,72px)}.error-content p{font-size:22px}}
.error-main{position:relative;isolation:isolate;overflow:hidden}.error-content{position:relative;z-index:1}.error-scene{position:absolute;inset:clamp(120px,17vw,230px) 0 auto;display:grid;place-items:center;pointer-events:none}.error-vehicle{width:min(66vw,760px);aspect-ratio:356/98;perspective:1100px;contain:layout paint}.error-vehicle__stack{position:relative;width:100%;height:100%;transform-style:preserve-3d;animation:error-vehicle-turn 14s cubic-bezier(.25,1,.5,1) infinite alternate;will-change:transform}.error-vehicle__stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.error-vehicle__layer{filter:brightness(.45) saturate(1.12);opacity:.82}.error-vehicle__layer--back{transform:translate3d(-18px,17px,-28px)}.error-vehicle__layer--middle{transform:translate3d(-12px,11px,-18px)}.error-vehicle__layer--front{transform:translate3d(-6px,6px,-8px)}.error-vehicle__face{filter:drop-shadow(0 23px 18px rgba(19,30,41,.22))}.error-content h1,.error-content p,.error-content a{animation:error-copy-in 700ms cubic-bezier(.22,1,.36,1) both}.error-content h1{animation-delay:110ms}.error-content p{animation-delay:210ms}.error-content a{animation-delay:290ms}@keyframes error-vehicle-turn{0%{transform:rotateX(15deg) rotateY(-20deg) rotateZ(-2deg) translate3d(0,0,0)}100%{transform:rotateX(9deg) rotateY(20deg) rotateZ(2deg) translate3d(0,-8px,0)}}@keyframes error-copy-in{from{opacity:0;transform:translate3d(0,16px,0)}to{opacity:1;transform:translate3d(0,0,0)}}@media(max-width:800px){.error-scene{inset:148px 0 auto}.error-vehicle{width:min(92vw,520px)}.error-vehicle__layer--back{transform:translate3d(-11px,10px,-20px)}.error-vehicle__layer--middle{transform:translate3d(-7px,7px,-13px)}.error-vehicle__layer--front{transform:translate3d(-4px,4px,-6px)}}@media(prefers-reduced-motion:reduce){.error-vehicle__stack,.error-content h1,.error-content p,.error-content a{animation:none}}
.error-main{height:80vh;min-height:80vh;overflow:visible}.error-scene{left:50%;right:auto;width:100vw;transform:translateX(-50%)}.error-vehicle{width:min(84vw,1100px);contain:layout}@media(max-width:800px){.error-main{height:80svh;min-height:80svh}.error-scene{width:100vw}.error-vehicle{width:min(96vw,680px)}}
.error-main{flex-direction:column;justify-content:center;gap:64px;padding:clamp(112px,13vh,160px) 32px 48px}.error-scene{position:relative;inset:auto;left:auto;right:auto;transform:none;width:100%;flex:none}.error-vehicle{width:min(84vw,900px,70vh)}.error-content{width:100%;margin-inline:auto}.error-content h1{font-size:56px}.error-vehicle__stack{animation:error-vehicle-spin 18s linear infinite}@keyframes error-vehicle-spin{from{transform:rotateX(12deg) rotateY(0deg)}to{transform:rotateX(12deg) rotateY(360deg)}}@media(max-width:800px){.error-main{padding:clamp(116px,18vh,150px) 16px 40px;gap:64px}.error-vehicle{width:min(96vw,62vh)}.error-content h1{font-size:clamp(42px,10vw,56px)}}@media(prefers-reduced-motion:reduce){.error-vehicle__stack{animation:none;transform:rotateX(12deg) rotateY(-18deg)}}

/* The vehicle stays legible while two quiet traces suggest a drawn contour. */
.error-vehicle{perspective:1400px;contain:layout}
.error-vehicle__stack{animation:error-vehicle-drift 12s ease-in-out infinite alternate}
.error-vehicle__echo{filter:brightness(.55);pointer-events:none}
.error-vehicle__echo--far{opacity:.14;transform:translate3d(0,-16px,-22px)}
.error-vehicle__echo--near{opacity:.24;transform:translate3d(0,-8px,-11px)}
.error-vehicle__face{filter:none}
@keyframes error-vehicle-drift{
  from{transform:rotateX(3deg) rotateY(-7deg) rotateZ(-.5deg)}
  to{transform:rotateX(5deg) rotateY(7deg) rotateZ(.5deg)}
}
.error-content .error-home{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-top:32px;padding:12px 20px;border:1px solid var(--ink);border-radius:100px;background:var(--ink);color:var(--paper);font:700 16px/1.25 Roboto,Arial,sans-serif;text-decoration:none;box-shadow:0 4px 12px rgba(19,30,41,.14);transition:background 180ms ease,box-shadow 180ms ease}
.error-home:hover{background:#263747;box-shadow:0 6px 16px rgba(19,30,41,.2)}
.error-home:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media(max-width:800px){.error-vehicle{width:min(88vw,62vh)}.error-vehicle__echo--far{transform:translate3d(0,-10px,-14px)}.error-vehicle__echo--near{transform:translate3d(0,-5px,-7px)}}
@media(prefers-reduced-motion:reduce){.error-vehicle__stack{animation:none;transform:none}}

/* Keep the copy on the same centered rail as the vehicle. */
.error-content{width:min(100%,1440px);max-width:1440px;margin-inline:auto}

/* Fine pointers steer a shallow camera tilt; touch keeps the gentle drift. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .error-vehicle__stack{
    animation:none;
    transform:rotateX(var(--tilt-x,2deg)) rotateY(var(--tilt-y,0deg));
    transition:transform 280ms cubic-bezier(.22,1,.36,1)
  }
}
