/* Einbindungen Fonts */

@font-face {
  font-family: Din Condensed;
  src: url(../fonts/din_condensed_bold.ttf);
}

@font-face {
  font-family: Din Alternate;
  src: url(../fonts/din_alternate_bold.ttf);
}

@font-face {
  font-family: Din Alternate Light;
  src: url(../fonts/din_alternate_light.ttf);
}

@font-face {
  font-family: DM Mono Light;
  src: url(../fonts/DMMono-Light.ttf);
}


/* Root */

:root {
  --yellow: rgb(255, 255, 51);
  --blue: rgb(16, 9, 53);
  --pink: rgb(226, 55, 127);
  --lightblue: rgb(213, 223, 240)
}

/* Body */

body {
  background-image: url(../img/background.svg);
  width: 100%;
  height: 100%;
  color: var(--lightblue);
  background-repeat: repeat;
  font-family: 'Dm Mono Light';
  background-color: var(--blue);
  padding: 0;
  margin: 0;
}

a {
  color: var(--lightblue);
}


.logo-header {
  text-align: center;
}

/* Styling Button */
.login-button {
  position: absolute;
  top: 20px;
  right: 20px;
}

.login-button .button {
  background-color: var(--yellow);
  color: var(--pink);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-family: 'Din Alternate';
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/*ease: langsam, schnell, langsam*/

.login-button .button:hover {
  background-color: var(--pink);
  color: var(--yellow);
}

/* Navigation Stylen */

nav {
  font-size: 1.5rem;
  margin-bottom: 4em;
}

.menu {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style: none;
  padding: 20px;
  margin: 0px auto;
  width: 50%;
  gap: 20px;
}

.menu a,
.menu li ul a {
  text-decoration: none;
}

.menu a {
  padding-bottom: 5px;
  transition: 0.3s ease;
  border: 1px solid transparent;
  border-radius: 25px;
  padding: 10px 20px;
}

.menu a:hover,
.aktiver_menuelink {
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 25px;
  transition: border-color 0.5s linear;
}

.aktiver_menuelink:visited {
  color: var(--yellow);
  background-color: var(--pink);
}

.dropdown {
  padding-top: 30px;
}

.menu li ul {
  list-style: none;
  display: none;
  position: absolute;
  margin-top: 10px;
}

nav ul li:hover ul {
  display: block;
  padding: 0px;
  margin: 0px;
  padding-bottom: 10px;
  z-index: 1;
}

/* Hamburger Menu */

.hamburger-menu {
  display: none;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: 0 auto;
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  width: 100%;
  grid-column-gap: 3em;
  grid-row-gap: 5em;
}

.grid_text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4erm;
  font-weight: 700;
  color: var(--pink);
  border: 1px solid var(--yellow);
  text-align: center;
}


/* Home Content */

h1 {
  font-size: 2rem;
  color: var(--yellow);
  margin-top: 0;
}

.illustration_rechts {
  width: 100%;
}

.article {
  border: 1px solid white;
  border-radius: 25px;
  height: fit-content;
  background: rgba(0, 0, 0, 0.2);
  padding: 2em;
}

.left {
  grid-column: 1/9;
}

.right {
  grid-column: 9/13;
  align-items: start;
}

.cta {
  text-align: center;
  border: none;
  background: none;
  font-size: 1.5rem;
  grid-row: 1/3;
}

.app-icon {
  width: 60%;
  margin: 0 auto;
  margin-bottom: 1em;
}

.badge {
  width: 60%;
  margin: 0 auto;
}

.badge:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

#apple_badge {
  margin-bottom: 0.5em;
}


/* Footer */

footer {
  width: 100%;
  background-color: var(--yellow);
  color: var(--pink);
  text-align: center;
  padding: 20px 0;
  margin-top: 10rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
}


.logos figure img {
  width: 100%;
}

.footer-section {
  min-width: 300px;
  margin: 10px;
  justify-content: center;
}

.footer-section h2 {
  font-family: 'Din Alternate';
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-section p,
.footer-section ul,
.footer-section li {
  font-family: 'Din Alternate Light';
  font-size: 1rem;
  margin: 5px 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: var(--pink);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--pink);
  padding-top: 10px;
  font-family: 'Din Alternate Light';
  font-size: 0.9rem;
  margin-top: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}



/* Responsive Design for Tablets and Smartphones */

@media (max-width: 1530px) {
  .dropdown {
    display: none;
  }

  .app-icon {
    width: 90%;
  }

  .badge {
    width: 80%;
  }

  .logo-header a img {
    width: 20%;
  }
}

@media (max-width: 768px) {

  nav {
    margin-bottom: 0em;
  }

  .wrapper {
    flex-direction: column;
    width: 85%;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-row-gap: 20px;
  }

  .logo-header a img {
    width: 45%;
  }

  .grid_text {
    display: none;
  }

  .article,
  .illustration_rechts {
    grid-column: 1/13;
  }

  .article {
    margin: 10px 0;
  }


  /* Hamburger_Menu */

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;

  }

  .hamburger-menu {
    display: block;
    margin-bottom: 4em;
  }

  .menu a {
    padding: 10px;
    width: fit-content;
    text-align: center;
  }


  .submenu:hover .submenu-content {
    display: flex;
  }

  #menu-toggle:checked+.menu-icon+.menu {
    display: flex;
  }

  .menu-icon {
    display: inline-block;
    cursor: pointer;
  }

  .menu-icon .navicon {
    background: white;
    display: block;
    height: 2px;
    position: relative;
    transition: background 0.2s ease-out;
    width: 18px;
  }

  .menu-icon .navicon:before,
  .menu-icon .navicon:after {
    background: white;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
  }

  .menu-icon .navicon:before {
    top: 5px;
  }

  .menu-icon .navicon:after {
    top: -5px;
  }

  #menu-toggle:checked+.menu-icon .navicon {
    background: transparent;
  }

  #menu-toggle:checked+.menu-icon .navicon:before {
    transform: rotate(-45deg);
    top: 0;
  }

  #menu-toggle:checked+.menu-icon .navicon:after {
    transform: rotate(45deg);
    top: 0;
  }

  /* Inhalt */

  .grid {
    display: block;
  }

  .grid .article {
    margin: 4em 0;
  }

  .article:first-child {
    margin-top: 0;
  }

}

@media (max-width: 360px) {

  .wrapper {
    width: 80%;
  }

  .footer-section {
    min-width: 10px;
  }

  p,
  h1,
  h2 {
    hyphens: auto;
  }

  p {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .article {
    padding: 1em;
  }

}