/* Controllas Cavegn GmbH — Stylesheet */

:root {
  --ink: #1a1e22;
  --graphite: #262b30;
  --steel: #66717b;
  --rail: #d9dee2;
  --panel: #eceff1;
  --paper: #f8f9f9;
  --signal: #f4c21b;
  --signal-deep: #d9a800;
  --white: #ffffff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.8vw, 3.4rem);
  --step-4: clamp(2.8rem, 2rem + 4vw, 6.2rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.display {
  font-size: var(--step-4);
  font-variation-settings: "wdth" 72;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.h2 { font-size: var(--step-3); font-variation-settings: "wdth" 78; line-height: 1; }
.h3 { font-size: var(--step-1); font-variation-settings: "wdth" 90; line-height: 1.15; }
.lead { font-size: var(--step-1); line-height: 1.45; font-weight: 400; max-width: 34em; }
.measure { max-width: 66ch; }

/* Motto: the Romansh claim, set like the logo's wordmark */
.motto {
  font-variation-settings: "wdth" 125;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  font-size: var(--step--1);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--signal); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.95em 1.4em;
  background: var(--bg); color: var(--fg);
  font: 700 var(--step-0)/1 var(--font);
  font-variation-settings: "wdth" 90;
  text-decoration: none; border: 2px solid var(--bg); border-radius: 3px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { --bg: var(--ink); --fg: var(--signal); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --bg: var(--signal); --fg: var(--ink); border-color: var(--signal); }
.btn .bolt { width: 0.8em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.site-header.is-solid,
body:not(.has-hero) .site-header {
  background: rgba(26, 30, 34, 0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand svg { width: 44px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-variation-settings: "wdth" 115; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.3em; font-variation-settings: "wdth" 125; opacity: .75; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a, .nav button.sub-toggle {
  display: block; padding: 10px 12px;
  font: 600 0.92rem/1 var(--font); font-variation-settings: "wdth" 92;
  color: inherit; text-decoration: none; background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav > ul > li > a::after, .nav button.sub-toggle::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after,
.nav button.sub-toggle:hover::after, .nav .has-sub.is-current > button::after { transform: scaleX(1); }
.nav .nav-cta { margin-left: 10px; }
.nav .nav-cta a { background: var(--signal); color: var(--ink); border-radius: 3px; padding: 11px 14px; }
.nav .nav-cta a::after { display: none; }
.nav .nav-cta a:hover { background: var(--white); }

.has-sub { position: relative; }
.sub-toggle .chev { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.has-sub.is-open .chev { transform: translateY(0) rotate(225deg); }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: var(--ink); color: var(--white); border-top: 3px solid var(--signal);
  box-shadow: 0 24px 48px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub.is-open .submenu, .has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { padding: 11px 12px; font-weight: 500; border-radius: 2px; }
.submenu a:hover { background: var(--graphite); color: var(--signal); }

.burger { display: none; width: 46px; height: 46px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); color: var(--white);
    padding: calc(var(--header-h) + 12px) var(--gutter) 40px;
    flex-direction: column; align-items: stretch; overflow-y: auto;
    clip-path: circle(0 at calc(100% - 40px) 38px);
    transition: clip-path .55s var(--ease);
    visibility: hidden;
  }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a, .nav button.sub-toggle { font-size: 1.35rem; padding: 18px 0; width: 100%; text-align: left; font-variation-settings: "wdth" 80; }
  .nav > ul > li > a::after, .nav button.sub-toggle::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 14px; display: none; min-width: 0; }
  .has-sub.is-open .submenu { display: block; }
  .has-sub:hover .submenu { display: none; }
  .has-sub.is-open:hover .submenu { display: block; }
  .submenu a { font-size: 1.05rem; padding: 10px 0; color: rgba(255,255,255,.75); }
  .submenu a:hover { background: none; }
  .nav .nav-cta { margin: 28px 0 0; border: 0; }
  .nav .nav-cta a { text-align: center; padding: 18px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--white);
  display: grid; align-items: end; overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,23,26,.88) 0%, rgba(20,23,26,.55) 42%, rgba(20,23,26,0) 70%),
    linear-gradient(0deg, rgba(20,23,26,.9) 0%, rgba(20,23,26,0) 45%);
}
.hero-inner { position: relative; padding-block: calc(var(--header-h) + 60px) clamp(48px, 9vh, 110px); }
.hero .motto { color: var(--signal); margin-bottom: 22px; display: block; }
.hero h1 { max-width: 9.5em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.18em; }
.hero h1 .line > span { display: block; }
.hero-claim { margin: 28px 0 36px; font-size: var(--step-1); line-height: 1.4; max-width: 26em; color: rgba(255,255,255,.88); }
.hero-claim strong { font-weight: 700; color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Messkurve: the measurement trace that runs across the hero on load */
.trace { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; }
.trace path { fill: none; stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 110px);
  writing-mode: vertical-rl; font-size: 0.75rem; letter-spacing: 0.3em; font-variation-settings: "wdth" 125;
  color: rgba(255,255,255,.7); text-decoration: none; display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--signal), transparent); }

/* Power-on sequence */
.js .hero-media img { filter: brightness(0.15) saturate(0.4); transform: scale(1.06); }
.js .hero .motto, .js .hero-claim, .js .hero-actions, .js .scroll-hint { opacity: 0; transform: translateY(14px); }
.js .hero h1 .line > span { transform: translateY(135%); }
.js .trace path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.powered .hero-media img { filter: brightness(1) saturate(1); transform: scale(1); transition: filter 1.6s var(--ease) .55s, transform 2.4s var(--ease) .2s; }
.powered .trace path { stroke-dashoffset: 0; opacity: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.6,0,.3,1) 0s, opacity .6s ease 1.5s; }
.powered .hero h1 .line > span { transform: none; transition: transform 1s var(--ease); }
.powered .hero h1 .line:nth-child(1) > span { transition-delay: .9s; }
.powered .hero h1 .line:nth-child(2) > span { transition-delay: 1.02s; }
.powered .hero .motto { opacity: 1; transform: none; transition: opacity .8s ease .8s, transform .8s var(--ease) .8s; }
.powered .hero-claim { opacity: 1; transform: none; transition: opacity .8s ease 1.25s, transform .8s var(--ease) 1.25s; }
.powered .hero-actions { opacity: 1; transform: none; transition: opacity .8s ease 1.4s, transform .8s var(--ease) 1.4s; }
.powered .scroll-hint { opacity: 1; transform: none; transition: opacity 1s ease 1.9s, transform 1s var(--ease) 1.9s; }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(48px, 7vw, 88px);
}
.page-hero.has-img { min-height: 62vh; display: grid; align-items: end; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,23,26,.92), rgba(20,23,26,.45) 65%, rgba(20,23,26,.2)), linear-gradient(0deg, rgba(20,23,26,.7), transparent 50%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: var(--step-4); font-variation-settings: "wdth" 72; line-height: .95; max-width: 11em; }
.page-hero .lead { margin-top: 26px; color: rgba(255,255,255,.85); }
.page-hero .rule { display: block; width: 72px; height: 4px; background: var(--signal); margin-bottom: 28px; transform-origin: left; }
.js .page-hero .rule { transform: scaleX(0); }
.powered .page-hero .rule { transform: none; transition: transform .9s var(--ease) .2s; }
.js .page-hero h1, .js .page-hero .lead { opacity: 0; transform: translateY(18px); }
.powered .page-hero h1 { opacity: 1; transform: none; transition: opacity .8s ease .3s, transform .9s var(--ease) .3s; }
.powered .page-hero .lead { opacity: 1; transform: none; transition: opacity .8s ease .5s, transform .9s var(--ease) .5s; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--panel { background: var(--panel); }
.section--dark { background: var(--ink); color: var(--white); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { max-width: 40em; color: var(--steel); margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }

/* Intro split */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.intro-text p:first-child { font-size: var(--step-1); line-height: 1.5; font-weight: 500; }
.intro-text .closing { margin-top: 32px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.intro-text .closing .motto { font-size: 1rem; background: var(--ink); color: var(--signal); padding: 8px 12px 8px 16px; font-weight: 600; }
.intro-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.intro-media figure { margin: 0; overflow: hidden; }
.intro-media figure:nth-child(2) { margin-top: 64px; }
.intro-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Image reveal (wipe) */
.js .reveal-img { clip-path: inset(0 0 100% 0); }
.js .reveal-img img { transform: scale(1.15); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); }
.js .reveal-img.in img { transform: none; transition: transform 1.6s var(--ease); }

/* ---------- Service modules (Sicherungskasten) ---------- */
.rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 2px solid var(--ink); background: var(--white);
}
.module {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px 32px;
  border-right: 1px solid var(--rail); border-bottom: 1px solid var(--rail);
  text-decoration: none; color: inherit; min-height: 280px;
  transition: background-color .3s var(--ease);
}
.module:nth-child(3n) { border-right: 0; }
.module:nth-last-child(-n+3) { border-bottom: 0; }
.module h3 { font-size: var(--step-1); font-variation-settings: "wdth" 88; }
.module p { color: var(--steel); margin: 0; font-size: 0.98rem; }
.module ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--steel); font-size: 0.95rem; }
.module .switch {
  width: 22px; height: 38px; border: 2px solid var(--ink); border-radius: 3px; position: relative; margin-bottom: 6px; background: var(--panel);
}
.module .switch::after {
  content: ""; position: absolute; left: 2px; right: 2px; height: 14px; bottom: 2px; background: var(--ink); border-radius: 1px;
  transition: bottom .35s var(--ease), background-color .35s var(--ease);
}
.module .more { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 0.92rem; display: inline-flex; gap: 8px; align-items: center; }
.module .more::after { content: ""; width: 22px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
a.module:hover { background: var(--ink); color: var(--white); }
a.module:hover p, a.module:hover ul { color: rgba(255,255,255,.72); }
a.module:hover .switch { border-color: var(--signal); background: var(--graphite); }
a.module:hover .switch::after { bottom: 18px; background: var(--signal); }
a.module:hover .more { color: var(--signal); }
a.module:hover .more::after { width: 34px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--signal); color: var(--ink); overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: clamp(64px, 8vw, 110px); position: relative; }
.cta-band h2 { font-size: var(--step-3); font-variation-settings: "wdth" 75; }
.cta-band p { margin: 18px 0 0; max-width: 36em; font-size: 1.05rem; }
.cta-band .cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; justify-self: end; }
.cta-band .btn { --bg: var(--ink); --fg: var(--white); }
.cta-band .btn:hover { --bg: var(--white); --fg: var(--ink); border-color: var(--white); }
.cta-band .phone { font-weight: 800; font-size: var(--step-2); font-variation-settings: "wdth" 75; text-decoration: none; }
.cta-band .bolt-bg { position: absolute; right: -40px; top: -60px; height: 140%; opacity: .12; pointer-events: none; }

