/* HostU im Stil von the1.amsterdam
   Typo als Architektur, flache Farbflächen in HostU-Blau, Haarlinien, Scroll-Choreografie.
   Schrift: Inter Tight als freier Ersatz für KH Teka (kommerziell lizenziert). */

:root {
  color-scheme: light;
  --c1: #b3c8de;          /* Hellblau        (Fläche 1) */
  --c2: #7097bd;          /* HostU-Primärblau (Fläche 2) */
  --c3: #5a7fa8;          /* HostU-Tiefblau   (Fläche 3) */
  --c4: #1f3550;          /* Nachtblau        (Fläche 4) */
  --ink: #16191f;         /* Text, Pills, Linien */
  --slate: #4b5564;       /* Nebentext */
  --canvas: #dfe5ec;      /* Seitenhintergrund, kühler Beton */
  --paper: #f2f5f8;       /* Text auf dunklen Flächen */
  --soft: #c8d4e1;        /* Nebentext auf dunklen Flächen */

  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 32px);
  --strip: clamp(14px, 3vw, 44px);
  --ease-out: cubic-bezier(0, 0, 0, 1);          /* the1: Einfahren */
  --ease-io: cubic-bezier(.67, .03, 0, 1.01);    /* the1: Intro */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 16px/1.35 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.display { font-weight: 400; letter-spacing: -.06em; line-height: .8; }
.h-xl { font-size: clamp(56px, 9.4vw, 150px); letter-spacing: -.06em; line-height: .8; }
.h-l  { font-size: clamp(40px, 5.4vw, 80px);  letter-spacing: -.05em; line-height: .84; }
.h-s  { font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.muted { color: var(--slate); }
.small { font-size: 13px; line-height: 1.3; letter-spacing: 0; }
.rule { border-top: 1px solid var(--ink); }

/* Pill + In-Text-CTA */
.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 0; border-radius: 100px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 500 14px/1 var(--font); letter-spacing: 0; padding: 11px 18px;
  transition: transform .3s var(--ease-out), background-color .2s, color .2s;
}
.pill:hover { transform: scale(1.04); }
.pill:active { transform: scale(.97); }
.ask { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  display: flex; align-items: center; gap: 20px; pointer-events: none;
  transition: color .3s;
}
.top > * { pointer-events: auto; }
.top .logo { font: 500 26px/1 var(--font); letter-spacing: -.04em; }
.top .ask { margin-left: auto; }
.burger {
  width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--ink); display: grid; place-content: center; gap: 4px; position: relative; z-index: 2;
  transition: background-color .3s, transform .3s var(--ease-out);
}
.burger:hover { transform: scale(1.06); }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--paper); transition: transform .35s var(--ease-io), opacity .2s, background-color .3s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.top.inv { color: var(--paper); }
.top.inv .pill, .top.inv .burger { background: var(--paper); color: var(--ink); }
.top.inv .burger span { background: var(--ink); }

/* Menü */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--c3); overflow: hidden;
  clip-path: circle(0px at calc(100% - var(--gutter) - 22px) calc(36px + env(safe-area-inset-top, 0px)));
  visibility: hidden;
}
.menu-mark { position: absolute; left: -.08em; bottom: -.2em; font-size: min(120vh, 110vw); line-height: .72; letter-spacing: -.06em; color: var(--c4); pointer-events: none; }
.menu nav { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; justify-items: end; gap: 4px; }
.menu nav a { font-size: clamp(44px, 7vw, 96px); line-height: .9; letter-spacing: -.05em; overflow: hidden; }
.menu nav a span { display: inline-block; }
.menu nav a:hover { color: var(--paper); }
.menu .menu-foot { position: absolute; right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); text-align: right; }

/* Intro-Vorhang (nur mit JS) */
.intro { display: none; }
.js .intro { display: grid; position: fixed; inset: 0; z-index: 60; background: var(--c4); place-items: center; }
.intro span { color: var(--paper); font-size: clamp(64px, 12vw, 180px); letter-spacing: -.06em; line-height: .8; }

