/* =========================================================
   WST Schliesstechnik – Stylesheet
   Farben direkt aus dem Logo: Petrol #003341, Cyan #01B5E5,
   Himmelblau #54AADE (Visitenkarte), Tinte #16262E.
   ========================================================= */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #003341;
  --petrol-deep: #00212B;
  --petrol-soft: #0A4354;
  --cyan: #01B5E5;
  --sky: #54AADE;
  --paper: #F1F5F6;
  --paper-2: #E4EDEF;
  --ink: #16262E;
  --steel: #6E8A94;
  --white: #ffffff;

  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --gap-sec: clamp(88px, 12vw, 176px);
  --r: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--petrol);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--cyan); color: var(--petrol); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--petrol);
  padding: 12px 20px;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------------- Typografie ---------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: 'wght' 500;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--primary { background: var(--cyan); color: var(--petrol); }
.btn--primary:hover { background: #33C6EC; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--wide { width: 100%; padding: 18px 30px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------- Navigation ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(0, 34, 43, 0);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.nav.is-stuck {
  background: rgba(0, 34, 43, .78);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand { flex: none; line-height: 0; }
.nav__brand img { width: 148px; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav__links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--white); }

.nav__call {
  padding: 10px 20px;
  font-size: 15px;
  background: var(--cyan);
  color: var(--petrol);
}
.nav__call:hover { background: #33C6EC; }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad) 28px;
  background: rgba(0, 34, 43, .96);
  backdrop-filter: blur(18px);
}
.nav__mobile a {
  color: var(--white);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 19px;
  font-family: var(--display);
  letter-spacing: -0.02em;
}
.nav__mobile-call { color: var(--cyan) !important; border-bottom: 0 !important; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 132px 0 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(1,181,229,.20) 0%, rgba(1,181,229,0) 58%),
    var(--petrol);
  color: var(--white);
  overflow: hidden;
}

.hero__grid {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 40px;
  flex: 1;
}

.hero__eyebrow {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--sky);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-variation-settings: 'wght' 500;
  margin-bottom: 26px;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255,255,255,.76);
  max-width: 34ch;
  margin-bottom: 38px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__key {
  position: relative;
  height: min(74vh, 620px);
  will-change: transform;
}
.hero__key .key-art {
  position: absolute;
  right: -6%;
  top: 50%;
  translate: 0 -50%;
  width: 108%;
  height: 116%;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.4));
}

.key-art {
  background: url('../img/key.svg') no-repeat center / contain;
}

.hero__floor {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 56px;
  padding: 26px 0 34px;
}
.hero__floor .wrap, .hero__floor-text {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hero__floor-text {
  color: rgba(255,255,255,.62);
  font-size: 15px;
  margin: 0;
}

/* Stiftmotiv – die senkrechten Balken zitieren die Schliessstifte im Logo */
.pins {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 26px;
  max-width: var(--wrap);
  margin: 0 auto 18px;
  padding-inline: var(--pad);
}
.pins i {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--cyan);
  opacity: .85;
}
.pins i:nth-child(1) { height: 40%; }
.pins i:nth-child(2) { height: 100%; }
.pins i:nth-child(3) { height: 62%; }
.pins i:nth-child(4) { height: 88%; }
.pins i:nth-child(5) { height: 34%; }
.pins i:nth-child(6) { height: 74%; }
.pins i:nth-child(7) { height: 50%; }

/* Auftritt beim Laden – eine einzige inszenierte Sequenz */
[data-anim] {
  opacity: 0;
  transform: translateY(22px);
}
.loaded [data-anim] {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.loaded [data-anim="1"] { transition-delay: .05s; }
.loaded [data-anim="2"] { transition-delay: .15s; }
.loaded [data-anim="3"] { transition-delay: .28s; }
.loaded [data-anim="4"] { transition-delay: .38s; }

/* ---------------- Angepinnter Abschnitt ---------------- */

.pin { background: var(--petrol); color: var(--white); }
.pin__track { height: 340vh; position: relative; }
.pin__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
  overflow: hidden;
}