/* ---------- Services page: detail rows ---------- */
.svc-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--white); border-bottom: 1px solid var(--rail); }
.svc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { display: block; white-space: nowrap; padding: 16px 14px; text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--steel); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.svc-nav a:hover { color: var(--ink); }
.svc-nav a.active { color: var(--ink); border-color: var(--signal); }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--rail); align-items: start; }
.svc:last-child { border-bottom: 0; }
.svc-head { position: sticky; top: calc(var(--header-h) + 90px); }
.svc-head h2 { font-size: var(--step-3); font-variation-settings: "wdth" 76; }
.svc-head figure { margin: 28px 0 0; overflow: hidden; }
.svc-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-body p:first-child { font-size: var(--step-1); line-height: 1.5; }

/* ---------- Ablauf / Timeline ---------- */
.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--rail); }
.steps .progress { position: absolute; left: 27px; top: 10px; width: 2px; background: var(--signal); height: 0; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: clamp(20px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.step:last-child { padding-bottom: 0; }
.step-no {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); font-weight: 800; font-size: 1.2rem; font-variation-settings: "wdth" 80;
  position: relative; z-index: 1; transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.step.lit .step-no { background: var(--signal); border-color: var(--signal); }
.step h2 { font-size: var(--step-2); font-variation-settings: "wdth" 80; margin: 10px 0 18px; }
.step .body { max-width: 62ch; }
.note { border-left: 4px solid var(--signal); background: var(--white); padding: 20px 24px; margin-top: 8px; }
.note p:last-child { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split figure { margin: 0; overflow: hidden; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery button {
  display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; background: var(--ink); cursor: zoom-in;
  break-inside: avoid; overflow: hidden; position: relative;
}
.gallery img { width: 100%; transition: transform .7s var(--ease), opacity .4s; }
.gallery button:hover img { transform: scale(1.04); opacity: .85; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15,17,19,.96); display: grid; place-items: center; padding: 60px 70px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; width: 54px; height: 54px; display: grid; place-items: center; }
.lightbox button:hover { color: var(--signal); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 28px; height: 28px; }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .85rem; letter-spacing: .1em; }

/* ---------- Über uns ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-intro figure { margin: 0; overflow: hidden; }
.about-intro img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }
.about-intro .lead { font-size: var(--step-2); font-variation-settings: "wdth" 85; font-weight: 600; line-height: 1.2; max-width: 18em; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline > li { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 4vw, 60px); padding: 34px 0; border-top: 1px solid rgba(255,255,255,.14); }
.timeline .year { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 70; color: var(--signal); line-height: 1; }
.timeline h3 { font-size: var(--step-1); font-variation-settings: "wdth" 90; margin-bottom: 10px; }
.timeline p { color: rgba(255,255,255,.75); margin: 0; max-width: 60ch; }
.timeline .projects { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.timeline .projects li { border: 1px solid rgba(255,255,255,.22); padding: 6px 12px; font-size: .9rem; color: rgba(255,255,255,.85); border-radius: 2px; }
.timeline .now .year { color: var(--white); }
.timeline .now h3 { color: var(--signal); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field .req { color: var(--signal-deep); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; background: var(--white); border: 1.5px solid #c6cdd2; border-radius: 3px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244,194,27,.55); }
.field .hint { font-size: .85rem; color: var(--steel); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { position: relative; font-weight: 500; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-block; padding: 10px 16px; border: 1.5px solid #c6cdd2; border-radius: 3px; background: var(--white); cursor: pointer; transition: background-color .2s, border-color .2s; }
.choices input:checked + span { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

.drop { border: 2px dashed #b9c1c7; border-radius: 3px; padding: 28px; text-align: center; background: var(--white); cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop.is-over { border-color: var(--signal-deep); background: #fffaea; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop strong { display: block; margin-bottom: 4px; }
.drop .file-name { margin-top: 10px; font-weight: 600; color: var(--ink); }

.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 3px; display: none; }
.form-status.ok { display: block; background: #e7f4e4; color: #1d4a17; }
.form-status.err { display: block; background: #fbe9e7; color: #7a1d12; }

.form-card { background: var(--white); padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--signal); box-shadow: 0 30px 60px -30px rgba(26,30,34,.25); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.form-layout aside { position: sticky; top: calc(var(--header-h) + 32px); }

.contact-card { background: var(--ink); color: var(--white); padding: clamp(28px, 4vw, 44px); margin-top: 36px; }
.contact-card .motto { color: var(--signal); display: block; margin: 6px 0 22px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .8rem; color: rgba(255,255,255,.55); }
.contact-card dd { margin: 0; font-weight: 600; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--signal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: clamp(64px, 8vw, 100px); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer .brand { color: var(--white); margin-bottom: 20px; }
.site-footer h2 { font-size: .95rem; color: var(--white); margin-bottom: 18px; font-variation-settings: "wdth" 100; }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Scroll reveal (text) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .9s ease, transform 1s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro, .split, .about-intro, .form-layout, .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-self: start; }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .module:nth-child(3n) { border-right: 1px solid var(--rail); }
  .module:nth-child(2n) { border-right: 0; }
  .module:nth-last-child(-n+3) { border-bottom: 1px solid var(--rail); }
  .module:nth-last-child(-n+2) { border-bottom: 0; }
  .svc { grid-template-columns: 1fr; }
  .svc-head { position: static; }
  .form-layout aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .rail { grid-template-columns: 1fr; }
  .module { border-right: 0 !important; min-height: 0; }
  .module:nth-last-child(-n+2) { border-bottom: 1px solid var(--rail); }
  .module:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .timeline > li { grid-template-columns: 1fr; gap: 12px; }
  .intro-media figure:nth-child(2) { margin-top: 36px; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .scroll-hint { display: none; }
  .hero-media img { object-position: 72% 30%; }
  .lightbox { padding: 60px 12px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 6px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---------- Logo images ---------- */
.brand img { height: 44px; width: auto; display: block; }
.site-footer .brand img { height: auto; width: 240px; }
@media (max-width: 640px) { .brand img { height: 36px; } }

/* ---------- Vorher/Nachher: Normalbild vs. Wärmebild ---------- */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden; background: var(--ink);
  aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none;
}
.compare .grip {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: var(--signal); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s var(--ease);
}
.compare .grip svg { width: 26px; height: 26px; }
.compare:hover .grip, .compare.dragging .grip { transform: scale(1.08); }
.compare input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare input[type=range]:focus-visible ~ .divider .grip { outline: 3px solid var(--white); outline-offset: 3px; }
.compare .tag {
  position: absolute; top: 16px; padding: 7px 12px; font-size: .85rem; font-weight: 700;
  background: rgba(26,30,34,.82); color: var(--white); pointer-events: none; border-radius: 2px;
}
.compare .tag--l { left: 16px; }
.compare .tag--r { right: 16px; background: rgba(244,194,27,.95); color: var(--ink); }
.compare-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; color: var(--steel); }
.section--dark .compare-meta { color: rgba(255,255,255,.6); }
.scale { display: flex; align-items: center; gap: 10px; }
.scale i { display: block; width: 160px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, #0b0b3b, #4b1a8a, #b4307a, #f0602a, #fcd34d, #fffbe6); }

/* ---------- Drohnen-Seite ---------- */
.kicker { display: block; color: var(--signal); font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: .06em; margin-bottom: 18px; font-size: var(--step--1); }
.overlap { margin-top: calc(-1 * clamp(40px, 8vw, 110px)); position: relative; z-index: 2; }

.checks { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--white); }
.checks > div { padding: 30px 28px; border-right: 1px solid var(--rail); border-bottom: 1px solid var(--rail); }
.checks > div:nth-child(3n) { border-right: 0; }
.checks > div:nth-last-child(-n+3) { border-bottom: 0; }
.checks h3 { font-size: var(--step-1); font-variation-settings: "wdth" 88; margin: 14px 0 8px; }
.checks p { margin: 0; color: var(--steel); }
.checks .dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fffbe6 0 18%, #fcd34d 35%, #f0602a 70%, #b4307a 100%); }

