@import url("animations.css");

/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100vw;
  overflow: hidden;
}
/*
  5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
  6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}
/*
  7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/*
  8. Create a root stacking context
*/

a {
  text-decoration: none;
}

a:hover,
a:focus {
  cursor: pointer;
}

#root,
#__next {
  isolation: isolate;
}

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-VariableFont_wdth\,wght.ttf") format("truetype");
}

:root {
  --dark-color: #003137;
  --darker-color: rgb(0, 128, 146);
  --main-color: #005f6a;
  --medium-color: #0097ab;
  --lighter-color: #00daf3;
  --light-color: #6af0ff;
}

body {
  background-color: var(--darker-color); /* Hintergrundfarbe */

  background-image: 
  /*Radialer Verlauf oben links*/ radial-gradient(
      circle at 10% 20vh,
      rgba(0, 218, 243, 0.6) 0%,
      rgba(0, 151, 171, 0.112) 50%
    ),
    /* Radailer Verlauf oben rechts */
      radial-gradient(
        circle at 100% 20vh,
        rgba(0, 95, 106, 0.6) 0%,
        rgba(0, 151, 171, 0.112) 40%
      ),
    /* Radialer Verlauf unten rechts */
      radial-gradient(
        circle at 95% 95%,
        rgba(151, 243, 255, 0.6) 0%,
        rgba(0, 151, 171, 0.112) 30%
      ),
    /* Radialer Verlauf oben rechts */
      radial-gradient(
        circle at 10% 90%,
        rgba(0, 49, 55, 0.7) 0%,
        rgba(0, 151, 171, 0.112) 30%
      ); /* Verlauf unten links mit Variablen */

  background-size: 100vw 100vh, 100vw 100vh, 100vw 100vh, 100vw 100vh; /* Größe der Verläufe */
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat; /* Kein Wiederholen */
}

section {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo {
  margin: 0 10px;
  opacity: 0;
  width: 10vw;
  max-width: 200px;
  height: auto;
  animation: logospin 5s ease-in-out forwards;
  transform-origin: center center;
}

.wortmarke {
  opacity: 0;
  width: 40vw;
  max-width: 500px;
  height: auto;
  animation: wortmarkeappear 3s ease-in-out 4s forwards;
}

.button button {
  font-family: "Fredoka", Calibri, Tahoma, sans-serif;
  font-size: 25px;
  font-weight: 400;
  color: var(--dark-color);
  border: 0;
  padding: 5px 5px; /* Ursprüngliche Padding-Werte */
  background-color: rgba(0, 0, 0, 0); /* Ursprünglicher Hintergrund */
  border-radius: 10px; /* Ursprünglicher Randradius */
  transition: padding 0.5s ease 0.1s, background-color 0.5s ease 0.1s,
    border-radius 0.5s ease 0.1s;
}

.button:hover button,
.button:focus button {
  /*  Einstellungen für den Button, wenn das Div gehovt wird */
  padding: 10px 50px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  cursor: pointer;
}

.button {
  display: flex;
  justify-content: center; /* Horizontal zentrieren */
  align-items: center; /* Vertikal zentrieren */
  width: 300px;
  height: 100px;
  transition: width 0.6s ease, height 0.6s ease;
  position: relative;
}

.button:hover,
.button:focus {
  width: 300px;
  height: 300px;
}

.button-glass {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(10px);
  border: none; /* Kein Rahmen */
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 95, 106, 0.6); /* Weißer Außenschatten */
  cursor: pointer;
  transition: all 0.3s ease;
}

