
body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hiddenLink {
display: none;
}
/*Allgemein*/
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  /*border-bottom: 1px solid #797272;*/
  z-index: 1000;
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
/*Hilfe Seite*/
.header-help {
  padding: 10px 20px;
}
/*Allgemein*/
.header-logo img {
  height: 40px;
}


.header-title{
  align-items: center;
  font-size:large;
}

.header-nav {
  display: none;
}


.header-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}


.header-nav .nav-list li {
  margin-left: 20px;
}

.header-nav .nav-list li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}



.header-actions {
  display: flex;
  align-items: center;
}


.header-actions .search-button,
.header-actions .menu-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin-left: 20px;
  color: #333;
}

.header-profil img {
height: 30px;
width: 30px;
transition: transform 0.3s ease;
}
.header-profil img:hover {
transform: scale(1.2);

}

.drawer {
  display: none;
  flex-direction: column;
  background-color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  padding-top: 60px;
  border-right: 1px solid #ddd;
}

.drawer .drawer-nav .drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer .drawer-nav .drawer-list li {
  padding: 15px 20px;
}
.drawer .drawer-nav .drawer-list li:hover {
  background-color: #474846; 

}
.drawer .drawer-nav .drawer-list li:hover a{
  color: #faf5f5;
}


.drawer .drawer-nav .drawer-list li a {
  text-decoration: none;
  color: #333;
  display: block;
}

body.drawer-open .drawer {
  display: flex;
}

.close-button {
  display: block;
  margin: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin-top: -45px;
  margin-right: -160px;
}


main{
  margin-top: 90px;
  padding: 20px;
  width: 100%;
  background-color: white;
  flex: 1;
  border-bottom: 1px solid #797272;
}
.layout-content {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  padding-bottom: 60px;
  
}
.profilPage{
  align-items: center;
  justify-self: center;
  text-align: center;
}

.profil-button {
  background-color: rgb(226, 222, 222);
  margin-bottom: 10px; 
  /*display: flex;*/
  align-items: center;
  padding: 15px;
  margin-top: 15px;
  border: none;
  color: black;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/*Hilfe*/
.help-content {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  width: auto;
  padding-bottom: 60px;
  
}

.podcast-search {
  display: flex;
  display: none;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;


}

.podcast-search input[type="text"] {
  height: 20px;
  border: 2px solid grey;
  padding: 0 10px;
  outline: none;

}
.podcast-search input[type="text"]:focus {
  border: 2px solid black;

}

.search-bar {
  border-radius: 4px;
  font-size: 14px;
  

}

.podcast-search button {
  padding: 0 10px;
  font-size: 14px;
  height: 24px;
  border-radius: 4px;
  background-color: white;
  color: black;
  margin-left: 5px;
  cursor: pointer;
  border: 2px solid grey;

}
.podcast-search button:focus {
  border: 2px solid black;
  
}
/*Generelle Nachricht zum Laden von Podcasts (Einheitlich)*/
.loading-message {
  margin-top: 0px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.suche {
  padding-left:100px;
}

.unterüberschrift {
  width: 100%;
  padding-left: 20px;
  padding-bottom: 10px;
  font-weight: bold;
  font-size: 18px;
}

/*Aufteilung der Podcasts*/
.grid {
  display: grid;
 /* grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
  ;*/
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  grid-auto-flow: column;   
  grid-auto-columns: minmax(200px, 1fr); 
  overflow-x: auto;   
  overflow-y: hidden;
  justify-items: start; /* Elemente im Grid linksbündig ausrichten */
  grid-auto-flow: column;
  max-width: fit-content;
  
  
}


.grid div {
  /*padding: 0px;*/
  text-align: center;
  border-radius: 5px;
  height: 100%;
  /*display: flex;*/
  transition: transform 0.3s ease;

}

.grid img {
  border-radius: 1rem;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease; /* Sanfte Übergänge bei Hover */
  cursor: pointer; 
  overflow: hidden; /* Verhindert, dass das Bild außerhalb des Containers sichtbar ist */
  display: inline-block;
  

}

.grid h4 {
  transition: transform 0.3s ease; 
}


.grid div:hover img,
.grid div:hover h4 {
  transform: scale(1.1);
}


.fav-div img {
  height: 200px; 
  object-fit: cover; 
  border-radius: 1rem;
}

.fav-div{
  
  display: grid;
 /* grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
  ;*/
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  grid-auto-flow: column;   
  grid-auto-columns: minmax(200px,200px); 
  overflow-x: auto;   
  overflow-y: hidden;
  justify-items: start; 
  grid-auto-flow: column;
  max-width: fit-content;
  transition: transform 0.3s ease;
}

.fav-div img{
  transition: transform 0.3s ease;
}
.fav-div h4 {
  transition: transform 0.3s ease;
}

.fav-div div:hover img,
.fav-div div:hover h4 {
  transform: scale(1.1);
}

.favorites-fav  {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
  width: 100%;
  row-gap: 40px;
  padding: 20px;

  
 
}
.favorites-fav div {
  border: 1px solid #0b0b0b;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  background-color: white;


  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;

}
.favorites-fav img {
  border-radius: 1rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;


  width: 100%; 
  max-width: 200px; 
  height: auto; 
  

}


.episode-dashboard {
  text-align: left;
  width: 100%;
  padding-bottom: 50px;


}

.dash-search-row{
  width: 100%;
}

.img {
  width: 100%;
  height: 200px; 
  object-fit: cover; 
}





.podcasts-details-left {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.placeholder {
  width: 15%;
}
.podcast-title-dash {
  margin-top: 0px;
  align-items: center;
  justify-content: center;
 
  
}
#fav-btn-image {
  padding-left: 30px;
}

.button-remove {
  padding: 10px 20px; /* Innenabstand für größere Klickfläche */
  border: 1px solid rgb(226, 222, 222); 
  background-color: rgb(226, 222, 222);
  color: black; 
  border-radius: 5px; 
  cursor: pointer; 
  margin: 4px;
}
.play-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  font-size: 2em;
}
.episode-container {
  margin-bottom: 10px; 
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  background-color: rgb(226, 222, 222);
  color: black;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s;
}

.episode-button {
  padding: 5px;
  border: none;
  background-color: rgb(226, 222, 222);
 
  cursor: pointer;
  transition: background-color 0.3s;
}

.episode-play-icon {
  margin-right: 20px;
}
.episode-title {
  flex: 1;
}
.episode-time {
  margin-left: auto; /* Schiebt die Zeit ans Ende des flex-Containers */
  font-size: 14px;
  color: grey;
}

.episode-description {
  margin-left: 20px;
  display: none;
  padding-bottom: 20px;
  

}
.audio-hidden {
  display: none;
  
}
.audio-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  padding: 10px;
  box-sizing: border-box;
  color: #fff;
  text-align: center;
  z-index: 1000px;
}

