:root {
  --brand-green: #8bcf43;
  --text-color: #555;
  --link-color: #9b638b;
}

body {
  margin: 0;
  color: var(--text-color);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header,
.page-content,
.site-footer {
  max-width: 850px;
}

.site-header {
  padding-top: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto 1.5rem;
  text-decoration: none;
}

.brand-name {
  color: var(--brand-green);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  margin-top: 0.25rem;
  color: #777;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  border-bottom: 1px solid #ddd;
}

.site-nav .navbar-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav .nav-link {
  padding: 0.65rem 0.4rem;
  color: #555;
  font-size: 0.83rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--link-color);
}

.page-content {
  padding-top: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(110px, 19vw, 190px));
  gap: 1rem;
}

.gallery-item {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #eee;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item--1 { grid-area: 1 / 1; }
.gallery-item--2 { grid-area: 1 / 2; }
.gallery-item--3 { grid-area: 1 / 3; }
.gallery-item--4 { grid-area: 2 / 2; }
.gallery-item--5 { grid-area: 2 / 3; }
.gallery-item--6 { grid-area: 3 / 3; }

.gallery-intro {
  grid-area: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.gallery-intro h1 {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
}

.closing-line {
  margin: 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.site-footer {
  padding: 1rem 0 2rem;
  text-align: center;
  color: #888;
}

/* Bild-Modal */
.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgb(0 0 0 / 82%);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1100px);
  height: min(90vh, 850px);
  outline: none;
}

.lightbox-image {
  display: block;
  max-width: calc(100% - 7rem);
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgb(0 0 0 / 35%);
  cursor: pointer;
}

.lightbox-close {
  top: 0;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 2.75rem;
  height: 3.5rem;
  border-radius: 0.3rem;
  transform: translateY(-50%);
  font-size: 2.6rem;
  line-height: 1;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgb(0 0 0 / 70%);
}

.lightbox-arrow[hidden] {
  display: none;
}

@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-rows: repeat(3, clamp(85px, 28vw, 150px));
    gap: 0.55rem;
  }

  .gallery-intro {
    padding: 0.4rem;
  }

  .gallery-intro h1 {
    font-size: 0.9rem;
  }

  .closing-line {
    font-size: 0.85rem;
  }
}
.offer-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.3rem 0.5rem 2rem;
}

.offer-sidebar {
  padding-top: 0.25rem;
}

.offer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-nav li {
  margin-bottom: 0.35rem;
}

.offer-nav a {
  color: #888;
  font-size: 0.8rem;
  text-decoration: none;
}

.offer-nav a:hover,
.offer-nav a:focus {
  color: var(--link-color);
  text-decoration: underline;
}

.offer-content h1 {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
}

.offer-content p {
  max-width: 430px;
  margin: 0 0 0.75rem;
  color: #888;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .offer-layout {
    padding: 0.5rem 0.75rem 2rem;
  }

  .offer-sidebar {
    margin-bottom: 1.25rem;
  }

  .offer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
  }

  .offer-nav li {
    margin: 0;
  }
}

/* referenzen */

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr));
  gap: 0.5rem;
  max-width: 850px;
  margin-inline: auto;
  place-items: center
}

.reference-item-orig {
  display: block;
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  background: #eee;
}
.reference-item {
  display: flex;
  background: #fff;
  width: 158px;
  height: 158px;
  border: 1px solid #CCC;
  padding: 3px;
  margin: 0 5px 5px 0;
}
.reference-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.reference-item:hover img {
  transform: scale(1.035);
}
/* über uns */
.about-page {
  max-width: 850px;
  padding-top: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2rem;
  max-width: 850px;
  margin: 0 auto 2.5rem;
}

.team-member {
  min-width: 0;
  text-align: center;
}

.team-photo {
  display: block;
  width: 260px;
  height: 260px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  object-fit: cover;
}

.team-member h2 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.team-member p {
  max-width: 175px;
  margin: 0 auto;
  font-size: 0.68rem;
  line-height: 1.45;
}

.workshop {
  max-width: 850px;
  margin: 0 auto;
}

.workshop > h2 {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
}

.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 0.2rem;
}

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

.workshop-description {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.5rem;
}

.workshop-description img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.workshop-description p {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  line-height: 1.5;
}

@media (min-width: 767px) {
  .team-grid {
    column-gap: 0.65rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .team-photo {
   width: clamp(250px, 18vw, 0px);
   height: clamp(250px, 18vw, 0px);
  }

  .team-member p {
    font-size: 0.85rem;
	line-height: 1.5;
  }

  .workshop-gallery {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: auto;
  }
  
  .workshop-description p {
  font-size: 0.85rem;
  line-height: 1.5;
}
  }
@media (max-width: 575.98px) {
  .team-grid {
    column-gap: 0.65rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .team-photo {
   width: clamp(160px, 18vw, 0px);
   height: clamp(160px, 18vw, 0px);
  }

  .team-member p {
    font-size: 0.62rem;
  }

  .workshop-gallery {

	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto;
  }

  .workshop-description {
    grid-template-columns: 1fr;
  }

  .workshop-description img {
    max-height: 180px;
  }
}

/* impressum */
.centered-article {
  display: flex;
  flex-direction: column;   /* Elemente untereinander stapeln */
  justify-content: center;  /* Vertikal zentrieren (falls Höhe definiert ist) */
  align-items: center;      /* Horizontal zentrieren */
  text-align: center;       /* Textausrichtung innerhalb der Elemente zentrieren */
  min-height: 400px;        /* Optionale Mindesthöhe des Articles */
}