html {
    scroll-behavior: smooth;
    transition: 0.75s;
  }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #181818;
    color: white;
    transition: 0.5s;
  }

header {
    height: 80px;
    border-bottom:1px solid #ccc;
    text-align: center;
    padding: 18px;
    width: 93%;
    margin: 0 auto;
    
    
}

#Infos {
    position: absolute;
    top: 0;
    left: 5px;
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
}


  
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .box {
    position: relative;
    width: 300px;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ccc;
    background-color: black;
    overflow: hidden;
  }

  .box p {
    text-align: left;
    margin-left: 25px;
    margin-right: 25px;
    line-height: 25px;

  }

  
  .overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
  }
  
  .verkauft .overlay {
    display: flex;
  }
  
  .sold-text {
    color: red;
    font-size: 24px;
    font-weight: bold;
  }
  
  img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
  }
  
  .description {
    font-size: 14px;
    
  }
 

  footer {

    border-top: 1px solid #ccc;
    width: 93%;
    margin: 0 auto;
    margin-top: 100px;
    transition: 0.5s;

  }

  footer ul {

    list-style: none;
  }

  footer li {

    padding: 10px;
  }

  footer li a {

    color: var(--second-color);
    text-decoration: none;
    opacity: 0.8;
  }

  footer li a:hover {

    text-decoration: underline 2px solid;
    opacity: 1;
  }

  footer ul h2 {

    color: var(--second-color);
  }

  .footer-ul {

    width: 20%;
  }


  #Unverzagt {
   text-align: center;
   margin-bottom: 25px;
    
  }

  #Unverzagt a {
    color: white;
    text-decoration: none;
  }

/*----------------------------------------------------------*/
/* Stil für die vergrößerte Bildansicht */
.vergroessertes-bild-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Stelle sicher, dass das Bild über allem liegt */
}

.vergroessertes-bild {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
    transition: 0.75s;
}

.vergroessertes-bild-pfeil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    z-index: 2000;
    /* Stelle sicher, dass die Pfeile über dem Bild liegen */
}

.vergroessertes-bild-pfeil-links {
    left: 10px;
    
}

.vergroessertes-bild-pfeil-rechts {
    right: 10px;
    
}

.vergroessertes-bild-schliessen {
    position: absolute;
    top: 25px;
    right: 12px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    z-index: 2000;
    /* Stelle sicher, dass die Pfeile über dem Bild liegen */
    transition: 0.75s;
}

/*---------------------------------------------------*/

.fenster {
    display: none;
    position: fixed;
    background-color: #181818;
    width: 60%;
    max-width: 450px;
    min-height: 450px;
    padding: 30px;
    text-align: center;
    z-index: 99;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    border-radius: 10px;
    color: white;
}

.fenster a {
    text-decoration: none;
}

.hintergrund {
    display: none;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 25px;
}

.fenster.open {
    display: block;
}

.hintergrund.open {
    display: block;
}
/* Grundstil für den Button */
button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #181818;/*#3498db   #2980b9*/
    color: #fff;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 5px;
  }
  
  /* Hover-Effekt */
  button:hover {
    background-color: white;
    color: black;
  }


/* CSS für mobile Ansicht */
@media (max-width: 980px) {
    .fenster {
        height: 100%;
        width: 100%;
        max-width: none;
        position: fixed;
        padding: 10px;
        top: 1; /* Oberer Rand */
        left: 1; /* Linker Rand */
    }
    
    .close {
        top: 15px;
        right: 18px;
    }
}