:root {
  --space-l: 3rem;
  --space-m: 2rem;
  --space-s: 1rem;
  --color-main: #002e40;
  --color-white: #fff;
  --color-beige: #c2b59b;
  --color-light: #f2eee7;
  --color-green: #01af62;
  --color-text: var(--color-main);
  --color-text-beige: var(--color-beige);
  --color-background: var(--color-white);
  --font-size: 16px;
  --content-width: 1280px;
}

/* bricolage-grotesque-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/bricolage-grotesque-v9-latin-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* bricolage-grotesque-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/bricolage-grotesque-v9-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
  color: var(--color-text);
  background: var(--color-background);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-size: var(--font-size);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
}
img {
  width: 100%;
}
figure {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
ol li {
  margin-bottom: 8px;
}
a {
  color: currentColor;
  text-decoration: none;
}
a:hover {
  color: var(--color-green);
}
strong,
b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
h1 {
  font-size: 1.75rem;
  line-height: 2.25rem;
  font-weight: 500;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 500;
  margin-bottom: 0;
}
h6 {
  text-transform: uppercase;
  font-size: 12px;
  margin: 0;
}
p {
  line-height: 1.5rem;
}
.m-none {
  display: none;
}
.d-none {
  display: block;
}

.flex {
  display: flex;
}
.ph {
  font-size: 24px;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
}

.column {
  grid-column: span 12;
}

.header {
  padding: 1rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 99;
  position: relative;
}

.logo {
  max-width: 250px;
}

.wrapper {
  padding: 1rem;
}
.wrapper-inner {
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 0 1rem;
}

.hero {
  min-height: 70vh;
  border-radius: 32px;
  background-color: var(--color-light);
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 98;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  bottom: 50%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  z-index: 98;
}
.hero-image {
  position: absolute;
  inset: 0; /* oben, rechts, unten, links = 0 */
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt die Fläche */
  object-position: center; /* zentriert */
  z-index: 0; /* ganz hinten */
  pointer-events: none; /* Klicks gehen hindurch */
}
.hero-text {
  position: absolute;
  bottom: 2rem;
  max-width: 660px;
  z-index: 99;
}
.hero-text h1 {
  margin-bottom: 0;
}

.button {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-green);
  color: var(--color-white);
  border-radius: 32px;
  padding: 16px 24px;
}

.button img {
  width: 18px;
}

.button:hover {
  color: var(--color-main);
}

footer {
  background-color: var(--color-light);
  border-radius: 32px;
  padding: 3rem 0;
  margin-top: 2rem;
}

footer p {
  margin-top: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer-contact div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom {
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 2rem;
}

.footer-bottom p {
  margin: 0;
  margin-right: 2rem;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 0.5rem;
}

.footer-menu ul {
  display: flex;
  gap: 2rem;
}

.block-type-gallery ul {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  grid-column: span 12;
}

.block-type-gallery li {
  grid-column: span 6;
}

.block-type-gallery img {
  width: 100%;
  height: 250px; /* Höhe der Galerie-Reihe */
  object-fit: cover; /* zuschneiden */
  object-position: center; /* zentrieren */
  border-radius: 6px; /* optional */
}

.block-type-gallery li.hidden {
  display: none;
}

.block-type-list ul li::marker {
  content: "•";
  font-size: 24px;
}

.gallery-page-title {
  margin: 0;
}

.gallery-page-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.image-gallery li {
  overflow: hidden;
  border-radius: 12px;
}

.gallery-lightbox-trigger {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.image-gallery a {
  display: block;
  line-height: 0;
}

.image-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
  will-change: transform;
}

.gallery-lightbox-trigger:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.image-gallery--uniform img {
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.services-page-subtitle {
  margin-top: 0.5rem;
}

.services-page-intro {
  margin-bottom: 2rem;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-item {
  background: var(--color-light);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-item h2 {
  margin-top: 0;
}

.service-item-image {
  width: 48px;
  height: 48px;
  margin: 1rem auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item-image img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.service-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-item-text {
  width: 100%;
}

.service-item-text p {
  margin: 0;
}

.service-item-text > *:first-child {
  margin-top: 0;
}

.service-item-text > *:last-child {
  margin-bottom: 0;
}

.service-detail {
  max-width: 880px;
}

.service-detail-image {
  margin: 1rem 0 2rem;
}

.service-detail-image img {
  width: 100%;
  border-radius: 16px;
}

.home-sections {
  display: grid;
  gap: 3rem;
  padding: 1rem 0 2rem;
}

.home-intro {
  max-width: 900px;
}

.home-seo-text {
  margin-top: 2rem;
}

.home-seo-text h2 {
  margin-top: 0;
}

.home-preview h2 {
  margin: 0 0 0.75rem;
}

.home-preview h3 {
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-top: 0;
}

.home-preview-actions {
  margin-top: 1.25rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.home-gallery-grid img {
  height: 220px;
}

.home-gallery-grid.image-gallery--uniform img {
  height: 220px;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.gallery-lightbox.is-open {
  display: block;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox__dialog {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.gallery-lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border-radius: 8px;
}

.gallery-lightbox__close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-main);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-main);
}

.gallery-lightbox__nav--prev {
  left: 0.5rem;
}

.gallery-lightbox__nav--next {
  right: 0.5rem;
}

.gallery-lightbox__close .ph {
  font-size: 20px;
}

.gallery-lightbox__nav .ph {
  font-size: 24px;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
    line-height: 2.75rem;
  }
  h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .m-none {
    display: block;
  }
  .d-none {
    display: none;
  }
  .header {
    padding: 2rem 0;
  }
  .column-grid {
    padding-bottom: 2rem;
  }
  .logo {
    max-width: 300px;
  }
  .hero-text {
    bottom: 3rem;
  }
  .wrapper {
    padding: 1rem 2rem;
  }
  .wrapper-inner {
    padding: 0 2rem;
  }
  .footer-copyright {
    flex-direction: row;
  }
  .block-type-gallery li {
    grid-column: span 4;
  }
  .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .image-gallery img {
    height: 320px;
  }
  .image-gallery--uniform img {
    height: 320px;
  }
  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .home-sections {
    gap: 4rem;
    padding: 2rem 0 3rem;
  }
  .home-gallery-grid img {
    height: 260px;
  }
  .home-gallery-grid.image-gallery--uniform img {
    height: 260px;
  }
  .gallery-lightbox__dialog {
    padding: 2rem 4rem;
  }
  .gallery-lightbox__nav--prev {
    left: 1.5rem;
  }
  .gallery-lightbox__nav--next {
    right: 1.5rem;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.75rem;
    line-height: 3.25rem;
  }
  h2 {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }
  .hero-text {
    bottom: 5rem;
  }
  .column-grid {
    padding-bottom: 3rem;
  }
  .column {
    grid-column: span var(--span);
  }
  .wrapper {
    padding: 2rem 3rem;
  }
  .wrapper-inner {
    padding: 0 3rem;
  }
  .block-type-gallery li {
    grid-column: span 3;
  }
  .image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .image-gallery img {
    height: 280px;
  }
  .image-gallery--uniform img {
    height: 280px;
  }
  .services-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-gallery-grid img {
    height: 240px;
  }
  .home-gallery-grid.image-gallery--uniform img {
    height: 240px;
  }
}
