/* ============================================================
   KINEO PHYSIO STUDIO — closely modeled on mantis.works
   warm light gray, giant grotesk statements, scribble figures,
   mono micro-labels on all edges, green accent shard
   ============================================================ */

:root {
  --bg: #d2d2d0;
  --ink: #111111;
  --grey: #9a9a98;
  --green: #54e04c;
  --card: #f4f4f2;

  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); }
  50% { transform: translate(1%,-2%); } 75% { transform: translate(-1%,2%); }
  100% { transform: translate(2%,-1%); }
}

::selection { background: var(--green); color: #000; }

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }

/* ============ PRELOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(115deg, #a8e0a0 0%, var(--bg) 55%);
  z-index: 500;
  transition: opacity 0.7s, visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }

.loader-line {
  position: absolute;
  top: 46%;
  left: 24px; right: 90px;
  height: 1px;
  background: rgba(17,17,17,0.25);
}
.loader-line i {
  display: block;
  height: 1px;
  width: 0%;
  background: var(--ink);
}
.loader-pct {
  position: absolute;
  top: 46%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 0.7rem;
}
.loader-logo {
  position: absolute;
  top: calc(46% + 18px);
  left: 24px;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.loader-logo .mono { font-size: 0.5rem; line-height: 1.4; padding-top: 5px; }

/* ============ CANVAS ============ */
#stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ============ FIXED CHROME ============ */
.chrome { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.chrome a, .chrome .ch-logo { pointer-events: auto; }

.ch-weather {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.ch-nav {
  position: absolute;
  top: 20px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 500;
}
.ch-nav a { position: relative; }
.ch-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}
.ch-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.ch-logo {
  position: absolute;
  top: 48.5%;
  left: 24px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ch-word {
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.ch-sub { font-size: 0.48rem; line-height: 1.5; letter-spacing: 0.06em; padding-top: 3px; }

.ch-shard {
  position: absolute;
  top: 34px;
  left: -24px;
  width: 130px;
  height: 100px;
}

.ch-side {
  position: absolute;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: rgba(17,17,17,0.75);
  writing-mode: vertical-rl;
}
.ch-side-tl { top: 22px; left: 14px; transform: rotate(180deg); }
.ch-side-bl { bottom: 22px; left: 14px; transform: rotate(180deg); }
.ch-side-r  { top: 50%; right: 14px; transform: translateY(-50%); }

/* ============ SCENES ============ */
main { position: relative; z-index: 10; }

.scene { min-height: 175vh; position: relative; }

.scene-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 0 6vw;
}
.scene-right { align-items: flex-end; }
.scene-left  { align-items: flex-start; padding-left: 14vw; }

.giant {
  font-weight: 500;
  font-size: clamp(3rem, 7.6vw, 8.2rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
}

.giant .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.giant .line > span { display: inline-block; transform: translateY(115%); }
.giant .grey { font-style: normal; color: var(--grey); }
.giant .dot { font-style: normal; }

.ind-1 { padding-left: 0.9em; }
.ind-2 { padding-left: 1.9em; }
.ind-3 { padding-left: 3.1em; }

.pill {
  background: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
}
.pill:hover { transform: scale(1.05); box-shadow: 0 4px 22px rgba(0,0,0,0.14); }
.pill-green { background: var(--green); color: #0b2508; }

/* ============ HERO ============ */
.hero-scene { min-height: 110vh; }

.hero-pin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 2vw;
  padding: 12vh 0 0 14vw;
}

.hero-left { position: relative; z-index: 5; }

.hero-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(17,17,17,0.6);
  margin-bottom: 2.6rem;
}

.hero-title {
  font-weight: 500;
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 2.2rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(115%); }
.hero-ind-1 { padding-left: 0.55em; }
.hero-ind-2 { padding-left: 1.15em; }

.hero-sub {
  font-size: 1.12rem;
  color: #3c3c3a;
  max-width: 38ch;
  margin-bottom: 2.6rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.2rem;
}
.hero-ctas .pill { opacity: 1; }

.hero-link {
  font-weight: 500;
  position: relative;
}
.hero-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}
.hero-link:hover::after { transform: scaleX(1); transform-origin: left; }

.hero-trust {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(17,17,17,0.55);
}

.hero-right { position: relative; min-height: 60vh; }

.hero-hint {
  position: absolute;
  top: 2vh;
  right: 4vw;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(17,17,17,0.6);
}

/* --- interactive hotspots on the figure --- */
.hotspot {
  position: fixed;
  left: 0; top: 0;
  z-index: 60;
  display: block;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
}

.hs-dot {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #0b2508;
  animation: hs-pulse 2.2s infinite;
}
@keyframes hs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(84, 224, 76, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(84, 224, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(84, 224, 76, 0); }
}

.hs-label {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.hs-label .mono {
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: rgba(17,17,17,0.55);
}
.hs-label b { font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; }
.hotspot:hover .hs-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.hotspot:hover .hs-dot { animation-play-state: paused; background: #fff; }

/* ============ CARD ============ */
.card-section {
  position: relative;
  padding: 14vh 6vw 10vh;
  display: flex;
  justify-content: center;
}

.card {
  background: var(--card);
  border-radius: 14px;
  max-width: 1080px;
  width: 100%;
  padding: clamp(2rem, 5vw, 4.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.10);
}

.card-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(17,17,17,0.55);
  margin-bottom: 2.6rem;
  overflow: hidden;
  white-space: nowrap;
}

.card-title {
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 1.6rem;
}

.card-text {
  color: #4c4c4a;
  max-width: 52ch;
  margin-bottom: 3.4rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  border-top: 1px solid #dddddb;
  padding-top: 2.4rem;
  margin-bottom: 2.8rem;
}
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-num {
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .mono { font-size: 0.58rem; letter-spacing: 0.1em; color: rgba(17,17,17,0.55); }

.card-foot {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(17,17,17,0.55);
  border-top: 1px dashed #c9c9c7;
  padding-top: 1.4rem;
}

/* ============ SERVICES ============ */
.services {
  position: relative;
  padding: 10vh 6vw 16vh;
  max-width: 1280px;
  margin: 0 auto;
}

.svc-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(17,17,17,0.55);
  margin-bottom: 8vh;
  white-space: nowrap;
  overflow: hidden;
}

.svc-group {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4vw;
  padding: 7vh 0;
  border-top: 1px solid rgba(17,17,17,0.2);
}

.svc-title {
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  position: sticky;
  top: 12vh;
  align-self: start;
}

.svc-list { list-style: none; display: flex; flex-direction: column; }
.svc-list li {
  display: grid;
  grid-template-columns: 64px 220px 1fr;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px dashed rgba(17,17,17,0.25);
  transition: padding-left 0.3s;
}
.svc-list li:hover { padding-left: 0.8rem; }
.svc-idx { font-size: 0.6rem; letter-spacing: 0.08em; color: rgba(17,17,17,0.55); }
.svc-list b { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.svc-list p { color: #4c4c4a; font-size: 0.95rem; max-width: 44ch; }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  min-height: 100vh;
  padding: 22vh 6vw 4vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.footer.scene { min-height: 130vh; }

.footer-glow {
  position: absolute;
  left: -10%;
  bottom: -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at 20% 80%, rgba(84, 224, 76, 0.5), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.footer-title {
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12vh;
  margin-left: 14vw;
}
.footer-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.footer-title .line > span { display: inline-block; transform: translateY(115%); }
.footer-title .dot { font-style: normal; }

.footer-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
  margin-left: 14vw;
  margin-bottom: 10vh;
}
.fcol { display: flex; flex-direction: column; gap: 0.4rem; }
.fcol h4 {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(17,17,17,0.6);
  border-bottom: 1px dashed rgba(17,17,17,0.4);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}
.fcol a {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  width: fit-content;
  position: relative;
}
.fcol a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}
.fcol a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2vw;
  margin-left: 14vw;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(17,17,17,0.4);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(17,17,17,0.7);
}
.footer-bar span:last-child { text-align: right; overflow: hidden; white-space: nowrap; }

/* ============================================================
   DETAIL PAGES (leistungen/*.html)
   ============================================================ */
.detail {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22vh 6vw 8vh;
}

.d-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(17,17,17,0.55);
  margin-bottom: 3rem;
  white-space: nowrap;
  overflow: hidden;
}

.d-title {
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11ch;
  margin-bottom: 2.4rem;
}

.d-intro {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 44ch;
  margin-bottom: 12vh;
}

.d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  max-width: 1040px;
  margin-bottom: 10vh;
}

