* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

:root {
  --color-bg: #261d19;
  --color-balken: #0f0f0f;
  --text-color: #f2f2f2;
  --hover-color: #7f7e7a;
  --h1-h2-3-color: #e8e7e5;
  --tabelle-titel-color: #f2f2f2;
  --tabelle-text-color: #0f0f0f;
  --button-color: #343434;

  --font-main: Arial, Helvetica, sans-serif;
  --font-size-navi: 1.2rem;
  --font-size-h1: 1.5rem;
  --font-size-h2: 1rem;
  --font-size-p: 16px;
}

html {
  background: linear-gradient(to bottom, #2e201a 80%, #0f0f0f);
}

header {
  text-align: center;
  background-color: #261d19;
  width: 100%;
  padding-top: 2rem;
  border-bottom: 2px solid var(--text-color);
  position: relative;
  z-index: 10;
}

.logo {
  margin: 2rem auto 0.5rem;
  z-index: 10;
}

nav {
  display: flex;
  flex-direction: column;
  z-index: 10;
}

nav ul {
  list-style: none;
  font-size: var(--font-size-navi);
  z-index: 10;
}
nav ul li {
  margin: 1rem;
  z-index: 10;
}

a {
  text-decoration: none;
  color: var(--text-color);
  z-index: 10;
}

.hero {
  position: relative;
  background-image: url(img/machine-8254051_1280.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
  animation: slide-down 1.2s ease-out forwards;
  z-index: 1;
}

.hero-text {
  text-align: center;
  color: var(--text-color);
  padding: 2rem;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  animation: fadein 0.8s ease-out 1.2s both;
}

.hero h2 {
  font-size: var(--font-size-h2);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-text p {
  font-size: var(--font-size-p);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 800px;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
}
.main-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 80%;
  color: var(--text-color);
  margin: 2rem auto 2rem;
}
.main-foto-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: 2rem auto;
}
.main-foto img {
  width: 300px;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.8);
}
.button {
  background-color: var(--button-color);
  margin-top: 2rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  border: 2px solid #909090;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: flex-end;
}
.footer {
  background-color: var(--color-balken);
  width: 100%;
  border-top: 2px solid var(--text-color);
  padding: 0.5rem;
}
.footer a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  margin: 1rem;
}

/* Team Seite */

.team-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
}

.hero-team {
  position: relative;
  background-image: url(img/istockphoto-164327025-2048x2048.jpg);
  background-size: cover;
  background-position: 50% 30%;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 200px; /*Anschauen*/
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
  animation: slide-down 1.2s ease-out forwards;
  z-index: 1;
}

.team-text {
  font-size: var(--font-size-h2);
  color: var(--text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 2rem;
  text-align: center;
  animation: fadein 0.5s ease-out 1.2s both;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3rem auto;
  gap: 10px;
}

.gallery-item {
  flex-basis: 100%;
  box-sizing: border-box;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Leistungen Seite */
.hero-leistungen {
  position: relative;
  background-image: url(img/friseurtapete-schwarzer-marmorhintergrund.jpg);
  background-size: cover;
  background-position: 50% 0%;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 200px; /*Anschauen*/
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
  animation: slide-down 1.2s ease-out forwards;
  z-index: 1;
}
.tabellen-container {
  width: 80%;
  height: auto;
  margin: 1rem auto;
  /* border: 2px solid white; */
}

table {
  width: 100%;
  border-spacing: 0.5rem;
}

caption {
  background-color: var(--tabelle-titel-color);
  color: var(--tabelle-text-color);
  padding: 1rem 0;
  margin: 0.5rem;
}

th,
td {
  padding: 0.5rem 0.7rem;
  /* font-size: var(--font-size-h1); */
}

th {
  background-color: rgb(61, 61, 61);
  color: var(--text-color);
}

tr:nth-child(even) {
  background-color: rgb(206, 206, 206);
}

tr:nth-child(odd) {
  background-color: rgb(114, 114, 114);
}

/* Portofilo Seite */

.hero-portfolio {
  position: relative;
  background-image: url(img/friseur-schnitt-haar-ihr-klient-einem-friseursalon.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 200px; /*Anschauen*/
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
  animation: slide-down 1.2s ease-out forwards;
  z-index: 1;
}

.portfolio {
  text-align: center;
  margin: 2rem auto;
  color: var(--text-color);
}

.hair-styles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.spalte {
  flex: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hair-styles img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Kontakt */
.hero-kontakt {
  position: relative;
  background-image: url(img/beauty-salon-4043096_1280.jpg);
  background-size: cover;
  background-position: 50% 80%;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 200px; /*Anschauen*/
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
  animation: slide-down 1.2s ease-out forwards;
  z-index: 1;
}

.contact-container {
  display: flex;
  /* justify-content: space-between; */
  justify-content: center;
  margin: 3rem;
}

.maps {
  margin-right: 3rem;
  /* border: 2px solid white; */
}

.contact-addresse p {
  color: var(--text-color);
}

.contact-addresse h3 {
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

#kontakt-container {
  display: flex;
  flex-direction: column;
  margin: 3rem;
}

#kontakt-container label {
  color: var(--text-color);
  margin: 5px 0;
  font-size: 16px;
}

a:hover {
  color: var(--hover-color);
}

@media (min-width: 768px) {
  .container {
    max-width: 960px;
    margin: auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  nav {
    flex-direction: row;
    justify-content: center;
  }

  nav ul {
    display: flex;
    gap: 3rem;
    font-size: 1.5rem;
  }

  .hero {
    height: 500px;
  }

  .hero-team {
    height: 500px;
  }

  .hero-leistungen {
    height: 500px;
  }

  .hero-portfolio {
    height: 500px;
  }

  .hero-kontakt {
    height: 500px;
  }
  .container section {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 2rem;
  }

  .main-text {
    flex: 1;
    text-align: left;
    max-width: 400px;
    margin: 2rem 0;
  }

  .main-foto-button-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    width: auto;
    margin: 2rem 0;
    gap: 2rem;
  }

  .main-foto img {
    width: 300px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.8);
  }

  .button {
    background-color: var(--button-color);
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 2px solid #909090;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    margin-top: 0;
  }

  .footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  /*Galerie Mitarbeiter*/
  .portfolio h1 {
    text-align: center;
  }
  .gallery-item {
    margin: 2rem;
    flex-basis: 20%;
  }
  /*portfolio Galerie*/

  /* .hair-styles {
    width: 960px;
    margin: auto;
  }
  .spalte {
    flex-basis: calc(100% / 4);
  } */
}

/* Tablet:*/
@media (min-width: 600px) {
  .spalte {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 5px);
  }
}

/* Desktop*/
@media (min-width: 900px) {
  .spalte {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(25% - 7.5px);
  }
}

/*Animation für den hero*/

@keyframes slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 100;
  }
}
