@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/oswald-v49-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/oswald-v49-latin-700.woff2") format("woff2");
}

:root {
  --site-width: 985px;
  --hero-width: 1600px;
  --header-height: 159px;
  --content-top: 365px;
  --dark: #272727;
  --accent: #009ae1;
}

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

html, body { margin: 0; min-height: 100%; }

body {
  overflow-x: hidden;
  background: #fff;
  color: #111;
  font: 12px/1.45 Arial, Helvetica, sans-serif;
}

img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.page {
  position: relative;
  width: var(--site-width);
  margin: 0 auto;
}

/* Header remains centered while the 1600px hero runs behind it. */
header {
  position: relative;
  z-index: 20;
  width: var(--site-width);
  height: var(--header-height);
  background: url("../upload/kopf/kopf.png") no-repeat 0 0 / 985px 365px;
  overflow: visible;
}

.logo-link {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 6px;
  width: 304px;
  height: 159px;
}

.logo-link img { width: 100%; height: 100%; opacity: 0; }

nav {
  position: absolute;
  top: 16px;
  right: 105px;
  display: flex;
  align-items: center;
  gap: 4px;
}

nav > a,
.dropdown > span {
  display: block;
  padding: 10px 9px;
  color: #fff;
  font: 400 16px/1 "Oswald", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease;
}

nav > a:hover,
.dropdown:hover > span { color: var(--accent); }

.dropdown { position: relative; }

.dropdown ul {
  position: absolute;
  z-index: 30;
  top: 35px;
  left: 0;
  display: none;
  min-width: 164px;
  padding: 14px 7px 7px;
  background: #fff url("../upload/kopf/pfeil_navi.png") no-repeat top center;
  box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
}

.dropdown:hover ul,
.dropdown.open ul { display: block; }

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 6px;
  color: #111;
}

.dropdown li a::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: url("../upload/kopf/button.png") center / contain no-repeat;
  content: "";
}

.dropdown li a:hover { color: var(--accent); }

/*
 * Full-bleed hero starts behind the header at viewport y=0.
 * Padding reserves exactly the original 365px before content begins.
 */
.page-body {
  position: relative;
  width: 100vw;
  min-height: 527px;
  margin-top: calc(-1 * var(--header-height));
  margin-left: calc((var(--site-width) - 100vw) / 2);
  padding-top: var(--content-top);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: var(--hero-width) 527px;
}

.page-body--hero-40 { background-image: url("../upload/kopfbilder_unterseiten/kopf_40.jpg"); }
.page-body--hero-10 { background-image: url("../upload/kopfbilder_unterseiten/kopf_10.jpg"); }

.content-grid,
.legal-grid,
.product-images,
.product-label,
.granite-section,
.map-wrap {
  width: var(--site-width);
  margin-inline: auto;
}

.content-grid,
.legal-grid {
  display: grid;
  grid-template-columns: 500px 40px 445px;
  min-height: 300px;
}

.content-dark {
  padding: 18px 20px 26px;
  background: var(--dark);
  color: #fff;
}

.content-dark h1 {
  margin: 0 0 4px;
  color: var(--accent);
  font: 400 20px/1.25 "Oswald", sans-serif;
}

.content-dark h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.content-dark p { margin: 0 0 12px; line-height: 1.35; }

.content-light {
  align-self: end;
  padding: 0 20px 0 5px;
}

.content-light img { width: auto; height: auto; }

.phone-large {
  margin: 8px 0;
  color: var(--accent);
  font: 400 26px/1.2 "Oswald", sans-serif;
}

.product-images {
  display: grid;
  grid-template-columns: 500px 40px 445px;
  padding-top: 10px;
}

.img-left { display: flex; justify-content: flex-end; }
.img-right { display: flex; justify-content: flex-start; }

.product-images img {
  width: 226px;
  height: 150px;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity .15s ease;
}

.product-images img:hover { opacity: .82; }

.product-label {
  display: grid;
  grid-template-columns: 500px 40px 445px;
  padding: 6px 0 18px;
}

.product-label-text {
  color: #393939;
  font: 400 16px/1.3 "Oswald", sans-serif;
}

/* Start page slideshow occupies the same full-bleed hero layer. */
.page-body:has(.slideshow-wrap) {
  background: #fff url("../upload/rollbild/startseite/bild1.jpg") center top / var(--hero-width) 527px no-repeat;
}

.slideshow-wrap {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: var(--hero-width);
  height: 527px;
  transform: translateX(-50%);
  overflow: hidden;
}

.slideshow-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 30s infinite;
}

