.hero-galerie {
  display: block;
  position: relative;
  color: #ffffff;
  height: 300px;
  border-bottom: 10px solid rgba(255, 255, 255, 1);
  background: #577492;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden; 
  z-index: 0;
}







/* =========================
   MOTIV GALERIE
========================= */

.motiv-galerie {
  width: 100%;
}

/* Zeile (vom JS erzeugt) */
.motiv-galerie-zeile {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap; /* 🔥 DAS FEHLT */
  margin-bottom: 20px;
  width: 100%;
}

/* Einzel-Item */
.galerie-motiv-item {
  flex-shrink: 0;
}

/* Bild */
.galerie-motiv-item img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hover nur Desktop */
@media (hover: hover) {
.galerie-motiv-item:hover img {
    transform: scale(1.02);
  }
}

/* sanfte Animation */
.galerie-motiv-item img {
  transition: transform 0.3s ease;
}


/* =========================
   SERIEN / SECTIONS
========================= */

.motiv-related {
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 15px;
}

.motiv-related h2 {
  margin: 0 0 18px;
}

.motiv-related h2 {
  margin: 0 0 18px;
}

.motiv-related a {
  text-decoration: none;
  color: inherit;
color: #577492
}

.motiv-related a:hover {
  color: #a20002; 
}
.serien-intro {
  margin-top: 12px;
  color: #666;
  max-width: 740px;
}

.serien-link {
  margin-top: 6px;
}


/* =========================
   REFERENZ BLOCK
========================= */

.referenz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.referenz-item img {
  width: 100%;
  height: auto;
  display: block;
}

.referenz-text {
  margin-top: 15px;
  color: #666;
  max-width: 740px;
}


/* =========================
   DETAILSEITE
========================= */

.motiv-stage-wrap {
  max-width: 1200px;
  margin: 40px auto 0;
}

.motiv-stage {
  width: 100%;
  height: auto;
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.motiv-stage img {
  max-width: 100%;
  max-height: 800px;
  border: 1px solid #e3e3e3;
  width: auto;
  height: auto;
  display: block;
}

.motiv-info-row {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 7.4fr 4.6fr;
  gap: 40px;
}

.motiv-text h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  border-bottom: 2px solid #577492;
}

.motiv-kurzbeschreibung {
  margin: 0;
  line-height: 1.65;
}

.infobox-projekt {
  width: 100%;
}

.infopunkt {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.label {
  color: #577593;
  font-weight: bold;
}

.wert {
  line-height: 1.6;
}

.motiv-description {
  max-width: 1200px;
  margin: 40px auto 0;
}

.motiv-description p {
  line-height: 1.75;
}

.motiv-cta-list {
  display: flex;
  flex-direction: column;
}

.motiv-cta-list a {
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

.motiv-cta-list a:last-child {
  border-bottom: none;
}
.motiv-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
margin-bottom: 20px;
}

.motiv-search-wrap,
.kuenstler-switch {
  flex: 1;
  min-width: 220px;
}

.motiv-search-wrap input,
.kuenstler-switch select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
}

.kuenstler-beschreibung-lang
{
  max-width: 740px;
  padding: 10px;
  font-size: 1rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .motiv-stage {
    min-height: 700px;
  }

  .motiv-stage img {
    max-height: 620px;
  }
}

@media (max-width: 900px) {
  .motiv-stage {
    min-height: auto;
    padding: 20px;
  }

  .motiv-stage img {
    max-height: 70vh;
  }

  .motiv-info-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 🔥 WICHTIG: NICHT width:100% setzen! */
@media (max-width: 768px) {

.hero-galerie {
  height: 400px;
  border-bottom: 10px solid rgba(255, 255, 255, 1);
}

  .motiv-galerie-zeile {
    flex-wrap: wrap;
  }

  .galerie-motiv-item {
    flex: 0 0 auto;
  }

  .referenz-grid {
    grid-template-columns: 1fr;
  }

.motiv-toolbar div {
  width: 100%;
}

.kuenstler-beschreibung-lang
{
  width: 100%;
  padding: 10px 10px;
  font-size: 1rem;
}
}

/* kompakter Mobile-Abstand */
@media (max-width: 600px) {
/*  .motiv-galerie-zeile {
    gap: 12px;
 flex-wrap: wrap;
  }*/

  .infopunkt {
    grid-template-columns: 120px 1fr;
  }
}
@media (max-width: 600px) {
  .motiv-galerie {

    column-count: 2;
    column-gap: 12px;
  }

  .motiv-galerie-zeile {
    display: block;
    width: 100%;
  }

  .galerie-motiv-item {
    break-inside: avoid;
    width: 100% !important;
    margin-bottom: 6px;
  }

  .galerie-motiv-item img {
    width: 100%;
    height: auto;
    display: block;
  }
}

}

