* {
  box-sizing: border-box;
  }

/*--- DESKTOP -------------------------------------------------------------------------------------------------------------------------------------------*/

@media screen and (min-width: 1030px) {

  .infotext {  
    background-color: var(--hellgrau);
    width: 100%;
    margin: 0 auto;
    padding: 40px 0px 0px;
    text-align: center;
  }

  .gitter {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    justify-items: center;
    margin: 25px;
    padding: 0px 0px 40px;
  }

  .bilderrahmen {
    padding: 5px;
    background-color: var(--mint);
  }

  .bild {
   max-width: 100%;
   height: auto;
   object-fit: cover;
  }

  .box { /* Gesamtfenster */
    display: none; /* damit die Box erst auf Klick erscheint */
    position: fixed; /*damit die Box über den anderen Bildern am oberen Rand erscheint*/
    z-index: 1;
    padding-top: 25px;
    left: 0;
    top: 190px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(78, 78, 78);
  }

  .box-bild { /* Box um das Bild */
    position: relative;
    background-color: var(--mint);
    margin: auto;
    padding: 10px;
    max-width: 920px;
  }

  .slide {
   display: none;

  }
  /*Größe des Bildes in der Box*/
  .image-slide {
	  width: 100%;
  }

  /* Nummern der Bilder */
  .number {
    color: white;
    background-color: rgb(31, 30, 30);
    border-radius: 5px 0px 0px 0px;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  /*Kreuz zum Schließen - Farbe, Position, Größe*/
  .close {
    color: rgba(0, 0, 0, 0.8);
    background-color: var(--mint);
    border-radius: 5px 5px 5px 5px;
    position: absolute;
    width: auto;
    top: 25px;
    right: 10px;
    padding: 10px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }

  /*Pfeile für vor und zurück* - Farbe, Position...*/
  .previous,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 8px;
    margin-top: -50px;
    color: rgba(0, 0, 0, 0.8);
    background-color: var(--mint);
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    -webkit-user-select: none;
  }

  /*verschiebt Pfeil rechts nach rechts*/
  .next {
    right: 10px;
    border-radius: 5px 0 0 5px;
  }

  /*Farbe und Hintergrundfarbe der Pfeile und Close bei hover*/
  .previous:hover,
  .next:hover,
  .close:hover {
    color: red;
    background-color: rgba(0, 0, 0, 0.8);
  }
}

/*--- TABLET -------------------------------------------------------------------------------------------------------------------------------------------*/

@media screen and (min-width: 701px) and (max-width: 1029px){

  .infotext {  
    background-color: var(--hellgrau);
    width: 100%;
    margin: 0 auto;
    padding: 20px 0px 0px;
    text-align: center;
  }

  .gitter {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 10px;
    justify-items: center;
    margin: 15px;
    padding: 0px 0px 40px;
  }

  .bilderrahmen {
    padding: 5px;
    background-color: var(--mint);
  }

  .bild {
   max-width: 100%;
   height: auto;
   object-fit: cover;
  }

  .bild {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .box { /* Gesamtfenster */
    display: none; /* damit die Box erst auf Klick erscheint */
    position: fixed; /*damit die Box über den anderen Bildern am oberen Rand erscheint*/
    z-index: 1;
    padding-top: 25px;
    left: 0;
    top: 190px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(78, 78, 78);
  }

  .box-bild { /* Box um das Bild */
    position: relative;
    background-color: var(--mint);
    margin: auto;
    padding: 7px;
    top: 50px;
    /*width: 80%;*/
    max-width: 920px;
  }

  .slide {
   display: none;

  }
  /*Größe des Bildes in der Box*/
  .image-slide {
	  width: 100%;
  }

  /* Nummern der Bilder */
  .number {
    color: white;
    background-color: rgb(31, 30, 30);
    border-radius: 5px 0px 0px 0px;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  /*Kreuz zum Schließen - Farbe, Position, Größe*/
  .close {
    color: rgba(0, 0, 0, 0.8);
    background-color: var(--mint);
    border-radius: 5px 5px 5px 5px;
    position: absolute;
    width: auto;
    top: 10px;
    right: 10px;
    padding: 4px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }

  /*Pfeile für vor und zurück* - Farbe, Position...*/
  .previous,
  .next {
    cursor: pointer;
    position: absolute;
    top: 60%;
    width: auto;
    padding: 5px;
    margin-top: -50px;
    color: rgba(0, 0, 0, 0.8);
    background-color: var(--mint);
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    -webkit-user-select: none;
  }

  /*verschiebt Pfeil rechts nach rechts*/
  .next {
    right: 7px;
    border-radius: 5px 0 0 5px;
  }

  /*Farbe und Hintergrundfarbe der Pfeile und Close bei hover*/
  .previous:hover,
  .next:hover,
  .close:hover {
    color: red;
    background-color: rgba(0, 0, 0, 0.8);
  }
}

/*--- HANDY -------------------------------------------------------------------------------------------------------------------------------------------*/

@media screen and (max-width: 700px) {
  
  .infotext {  
    background-color: var(--hellgrau);
    width: 100%;
    margin: 0 auto;
    padding: 20px 0px 0px;
    text-align: center;
    }

  .gitter {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 15px;
    justify-items: center;
    margin: 15px;
    padding: 0px 0px 40px;
  }
  
  .bilderrahmen {
    padding: 5px;
    background-color: var(--mint);
  }
  
  .bild {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .box { /* Gesamtfenster */
    display: none; /* damit die Box erst auf Klick erscheint */
    position: fixed; /*damit die Box über den anderen Bildern am oberen Rand erscheint*/
    z-index: 1;
    padding-top: 25px;
    left: 0;
    top: 190px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(78, 78, 78);
  }

  .box-bild { /* Box um das Bild */
    position: relative;
    background-color: var(--mint);
    margin: auto;
    padding: 7px;
    top: 50px;
    /*width: 80%;*/
    max-width: 920px;
  }

  .slide {
   display: none;

  }
  /*Größe des Bildes in der Box*/
  .image-slide {
	  width: 100%;
  }

  /* Nummern der Bilder */
  .number {
    color: white;
    background-color: rgb(31, 30, 30);
    border-radius: 5px 0px 0px 0px;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 5px;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  /*Kreuz zum Schließen - Farbe, Position, Größe*/
  .close {
    color: rgba(0, 0, 0, 0.8);
    background-color: var(--mint);
    border-radius: 5px 5px 5px 5px;
    position: absolute;
    width: auto;
    top: 10px;
    right: 10px;
    padding: 4px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }

  /*Pfeile für vor und zurück* - Farbe, Position...*/
  .previous,
  .next {
    cursor: pointer;
    position: absolute;
    top: 60%;
    width: auto;
    padding: 5px;
    margin-top: -50px;
    color: rgba(0, 0, 0, 0.8);
    background-color: var(--mint);
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    -webkit-user-select: none;
  }

  /*verschiebt Pfeil rechts nach rechts*/
  .next {
    right: 7px;
    border-radius: 5px 0 0 5px;
  }

  /*Farbe und Hintergrundfarbe der Pfeile und Close bei hover*/
  .previous:hover,
  .next:hover,
  .close:hover {
    color: red;
    background-color: rgba(0, 0, 0, 0.8);
  }
}