audio {
  width: 100%;
  outline: none;
}



.visible {
  display: block;
}
.podcast-image-dash {
 /* width: 100%;*/
  max-width: 600px;
  height: 300px;
  margin-bottom: 20px;
  border-radius: 1rem;
}

.episode-info {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.dash-left {
  justify-content: center;
}
.podcast-details-right {
  text-align: center;

}
.description-dash {
  font-size: 1em;
  margin-bottom: 20px;
}

.summary-dash {
  font-size: 1em;
  line-height: 1.5;
}

.button-design {
  font-size: 15px;
  border-radius: 0.5rem;
  border-color: black;
  background-color: white;
  height: 30px;
  align-items: center;
  justify-content: center;


}



#categoryContainer {
  padding: 10px;
  gap: 20px;
  margin-bottom: 20px;
 
  
}
  
.category-button {
  padding: 10px 20px; 
  border: 1px solid black; 
  background-color: #FFF; 
  color: black; 
  border-radius: 5px; 
  cursor: pointer; 
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; /* Sanfte Übergänge bei Hover */
  margin: 4px;
  
}

.category-button:hover {
  background-color: #474846; 
  color: #FFF; 
  
}

.category-button:active {
  background-color: black; 
  
}



a:any-link {
  color: black;
  text-decoration: none;
}


.footer {
  display: flex;                 
  justify-content: space-between; 
  align-items: center;           
  padding: 20px;                 
  background-color: white;        
  color: black;                  
}

.footer-section {
  flex: 1;                       
  text-align: center;            
}

.footer-left {
  text-align: left;              
}

.footer-right {
  text-align: right;             
}

.footer a {
  color: black;                  
  text-decoration: none;         
  margin: 0 10px;               
}

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