.button-glass:hover,
.button-glass:focus {
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.button-buecher {
  position: absolute;
  top: 20vh;
  right: 20vw;
  opacity: 0; /* Unsichtbar bis zur Animation */
  animation: slideIn 1s ease-out forwards;
  animation-delay: 8s; /* Verzögerung von 4 Sekunden */
}

.button-buecher:hover,
.button-buecher:focus {
  background: url("../img/buecher.webp");
  background-size: cover; /* Hintergrundbild an die Größe des Buttons anpassen */
  background-position: center; /* Hintergrundbild zentrieren */
}

.button-ueber {
  position: absolute;
  top: 20vh;
  left: 20vw;
  opacity: 0; /* Unsichtbar bis zur Animation */
  animation: slideIn 1s ease-out forwards;
  animation-delay: 7s; /* Verzögerung von 4 Sekunden */
}

.button-ueber:hover,
.button-ueber:focus {
  background: url("../img/profilbild.webp");
  background-size: cover; /* Hintergrundbild an die Größe des Buttons anpassen */
  background-position: center; /* Hintergrundbild zentrieren */
}

.button-webdesign {
  position: absolute;
  bottom: 20vh;
  left: 20vw;
  opacity: 0; /* Unsichtbar bis zur Animation */
  animation: slideIn 1s ease-out forwards;
  animation-delay: 9s; /* Verzögerung von 4 Sekunden */
}

.button-webdesign:hover,
.button-webdesign:focus {
  background: url("../img/design.webp");
  background-size: cover; /* Hintergrundbild an die Größe des Buttons anpassen */
  background-position: center; /* Hintergrundbild zentrieren */
}

.button a {
  display: none;
}

.button:hover a,
.button:focus a {
  display: block;
  position: absolute;
  right: -20px;
  bottom: -20px;
  background-color: var(--main-color);
  color: var(--lighter-color);
  font-family: "Fredoka", Calibri, Tahoma, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  height: 75px;
  width: 75px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.animation-container {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: row;
}

h1 {
  text-align: center;
  color: var(--main-color);
  font-family: "Fredoka", Calibri, Tahoma, sans-serif;
  font-size: 3rem;
  font-weight: 200;
}

.legal {
  font-family: "Fredoka", Calibri, Tahoma, sans-serif;
  font-size: 25px;
  font-weight: bold;
  color: rgba(0, 218, 243, 0.112);
  margin: 0;
  position: absolute;
  bottom: 2vh;
  right: 2vw;
}

@media only screen and (min-width: 2500px) {
  .button-buecher {
    right: 30vw;
  }

  .button-ueber {
    left: 30vw;
  }

  .button-webdesign {
    left: 30vw;
  }
}
@media only screen and (max-width: 2499px) {
  .button-buecher {
    right: 25vw;
  }

  .button-ueber {
    left: 25vw;
  }

  .button-webdesign {
    left: 25vw;
  }
}

@media only screen and (max-width: 1600px) {
  .button-buecher {
    right: 20vw;
  }

  .button-ueber {
    left: 20vw;
  }

  .button-webdesign {
    left: 20vw;
  }
}

@media only screen and (max-width: 1020px) {
  .logo {
    margin: 0 10px;
    width: 10vw;
    height: auto;
  }
  h1 {
    font-size: 2rem;
  }

  .button-buecher {
    right: 15vw;
  }

  .button-ueber {
    left: 15vw;
  }

  .button-webdesign {
    left: 15vw;
  }
}

@media only screen and (max-width: 885px) {
  .button-buecher {
    right: 7vw;
  }

  .button-ueber {
    left: 7vw;
  }

  .button-webdesign {
    left: 7vw;
  }
}

@media only screen and (max-width: 700px) {
  section {
    top: 3%;
    left: 50%;
    transform: translate(-50%, 0%);
  }

  .button {
    position: static; /* Positionierung für das Stapeln */
  }

  .button-glass {
    margin: 10vh auto;
  }

  .button-ueber {
    margin-top: 20vh;
  }
}

@media only screen and (max-width: 480px) {
  section {
    top: 3%;
    left: 50%;
    transform: translate(-50%, 0%);
  }

  .logo {
    margin: 5px;
    width: 50px;
    height: auto;
  }
  h1 {
    font-size: 1.2rem;
  }

  .button {
    width: 150px;
    height: 75px;
  }

  .button:hover,
  .button:focus {
    width: 150px;
    height: 150px;
  }

  .button button {
    font-size: 1.2rem;
    font-weight: 400;
  }

  .button:hover button,
  .button:focus button {
    /*  Einstellungen für den Button, wenn das Div gehovt wird */
    padding: 10px 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
  }

  .button:hover a,
  .button:focus a {
    right: -10px;
    bottom: -10px;
    font-size: 1rem;
    height: 50px;
    width: 50px;
  }
  .button-glass {
    margin: 10vh auto;
  }

  .button-ueber {
    margin-top: 25vh;
  }
}

@media only screen and (min-height: 1200) {
  .button-buecher {
    top: 25vh;
  }

  .button-ueber {
    top: 25vh;
  }

  .button-webdesign {
    bottom: 25vh;
  }
}

@media only screen and (max-height: 1199px) {
  .button-buecher {
    top: 20vh;
  }

  .button-ueber {
    top: 20vh;
  }

  .button-webdesign {
    bottom: 20vh;
  }
}

@media only screen and (max-height: 800px) {
  .button-buecher {
    top: 15vh;
  }

  .button-ueber {
    top: 15vh;
  }

  .button-webdesign {
    bottom: 15vh;
  }
}

@media only screen and (max-height: 720px) 
{
  
  .button {
    width: 150px;
    height: 100px;
  }

  .button:hover,
  .button:focus {
    width: 150px;
    height: 150px;
  }

  .button button {
    font-size: 1.2rem;
    font-weight: 400;
  }

  .button:hover button,
  .button:focus button {
    /*  Einstellungen für den Button, wenn das Div gehovt wird */
    padding: 10px 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
  }
  .button-glass {
    margin: 10vh auto;
  }

  .button-ueber{
    margin-top:25vh;
  }
  .button:hover a,
  .button:focus a {
    right: -10px;
    bottom: -10px;
    font-size: 1rem;
    height: 50px;
    width: 50px;
  }
}

@media only screen and (min-width: 750px) {
  .button{
    margin-top:0;

}
}
  /*@media only screen and (max-height: 480px) {
  .button-buecher {
    top: 10vh;
  }

  .button-ueber {
    top: 10vh;
  }

  .button-webdesign {
    bottom: 10vh;
  }
}*/
