/* Lüftungsbau Jorissen GmbH – Design D3 „Anthrazit & Logoblau" */

@font-face {
  font-family: "Exo 2";
  src: url("../fonts/exo2-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #2A3036;
  --darker: #1F2428;
  --line-dark: #3C444B;
  --blue: #2E99D4;
  --blue-text: #1B6FA0;
  --blue-light: #7FC3EA;
  --text: #22313C;
  --muted: #4F5D68;
  --on-dark: #E4E8EB;
  --on-dark-muted: #B7C0C7;
  --bg-soft: #F3F5F7;
  --line: #E1E5E9;
  --line-2: #D5DADF;
  --input: #BCC4CB;
  --radius: 12px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --font-head: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }
p { margin: 0; }
input, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #fff; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-text);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--blue-light); }
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.lead { font-size: 18px; color: var(--muted); }
.section--dark .lead { color: #D5DADF; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: var(--darker); padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 6px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn--accent { background: var(--blue); color: var(--darker); }
.btn--accent:hover { background: #fff; color: var(--darker); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--blue); color: var(--darker); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--darker); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark); border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 14px; padding-bottom: 14px;
}
.site-header__logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s;
}
.nav__link:hover { background-size: 100% 2px; color: #fff; }
.nav__phone { font-size: 15px; padding: 12px 20px; min-height: 44px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: #fff;
  width: 48px; height: 48px; border-radius: 6px; align-items: center; justify-content: center; cursor: pointer;
}
.progress { height: 3px; background: var(--blue); transform-origin: left; transform: scaleX(0); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 24px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); background-image: none; }
  .nav__phone { margin-top: 16px; justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--darker); color: #fff; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__overlay { position: absolute; inset: 0; background: rgba(31, 36, 40, .78); }
.hero__inner { position: relative; padding-top: 128px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.hero__content { display: flex; flex-direction: column; gap: 28px; max-width: 900px; }
.hero h1 { font-size: clamp(34px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 .accent { color: var(--blue); }
.hero__text { font-size: 20px; max-width: 34em; color: #D5DADF; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid rgba(228, 232, 235, .3); margin: 0;
}
.facts div { padding: 24px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 2px; }
.facts dt { font-size: 15px; color: var(--on-dark-muted); }
.facts dd { margin: 0; font-family: var(--font-head); font-size: 36px; font-weight: 600; line-height: 1.1; }

/* Leistungen */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.section-head .stack { gap: 12px; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .45s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark);
  transform: translateY(101%); transition: transform .5s var(--ease-io);
}
.card:hover { border-color: var(--dark); }
.card:hover::before { transform: none; }
.card__num { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--blue-text); transition: color .4s; }
.card svg { stroke: var(--blue); transition: stroke .4s; }
.card h3 { font-size: 24px; color: var(--text); transition: color .4s; }
.card p { font-size: 16px; color: var(--muted); transition: color .4s; }
.card:hover h3 { color: #fff; }
.card:hover p { color: #D5DADF; }
.card:hover .card__num, .card:hover svg { color: var(--blue-light); stroke: var(--blue-light); }

/* Split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
.media { overflow: hidden; border-radius: var(--radius); }
.media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media:hover img { transform: scale(1.05); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line-dark); padding: 14px 0; }
.checklist li:last-child { border-bottom: 1px solid var(--line-dark); }
.checklist img { width: 22px; height: 22px; flex-shrink: 0; }

/* Ablauf */
.steps-line { height: 2px; background: var(--line); position: relative; margin-top: 56px; }
.steps-line span { position: absolute; inset: 0; background: var(--blue); transform-origin: left; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.steps__num { font-family: var(--font-head); font-weight: 700; font-size: 48px; line-height: 1; color: var(--blue); }
.steps h3 { font-size: 22px; }
.steps p { font-size: 16px; color: var(--muted); }

/* Galerie */
.gallery { background: var(--darker); padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); }

/* Referenzen */
.cities { list-style: none; margin: 0; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.cities li {
  border-top: 1px solid var(--line-2); padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .3s;
}
.cities li:last-child { border-bottom: 1px solid var(--line-2); }
.cities .name { display: flex; align-items: center; gap: 12px; }
.cities .arr { opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .3s; }
.cities li:hover { color: var(--blue-text); }
.cities li:hover .arr { opacity: 1; transform: none; }
.cities .region { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--muted); }

/* Kontakt */
.contact-phone { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 3.4vw, 40px); color: var(--text); text-decoration: none; line-height: 1.1; align-self: flex-start; }
.contact-phone:hover { color: var(--blue-text); }
address { font-style: normal; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.form { display: flex; flex-direction: column; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  border: 1px solid var(--input); border-radius: 6px; padding: 12px; min-height: 48px; background: #fff; color: var(--text);
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { border-color: var(--blue-text); outline: 2px solid var(--blue); outline-offset: 0; }
.form input[type="file"] { font-size: 14px; }
.form__hint { font-size: 13px; color: var(--muted); }
.form__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.form__check input { margin-top: 4px; width: 18px; height: 18px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; font-weight: 500; min-height: 1.5em; }
.form__status.is-ok { color: #1E6B3A; }
.form__status.is-error { color: #A12A2A; }

/* Footer */
.site-footer { background: var(--darker); color: var(--on-dark-muted); font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.site-footer img { height: 46px; width: auto; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #fff; padding: 10px 0; }

/* Rechtstexte */
.legal { padding: 96px 0 120px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.1; margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; color: var(--muted); }
.legal strong { color: var(--text); }

/* ── Bewegung ──────────────────────────────────────────── */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes parallax { from { transform: translateY(0) scale(1.12); } to { transform: translateY(14%) scale(1.12); } }

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; animation: rise 1s var(--ease-io) both; }
.anim-fade { animation: fade .9s var(--ease-out) both; }
.anim-wipe { animation: wipe 1.2s var(--ease-io) both; }

@supports (animation-timeline: view()) {
  .hero__media img { animation: parallax linear both; animation-timeline: scroll(); animation-range: 0 900px; }
  .progress { animation: grow linear both; animation-timeline: scroll(); }
  .reveal { animation: fade linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
  .slide { animation: slideIn linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
  .wipe-in { animation: wipe linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  .steps-line span { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
}

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

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero__inner { padding-top: 88px; padding-bottom: 72px; gap: 40px; }
  .hero__text { font-size: 18px; }
  .site-header__logo img { height: 40px; }
  .form { padding: 22px; }
}