/* Hero */
.hero { min-height: 100svh; padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gutter) 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 28px; }
.hero-lines { text-align: right; font-size: clamp(56px, 11.2vw, 168px); }
.hero-lines .l { display: block; }
.hero-mid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.cycle { font-size: clamp(60px, 11.4vw, 172px); height: .86em; overflow-x: visible; overflow-y: clip; white-space: nowrap; position: relative; margin-left: -.04em; }
.cycle-track { display: grid; }
.cycle-track span { display: block; height: .86em; line-height: .86; }
.hero-side { width: min(300px, 100%); display: grid; gap: 14px; padding-bottom: .6em; }
.hero-side p { font-size: 15px; line-height: 1.3; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); transform-origin: 50% 0; }
.card { display: grid; gap: 10px; }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tile img { position: absolute; left: 22%; top: 20%; width: 78%; height: 80%; object-fit: cover; transition: transform 1s var(--ease-out); }
.card:hover .tile img { transform: scale(1.05); }
.cap { display: grid; gap: 2px; font-size: 14px; }
.cap b { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
[data-c="1"] { --c: var(--c1); } [data-c="2"] { --c: var(--c2); }
[data-c="3"] { --c: var(--c3); } [data-c="4"] { --c: var(--c4); }
.tile, .dot { background: var(--c); }

/* Überschrift Reveal */
.why-head { padding: 22svh var(--gutter) 8svh; }
.why-head h2 { font-size: clamp(48px, 7vw, 110px); letter-spacing: -.055em; line-height: .84; max-width: 11em; }

/* 1 2 3 4: gestapelte Flächen */
.stack { position: relative; }
.panel {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  margin-left: calc(var(--i) * var(--strip)); background: var(--c);
}
.panel[data-c="4"] { color: var(--paper); }
.num { position: absolute; left: 3vw; bottom: 5svh; font-size: min(86svh, 62vw); line-height: .72; letter-spacing: -.07em; will-change: transform; }
.panel-text { position: absolute; right: 9vw; bottom: 16svh; width: min(330px, 70vw); border-top: 1px solid currentColor; padding-top: 12px; display: grid; gap: 8px; }
.panel-text p { font-size: 15px; line-height: 1.35; }
.panel[data-c="4"] .panel-text p { color: var(--soft); }

/* Zoom-Bild */
.zoom { height: 260svh; position: relative; }
.zoom-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.zoom-main { position: absolute; inset: 0; clip-path: inset(22% 31% 22% 31%); will-change: clip-path; }
.zoom-main img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.zoom-side { position: absolute; top: 30%; width: 14vw; aspect-ratio: 4 / 5; object-fit: cover; }
.zoom-side.l { left: 6vw; } .zoom-side.r { right: 6vw; top: 40%; }
.zoom-main::after, .circle-img::after { content: ""; position: absolute; inset: 0; background: rgba(31, 53, 80, .38); }
.zoom-title { position: absolute; z-index: 2; right: var(--gutter); bottom: 8svh; color: var(--paper); text-align: right; font-size: clamp(56px, 10vw, 160px); letter-spacing: -.06em; line-height: .8; }

/* Manifest mit schwebenden Bildern */
.manifesto { position: relative; padding: 20svh var(--gutter) 30svh; }
.manifesto p { position: relative; z-index: 2; font-size: clamp(48px, 8.6vw, 136px); letter-spacing: -.055em; line-height: .86; max-width: 10.5em; }
.float { position: absolute; z-index: 1; width: clamp(120px, 13vw, 200px); }
.float img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.float.framed { background: var(--c); aspect-ratio: 1 / 1; }
.float.framed img { position: absolute; left: 20%; top: 26%; width: 80%; height: 74%; aspect-ratio: auto; }

/* Kreis-Maske */
.circle { height: 240svh; position: relative; }
.circle-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.circle-img { position: absolute; inset: 0; clip-path: circle(14% at 50% 64%); will-change: clip-path; }
.circle-img img { width: 100%; height: 100%; object-fit: cover; }
.circle-title { position: absolute; z-index: 2; left: var(--gutter); bottom: 10svh; color: var(--paper); font-size: clamp(56px, 10vw, 160px); letter-spacing: -.06em; line-height: .8; max-width: 9em; }

/* Leistungen: fixierter Text, wechselnde Bilder */
.services { position: relative; }
.services-head { padding: 18svh var(--gutter) 6svh; }
.svc { height: calc(var(--n) * 70svh + 100svh); position: relative; }
.svc-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(260px, 27%) 1fr; gap: 16px; padding: calc(76px + env(safe-area-inset-top, 0px)) var(--gutter) var(--gutter); }
.svc-left { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 0; }
.svc-intro p { font-size: 15px; }
.svc-detail { align-self: end; font-size: 15px; min-height: 5.4em; }
.svc-list { border-top: 1px solid var(--ink); }
.svc-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: none; border: 0; border-bottom: 1px solid rgba(22, 25, 31, .25);
  padding: 7px 8px; font-size: 14px; text-align: left; cursor: pointer; transition: background-color .25s, color .25s;
}
.svc-list button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.svc-list .dot { width: 8px; height: 8px; }
.svc-right { position: relative; overflow: hidden; }
.svc-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease-out), transform 1.4s var(--ease-out); }
.svc-right img.on { opacity: 1; transform: scale(1); }