/*Bildschirmanpassung*/
@media (min-width: 990px) {
  .header-nav {
      display: block;
  }
  .header-actions .menu-button {
      display: none;
  }
  .drawer {
      display: none;
  }

  .img {
      margin-right: 20%;
  }
  .podcast-details-right {
      margin-right: 120px;
  }
  .podcast-title-dash {
      margin-top: 0px;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-left: 5%;
      margin-top: 20px;
  }
  .description-dash {
      width: 100%;
      margin-left: 5%;
  }
  
  .podcastDashPage{
      margin: 0;
      padding: 0;
      gap: 0.5em;
      list-style: none;
      font: 1.2rem sans-serif;
      

      display: block;
      height: 100%;
      padding: 0.2em 0.5em;
      text-decoration: none;
      box-sizing: border-box;
      border-radius: 5px;
      
      text-align: center;
      align-content: center;
  }

  
  .podcastDashPage.flex {
      display: flex;
      flex: 1 0 1em;
  }

  .podcast-image-dash {
      margin-top: -20px;
      margin-bottom: 20px;
      margin-right: 5%;
      margin-left: 10%;
  
  }

  .episode-dashboard {
      margin-top: 3%;
  }
  
}

@media (min-width: 377px) and (max-width: 591px) {
  .favorites-fav  {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: auto;
      gap: 20px;
      width: 100%;
      row-gap: 40px;
      padding: 20px;
  
      
     
  }
}
@media (min-width: 592px) and (max-width: 989px) {
  .favorites-fav  {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: auto;
      gap: 20px;
      width: 100%;
      row-gap: 40px;
      padding: 20px;
  }
}
@media (max-width: 376px) {
  .favorites-fav  {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      grid-auto-rows: auto;
      gap: 20px;
      width: 100%;
      row-gap: 40px;
      padding: 20px;
  }
}

@media (max-width: 989px) {
  .dash-left {
      display: flex;
      justify-content: center; 
      align-items: center; 
      margin-bottom: 60px; 
      text-align: center; 
      width: 100%;
  }

  .podcast-image-dash {
      max-width: 80%;
      height: auto; 
      margin: 0 auto; 
      display: block; 
  }
}

/*Animation*/

@keyframes one {
0% {
  transform: scaleY(0.7);
}
20% {
  transform: scaleY(1.5);
}
40% {
  transform: scaleY(0.3);
}
60% {
  transform: scaleY(1.1);
}
80% {
  transform: scaleY(0.8);
}
100% {
  transform: scaleY(0.7);
}
}

@keyframes two {
0% {
  transform: scaleY(1);
}
20% {
  transform: scaleY(0.6);
}
40% {
  transform: scaleY(1.2);
}
60% {
  transform: scaleY(0.5);
}
80% {
  transform: scaleY(1.4);
}
100% {
  transform: scaleY(1);
}
}

@keyframes three {
  0% {
    transform: scaleY(1.4);
  }
  15% {
    transform: scaleY(2.5); /* Peak occurs earlier at 15% */
  }
  30% {
    transform: scaleY(0.9);
  }
  45% {
    transform: scaleY(1.8);
  }
  60% {
    transform: scaleY(0.7);
  }
  75% {
    transform: scaleY(1.3);
  }
  100% {
    transform: scaleY(1.4);
  }
}

@keyframes four {
  0% {
    transform: scaleY(1.2);
  }
  30% {
    transform: scaleY(1.7);
  }
  50% {
    transform: scaleY(2.5); /* Peak occurs at 50% */
  }
  70% {
    transform: scaleY(0.4);
  }
  85% {
    transform: scaleY(1.6);
  }
  100% {
    transform: scaleY(1.2);
  }
}

@keyframes five {
  0% {
    transform: scaleY(0.6);
  }
  25% {
    transform: scaleY(1.3);
  }
  55% {
    transform: scaleY(0.8);
  }
  75% {
    transform: scaleY(2.5); /* Peak occurs later at 75% */
  }
  85% {
    transform: scaleY(0.7);
  }
  100% {
    transform: scaleY(0.6);
  }
}

@keyframes six {
0% {
  transform: scaleY(1.1);
}
20% {
  transform: scaleY(0.5);
}
40% {
  transform: scaleY(1.6);
}
60% {
  transform: scaleY(0.9);
}
80% {
  transform: scaleY(1.2);
}
100% {
  transform: scaleY(1.1);
}
}

@keyframes seven {
0% {
  transform: scaleY(0.9);
}
20% {
  transform: scaleY(1.4);
}
40% {
  transform: scaleY(0.6);
}
60% {
  transform: scaleY(1.8);
}
80% {
  transform: scaleY(0.7);
}
100% {
  transform: scaleY(0.9);
}
}


.boxContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  --boxSize: 3px;
  --gutter: 3px;
  width: calc((var(--boxSize) + var(--gutter)) * 7);
}

.box {
  transform: scaleY(1);
  animation-play-state: inherit;
  height: 20%;
  width: var(--boxSize);
  background: #000000;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  border-radius: 8px;
}

.box1 { animation-name: one; animation-delay: 0s;  }
.box2 { animation-name: two; animation-delay: 0.2s; }
.box3 { animation-name: three; animation-delay: 0.1s; }
.box4 { animation-name: four; animation-delay: 0.3s; }
.box5 { animation-name: five; animation-delay: 0.4s; }
.box6 { animation-name: six; animation-delay: 0.25s; }
.box7 { animation-name: seven; animation-delay: 0.35s; }

#loadingAnimation {
  display: flex; /* Make sure it is always visible */
  animation-play-state: paused; /* Initial state is paused */
  /* Your existing animation properties */
}


/* Diaglog - Anmeldung*/

dialog[open] {
width: 50%;
background: #f4f2f0;
border:  solid #060400;
border-radius: .5rem;
margin: 5em auto;
max-width: 700px;
}

dialog {
align-items: center;
place-content: center;

/* registrierung switch*/
  width: 100%;
  max-width: 800px; /* oder eine sinnvolle Breite */
  overflow: hidden;
  transition: transform 0.5s ease-in-out;
}
dialog::backdrop {
background: hsla(202, 5%, 40%, 0.7);
}
.img-dialog{
  position: absolute;
  top:10;
  right: 10;
  width: 40px;
}

.form-wrapper {
display: flex;
width: 200%; /* Beide Formulare nebeneinander */
transition: transform 0.5s ease-in-out;
}

.form-container {
width: 50%;
padding: 20px;
box-sizing: border-box;
position: relative;

}

.heading{
font-size: 25px;
width: 100%;
text-align: center;
font-weight: bold;
padding: 20px 0 20px 0;
margin-bottom: 10px;
}

.head-anmeldung{
  margin-top: 20px;
  margin-bottom: 20px;
}

.form-log {
display: flex;
flex-direction: column;
gap: 10px; /* Abstand zwischen den Feldern */
margin-bottom: 20px;
}

.form-group {
display: flex;
align-items: center; /* Vertikale Ausrichtung */
gap: 20px; /* Abstand zwischen Label und Input */
}

.form-group label {
width: 80px; /* Feste Breite für Labels, sodass alle Inputs gleich starten */
text-align: right; /* Rechtsbündige Beschriftung */
display: block;
}
.form-group input::placeholder {
  visibility: hidden;
  font-size: smaller;
}

.form-group input {
flex-grow: 1; /* Input-Feld füllt den restlichen Platz */
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
height: 30px;
margin-right: 5px ;
font-size: 18px;
color: rgb(77, 73, 73);
}

.form-button{
display: flex;
align-items: center;
gap: 10px;
margin: auto;
max-width: 400px;

}

.btn-anmeldung{
padding: 0.5em 1em;
font-size: 1em;
background: rgb(45, 45, 45);
border: thin solid #333;
color: white;
cursor: pointer;
border-radius: 0.5rem;
width: 100%;
}
.form-lab-tex{
display: flex;
gap: 10px;
max-width: 400px;
margin: auto;
justify-content: space-evenly;
margin-top: 20px;
align-items: center;
}


/*button:hover,
button:focus {
background: #333;
transform: translateY(2px);
}
*/
[role=note] {
border-left: medium solid #c82f04;
padding-left: 0.5em;
}

[role=note]:before {
content: 'Beachten:  ';
color: #c82f04;
font-weight: blod;
}


.switch-right {
transform: translateX(-50%);
}

.hidden {
transform: translateX(100%);
opacity: 0;
}

.switch-form {
margin-top: 10px;
font-size: 14px;
}

.switch-form a {
color: black;
text-decoration: underline;
cursor: pointer;
}

@media (max-width: 750px) {
  .form-group label {
    display: none;
  }
  .form-group input::placeholder {
    visibility: visible;
  }
  .switch-form{
    text-align: center;
  }
}

.user-dropdown {
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 100;
  width: 150px;
  padding: 10px;
}

.user-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-dropdown li {
  padding: 10px;
  cursor: pointer;
}

.user-dropdown li:hover {
  background-color: #f0f0f0;
}
