/* InstandWerk Sanierung — site styles */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal: #0092B3;
  --teal-dark: #007893;
  --navy: #0D3B5C;
  --ink: #072030;
  --paper: #F2F2F2;
  --white: #fff;
  --text: #1c3343;
  --muted: #566a78;
  --line: #d9e0e5;

  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --header-h: 76px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }

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

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #6fd0e6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--ghost { border: 1.5px solid var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(7,32,48,.45); }
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); }
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 46px; height: 41px; fill: var(--teal); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.42rem; color: var(--navy); letter-spacing: -.01em; }
.brand__name b { font-weight: 600; color: var(--teal); }
.brand__sub {
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand__sub::before,
.brand__sub::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .7; }
.brand__sub::after { margin-left: -.42em; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 10px 16px; border-radius: var(--radius); background: var(--paper);
  white-space: nowrap;
}
.header-call svg { width: 18px; height: 18px; color: var(--teal); }
.header-call:hover { background: var(--navy); color: #fff; }
.header-call:hover svg { color: #fff; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; min-height: min(680px, calc(100vh - var(--header-h))); }
.hero__text { position: relative; z-index: 2; background: #fff; padding: clamp(48px, 8vw, 104px) 48px clamp(48px, 7vw, 88px) 0; }
.hero__text h1 { max-width: 13.5em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: var(--navy); }
.hero__facts li { display: flex; align-items: center; gap: 9px; }
.hero__facts li::before { content: ""; width: 7px; height: 7px; background: var(--teal); transform: rotate(45deg); }

.hero__visual { position: relative; margin-right: calc(var(--gutter) * -1); min-height: 420px; }
@media (min-width: 1181px) { .hero__visual { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gutter) + 8px); } }
.hero__photo, .hero__stripe { position: absolute; inset: 0; }
.hero__stripe { background: var(--teal); clip-path: polygon(17% 0, 18.6% 0, 1.6% 100%, 0 100%); }
.hero__photo {
  clip-path: polygon(21% 0, 100% 0, 100% 100%, 4% 100%);
  background: var(--navy) url("../img/pattern.svg");
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,59,92,0) 55%, rgba(7,32,48,.35));
}
.star-badge { filter: drop-shadow(0 10px 18px rgba(7,32,48,.35)); }
.hero__star { position: absolute; width: clamp(92px, 9vw, 128px); left: 12.5%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.service { position: relative; padding: 38px 48px 40px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.service:nth-last-child(-n+2) { border-bottom: 0; }
.service__no { position: absolute; top: 40px; right: 48px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: #9fb3c0; letter-spacing: .08em; }
.service:nth-child(even) .service__no { right: 0; }
.service__icon { width: 44px; height: 44px; color: var(--teal); margin-bottom: 18px; }
.service h3 { font-size: 1.45rem; margin-bottom: 12px; }
.service p { color: var(--muted); }
.service ul { list-style: none; padding: 0; margin: 20px 0 0; }
.service li { padding: 10px 0; border-top: 1px dashed var(--line); font-weight: 500; color: var(--navy); font-size: .98rem; }

/* Werte */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 30px 0 0; padding: 0; }
.values div { border-top: 2px solid var(--teal); padding-top: 14px; }
.values dt { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.values dd { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* Für wen */
.clients { background: var(--paper); padding: clamp(56px, 8vw, 88px) 0; }
.clients__grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.clients__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.clients__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.clients__list dt { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.12rem; margin-bottom: 4px; }
.clients__list dd { margin: 0; color: var(--muted); }

/* Brandschaden */
.fire { background: var(--navy) url("../img/pattern.svg"); color: #d3e2ec; padding: clamp(72px, 10vw, 120px) 0; }
.fire h2, .fire h3 { color: #fff; }
.fire__head { max-width: 760px; margin-bottom: 44px; }
.fire__head p { font-size: 1.08rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__item { margin: 0; position: relative; background: var(--ink); }
.compare__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.compare__item figcaption {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 0; font-size: .95rem; color: #b9cfdd;
  background: var(--navy);
}
.tag {
  font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; background: var(--teal); color: #fff; border-radius: 2px;
}
.tag--dark { background: #2a2f33; }
.fire__note { font-size: .78rem; color: #8fb0c4; margin: 10px 0 0; text-align: right; }
.fire__steps {
  list-style: none; margin: 56px 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.fire__steps li { counter-increment: step; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.fire__steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-weight: 600; color: #6fd0e6; font-size: .95rem; margin-bottom: 10px;
}
.fire__steps h3 { font-size: 1.12rem; }
.fire__steps p { font-size: .97rem; margin: 0; }

/* Ablauf */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.process li { position: relative; padding-right: 26px; }
.process__no {
  position: relative; z-index: 0; display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy);
}
.process__no::before {
  content: ""; position: absolute; inset: 7px; z-index: -1;
  background: #fff; border: 2px solid var(--teal); transform: rotate(45deg);
}
.process li h3 { font-size: 1.12rem; }
.process li p { font-size: .97rem; color: var(--muted); margin: 0; }

/* Über uns */
.about { padding: 0 0 clamp(72px, 10vw, 120px); }
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__media::before {
  content: ""; position: absolute; left: -18px; top: 28px; bottom: -18px; width: 62%;
  background: var(--navy) url("../img/pattern.svg"); z-index: -1;
}
.about__star { position: absolute; width: 104px; right: -36px; bottom: 56px; }
.about__text p { color: var(--muted); }
.person { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.person__initials {
  width: 56px; height: 56px; display: grid; place-items: center; flex: none;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; border-radius: 50%;
}
.person strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; font-weight: 600; }
.person span { color: var(--teal); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* Einsatzgebiet */
.area { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area__inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-block: 44px; align-items: baseline; }
.area h2 { font-size: 1.5rem; margin: 0; }
.area p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Kontakt */
.contact { background: var(--ink) url("../img/pattern.svg"); color: #c9dae5; padding: clamp(72px, 10vw, 112px) 0; }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__intro p { font-size: 1.08rem; max-width: 30em; }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.contact__list a {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: var(--ink); color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.12rem; font-weight: 500;
  transition: background-color .2s;
  overflow-wrap: anywhere;
}
.contact__list a:hover { background: var(--navy); color: #fff; }
.contact__list svg { width: 24px; height: 24px; color: #6fd0e6; flex: none; }
.contact__list small { display: block; font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #8fb0c4; font-weight: 600; margin-bottom: 2px; }

/* Formular */
.form { background: #fff; color: var(--text); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form h3 { font-size: 1.4rem; margin-bottom: 18px; }
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--text);
  background: #f7f9fa; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form [aria-invalid="true"] { border-color: #c0392b; }
.form__hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form__check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--muted) !important; line-height: 1.5; margin: 6px 0 10px; }
.form__check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.form__hint { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.form .btn { border: 0; cursor: pointer; width: 100%; justify-content: center; }
.form__status { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; font-size: .95rem; }
.form__status.is-ok { background: #e6f5f0; color: #14563f; }
.form__status.is-error { background: #fbeaea; color: #8a2a20; }

/* Footer */
.site-footer { background: #04151f; color: #8fa6b5; font-size: .92rem; }
.site-footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; padding-block: 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.site-footer__brand .brand__mark { width: 38px; height: 34px; fill: #3b7fa0; }
.site-footer__brand p { margin: 0; line-height: 1.45; }
.site-footer__nav { display: flex; gap: 24px; }
.site-footer a { color: #c9dae5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__copy { margin: 0; }

.float-call { display: none; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text); }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .back { display: inline-flex; gap: 8px; margin-bottom: 28px; font-family: var(--font-head); font-weight: 500; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .header-call span { display: none; }
  .header-call { padding: 10px 12px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .process::before { display: none; }
  .fire__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--navy);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background-color .25s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 40px;
    background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-size: 1.35rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-call { display: none; }
  .site-header__inner { gap: 12px; }

  .hero { background: #fff; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 44px 0 40px; }
  .hero__visual { height: 340px; min-height: 0; margin-inline: calc(var(--gutter) * -1); }
  .hero__stripe { clip-path: polygon(0 18%, 100% 4%, 100% 5.6%, 0 19.6%); }
  .hero__photo { clip-path: polygon(0 22%, 100% 8%, 100% 100%, 0 100%); }
  .hero__star { left: 50%; top: 15%; width: 92px; }

  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 32px 0 28px; border-left: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .service__no, .service:nth-child(even) .service__no { top: 36px; right: 0; }
  .values { grid-template-columns: 1fr; gap: 16px; }

  .clients__grid, .area__inner { grid-template-columns: 1fr; gap: 20px; }
  .clients__list { grid-template-columns: 1fr; gap: 22px; }

  .about { padding-top: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin-left: 18px; }
  .about__star { right: -10px; width: 84px; }

  .contact__grid { grid-template-columns: 1fr; }

  .float-call {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40;
    width: 58px; height: 58px; border-radius: 50%; background: var(--teal); color: #fff;
    box-shadow: 0 10px 24px -8px rgba(7,32,48,.55);
  }
  .float-call svg { width: 26px; height: 26px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__mark { width: 40px; height: 36px; }
  .brand__name { font-size: 1.25rem; }
  .compare { grid-template-columns: 1fr; }
  .fire__steps { grid-template-columns: 1fr; gap: 24px; }
  .process { grid-template-columns: 1fr; row-gap: 28px; }
  .process li { display: grid; grid-template-columns: 64px 1fr; padding: 0; }
  .process__no { grid-row: span 2; width: 42px; height: 42px; margin: 4px 0 0 4px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .contact__list a { padding: 18px; font-size: 1.02rem; }
  .form__row--2 { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
