/* style.css */
:root{
  --color-text:#111;
  --right-bg:#fff;
  --left-bg:#f2f2f2;
  --color-home:#3e368c;
  --color-impressum:#d2c51d;
  --transition-duration:500ms;
  --left-panel:23.5vw;
  --side-pad:2.2rem;
  --sideword-size:clamp(2.08rem, 3.44vw, 4.32rem);
  --footer-safe:calc(4.8rem + env(safe-area-inset-bottom));
  --nav-color:rgba(0,0,0,0.62);
  --nav-color-hover:rgba(0,0,0,0.82);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html, body{ width:100%; height:100%; overflow:hidden; }

body{
  position:relative;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight:300;
  color:var(--color-text);
  background:var(--right-bg);
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

.side-strip{
  position:fixed;
  top:0;
  left:0;
  width:var(--left-panel);
  height:100vh;
  background:var(--left-bg);
  z-index:0;
  pointer-events:none;
  padding:calc(var(--side-pad) + env(safe-area-inset-top)) 0 calc(var(--side-pad) + var(--footer-safe)) 0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.side-word{
  font-weight:900;
  font-size:var(--sideword-size);
  letter-spacing:0.04em;
  line-height:1;
  color:#000;
  text-transform:uppercase;
  max-width:calc(100vh - (2 * var(--side-pad)) - env(safe-area-inset-top) - var(--footer-safe));
  white-space:nowrap;
  transform:rotate(-90deg);
  transform-origin:center;
}

.side-word .big{ font-size:1.30em; }

#slides{ position:fixed; inset:0; z-index:1; }

.slide{
  position:absolute;
  top:0; right:0; bottom:0; left:var(--left-panel);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transform:scale(1.02);
  transition:opacity var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.slide.is-active{
  opacity:1;
  pointer-events:auto;
  transform:scale(1);
}

.slide-home{ padding-bottom:var(--footer-safe); }

.slide-inner{
  width:100%;
  max-width:1200px;
  padding:2rem;
  display:flex;
  align-items:center;
  justify-content:center;
}

.home-stack{
  width:100%;
  max-width:1100px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:5.2rem;
}

.logo-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-image{
  width:min(70vw, 560px);
  height:auto;
  max-height:40vh;
}

.home-keywords{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  max-width:90vw;
  font-weight:600;
  font-size:clamp(1.55rem, 2.2vw, 2.2rem);
  line-height:1.15;
  letter-spacing:0.03em;
  text-transform:uppercase;
  gap:0.55rem;
}

.home-keywords .kw{ white-space:nowrap; }

.home-keywords .kw:nth-child(2)::before,
.home-keywords .kw:nth-child(3)::before{
  content:"•";
  display:inline-block;
  margin:0 0.45rem 0 0.05rem;
  font-size:0.72em;
  font-weight:700;
  line-height:1;
}

.home-keywords .kw:nth-child(2)::before{ color:var(--color-impressum); }
.home-keywords .kw:nth-child(3)::before{ color:var(--color-home); }

.home-keywords .kw-primary{ color:var(--color-home); }
.home-keywords .kw-accent{ color:var(--color-impressum); }

.slide-inner-text{
  align-items:flex-start;
  justify-content:center;
  padding-top:3rem;
  padding-bottom:3.5rem;
}

.scrollable-pane{
  width:100%;
  max-width:920px;
  max-height:calc(100vh - 6rem);
  overflow-y:auto;
  padding:0 1.6rem calc(1.4rem + var(--footer-safe)) 1.6rem;
  background:transparent;
  border:none;
  border-radius:0;
  backdrop-filter:none;
}

.scrollable-pane::-webkit-scrollbar{ width:6px; }
.scrollable-pane::-webkit-scrollbar-track{ background:transparent; }
.scrollable-pane::-webkit-scrollbar-thumb{ background:rgba(0,0,0,0.25); }

.impressum{ width:100%; line-height:1.6; font-size:0.95rem; }
.impressum h1{ font-size:1.4rem; margin-bottom:1rem; }
.impressum h2{ font-size:1.1rem; margin-top:1.4rem; margin-bottom:0.4rem; }
.impressum p{ margin-bottom:0.6rem; }

.page-footer{
  position:fixed;
  left:var(--left-panel);
  right:0;
  bottom:0;
  z-index:10;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(6px);
  border-top:1px solid rgba(0,0,0,0.06);
  padding:0.75rem 1.2rem calc(0.85rem + env(safe-area-inset-bottom));
  display:flex;
  justify-content:center;
  align-items:center;
}

.footer-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:1.2rem;
  font-size:0.78rem;
}

.footer-link{
  text-decoration:none;
  cursor:pointer;
  color:var(--nav-color);
  font-weight:700;
}

.footer-link:hover{ color:var(--nav-color-hover); }
.footer-link.is-active{ color:var(--nav-color-hover); }

@media (max-width:768px){
  :root{
    --left-panel:20.5vw;
    --side-pad:2.0rem;
    --sideword-size:clamp(1.68rem, 4.16vw, 3.68rem);
    --footer-safe:calc(4.8rem + env(safe-area-inset-bottom));
  }

  .slide-inner{ padding:1.5rem; }

  .logo-image{
    width:min(78vw, 460px);
    max-height:32vh;
  }

  .home-stack{ gap:4.4rem; }
  .home-keywords{ font-size:clamp(1.35rem, 3.2vw, 1.85rem); }

  .home-keywords .kw:nth-child(3){ flex-basis:100%; }
  .home-keywords .kw:nth-child(3)::before{ content:none; display:none; }

  .scrollable-pane{
    max-height:calc(100vh - 5.5rem);
    padding:0 1.4rem calc(1.2rem + var(--footer-safe)) 1.4rem;
  }
}

@media (max-width:600px){
  :root{
    --left-panel:18vw;
    --side-pad:1.8rem;
    --sideword-size:clamp(1.48rem, 5.12vw, 3.12rem);
    --footer-safe:calc(4.9rem + env(safe-area-inset-bottom));
  }

  .logo-image{
    width:min(84vw, 360px);
    max-height:28vh;
  }

  .home-stack{ gap:3.9rem; }

  .home-keywords{
    flex-direction:column;
    flex-wrap:nowrap;
    gap:0.65rem;
    font-size:clamp(1.27rem, 4.85vw, 1.71rem);
  }

  .home-keywords .kw:nth-child(2)::before,
  .home-keywords .kw:nth-child(3)::before{
    content:none !important;
    display:none !important;
    margin:0 !important;
  }

  .scrollable-pane{
    max-height:calc(100vh - 5rem);
    padding:0 1.2rem calc(1.1rem + var(--footer-safe)) 1.2rem;
  }

  .footer-nav{ gap:0.9rem; font-size:0.74rem; }
}

@media (orientation:landscape) and (max-height:520px){
  :root{
    --side-pad:1.2rem;
    --sideword-size:clamp(1.05rem, 4.1vh, 2.35rem);
  }
}