:root {
  --font-heading: "Space Grotesk", "Work Sans", sans-serif;
  --font-body: "Work Sans", "Space Grotesk", sans-serif;
  --color-ink: #1b1b17;
  --color-ink-soft: #3b3934;
  --color-cream: #f6f3ee;
  --color-sand: #d7d1c6;
  --shadow-soft: 0 22px 60px rgba(16, 16, 12, 0.25);
  --shadow-card: 0 18px 40px rgba(16, 16, 12, 0.16);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
}

body.page-leistungen,
body.page-leistungen .site-main,
body.page-projekte,
body.page-projekte .site-main,
body.page-turen-fenster,
body.page-turen-fenster .site-main,
body.page-wintergarten-gelander,
body.page-wintergarten-gelander .site-main,
body.page-heizung-sanitar,
body.page-heizung-sanitar .site-main {
  background: #F5F5F5;
}

.product-page-wrapper {
  padding: 60px 20px;
  background-color: #fff;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
}

.product-visuals {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-product-image {
  position: relative;
}

/* Desktop-only in-page zoom: width 156% pushes thumbnails down (no transform) */
@media (min-width: 1024px) {
  .product-container {
    transition: flex-direction 0.4s ease-in-out;
  }
  .product-container:has(.main-product-image.is-zoomed) {
    flex-direction: column;
  }
  .main-product-image {
    width: 100%;
    transition: width 0.4s ease-in-out;
  }
  .main-product-image.is-zoomed {
    width: 100%;
    max-width: 100vw;
    z-index: 10;
  }
  .main-product-image.is-zoomed img {
    width: 100%;
    height: auto;
  }
}

.product-control {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(137, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #890000;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.product-control svg {
  width: 18px;
  height: 18px;
}

.product-control:hover {
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.25);
}

.product-control.is-disabled,
.product-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.product-control--zoom {
  top: 16px;
  right: 16px;
}

.product-control--zoom:hover {
  transform: translateY(-1px);
}

.product-control--prev,
.product-control--next {
  top: 50%;
  transform: translateY(-50%);
}

.product-control--prev {
  left: 16px;
}

.product-control--next {
  right: 16px;
}

.product-control--prev:hover,
.product-control--next:hover {
  transform: translateY(calc(-50% - 1px));
}

.product-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.product-zoom-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-zoom-overlay img {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.product-zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.product-thumbnails {
  display: flex;
  gap: 15px;
  overflow-x: auto;
}

.thumb-item {
  border: 2px solid #e0e0e0;
  background: #fff;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.thumb-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.thumb-item.is-active {
  border-color: #890000;
  border-width: 2px;
  box-shadow: 0 0 0 1px #890000;
}

.product-info {
  flex: 0.8;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.product-description {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .product-container {
    flex-direction: column;
    gap: 40px;
  }

  .product-info {
    position: static;
  }
}

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

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

.page {
  overflow-x: hidden;
  padding-top: 72px;
}

.container {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 24px;
  top: 24px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  z-index: 1000;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: #1b1b17;
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #b8bcc3;
  box-shadow: 0 16px 40px rgba(15, 15, 12, 0.12);
}

@media (min-width: 769px) {
  .site-header {
    background-color: #a6afb5;
  }
}

.site-header .container {
  width: min(100% - 48px, var(--container));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 0;
  gap: 18px;
}

.site-header__logo img {
  width: 121px;
  height: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-nav__list a {
  color: #fff;
  font-weight: 500;
}

.site-nav__list a:hover,
.site-nav__list a:focus,
.site-nav__list a:focus-visible,
.site-nav__list a:active,
.site-nav__list a[aria-current="page"] {
  color: #890000;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 27, 23, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-nav__toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
}

.site-nav__toggle-text {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: #f6f3ee;
  color: #1b1b17;
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  background: #1b1b17;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.45) 100%),
    url("../img/Home_img_14.jpeg") center / cover no-repeat;
}

.hero-content {
  max-width: 900px;
  padding: 0 24px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.12;
  font-weight: 400;
}

.brand-dark {
  color: #222;
  font-weight: 700;
}

.brand-red {
  color: #d32f2f;
  font-weight: 700;
}

.hero-subtext {
  margin: 0 auto;
  max-width: 800px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #a03030;
}

/* SERVICES SECTION */
#services {
  background-color: #f5f5f5;
  padding: 100px 0;
  width: 100%;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.services-header h2 {
  font-size: 38px;
  color: #222;
  margin-bottom: 15px;
  font-weight: 600;
}

.services-header p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.swipe-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.swipe-card {
  background: #ffffff;
  padding: 28px 20px 24px;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  height: 100%;
  box-sizing: border-box;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #d32f2f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.swipe-card h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.swipe-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.arrow-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #890000;
  width: 88px;
  height: 41px;
  margin: 0 auto;
  border-radius: 0;
  transition: background 0.3s ease;
}

.arrow-btn:hover {
  background-color: #6f0000;
}

.arrow-btn svg {
  width: 26px;
  height: 26px;
}

.about,
.projects,
.contact {
  padding: 90px 0;
}

.contact h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 2.4vw, 2.6rem);
  margin: 0 0 14px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  margin: 0;
}

#why-us {
  background-color: #f5f5f5;
  padding: 100px 0;
}

.why-header {
  text-align: left;
  margin-bottom: 60px;
  max-width: 800px;
}

.why-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d32f2f;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.why-header h2 {
  font-size: 42px;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.why-header p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.why-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.why-feature-item {
  text-align: left;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border: 1px solid #d32f2f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

.why-feature-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

.why-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin-bottom: 60px;
}

.why-image-wrapper {
  width: 100%;
  max-width: 991.68px;
  aspect-ratio: 991.68 / 411.89;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.why-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* IMAGE BANNER DIVIDER */
.image-banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 80px;
}

.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ABOUT US SECTION */
#about {
  padding: 80px 0;
  text-align: center;
  background-color: #f5f5f5;
}

.about-header {
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.about-header h4 {
  color: #d32f2f;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-header h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.mission-title {
  color: #d32f2f;
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 700;
}

.mission-card {
  background: #ffffff;
  max-width: 800px;
  margin: 0 auto 20px auto;
  padding: 30px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mission-card p {
  font-size: 16px;
  color: #555;
  margin: 0;
}

/* PROJECTS SECTION */
#projects {
  padding: 100px 0;
  background: #ffffff;
}

.projects-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

#projects .btn-primary {
  background-color: #8b0000;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s;
}

#projects .btn-primary:hover {
  background-color: #d32f2f;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.project-item {
  grid-column: span 2;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.project-item:nth-child(1),
.project-item:nth-child(2) {
  grid-column: span 3;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

/* CONTACT SECTION */
#contact {
  padding: 100px 0;
  background-color: #ffffff;
}

.contact-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-text {
  flex: 1;
  max-width: 500px;
}

.contact-text h4 {
  color: #d32f2f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.contact-text h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.2;
  font-weight: 600;
}

.contact-text p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #dddddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info h5 {
  font-size: 14px;
  color: #999;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-info a {
  font-size: 18px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
}

