body, html {
    margin: 0;
    font-family: serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

header {
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap:3em;
}

/*header img {
    margin-top: 0.2em;
    margin-left: 1em;
    margin-bottom: 0.2em;
}*/

header h1 {
    margin: 0;
    padding:0;
    font-size: 3em;
    text-align: center;
}

h2 {
    font-size: 2em;
}

nav {
    background: #2d7f37;
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2em;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

section {
    padding: 1em;
}

#oeffnungszeiten {
    background-image: url("https://apotheke-im-vitalhaus.de/bilder/apotheke-im-vitalhaus_de.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    text-align: center;
    height: 800px;
}

#oeffnungszeiten img {
    width: 100%;
    height: 100px;
    display: block;
}


/*
#produkte {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    background-color: #eafaf1;
}
*/

#produkte {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

#produkte h2 {
  text-align: center;
  margin-bottom: 40px;
}

.produkte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.produkt {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.produkt img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.produkt p {
  margin: 16px 0;
  font-size: 1.2em;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-align: justify;
}

.produkt a {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background-color: #2d7f37;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  
}

.produkt a:hover {
  background-color: #235c55;
}

.oeffnungszeiten {
    border: 1px solid #ccc;
    padding: 1em;
    width: 350px;
    text-align: center;
    background-color: white;
    opacity: 0.88;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    font-size: 1.2em;
}

.wochentag {
    display: flex;
    justify-content: space-between;
}

.tag-name {
    font-weight: bold;
}

/*
.produkt {
    border: 1px solid #ccc;
    padding: 1em;
    width: 280px;
    text-align: center;
    background-color: white;
    border-radius: 8px;
}

.produkt a {
    display: inline-block;
    margin-top: 0.5em;
    color: #2d7f37;
    text-decoration: none;
    font-weight: bold;
}
*/

#pflichtangaben {
    background-color: #f0f0f0;
    font-size: 1.0em;
    display: flex;
    flex-direction: column;
}

#pflichtangaben a {
    color: #2d7f37;
    text-decoration: none;
    font-weight: bold;
}

.angabe {
    padding-bottom: 0.75em;
    display: flex;
    justify-content: left;
}

.angabe-name {
    width: 20em;
    font-weight: bold;
}

#fuss {
  font-size: 1.0em;
  text-align: center;
  height: 3.0em;
}

#fuss img {
  height: 3.0em;
  padding-bottom: 1em;
}

@media (max-width: 768px) {
    header {
        flex-direction: column; /* Auf mobilen Geräten Logo und Titel untereinander */
        padding: 15px;
    }
    
     .oeffnungszeiten {
        margin-left: auto;
        margin-right: auto;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1em;
        margin-left: 15px;
    }

    #produkte {
        flex-direction: column;
        align-items: center;
    }

    .angabe-name {
        min-width: 225px;
        max-width: 225px;
    }
}