.d-block h3 {
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(17,17,17,0.25);
  padding-bottom: 1rem;
  margin-bottom: 1.4rem;
}

.d-list { list-style: none; }
.d-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(17,17,17,0.25);
  font-weight: 500;
}
.d-list li::before {
  content: "///";
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(17,17,17,0.45);
}

.d-steps { list-style: none; counter-reset: step; }
.d-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed rgba(17,17,17,0.25);
}
.d-steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(17,17,17,0.5);
  padding-top: 0.25rem;
}
.d-steps b { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.d-steps p { color: #4c4c4a; font-size: 0.95rem; max-width: 40ch; }

.d-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(17,17,17,0.25);
  border-bottom: 1px solid rgba(17,17,17,0.25);
  max-width: 1040px;
  margin-bottom: 10vh;
}
.d-fact {
  flex: 1 1 200px;
  padding: 1.6rem 1.2rem 1.6rem 0;
  border-right: 1px dashed rgba(17,17,17,0.25);
}
.d-fact:last-child { border-right: none; }
.d-fact .mono {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: rgba(17,17,17,0.5);
  margin-bottom: 0.5rem;
}
.d-fact b { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }

.d-cta {
  background: var(--card);
  border-radius: 14px;
  padding: clamp(2rem, 4vw, 3.6rem);
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.09);
  margin-bottom: 10vh;
}
.d-cta h3 {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.d-cta .pill { opacity: 1; }

.d-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1040px;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(17,17,17,0.4);
  margin-bottom: 6vh;
}
.d-nav a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(17,17,17,0.75);
  transition: color 0.25s;
}
.d-nav a:hover { color: var(--ink); }