.contact-image {
  flex: 1;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FOOTER */
footer {
  background-color: #ffffff;
  padding-top: 80px;
  border-top: 1px solid #eeeeee;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 60px;
}

.logo-text {
  font-size: 24px;
  margin-bottom: 20px;
}

.footer-tagline {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #d32f2f;
}

.footer-col p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.copyright-bar {
  border-top: 1px solid #eeeeee;
  padding: 30px 0;
  text-align: left;
  color: #999;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: row;
    align-items: center;
  }

  .site-nav {
    position: relative;
  }

  .site-nav__toggle {
    display: inline-flex;
    margin-left: auto;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #c9c9c9;
    background: #e7e7e7;
    justify-content: center;
  }

  .site-nav__toggle-text {
    display: none;
  }

  .site-nav__toggle-line {
    width: 16px;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: fixed;
    right: 0;
    top: 0;
    margin-top: 0;
    padding: 88px 24px 24px;
    width: min(320px, 80vw);
    height: 50vh;
    border-radius: 24px 0 0 24px;
    background: #a6afb5;
    box-shadow: var(--shadow-soft);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .site-nav__list.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding: 140px 0 80px;
  }

  .why-features {
    grid-template-columns: 1fr;
  }

  .swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 20px;
    scrollbar-width: none;
  }

  .swipe-container::-webkit-scrollbar {
    display: none;
  }

  .swipe-card {
    min-width: 85vw;
    scroll-snap-align: center;
  }

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

  .projects-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .why-header h2 {
    font-size: 32px;
  }

  .contact-split {
    flex-direction: column;
  }

  .contact-text {
    max-width: 100%;
    text-align: center;
  }

  .contact-box {
    justify-content: center;
  }

  .contact-image {
    width: 100%;
    height: 250px;
  }

  .footer-grid {
    text-align: center;
  }

  .why-image-wrapper {
    max-width: 358px;
  }

  .contact-split {
    flex-direction: column;
  }

  .contact-image {
    width: 100%;
    height: 250px;
  }

  .contact-text h2 {
    font-size: 32px;
  }
}
