@font-face {
  font-family: "Klavika";
  src: url("../fonts/KlavikaWebBasicRegular.woff2") format("woff2"),
       url("../fonts/KlavikaWebBasicRegular.woff") format("woff"),
       url("../fonts/KlavikaWebBasicRegular.eot") format("embedded-opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Klavika", "Inter", "Segoe UI", Arial, sans-serif;
  --ink: #0b1420;
  --ink-2: #1b2936;
  --muted: #687482;
  --line: rgba(12, 23, 36, .12);
  --paper: #ffffff;
  --soft: #f4f6f8;
  --soft-2: #e7ebee;
  --dark: #07111c;
  --dark-2: #101b27;
  --blue: #0f4e79;
  --steel: #6f7f8e;
  --accent: #c8a24a;
  --accent-2: #e7c15f;
  --glass: rgba(255,255,255,.14);
  --shadow: 0 28px 80px rgba(7, 17, 28, .20);
  --shadow-soft: 0 18px 45px rgba(7, 17, 28, .11);
  --radius: 28px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--soft);
  line-height: 1.58;
  letter-spacing: .005em;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.04; letter-spacing: -.034em; }
h1 { font-size: clamp(3.1rem, 7vw, 7.2rem); max-width: 980px; }
h2 { font-size: clamp(2.2rem, 4.8vw, 4.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.04rem; letter-spacing: 0; }
small { color: var(--muted); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
}
.skip-link:focus { top: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 246, 248, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7,17,28,.10);
}
.nav-wrap {
  width: var(--container);
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-link img {
  height: 82px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 5px 8px;
  box-shadow: 0 10px 28px rgba(7,17,28,.12);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
}
.main-nav a {
  padding: 12px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .96rem;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(15, 78, 121, .10);
  color: var(--ink);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 12px 15px;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 14px 21px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #08131e;
  box-shadow: 0 16px 38px rgba(200,162,74,.28);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 16px 40px rgba(7,17,28,.20);
}
.btn-dark:hover { color: #fff; background: #000b14; }
.btn-glass {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { color: #fff; border-color: rgba(255,255,255,.55); }

.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 860px; }

.hero-cover {
  min-height: calc(100vh - 104px);
  min-height: 720px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,17,28,.90) 0%, rgba(7,17,28,.72) 40%, rgba(7,17,28,.12) 100%),
    url("../img/referenz-wohnhaus-schiebetuer.webp") center / cover no-repeat;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-cover__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 76px 0;
}
.lead {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  color: var(--muted);
  max-width: 760px;
  margin-top: 24px;
}
.hero-cover .lead { color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note {
  margin-top: 18px;
  color: rgba(255,255,255,.72);
}
.hero-note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(12,23,36,.10);
  color: var(--ink-2);
  font-size: .93rem;
  box-shadow: 0 12px 34px rgba(7,17,28,.06);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(200,162,74,.18);
}
.eyebrow-dark {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
}

.section { padding: clamp(74px, 9vw, 126px) 0; }
.section-tight { padding-top: clamp(62px, 7vw, 96px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .65fr);
  align-items: end;
  gap: clamp(28px, 5vw, 68px);
  margin-bottom: clamp(34px, 5vw, 58px);
}
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7,17,28,.96), rgba(12,28,42,.96)),
    radial-gradient(circle at 20% 0%, rgba(15,78,121,.5), transparent 36%);
}
.section-dark .section-head p,
.split-copy-light p,
.section-dark .feature-card p { color: rgba(255,255,255,.72); }
.section-head-light h2,
.split-copy-light h2 { color: #fff; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card,
.info-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(12,23,36,.10);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}
.feature-grid-dark .feature-card,
.section-dark .feature-card {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.feature-grid-dark .feature-card h3 { color: #fff; }
.feature-card p,
.info-card p { color: var(--muted); margin-top: 14px; }
.card-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  margin-bottom: 24px;
}
.feature-grid-dark .card-number { background: rgba(255,255,255,.12); }

.reference-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.reference-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
  box-shadow: 0 28px 90px rgba(0,0,0,.22);
}
.reference-card-large { grid-row: span 2; min-height: 620px; }
.reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
  transition: transform .8s ease, opacity .3s ease;
}
.reference-card:hover img { transform: scale(1.04); opacity: 1; }
.reference-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78));
}
.reference-card > div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}
.reference-card span,
.gallery-item figcaption span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: .96rem;
}
.reference-card h3 { color: #fff; margin-top: 6px; }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
}
.split-layout-reverse {
  grid-template-columns: minmax(380px, 1fr) minmax(0, .92fr);
}
.split-copy p { color: var(--muted); font-size: 1.05rem; }
.split-copy .btn { margin-top: 24px; }
.step-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 8px;
}
.step-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.step-list b { color: var(--ink); }
.step-list span { color: var(--muted); }