.pin__key {
  position: absolute;
  width: min(46vh, 340px);
  height: min(62vh, 460px);
  opacity: .16;
  transform: translateY(0) scale(1);
  will-change: transform;
}
.pin__key .key-art { width: 100%; height: 100%; }

.pin__lines {
  position: relative;
  z-index: 2;
  height: clamp(120px, 22vh, 220px);
  display: grid;
  place-items: center;
  width: 100%;
}
.pin__line {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-variation-settings: 'wght' 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.pin__line.is-on { opacity: 1; transform: none; }
.pin__line--final { color: var(--cyan); }

.pin__note {
  position: relative;
  z-index: 2;
  max-width: 46ch;
  margin-top: 34px;
  color: rgba(255,255,255,.62);
  font-size: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.pin__note.is-on { opacity: 1; transform: none; }

/* ---------------- Abschnitte ---------------- */

.sec { padding: var(--gap-sec) 0; }
.sec--light { background: var(--paper); color: var(--ink); }
.sec--dark { background: var(--petrol); color: var(--white); }
.sec--deep { background: var(--petrol-deep); color: var(--white); }

.sec__head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 84px); }
.sec__title {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  margin-bottom: 20px;
}
.sec__lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--steel);
  max-width: 52ch;
}
.sec--dark .sec__lead,
.sec--deep .sec__lead { color: rgba(255,255,255,.66); }

/* ---------------- Leistungen ---------------- */

.svc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(22,38,46,.14);
}
.svc__item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(22,38,46,.14);
}
.svc__item h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-variation-settings: 'wght' 500;
}
.svc__item p {
  color: var(--steel);
  max-width: 62ch;
  margin: 0;
}

/* ---------------- Spalten / Zielgruppen ---------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r);
  overflow: hidden;
}
.col { background: var(--petrol); padding: clamp(28px, 3.4vw, 44px); }
.col__tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.col h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  margin-bottom: 16px;
}
.col p { color: rgba(255,255,255,.68); font-size: 16px; }
.col ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.13);
}
.col li {
  padding: 11px 0 11px 22px;
  position: relative;
  font-size: 15px;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.col li:last-child { border-bottom: 0; padding-bottom: 0; }
.col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--sky);
}

/* ---------------- Ablauf ---------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 3.4vw, 46px);
}
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--petrol); }
.step__num {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-variation-settings: 'wght' 600;
  color: var(--cyan);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.32rem; margin-bottom: 12px; }
.step p { color: var(--steel); font-size: 16px; margin: 0; }

/* ---------------- Über uns ---------------- */

.ueber {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.ueber__text .sec__title { margin-bottom: 28px; }
.ueber__big {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.ueber__text p { color: rgba(255,255,255,.7); max-width: 62ch; }
.ueber__text .ueber__big { color: var(--white); }
.ueber__claim { width: min(420px, 100%); margin-top: 44px; opacity: .9; }

.ueber__facts {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 34px);
}
.ueber__facts dl { margin: 0; }
.ueber__facts div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ueber__facts div:first-child { padding-top: 0; }
.ueber__facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.ueber__facts dt {
  font-family: var(--display);
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 5px;
}
.ueber__facts dd { margin: 0; font-size: 16px; color: rgba(255,255,255,.9); }
.ueber__facts a { color: var(--cyan); text-decoration: none; }
.ueber__facts a:hover { text-decoration: underline; }

/* ---------------- Kontakt ---------------- */

.kontakt {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(34px, 4.5vw, 64px);
  align-items: start;
}

.kontakt__form {
  background: var(--white);
  border-radius: var(--r);
  padding: clamp(26px, 3.6vw, 44px);
  box-shadow: 0 24px 60px -30px rgba(0,51,65,.35);
}

.field { margin-bottom: 20px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--petrol);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #CFDBDF;
  border-radius: 12px;
  background: #FAFCFC;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 4px rgba(1,181,229,.16);
}
.field input.is-bad,
.field select.is-bad,
.field textarea.is-bad { border-color: #C4462F; background: #FDF5F3; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--steel);
  margin: 6px 0 26px;
  line-height: 1.5;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cyan);
  flex: none;
}
.check a { color: var(--petrol); }