.slideshow-wrap img:nth-child(1) { animation-delay: 0s; }
.slideshow-wrap img:nth-child(2) { animation-delay: 6s; }
.slideshow-wrap img:nth-child(3) { animation-delay: 12s; }
.slideshow-wrap img:nth-child(4) { animation-delay: 18s; }
.slideshow-wrap img:nth-child(5) { animation-delay: 24s; }

@keyframes hero-fade {
  0%, 24%, 100% { opacity: 0; }
  4%, 20% { opacity: 1; }
}

.page-body:has(.slideshow-wrap) .content-grid { position: relative; z-index: 1; }

.granite-section {
  display: grid;
  grid-template-columns: 187px 1fr;
  gap: 20px;
  padding: 30px 10px 28px;
  background: #fff;
}

.granite-section h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font: 400 25px/1.2 Arial, sans-serif;
}

.granite-section p { margin: 0 0 12px; }

.legal-content {
  padding: 20px;
  background: rgb(255 255 255 / 92%);
  line-height: 1.55;
}

.legal-content h2 { margin: 0 0 12px; font-size: 14px; }
.legal-content h3 { margin: 18px 0 6px; font-size: 12px; }
.legal-content p { margin: 0 0 10px; }
.legal-content ul { margin: 0 0 10px 18px; list-style: disc; }
.legal-content li { margin-bottom: 4px; }
.legal-content a { color: var(--accent); }
.legal-divider { margin: 16px 0; border-top: 1px dotted #aaa; }

.map-wrap { padding: 18px 0; background: #fff; }
.map-wrap iframe { display: block; width: 100% !important; border: 1px solid var(--dark) !important; }
.map-wrap p { margin: 6px 0 0; }

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 88%);
}

.lightbox:target { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox-close { position: absolute; top: 18px; right: 28px; color: #fff; font-size: 40px; }

footer {
  position: relative;
  z-index: 10;
  width: var(--site-width);
  margin: 0 auto;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 20px 194px 326px 1fr 105px 20px;
  align-items: end;
  padding: 12px 0 10px;
}

.footer-links { display: flex; flex-direction: column; align-items: flex-end; }
footer a:hover { color: var(--accent); }

@media (max-width: 985px) {
  :root { --site-width: 100%; --content-top: 300px; }

  .page { width: 100%; }

  header { width: 100%; background-color: var(--dark); background-position: left top; }

  nav {
    right: 12px;
    left: 330px;
    justify-content: flex-end;
  }

  .page-body {
    width: 100%;
    margin-left: 0;
    background-size: cover;
  }

  .content-grid,
  .legal-grid,
  .product-images,
  .product-label,
  .granite-section,
  .map-wrap,
  footer { width: 100%; }

  .content-grid,
  .legal-grid { grid-template-columns: minmax(320px, 1fr) 24px minmax(300px, .9fr); }
  .product-images,
  .product-label { grid-template-columns: 1fr 24px 1fr; }
  .footer-inner { grid-template-columns: 16px 1fr 1.5fr .5fr auto 16px; }
}

@media (max-width: 720px) {
  :root { --header-height: 205px; --content-top: 315px; }

  html, body, .page, header, .page-body,
  .content-grid, .legal-grid, .granite-section,
  .map-wrap, footer {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  header {
    height: var(--header-height);
    min-height: 0;
    padding-top: 105px;
    background-color: var(--dark);
    background-image: none;
  }

  .logo-link {
    top: 0;
    left: 50%;
    width: 320px;
    height: 105px;
    transform: translateX(-50%);
    background: url("../upload/kopf/kopf.png") no-repeat 0 0 / 985px 365px;
  }

  nav {
    position: absolute;
    top: 105px;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 6px 2px;
    background: var(--dark);
  }

  nav > a, nav > .dropdown {
    flex: 0 0 50%;
  }

  nav > a, .dropdown > span {
    padding: 7px 3px;
    font-size: 12px;
    text-align: center;
  }

  .dropdown ul { top: 29px; }

  .page-body { margin-top: calc(-1 * var(--header-height)); padding-top: var(--content-top); }

  .content-grid, .legal-grid { display: block; }
  .content-dark, .content-light, .legal-content { width: 100%; min-width: 0; }
  .content-dark { max-width: 100vw; overflow: hidden; overflow-wrap: anywhere; }
  .content-dark p {
    width: auto;
    max-width: none;
    white-space: normal;
    word-break: normal;
  }
  .content-light { padding: 16px; background: #fff; }
  .product-images { grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
  .product-images > div:nth-child(2) { display: none; }
  .img-left, .img-right { justify-content: center; }
  .product-label { display: block; padding: 0 16px 16px; text-align: center; }
  .granite-section { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .footer-inner > div:empty { display: none; }
  .footer-links { align-items: flex-start; }
}
