/* =========================================================
   BILDER.CSS
   Bilder, Bildcontainer und Bildunterschriften
   ========================================================= */

/* =========================================================
   ALLGEMEINE BILDER
   ========================================================= */

img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   BILDER – ZENTRIERUNG
   ========================================================= */

.Bilder {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   BILD-BEHÄLTER
   ========================================================= */

.Bild-behaelter {
  width: 40%;
  margin: auto;
}

/* =========================================================
   BILD – RECHTS
   ========================================================= */

.B-rechts {
  float: right;
  padding: 12px;
}

/* =========================================================
   BILD – LINKS
   ========================================================= */

.B-links {
  float: left;
  padding: 12px;
}

/* =========================================================
   FIGURE
   ========================================================= */

.figure {
  padding: 5px;
  float: left;
  border: 1px solid var(--color-Hellgrau);
  border-radius: 5px;
}

/* =========================================================
   FIGURE – BILD
   ========================================================= */

figure img {
  border-radius: 3px 3px 0 0;
}

/* =========================================================
   FIGURE – BESCHREIBUNG
   ========================================================= */

figure figcaption {
  padding: 2px 4px;
  background-color: var(--color-grau);
  color: var(--color-Hellgrau);
  font-style: italic;
  border-radius: 0 0 3px 3px;
}

/* =========================================================
   RESPONSIVE BILDER
   ========================================================= */

@media (max-width: 768px) {
  .Bild-behaelter {
    width: 100%;
  }

  .B-rechts,
  .B-links {
    float: none;
    display: block;
    margin: 0 auto;
  }
}
