/* style.css */

body {
  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  background-color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.33;
}
/*This is the Header */
header {
  background-color: #fff;
  padding: 20px;
}
/*This is the Title*/
h1 {
  text-align: center;
  margin-bottom: 20px;
}

main {
  padding: 20px;
}

section {
  padding: 1em;
}

h2 {
  text-align: center;
  margin-bottom: 10px;
  font-weight: 300;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 5px;
}

footer {
  background-color: #fff;
  padding: 20px;
}

a {
  color: rgb(159, 27, 75);
  text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* The classes rear and green are for for the background colour  */

.bg1 {
  background-color: rgb(159, 27, 75);

  color: white;
}

.logo {
  position: relative;

  text-align: center;
}

/* grid-container with flexbox */

.container {
  /*
   display: flex;

  flex-wrap: wrap ;
*/
}

/* tiles: children of grid-conainer */

.container > * {
  box-sizing: border-box;
  /*width : 25%; 

    display : flex ;

    flex-direction: column;

    justify-content: center;

    min-height: 50vh; */
}

@media (min-width: 600px) {
  /* ab einer Breite von 600px sollen die Kacheln als Raster angezeigt werden  */

  .container {
    display: flex;
    flex-wrap: wrap;
  }

  .container > * {
    width: 50%;

    display: flex;

    flex-direction: column;

    min-height: 50vw;
  }
}
@media (min-width: 960px) and (max-width: 1099px), (min-width: 1680px) {
    .container > * {
        justify-content: center;
    }
}

@media screen and (min-width: 600px) and (max-width: 1099px) {
  /* Ändere die Reihenfolge von Bild 3 und Bild 4 für Bildschirme mit mindestens 600 Pixel Breite */

  .container > :nth-child(1) {
    order: 1;
  }

  .container > :nth-child(2) {
    order: 2;
  }

  .container > :nth-child(3) {
    order: 4;
  }

  .container > :nth-child(4) {
    order: 3;
  }

  .container > :nth-child(5) {
    order: 6;
  }

  .container > :nth-child(6) {
    order: 5;
  }

  .container > :nth-child(7) {
    order: 7;
  }

  .container > :nth-child(8) {
    order: 8;
  }
}

@media (min-width: 1100px) {
  .container > * {
    width: 25%;
    min-height: 50vh;
  }
}

/* The hohle li,ol,offer section plays a big role for the "Gönnen Sie sich noch Heute eine Massage section */

ol.offer li {
  display: flex;

  justify-content: space-between;
}

ol.offer p {
  margin-top: 0;
  margin-right: 1.5em;
}

ol.offer {
  padding-left: 0;
}

.tile {
  display: block;
  object-fit: cover;
}

ol.advanteges {
  list-style-type: none;
  padding-left: 0;
}
ol.advanteges li {
  display: flex;
}
ol.advanteges li::before {
  content: "\2713";
  margin-right: 0.6em;
}