.d-footbar {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1040px;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: rgba(17,17,17,0.55);
}

/* subpage chrome: back link */
.ch-back {
  position: absolute;
  top: 20px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  pointer-events: auto;
}

/* services list on index: full-row links */
.svc-list li { position: relative; }
.svc-list li .svc-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.svc-list li .svc-arrow {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.svc-list li:hover .svc-arrow { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .ch-side, .ch-weather { display: none; }
  .ch-logo { top: auto; bottom: 20px; }
  .ch-shard { display: none; }
  .ch-nav { flex-direction: row; gap: 1.2rem; }

  .scene { min-height: 130vh; }
  .scene-pin, .scene-left, .scene-right {
    align-items: flex-start;
    padding: 0 7vw;
  }

  .hero-scene { min-height: 100vh; }
  .hero-pin {
    grid-template-columns: 1fr;
    padding: 14vh 7vw 0;
    align-items: start;
  }
  .hero-right { display: none; }
  .hotspot { display: none; }
  .hero-ctas { flex-wrap: wrap; gap: 1.2rem; }
  .ind-1 { padding-left: 0.5em; }
  .ind-2 { padding-left: 1em; }
  .ind-3 { padding-left: 1.5em; }

  .svc-group { grid-template-columns: 1fr; }
  .svc-title { position: static; margin-bottom: 1rem; }
  .svc-list li { grid-template-columns: 50px 1fr; }
  .svc-list p { grid-column: 2; }

  .detail { padding-top: 16vh; }
  .d-grid { grid-template-columns: 1fr; gap: 3rem; }
  .d-nav { flex-direction: column; gap: 0.8rem; }
  .d-footbar { flex-direction: column; gap: 0.4rem; }

  .footer-title, .footer-cols, .footer-bar { margin-left: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .footer-bar { grid-template-columns: 1fr; }
  .footer-bar span:last-child { text-align: left; }
}
