  *{
  font-family: "Urbanist", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  margin: 0;
  padding: 0;
  }


  body {
  margin: 0;
  padding: 0;
  background-image: url("wallpaper/wallpaper305.png");
  left: 0;
  right: 0;
  font-family: "Urbanist", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  scroll-behavior: smooth;
  scroll-padding-top: 350px; /* Falls nav 100px hoch ist*/
  min-height: 100vh; /* Stellt sicher, dass die Seite die volle Hohe hat */
  display: flex;
  flex-direction: column;
  max-width: 100%;
  color: #33333;
  }


  header {
    background-color: #719bb7;
    color: white;
    padding: 20px;
    text-align: center;
  }


  #home h1 {
    margin-top: 30px;
    font-size: 6em;
    font-weight: bold;
  }

 .artwork h1 {
    margin: 0;
    font-size: 3em;
    font-weight: bold;
  }

  header h2, #home h2{
    margin: 0;
    font-size: 2.0em;
    font-weight: normal;
  }




  nav {
    background-color: #444;
  }


  nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
  }


  nav li {
    margin: 0;
      font-size: 1.8em;
  }


  nav a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
  }
  nav a:hover {
    color: #e74c3c;

  }
  section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
  }


#gallery {
    margin-top: 20rem;
    display: grid;
    grid-template-columns: 1fr 1fr; /* zwei Spalten */
    gap: 20px;
  }

  #gallery h2{
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #DC143C;
    font-style: italic;
  }




  .gallery-item {
    background-color: white;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    transition: transform 0.2s;
  }



  .gallery-item img {
    width: 250px;
    height: 200px;
    display: block;
    border-radius: 30px;
  }

  .gallery-item p{
    font-weight: bold;
    font-size: 25px;
    padding-bottom: 10px;

  }

  .gallery-item h1{
    font-weight: bold;
    font-size: 25px;
    padding-top: 10px;
  }

  .gallery-item a{
    font-weight: normal;
    text-decoration: none;
    color: black;
    font-size: 20px;
  }





  .gallery-item a:hover{
    font-weight: bold;
    text-decoration: underline;
    color:  #cc0099;
    font-size: 1.5rem;
  }

  .thumb {
    width: 120px;
    height: auto;
    border: 1px solid #ccc;
    margin-bottom : 10px;
  }


  /* Detailseite Kunstwerk */
  .artwork {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
  }


  .artwork-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

b{
  font-weight: bold;
}



  header h1, .artwork h1 {
    margin: 0;
    font-size: 3em;
    font-weight: bold;
  }

  header h2, #home h2{
    margin: 0;
    font-size: 2.0em;
    font-weight: normal;
  }


  .artwork img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    max-width: min(600px, 90vw);
  }

  .artwork-info {
    text-align: left;
    font-size: 1.2rem;
  }

.artwork-info p{
font-size: 1.5em;
}

  .initialen {
    text-align: center;
  }


.artwork-info_bottom{
  flex-direction: row;
  display: inline-flex;
  grid-gap: 80px;
}

.left{
  left: 50px;
}

.right{
  right: 30px;
}


  @media (max-width: 700px) {

    .artwork-container {
      flex-direction: column;
      gap: 20px;
    }

    .artwork-info {
      text-align: center;
      font-size: 1rem;
    }

    .artwork img {
      max-width: 100%;
    }


      header h1, .artwork h1 {
        margin: 0;
        font-size: 3em;
        font-weight: bold;
      }

      header h2, #home h2{
        margin: 0;
        font-size: 2.0em;
        font-weight: normal;
      }



  footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
  }
  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: auto;
  }
  input, textarea, button {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
  }
  button {
    background-color: #222;
    color: white;
    border: none;
    cursor: pointer;
  }
  button:hover {
    background-color: #555;
  }



  /* Tablets: max-width 992px */
  @media (max-width: 992px) {
    /* Navigation etwas lockern */
    nav ul {
      justify-content: space-around;
      flex-wrap: wrap;
    }

    nav a {
      padding: 12px 20px;
      font-size: 1em;
    }

    /* Header anpassen */
    header h1 {
      font-size: 2em;
    }

    header p {
      font-size: 1em;
    }

    /* Galerieüberschrift */
    #gallery h2 {
      font-size: 1.8em;
    }

    /* Galerie: zwei Spalten bleiben */
    .gallery {
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .gallery-item img {
      width: 100%;
      height: auto;
    }
  }

  /* Smartphones: max-width 600px */
  @media (max-width: 600px) {
    /* Navigation vertikal */
    nav ul {
      flex-direction: column;
      align-items: center;
    }

    nav a {
      padding: 10px 15px;
      font-size: 0.9em;
    }

    /* Header kleiner */
    header h1 {
      font-size:2.5em;
    }

    header h2 {
      font-size: 0.9em;
    }

    /* Galerieüberschrift kleiner */
    #gallery h2 {
      font-size: 1.5em;
      text-align: center;
    }

    /* Galerie untereinander */
    .gallery {
      grid-template-columns: 1fr; /* eine Spalte */
      gap: 15px;
    }

    .gallery-item img {
      width: 100%;
      height: auto;
    }

    /* Galerie-Texte skalieren */
    .gallery-item p,
    .gallery-item h1,
    .gallery-item a {
      font-size: 1em;
    }

    /* Formular breiter und angepasste Schrift */
    form {
      width: 90%;
    }

    input, textarea, button {
      font-size: 1em;
      padding: 8px;
    }

    /* Footer Schriftgröße anpassen */
    footer p {
      font-size: 0.9em;
    }
  }

/*  Galerie Bilder proportional*/
========================= */
.gallery-item img {
width: 100%;       /* Bild füllt die Containerbreite */
height: auto;      /* Höhe passt sich automatisch an */
max-height: 300px; /* optional: maximale Höhe auf Desktop */
object-fit: cover; /* Bild bleibt proportional, schneidet ggf. minimal */
border-radius: 30px;
display: block;
margin: auto;
}

/* Optional: gleiche Höhe für Galerie-Boxen auf Desktop */
@media (min-width: 601px) {
.gallery-item {
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}
}
