/* Galerie-Layout ohne die alten Contao-Float- und Clear-Hilfen. */
.ce_gallery > ul.cols_6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}
/* Contao-Clearfix-Pseudoelemente dürfen keine Grid-Zellen belegen. */
.ce_gallery > ul.cols_6::before,
.ce_gallery > ul.cols_6::after { content: none !important; display: none !important; }
.ce_gallery > ul.cols_6 > li,
.ce_gallery > ul.cols_6 > li.col_first,
.ce_gallery > ul.cols_6 > li.col_last {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
}
.ce_gallery > ul.cols_6 > li .image_container img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .ce_gallery > ul.cols_6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ce_gallery > ul.cols_6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Galerie-Navigation – aus HTML-Head ausgelagert */
/* Statische Rechtstextseiten */
.legal-content {max-width: 850px; margin: 2rem auto 4rem; padding: 0 24px; overflow-wrap: anywhere;}
.legal-content h1 {margin-bottom: 1.5rem;}
.legal-content h2 {margin-top: 2rem;}
.legal-content p {margin-bottom: 1.1rem; line-height: 1.65;}
#dk-gallery-controls{position:fixed;inset:0;z-index:999999;pointer-events:none;display:none}#dk-gallery-controls.active{display:block}#dk-gallery-controls button{all:unset;box-sizing:border-box;position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:44px;height:60px;color:#fff;font-family:Arial,sans-serif;font-size:42px;font-weight:300;line-height:1;cursor:pointer;pointer-events:auto;text-shadow:0 1px 5px #000,0 0 12px #000;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}#dk-gallery-controls .prev{left:16px}#dk-gallery-controls .next{right:16px}#dk-gallery-controls button:hover{color:#eee}#dk-gallery-controls button:focus-visible{outline:2px solid #fff;outline-offset:2px}@media(max-width:600px){#dk-gallery-controls button{font-size:34px;width:30px}#dk-gallery-controls .prev{left:3px}#dk-gallery-controls .next{right:3px}}
