:root {
  --blue: #0496bd;
  --blue-dark: #067a9a;
  --ink: #111819;
  --graphite: #202829;
  --muted: #5f6b6c;
  --soft: #f3f7f7;
  --white: #ffffff;
  --line: rgba(17, 24, 25, 0.12);
  --shadow: 0 28px 70px rgba(17, 24, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions,
.site-footer,
.footer-brand {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  gap: clamp(18px, 3vw, 42px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 92px);
  min-height: 100vh;
  padding: clamp(112px, 12vw, 162px) clamp(20px, 5vw, 72px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(circle at 10% 20%, rgba(4, 150, 189, 0.11), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbfb 48%, #edf4f5 100%);
}

.hero-copy {
  align-self: center;
}

.hero-branding {
  display: inline-grid;
  gap: 10px;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.hero-logo {
  width: min(300px, 68vw);
  mix-blend-mode: multiply;
}

.hero-branding span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 28px;
  font-size: clamp(4rem, 9vw, 8.8rem);
  font-weight: 800;
  line-height: 0.86;
}

h2 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 5vw, 5.1rem);
  font-weight: 800;
  line-height: 0.94;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-copy p:not(.eyebrow),
.intro-section > p,
.section-heading p,
.loxone-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.configurator-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 18px;
  color: var(--blue-dark);
  background: rgba(4, 150, 189, 0.1);
  border: 1px solid rgba(4, 150, 189, 0.28);
  border-radius: 6px;
  font-weight: 800;
}

.configurator-link:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-photo {
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-photo img,
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.94);
}

.section,
.showroom-section,
.service-grid,
.security-section,
.loxone-band,
.contact-section {
  padding: clamp(72px, 9vw, 126px) clamp(20px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  background: var(--ink);
  color: var(--white);
}

.intro-section > p {
  color: rgba(255, 255, 255, 0.76);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-grid article {
  min-height: 250px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
}

.service-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 800;
}

.service-grid p {
  color: var(--muted);
}

.security-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 150, 189, 0.2), transparent 42%),
    var(--graphite);
}

.security-section h2 {
  color: var(--white);
}

.security-copy {
  display: grid;
  gap: 18px;
}

.security-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.security-maintenance {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.security-maintenance h3 {
  color: var(--white);
}

.showroom-section {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 520px);
  gap: clamp(24px, 5vw, 74px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: minmax(230px, 28vw);
  gap: 12px;
}

.photo-grid figure {
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.photo-large {
  grid-row: span 2;
}

.loxone-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  background: var(--soft);
}

.loxone-copy {
  display: grid;
  gap: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.contact-section p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 25, 0.16);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(4, 150, 189, 0.14);
  outline-offset: 0;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
}

.contact-actions a:not(.button),
.contact-actions span {
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  gap: 14px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-cookie-link {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.footer-cookie-link:hover {
  color: var(--blue);
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.partner-logo {
  width: min(180px, 42vw);
  max-height: 58px;
  object-fit: contain;
  opacity: 0.78;
}

.cookie-banner {
  position: fixed;
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  color: var(--white);
  background: rgba(17, 24, 25, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 24, 25, 0.28);
}

.cookie-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.cookie-close:hover {
  color: var(--white);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 6px;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.cookie-actions .secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}

@media (max-width: 940px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .intro-section,
  .security-section,
  .section-heading,
  .loxone-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    min-height: 420px;
    order: -1;
  }

  h1 {
    max-width: 9ch;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid article {
    min-height: auto;
  }

  .service-grid span {
    margin-bottom: 28px;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(230px, 42vw);
  }
}

@media (max-width: 600px) {
  .brand span {
    display: none;
  }

  .site-nav {
    gap: 14px;
    overflow-x: auto;
    font-size: 0.86rem;
  }

  h1 {
    max-width: 11ch;
    margin-bottom: 22px;
    font-size: clamp(2.9rem, 12vw, 4.15rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
    line-height: 1;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-branding {
    margin-bottom: 28px;
  }

  .hero-logo {
    width: min(240px, 64vw);
  }

  .hero-actions,
  .button,
  .configurator-link {
    width: 100%;
  }

  .hero-photo {
    min-height: 340px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(240px, 72vw);
  }

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

  .photo-large {
    grid-row: span 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-logo {
    width: 156px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions,
  .cookie-actions .button {
    width: 100%;
  }
}