/* Zahlen */
.counters-sec { padding: 16svh var(--gutter); display: grid; gap: 40px; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.counter { padding: 18px 20px 0 0; display: grid; gap: 10px; align-content: start; }
.counter + .counter { padding-left: 20px; border-left: 1px solid var(--ink); }
.counter b { font-weight: 400; font-size: clamp(64px, 8.4vw, 130px); line-height: .78; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.counter p { font-size: 15px; max-width: 28ch; }

/* Stimmen */
.voices { padding: 8svh var(--gutter) 18svh; display: grid; gap: 64px; }
.voices blockquote.big { font-size: clamp(36px, 4.6vw, 72px); letter-spacing: -.05em; line-height: .92; max-width: 17em; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; }
.person b { font-weight: 500; display: block; }
.person img { width: 48px; height: 48px; object-fit: cover; object-position: top; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pair figure { border-top: 1px solid var(--ink); padding-top: 18px; }
.pair blockquote { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; line-height: 1.02; max-width: 22em; }

/* Preise */
.pricing-sec { padding: 0 0 18svh; }
.pricing-head { padding: 0 var(--gutter) 5svh; display: grid; gap: 14px; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; background: var(--c2); }
.pricing > div { padding: clamp(22px, 3vw, 44px) var(--gutter); display: grid; gap: 24px; align-content: start; }
.pricing > div + div { border-left: 1px solid var(--ink); }
.units { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.units label { font-size: 22px; letter-spacing: -.03em; }
.units output { font-size: 72px; line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 0; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 0; }
.scale { display: flex; justify-content: space-between; font-size: 13px; }
.toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 100px; padding: 3px; gap: 3px; width: max-content; }
.toggle button { font: 500 14px/1 var(--font); border: 0; border-radius: 100px; padding: 10px 16px; background: transparent; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.incl { display: grid; gap: 8px; font-size: 15px; }
.incl li { display: flex; gap: 10px; }
.incl li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-top: .45em; flex: none; }
.price { font-size: clamp(88px, 11vw, 176px); line-height: .74; letter-spacing: -.065em; font-variant-numeric: tabular-nums; padding-top: .06em; }
.price small { font-size: .28em; letter-spacing: -.02em; }
.price-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); padding: 0 var(--gutter) 18svh; }
.faq-side { position: sticky; top: 90px; align-self: start; display: grid; gap: 18px; }
details { border-top: 1px solid var(--ink); }
details:last-child { border-bottom: 1px solid var(--ink); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 18px; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.035em; line-height: 1.05; }
summary::-webkit-details-marker { display: none; }
.plus { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ink); position: relative; transition: transform .45s var(--ease-io); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--paper); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus { transform: rotate(135deg); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--slate); max-width: 60ch; padding-bottom: 22px; font-size: 16px; }

/* Kontakt */
.contact { border-top: 1px solid var(--ink); margin-inline: var(--gutter); padding-top: 14px; }
.contact-head { font-size: clamp(64px, 11vw, 176px); letter-spacing: -.065em; line-height: .8; padding-block: 2svh 6svh; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.contact-info { display: grid; gap: 22px; align-content: start; font-size: 15px; }
.contact-info b { font-weight: 500; display: block; }
.contact-box { background: var(--c4); color: var(--paper); padding: clamp(22px, 3vw, 44px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--soft); }
.field input, .field select {
  font: 400 17px/1.2 var(--font); color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid rgba(242, 245, 248, .45); border-radius: 0; padding: 10px 0; width: 100%; min-width: 0;
  transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--paper); }
.field input::placeholder { color: rgba(242, 245, 248, .45); }
.field select option { color: var(--ink); }
.field.invalid input { border-bottom-color: #f2aba4; }
.err { font-size: 12px; color: #f2aba4; }
.phone { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 8px; }
.contact-box .pill { background: var(--paper); color: var(--ink); }
.sent { grid-column: 1 / -1; display: grid; gap: 10px; }
.sent h3 { font-size: 40px; letter-spacing: -.05em; line-height: .9; }

/* Footer mit großer Wortmarke */
.foot-mark { position: relative; padding: 26svh 0 12svh; overflow: hidden; }
.foot-mark .word { font-size: 26vw; line-height: .72; letter-spacing: -.075em; text-align: center; margin-left: -.04em; }
.foot-mark .float { width: clamp(80px, 9vw, 150px); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
.foot-cols b { font-weight: 500; display: block; margin-bottom: 6px; }
.foot-cols a:hover { text-decoration: underline; }

/* Einblend-Helfer (werden von JS gesetzt) */
.split-lines > * { padding-bottom: .14em; margin-bottom: -.14em; }

/* Responsiv */
@media (max-width: 900px) {
  .top .ask span { display: none; }
  .hero-mid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .zoom-side { display: none; }
  .svc-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .svc-left { grid-template-rows: auto; }
  .svc-list { display: none; }
  .svc-detail { min-height: 4.2em; }
  .counters { grid-template-columns: 1fr; }
  .counter + .counter { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); margin-top: 18px; }
  .pair, .faq, .contact-grid, .pricing { grid-template-columns: 1fr; }
  .pricing > div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .faq-side { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .panel-text { left: calc(var(--gutter) + 10px); right: var(--gutter); width: auto; bottom: 8svh; }
  .num { bottom: 30svh; }
}
@media (max-width: 560px) {
  .top .ask { display: none; }
  .burger { margin-left: auto; }
  form { grid-template-columns: 1fr; }
  .float { width: 96px; }
}

/* Statische Variante: reduzierte Bewegung oder Animationsbibliothek nicht geladen */
.static .zoom, .static .circle { height: auto; }
.static .zoom-sticky, .static .circle-sticky { position: relative; height: 90svh; }
.static .zoom-main, .static .circle-img { clip-path: none; }
.static .zoom-main img { transform: none; }
.static .zoom-side { display: none; }