.image-stack { position: relative; min-height: 540px; }
.image-stack-main,
.image-panel img,
.page-hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.image-stack-main { height: 500px; object-fit: cover; }
.image-stack-small {
  position: absolute;
  width: 44%;
  min-width: 250px;
  right: -12px;
  bottom: -24px;
  border: 10px solid var(--soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.image-panel img { height: 520px; }
.section-dark .image-panel img,
.section-dark .image-stack-small { border-color: var(--dark); }

.cta-section {
  color: #fff;
  padding: 76px 0;
  background:
    linear-gradient(135deg, rgba(7,17,28,.96), rgba(15,78,121,.88)),
    url("../img/fassade-vertikal.webp") center / cover no-repeat;
}
.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}
.cta-content p { color: rgba(255,255,255,.74); max-width: 760px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.page-hero {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 128px) 0 44px;
}
.page-hero--media {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}
.page-hero-img { height: 460px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(12,23,36,.10);
  box-shadow: var(--shadow-soft);
}
.service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.service-card div { padding: 24px; }
.service-card p { color: var(--muted); margin-top: 12px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: inherit;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(200,162,74,.16);
}
.split-copy-light .check-list li { color: rgba(255,255,255,.82); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gallery-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.gallery-filters button.active,
.gallery-filters button:hover {
  background: var(--dark);
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow-soft);
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform .8s ease, opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.04); opacity: .95; }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78));
}
.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}
.gallery-item figcaption b { display: block; font-size: 1.18rem; margin-bottom: 5px; }
.gallery-item.is-hidden { display: none; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, .74fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.contact-card,
.contact-form,
.legal {
  background: #fff;
  border: 1px solid rgba(12,23,36,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.contact-card { padding: 28px; }
.contact-card > img {
  width: 260px;
  margin-bottom: 24px;
  border-radius: 16px;
}
.contact-list {
  display: grid;
  gap: 12px;
}
.contact-list a,
.contact-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}
.contact-list span:first-child {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
}
.contact-list em {
  display: block;
  font-style: normal;
  color: var(--muted);
}
.meta-box {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.contact-form { padding: clamp(24px, 3vw, 34px); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink-2);
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(12,23,36,.14);
  border-radius: 14px;
  background: #fff;
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(15,78,121,.55);
  box-shadow: 0 0 0 5px rgba(15,78,121,.10);
}
textarea { resize: vertical; }
.form-status { color: var(--muted); margin-top: 12px; }

.legal { padding: clamp(26px, 4vw, 48px); }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 28px 0 10px; letter-spacing: -.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); }
.legal a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.site-footer {
  color: #cbd5df;
  background: var(--dark);
  padding: 70px 0 28px;
}
.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) repeat(3, minmax(160px, .55fr));
  gap: 34px;
}
.footer-logo {
  width: 260px;
  background: #fff;
  border-radius: 18px;
  padding: 6px;
  margin-bottom: 18px;
}
.footer-brand p { max-width: 430px; color: rgba(255,255,255,.68); }
.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-col h4 { color: #fff; margin-bottom: 6px; }
.footer-col a,
.footer-col span { color: rgba(255,255,255,.68); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  width: var(--container);
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.58);
}
.footer-bottom a { color: rgba(255,255,255,.74); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1060px) {
  .nav-wrap { min-height: 94px; }
  .logo-link img { height: 68px; max-width: 215px; }
  .main-nav {
    position: fixed;
    top: 94px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  body.menu-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .page-hero--media,
  .split-layout,
  .split-layout-reverse,
  .section-head {
    grid-template-columns: 1fr;
  }
  .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reference-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .reference-card-large { grid-row: auto; min-height: 450px; }
  .feature-grid, .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --container: min(100vw - 28px, 1180px); }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.1rem); }
  .hero-cover { min-height: 660px; }
  .logo-link img { height: 58px; max-width: 180px; border-radius: 14px; }
  .nav-wrap { min-height: 82px; }
  .main-nav { top: 82px; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
  .gallery-toolbar, .cta-content, .footer-bottom { flex-direction: column; align-items: stretch; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .image-stack { min-height: auto; }
  .image-stack-main, .image-panel img, .page-hero-img { height: 340px; }
  .image-stack-small { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; min-width: 0; border-width: 0; }
  .step-list div { grid-template-columns: 1fr; gap: 4px; }
  .info-grid { grid-template-columns: 1fr; }
}

.gallery-item figcaption { text-shadow: 0 1px 18px rgba(0,0,0,.35); }

.gallery-item figcaption { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
