/* ============ CUSTOM SCROLLBAR ============ */
html,
body{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
html.is-scrollbar-dragging{
  scroll-behavior:auto !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{display:none;width:0;height:0;background:transparent}
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button{display:none;width:0;height:0}
.site-scrollbar-thumb{
  position:fixed;
  top:0;
  right:3px;
  z-index:2147483647;
  width:7px;
  min-height:36px;
  background-color:rgba(255,255,255,.01);
  -webkit-backdrop-filter:invert(1);
  backdrop-filter:invert(1);
  border-radius:999px;
  opacity:0;
  pointer-events:auto;
  transform:translate3d(0,0,0);
  transition:background-color 220ms ease,opacity 160ms ease,-webkit-backdrop-filter 220ms ease,backdrop-filter 220ms ease;
  will-change:transform,height;
  touch-action:none;
  user-select:none;
}
.site-scrollbar-thumb.is-visible{opacity:1}
html.contact-popup-open .site-scrollbar-thumb,
html.phone-qr-open .site-scrollbar-thumb{
  opacity:0;
  pointer-events:none;
}
html.phone-qr-open,
html.phone-qr-open body{
  overflow:hidden;
  scrollbar-gutter:stable;
}
.site-scrollbar-thumb:hover,
.site-scrollbar-thumb.is-dragging{
  background-color:var(--yellow);
  -webkit-backdrop-filter:invert(0);
  backdrop-filter:invert(0);
}

/* ============ PHONE QR LIGHTBOX ============ */
.phone-qr-lightbox{
  position:fixed;
  inset:0;
  z-index:2200;
  display:none;
  place-items:center;
  padding:24px;
  color:var(--paper);
}
.phone-qr-lightbox::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(21,19,14,.56);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  opacity:0;
}
.phone-qr-lightbox.open{
  display:grid;
}
.phone-qr-lightbox.open::before{
  animation:phoneQrOverlayIn .34s var(--ease-out) both;
}
.phone-qr-lightbox.closing{
  display:grid;
  pointer-events:none;
}
.phone-qr-lightbox.closing::before{
  animation:phoneQrOverlayOut .42s ease both;
}
.phone-qr-dialog{
  position:relative;
  z-index:1;
  display:grid;
  justify-items:center;
  gap:18px;
  width:min(680px, calc(100vw - 48px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  border:1px solid rgba(248,244,236,.14);
  border-radius:28px;
  background:rgba(21,19,14,.92);
  color:var(--paper);
  padding:36px 40px 34px;
  box-shadow:0 40px 110px -38px rgba(0,0,0,.75);
  opacity:0;
  transform:translateY(10px) scale(.96);
}
.phone-qr-lightbox.open .phone-qr-dialog{
  animation:phoneQrIn .42s var(--ease-out) both;
}
.phone-qr-lightbox.closing .phone-qr-dialog{
  animation:phoneQrOut .24s ease both;
}
.phone-qr-media{
  display:block;
  width:min(480px, 100%, 58vh);
  aspect-ratio:1;
  border:1px solid rgba(248,244,236,.2);
  border-radius:20px;
  background:#fff;
  padding:24px;
  box-shadow:0 22px 58px rgba(0,0,0,.32);
}
.phone-qr-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.phone-qr-copy{
  display:grid;
  gap:9px;
  max-width:520px;
  padding-right:44px;
  text-align:center;
}
.phone-qr-copy h2{
  margin:0;
  color:var(--paper);
  font-family:inherit;
  font-size:clamp(26px,2.6vw,34px);
  font-weight:650;
  line-height:1.14;
}
.phone-qr-copy p{
  margin:0;
  color:rgba(248,244,236,.68);
  font-size:17px;
  line-height:1.48;
  font-weight:450;
}
.phone-qr-copy p span{
  display:block;
}
.phone-qr-fallback{
  display:grid;
  justify-items:center;
  gap:5px;
  width:100%;
  padding-top:0;
  text-align:center;
}
.phone-qr-fallback span{
  color:rgba(248,244,236,.5);
  font-size:14px;
  font-weight:550;
}
.phone-qr-fallback strong{
  color:var(--paper);
  font-size:clamp(21px, 2vw, 24px);
  line-height:1.1;
  font-weight:700;
}
.phone-qr-close{
  position:absolute;
  top:18px;
  right:18px;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid rgba(248,244,236,.14);
  border-radius:50%;
  background:rgba(248,244,236,.06);
  color:rgba(248,244,236,.78);
  cursor:pointer;
  transition:background-color 160ms ease,transform 160ms var(--ease-out),border-color 160ms ease,color 160ms ease;
}
.phone-qr-close svg{width:24px;height:24px}
.phone-qr-close:hover,
.phone-qr-close:focus-visible{
  color:var(--ink);
  border-color:var(--yellow);
  background:var(--yellow);
  outline:none;
}
.phone-qr-close:active{transform:scale(.96)}
@keyframes phoneQrOverlayIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes phoneQrOverlayOut{
  from{opacity:1}
  to{opacity:0}
}
@keyframes phoneQrIn{
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes phoneQrOut{
  from{opacity:1;transform:translateY(0) scale(1)}
  to{opacity:0;transform:translateY(8px) scale(.98)}
}

/* ============ NAV ============ */
.nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  font-family:'Manrope',system-ui,sans-serif;
  font-size:17px;
  line-height:1.55;
  backdrop-filter:blur(14px);
  background:rgba(248,244,236,.78);
  border-bottom:1px solid var(--line);
}
@media (min-width:981px){
  .nav{
    transition:opacity 220ms cubic-bezier(.22,1,.36,1);
  }
  html.contact-popup-nav-hidden .nav{
    opacity:0;
    pointer-events:none;
    transition:opacity 860ms cubic-bezier(.22,1,.36,1);
  }
  html.contact-popup-closing .nav{
    z-index:1001;
    background:rgba(248,244,236,.96);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}
.nav-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:72px;
  min-width:0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:0 1 auto;
}
.brand-mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.brand-name{
  font-weight:600;
  font-size:15px;
  line-height:1.2;
  letter-spacing:-.01em;
  white-space:nowrap;
}
.brand-name span{
  color:var(--mute);
  font-weight:400;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
}
.nav-links a{
  font-size:14px;
  color:var(--ink-2);
  transition:color .2s;
  position:relative;
}
.nav-links a:hover{color:var(--ink)}
.nav-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.nav-cta{
  background:var(--ink);
  color:var(--paper);
  padding:11px 20px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .2s,background .2s,color .2s;
}
.nav-cta:hover{
  background:var(--yellow);
  color:var(--ink);
  transform:translateY(-1px);
}
.nav-cta svg{width:14px;height:14px}
.mobile-menu-toggle{
  display:none;
  width:32px;
  height:42px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ink);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  transition:color .2s,transform .2s;
}
.mobile-menu-toggle span{
  display:block;
  flex:0 0 auto;
  width:24px;
  height:2px;
  min-width:24px;
  max-width:24px;
  border-radius:999px;
  background:currentColor;
  transition:transform .2s,opacity .2s;
}
.mobile-menu-toggle.is-open{color:var(--yellow)}
.mobile-menu-toggle:active{transform:scale(.96)}
.mobile-menu-toggle.is-open span{
  width:21px;
  min-width:21px;
  max-width:21px;
}
.mobile-menu-toggle.is-open span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.mobile-menu-toggle.is-open span:nth-child(2){opacity:0}
.mobile-menu-toggle.is-open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
.mobile-nav-menu{
  position:fixed;
  top:72px;
  left:0;
  right:0;
  bottom:0;
  width:auto;
  min-height:calc(100svh - 72px);
  z-index:1001;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:28px 24px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 54%, var(--paper) 100%);
  box-shadow:none;
  backdrop-filter:blur(36px) saturate(1.08);
  -webkit-backdrop-filter:blur(36px) saturate(1.08);
  animation:mobileMenuFade .22s ease-out both;
}
.mobile-nav-menu[hidden]{display:none}
.mobile-nav-links{
  position:absolute;
  top:44%;
  left:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  gap:10px;
  transform:translate(-50%,-50%);
}
.mobile-nav-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(320px,100%);
  min-height:58px;
  padding:0 18px;
  border:0;
  border-radius:8px;
  color:var(--ink);
  font-size:24px;
  line-height:1.2;
  font-weight:600;
  text-align:center;
  transform:translateY(10px);
  transition:color 220ms ease;
  animation:mobileMenuItem .3s ease-out both;
  -webkit-tap-highlight-color:transparent;
}
.mobile-nav-links a:focus{
  outline:none;
}
.mobile-nav-links a:focus-visible{
  color:var(--yellow-deep);
}
.mobile-nav-links a:nth-child(1){animation-delay:.03s}
.mobile-nav-links a:nth-child(2){animation-delay:.06s}
.mobile-nav-links a:nth-child(3){animation-delay:.09s}
.mobile-nav-links a:nth-child(4){animation-delay:.12s}
.mobile-nav-links a:active,
.mobile-nav-links a.is-pressed{
  background:transparent;
  color:var(--yellow-deep);
}
.mobile-nav-contact{
  position:absolute;
  left:24px;
  right:24px;
  bottom:68px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding-top:18px;
  border-top:1px solid rgba(21,19,14,.1);
  color:rgba(21,19,14,.5);
  font-size:13px;
  animation:mobileMenuItem .32s .12s ease-out both;
}
.mobile-nav-contact a{
  color:var(--ink);
  font-weight:600;
}
.mobile-nav-contact span{
  color:rgba(21,19,14,.46);
}
.mobile-nav-legal{
  position:absolute;
  left:24px;
  right:24px;
  bottom:26px;
  display:flex;
  justify-content:center;
  gap:18px;
  animation:mobileMenuItem .32s .14s ease-out both;
}
.mobile-nav-legal a{
  color:rgba(21,19,14,.48);
  font-size:12px;
  font-weight:500;
}
.mobile-nav-legal a:active,
.mobile-nav-legal a:hover{color:var(--ink)}
@keyframes mobileMenuFade{
  from{opacity:0}
  to{opacity:1}
}
@keyframes mobileMenuItem{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

/* ============ FOOTER ============ */
footer{
  background:var(--ink);
  color:var(--paper);
  padding:80px 0 32px;
}
.foot-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:48px;
  margin-bottom:64px;
}
.foot-brand .brand-name{color:var(--paper)}
.foot-brand p{
  color:rgba(248,244,236,.6);
  font-size:14px;
  margin-top:18px;
  max-width:34ch;
}
.foot-col h5{
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--yellow);
  margin-bottom:18px;
  font-weight:600;
}
.foot-col ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.foot-col a,
.foot-col li{
  color:rgba(248,244,236,.75);
  font-size:14px;
}
.foot-col a:hover{color:var(--yellow)}
.impressum{
  border-top:1px solid rgba(248,244,236,.15);
  padding-top:32px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  font-size:12px;
  color:rgba(248,244,236,.55);
  line-height:1.6;
}
.impressum h6{
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  color:var(--yellow);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:8px;
  font-weight:500;
}
.impressum p{margin-bottom:14px}
.impressum strong{
  color:rgba(248,244,236,.85);
  font-weight:600;
}
.foot-bottom{
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid rgba(248,244,236,.15);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:16px;
  font-size:12px;
  color:rgba(248,244,236,.45);
}
.foot-bottom-copy{
  display:flex;
  align-items:center;
  min-width:0;
}
.foot-bottom-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  min-width:0;
}
.foot-bottom-credit{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
}
.footer-credit{
  color:rgba(248,244,236,.36);
  white-space:nowrap;
}
.foot-bottom .footer-credit a{
  color:var(--yellow);
  margin-left:0;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.foot-bottom .footer-credit a:hover{color:var(--yellow)}
.foot-bottom a{
  color:rgba(248,244,236,.6);
}
.foot-bottom a:hover{color:var(--yellow)}

@media (max-width:900px){
  .nav-links{display:none}
  .nav-actions{gap:28px}
  .mobile-menu-toggle{display:inline-flex}
  .site-scrollbar-thumb{display:none}
}
@media (hover:hover) and (pointer:fine){
  .mobile-nav-links a:hover{
    color:var(--yellow-deep);
  }
}
@media (max-width:880px){
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:780px){
  .impressum{grid-template-columns:1fr}
}
@media (max-width:640px){
  .nav .wrap{
    padding-left:20px;
    padding-right:24px;
  }
  .nav-inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    height:72px;
    gap:12px;
  }
  .nav .brand{min-width:0}
  .nav-actions{gap:14px}
  .brand-mark{width:34px;height:34px}
  .brand-name{font-size:14px}
  .brand-name span{display:none}
  .legal,
  .legal-inner,
  .content{
    min-width:0;
  }
  .content h2,
  .content p,
  .content li,
  .content a{
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .phone-qr-lightbox{padding:14px}
  .phone-qr-dialog{
    width:calc(100vw - 28px);
    max-height:calc(100vh - 28px);
    border-radius:20px;
    padding:72px 18px 22px;
  }
  .phone-qr-copy{
    padding-right:0;
  }
  .phone-qr-copy p{
    font-size:18px;
  }
  .phone-qr-media{
    width:min(100%, 54vh);
    padding:16px;
  }
  .phone-qr-close{
    top:14px;
    right:14px;
  }
}
@media (max-width:720px){
  body:has(.mobile-cta-bar){
    padding-bottom:0;
  }
  body:has(.mobile-cta-bar) footer{
    padding-bottom:calc(116px + env(safe-area-inset-bottom));
  }
  .foot-bottom{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
  }
  .foot-bottom-copy,
  .foot-bottom-credit{
    justify-content:center;
  }
  .foot-bottom-links{
    flex-wrap:wrap;
    gap:10px 18px;
  }
}
@media (max-width:520px){
  footer{
    padding-top:44px;
  }
  footer .wrap{
    padding-left:18px;
    padding-right:18px;
  }
  .foot-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:22px;
    row-gap:28px;
    margin-bottom:42px;
  }
  .foot-brand,
  .foot-col:nth-child(4){
    grid-column:1 / -1;
  }
  .foot-brand p{
    max-width:none;
    margin-top:12px;
  }
  .foot-col h5{
    margin-bottom:12px;
  }
  .foot-col ul{
    gap:8px;
  }
  .foot-col,
  .foot-col li,
  .foot-col a{
    min-width:0;
  }
  .foot-col:nth-child(4) ul{
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px 14px;
    align-items:center;
  }
  .foot-col:nth-child(4) li{
    width:auto;
    overflow-wrap:anywhere;
  }
  .impressum{
    padding-top:24px;
    gap:22px;
  }
  .foot-bottom{
    margin-top:24px;
    padding-top:20px;
  }
}
@media (max-width:420px){
  .nav .wrap{
    padding-left:18px;
    padding-right:22px;
  }
  .nav-inner{gap:10px}
  .nav-cta span{display:none}
  .nav-cta{
    width:42px;
    height:42px;
    padding:0;
    justify-content:center;
    border-radius:50%;
  }
}