.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.why li { padding: 22px 0 22px 34px; border-top: 1px solid rgba(255,255,255,.14); position: relative; font-size: var(--step-1); line-height: 1.4; }
.why li::before { content: ""; position: absolute; left: 0; top: 30px; width: 14px; height: 14px; background: var(--signal); clip-path: polygon(64% 0, 0 57%, 40% 57%, 26% 100%, 100% 39%, 58% 39%, 76% 0); }

.offer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: offer; position: relative; }
.offer > div { background: var(--white); padding: 28px 24px 30px; border: 1px solid var(--rail); position: relative; }
.offer > div::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.offer.in > div::before { transform: scaleX(1); }
.offer.in > div:nth-child(2)::before { transition-delay: .25s; }
.offer.in > div:nth-child(3)::before { transition-delay: .5s; }
.offer.in > div:nth-child(4)::before { transition-delay: .75s; }
.offer .no { font-size: var(--step-3); font-weight: 800; font-variation-settings: "wdth" 70; line-height: 1; color: var(--ink); }
.offer h3 { font-size: var(--step-1); font-variation-settings: "wdth" 88; margin: 14px 0 10px; }
.offer p { margin: 0; color: var(--steel); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.two-col h2 { font-size: var(--step-2); font-variation-settings: "wdth" 80; margin-bottom: 18px; }
.two-col p { font-size: var(--step-1); line-height: 1.5; max-width: 30em; }

/* Startseite: Drohnen-Teaser */
.drone-teaser { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.drone-teaser h2 { font-size: var(--step-3); font-variation-settings: "wdth" 76; margin-bottom: 22px; }
.drone-teaser p { color: rgba(255,255,255,.78); font-size: var(--step-1); line-height: 1.5; margin-bottom: 30px; }

@media (max-width: 960px) {
  .drone-teaser, .two-col { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .checks > div:nth-child(3n) { border-right: 1px solid var(--rail); }
  .checks > div:nth-child(2n) { border-right: 0; }
  .checks > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--rail); }
  .checks > div:nth-last-child(-n+2) { border-bottom: 0; }
  .offer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .checks { grid-template-columns: 1fr; }
  .checks > div { border-right: 0 !important; border-bottom: 1px solid var(--rail) !important; }
  .checks > div:last-child { border-bottom: 0 !important; }
  .why { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .compare .grip { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

/* Arbeiten: Galerie nach Kategorien */
.gallery-title { margin: clamp(32px, 5vw, 56px) 0 18px; display: flex; align-items: center; gap: 12px; }
.gallery-title::before { content: ""; width: 28px; height: 4px; background: var(--signal); }
.gallery + .gallery-title { margin-top: clamp(48px, 7vw, 88px); }

/* Über mich: Porträt auf schmalen Bildschirmen nicht bildschirmfüllend, Gesicht bleibt sichtbar */
@media (max-width: 960px) {
  .about-intro figure { max-width: 440px; }
  .about-intro img { max-height: 72vh; }
}

/* ---------- Impressum / Datenschutz ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: var(--step-2); font-variation-settings: "wdth" 80; margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--step-1); font-variation-settings: "wdth" 90; margin: 28px 0 10px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-note { margin-top: 48px; color: var(--steel); font-size: .95rem; }
.legal-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.form-privacy { margin: 14px 0 0; font-size: .85rem; color: var(--steel); }
.form-privacy a { color: inherit; }

/* Echte Drohnenaufnahmen (Wärmekamera 5:4, oben beschnitten) */
.compare--photo { aspect-ratio: 1280 / 944; }
.flights { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.flights figure { margin: 0; }
.flights figcaption { margin-top: 12px; color: var(--steel); font-size: .95rem; max-width: 46ch; }
.flights .compare .grip { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
.flights .compare .tag { top: 10px; font-size: .78rem; padding: 5px 9px; }
.flights .compare .tag--l { left: 10px; }
.flights .compare .tag--r { right: 10px; }
@media (max-width: 760px) { .flights { grid-template-columns: 1fr; } }
.overlap .compare--photo { width: min(100%, calc(76vh * 1280 / 944)); margin-inline: auto; }
.overlap .compare-meta { width: min(100%, calc(76vh * 1280 / 944)); margin-inline: auto; }

/* Überflug-Video (Wärmebild) */
.flyover-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.flyover p { color: rgba(255,255,255,.78); font-size: var(--step-1); line-height: 1.5; margin-top: 22px; }
.flyover .flyover-note { font-size: .9rem; color: rgba(255,255,255,.5); }
.flyover-video { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 960 / 708; }
.flyover-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(26,30,34,.75); color: var(--white); cursor: pointer; display: grid; place-items: center;
}
.video-toggle:hover { background: var(--signal); color: var(--ink); }
.video-toggle .i-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.video-toggle.is-paused .i-pause { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
@media (max-width: 960px) { .flyover-grid { grid-template-columns: 1fr; } }

/* Services: sticky Bildspalte. Einblenden statt Wisch-Effekt, das bleibt beim Scrollen flüssig. */
.js .svc-head .reveal-img { clip-path: none; opacity: 0; transform: translateY(18px); }
.js .svc-head .reveal-img img { transform: none; }
.js .svc-head .reveal-img.in { clip-path: none; opacity: 1; transform: none; transition: opacity .7s ease, transform .8s var(--ease); }
.js .svc-head .reveal-img.in img { transition: none; }
.svc-nav ul { scroll-behavior: smooth; }
