/* =====================================================
   ALLGEMEIN
===================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}


/* =====================================================
   BLOGTEXT
===================================================== */

.blog-clean {
  padding: 80px 0;
}

.blog-clean .container,
.blog-gallery .container {
  width: calc(100% - 32px);
  max-width: 900px;
  margin: 0 auto;
}

.blog-clean h2 {
  margin: 0 0 25px;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.blog-clean .lead {
  margin-bottom: 25px;
  color: #444;
  font-size: 1.2rem;
}

.blog-clean p {
  margin: 0 0 20px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}


/* =====================================================
   GALERIE-BEREICH
===================================================== */

.blog-gallery {
  padding: 60px 0 100px;
  background: #edeff4;
}

.gallery-title {
  margin: 0 0 35px;
  color: #111;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}


/* =====================================================
   GALERIE-KATEGORIEN
===================================================== */

.gallery-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.gallery-category {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.gallery-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.gallery-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-category:hover .gallery-preview img {
  transform: scale(1.04);
}

.gallery-category-content {
  padding: 22px;
  text-align: center;
}

.gallery-category-content h4 {
  margin: 0 0 10px;
  color: #111;
  font-size: 1.3rem;
  line-height: 1.3;
}

.gallery-image-count {
  margin: 0 0 18px;
  color: #666;
  font-size: 0.95rem;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  background: #b5121b;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gallery-button:hover:not(:disabled) {
  background: #8f0d14;
  transform: translateY(-1px);
}

.gallery-button:focus-visible {
  outline: 3px solid rgba(181, 18, 27, 0.3);
  outline-offset: 3px;
}

.gallery-button:disabled {
  color: #777;
  background: #d6d6d6;
  cursor: not-allowed;
}


/* =====================================================
   LIGHTBOX
===================================================== */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 90px 90px 60px;
  background: #0c0c0c;
}

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

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-caption {
  min-height: 24px;
  margin-top: 14px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}


/* =====================================================
   LIGHTBOX-KOPF
===================================================== */

.lightbox-title {
  position: absolute;
  top: 24px;
  left: 50%;

  max-width: calc(100% - 300px);

  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;

  transform: translateX(-50%);
}

.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 28px;

  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 24px;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  padding: 0;

  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;

  background: transparent;
  border: 0;
  cursor: pointer;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* =====================================================
   LIGHTBOX-PFEILE
===================================================== */

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 74px;
  padding: 0;

  color: #fff;
  font-size: 2.5rem;
  line-height: 1;

  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 8px;
  cursor: pointer;

  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
  .blog-clean {
    padding: 60px 0;
  }

  .blog-clean h2,
  .gallery-title {
    font-size: 2rem;
  }

  .blog-clean p {
    font-size: 1rem;
  }

  .blog-gallery {
    padding: 50px 0 80px;
  }

  .gallery-categories {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-category-content {
    padding: 20px;
  }

  .lightbox {
    padding: 90px 70px 60px;
  }

  .lightbox-title {
    max-width: calc(100% - 220px);
    font-size: 1.15rem;
  }

  .lightbox-img {
    max-height: calc(100vh - 200px);
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 66px;
    font-size: 2.2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}


/* =====================================================
   HANDY
===================================================== */

@media (max-width: 600px) {
  .blog-clean {
    padding: 45px 0;
  }

  .blog-clean .container,
  .blog-gallery .container {
    width: calc(100% - 40px);
    max-width: none;
  }

  .blog-clean h2,
  .gallery-title {
    font-size: 1.8rem;
  }

  .blog-clean p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .blog-gallery {
    padding: 45px 0 70px;
  }

  .gallery-title {
    margin-bottom: 25px;
  }

  .gallery-categories {
    gap: 20px;
  }

  .gallery-category-content {
    padding: 18px;
  }

  .gallery-category-content h4 {
    font-size: 1.15rem;
  }

  .gallery-button {
    width: 100%;
  }

  .lightbox {
    padding: 82px 12px 74px;
  }

  .lightbox-title {
    top: 22px;
    max-width: calc(100% - 155px);
    font-size: 1rem;
  }

  .lightbox-counter {
    top: 25px;
    left: 15px;
    font-size: 0.9rem;
  }

  .lightbox-close {
    top: 8px;
    right: 10px;
    width: 46px;
    height: 46px;
    font-size: 2.6rem;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 185px);
  }

  .lightbox-caption {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 12px;

    width: 56px;
    height: 48px;

    font-size: 2rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 68px);
  }

  .lightbox-next {
    right: calc(50% - 68px);
  }
}


/* =====================================================
   KLEINE HANDYS
===================================================== */

@media (max-width: 380px) {
  .blog-clean .container,
  .blog-gallery .container {
    width: calc(100% - 28px);
  }

  .lightbox-title {
    max-width: calc(100% - 135px);
    font-size: 0.9rem;
  }

  .lightbox-counter {
    left: 10px;
    font-size: 0.85rem;
  }

  .lightbox-close {
    right: 6px;
  }
}