/* Honeypot: unsichtbar, aber nicht display:none – das durchschauen bessere Bots */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot { display: flex; flex-direction: column; gap: 14px; }
.form__hint { font-size: 14.5px; color: var(--steel); text-align: center; margin: 0; }
.form__hint a { color: var(--petrol); font-weight: 600; }

.form__status {
  margin: 18px 0 0;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 15.5px;
  display: none;
}
.form__status.is-ok { display: block; background: #E3F6EC; color: #14603C; }
.form__status.is-bad { display: block; background: #FBEBE7; color: #97331F; }

.card-contact {
  background: var(--petrol);
  color: var(--white);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 32px);
  margin-bottom: 22px;
}
.card-contact p { margin: 0 0 6px; font-size: 16.5px; }
.card-contact a { color: var(--white); text-decoration: none; }
.card-contact a:hover { color: var(--cyan); }
.card-contact__name {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--sky);
  margin-bottom: 14px !important;
}
.card-contact__addr { margin-top: 18px !important; color: rgba(255,255,255,.62); font-size: 15px; }

.map {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__load {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(22,38,46,.12);
  border-radius: var(--r);
  background: linear-gradient(150deg, #E4EDEF 0%, #D3E2E6 100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px;
  text-align: center;
  font-family: var(--body);
  transition: background .3s var(--ease);
}
.map__load:hover { background: linear-gradient(150deg, #DCE8EB 0%, #C7DBE0 100%); }
.map__pin {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: var(--cyan);
  transform: rotate(-45deg);
  margin-bottom: 8px;
}
.map__title { font-family: var(--display); font-size: 1.15rem; color: var(--petrol); letter-spacing: -0.02em; }
.map__sub { font-size: 13.5px; color: var(--steel); max-width: 34ch; line-height: 1.45; }
.map__note { font-size: 14px; color: var(--steel); margin: 14px 0 0; }

/* ---------------- Fuss ---------------- */

.foot {
  background: var(--petrol-deep);
  color: rgba(255,255,255,.72);
  padding: clamp(56px, 7vw, 88px) 0 40px;
  font-size: 15.5px;
}
.foot__logo { width: 168px; margin-bottom: 40px; }
.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot__h {
  font-family: var(--display);
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 10px;
}
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { color: var(--cyan); }
.foot__legal { margin: 24px 0 0; font-size: 14px; color: rgba(255,255,255,.45); }

/* ---------------- Einblenden beim Scrollen ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ---------------- Rechtstexte ---------------- */

.legal { background: var(--paper); color: var(--ink); padding: 150px 0 var(--gap-sec); }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 34px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #3A4C54; max-width: 72ch; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--petrol); }
.legal .hinweis { color: #96A8AE; }
.legal .back { display: inline-block; margin-top: 46px; font-weight: 600; text-decoration: none; color: var(--petrol); }

/* ---------------- Responsive ---------------- */

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__call { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .nav.is-open { background: rgba(0,34,43,.96); }

  .hero { min-height: auto; padding-top: 116px; }
  .hero__grid { grid-template-columns: 1fr; gap: 10px; }
  .hero__lead { max-width: 46ch; }
  .hero__key { height: 44vh; order: 2; margin-top: 6px; }
  .hero__key .key-art { right: auto; left: 0; translate: 0 -50%; width: 100%; height: 100%; }

  .svc__item { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .ueber { grid-template-columns: 1fr; }
  .kontakt { grid-template-columns: 1fr; }
  .pin__track { height: 300vh; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { flex: 1 1 auto; }
  .foot__logo { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-anim], [data-reveal] { opacity: 1 !important; transform: none !important; }
  .pin__track { height: auto; }
  .pin__stage { position: static; height: auto; padding: var(--gap-sec) var(--pad); }
  .pin__lines { height: auto; display: block; }
  .pin__line { opacity: 1; transform: none; margin-bottom: 14px; }
  .pin__note { opacity: 1; transform: none; }
  .pin__key { display: none; }
}
