html{
    scroll-padding-top: 70px; /* Höhe des Sticky Headers */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #3f4551;
    max-width: var(--max-screen-width);
    margin: 0;
    padding: 0;
}

header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.logo_bild{
    height: 50px;
}

h2 {
    margin-top: 20px;
    opacity: 0;
    transform: translateX(-20px); /* Startposition links außerhalb des Viewports */
    animation: fadeInLeft 1s forwards; /* Animationseffekt mit 1 Sekunde Dauer */
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0); /* Endposition, um die Überschrift einzublenden */
    }
}

header.shrink {
    padding: 10px 40px;
}

header .logo {
    font-family: 'Julius Sans One', sans-serif;
    font-size: 24px;
    color: #3f4551;
}

.logo_text{
    width: 150px;
    height: auto;
}

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

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

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #3f4551;
    font-family: 'League Gothic', sans-serif;
    font-size: 18px;
}

main {
    padding: 0;
}

main section {
    min-height: 100vh; /* Each section takes at least the full height of the viewport */
    padding: 20px 40px;
}

.slideshow {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    max-height: 500px;
    margin-bottom: 50px;
}

.slideshow img {
    width: 100%;
    object-fit: cover;
}

.slideshow-text {
    position: absolute;
    text-align: center;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 45px;
    font-family: 'Julius Sans One', sans-serif;
    opacity: 0;
    animation: fadeIn 3s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Diese Zeile hinzugefügt */
    background-color: #005278c0;
    border-radius: 10px;
    padding: 10px;
}

.button-Start
{
    width: 200px;
    height: 300px;
    margin: auto;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Styling für Wellnessangebote bleibt unverändert */
#wellnessangebote .angebot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    text-align: center;
}

/* Neues Styling für Gutscheine */
#gutscheine .gutschein-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Größere Mindestbreite */
    gap: 30px; /* Mehr Abstand zwischen den Gutscheinen */
    justify-items: center;
    text-align: center;
}

#gutscheine .gutschein img {
    width: 100%; /* Bild passt sich vollständig an den Container an */
    height: auto;
    border-radius: 10px; /* Optional: abgerundete Ecken */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Schatteneffekt */
}

#gutscheine h4{
    text-align: center;
}


/* Styling für den Button zentrieren */
.button_Bestellen {
    display: block;
    margin: 20px auto;
    text-align: center;
}

.hallo{
    margin-bottom: 40px;
    text-align: center;
}

.title-text
{
    text-align: center;
    color: white;
    background-color: #3f4551;
    border-radius: 10px;
    padding: 10px;
}

/* Allgemeiner Stil */

#home .info {
    display: grid;
    grid-template-columns: 300px 600px; /* 2 Spalten */
    gap: 20px; /* Abstand zwischen Bild und Text */
    align-items: center; /* Vertikale Zentrierung */
    margin: auto; /* Zentrierung der gesamten Box */
    max-width: 50%;
    text-align: left;
}

#home .info img {
    width: 286px;
    height: auto;
    object-fit: cover;
    max-height: 300px; /* Maximale Höhe für das Bild */
    border-radius: 10px;
}

#home .info .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    margin-left: 0;
}

#home .info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-align: left;
}

#home .info p {
    font-size: 1rem;
    line-height: 1.5;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #3f4551;
}

.contact-info {
    margin-top: 20px;
}

.angebot, .gutschein {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.angebot img, .gutschein img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
}

.angebot button, .gutschein button {
    margin-top: 10px;
}

.contact-details, form {
    margin-top: 20px;
}

form label {
    display: block;
    margin-top: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #3f4551;
    border-radius: 5px;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #3f4551;
    color: #ebecee;
    cursor: pointer;
}

#map {
    margin-top: 20px;
    height: 300px;
}

footer {
    background-color: #cbcbcbc0;
    padding: 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.fixed-footer {
    flex: 1;
    margin-right: 20px;
}

.footer-links {
    flex: 2;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links ul li {
    display: inline;
    margin-right: 10px;
}

.footer-pages {
    margin-top: 10px;
}

.contact-info {
    flex: 1;
}

section {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

section.visible {
    opacity: 1;
}

/* Stil für die Tabelle */
#praxiszeiten table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  /* Header-Zellen */
  #praxiszeiten table th {
    background-color: #f2f2f2; /* Hintergrundfarbe für Header */
    border: 1px solid #ddd; /* Rand */
    padding: 8px;
    text-align: left;
  }

  /* Daten-Zellen */
  #praxiszeiten table td {
    border: 1px solid #ddd; /* Rand */
    padding: 8px;
  }
  
  /* Zebra-Streifen für Zeilen */
  #praxiszeiten table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Hintergrundfarbe für gerade Zeilen */
  }
  
  /* Markierung für den aktuellen Tag */
  #praxiszeiten table tbody .current-day {
    background-color: #005278;
    color: white;
  }
  
  .current-day {
    background-color: #ffd700; /* Gelber Hintergrund */
    font-weight: bold; /* Fettschrift */
}



  .angebot button,
.gutschein button {
    margin-top: 10px;
    padding: 12px 24px;
    border: none;
    background-color: #3f4551;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.angebot button:hover,
.gutschein button:hover {
    background-color: #555f6d;
}

.angebot button:focus,
.gutschein button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 69, 81, 0.5);
}


#gutscheine .gutschein-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#gutscheine .gutschein {
    text-align: center;
    max-width: 250px; /* Optional: Begrenzt die Breite der Gutschein-Container */
}

#gutscheine .gutschein img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#gutscheine .gutschein h3 {
    margin-top: 10px;
}

#gutscheine .gutschein button {
    margin-top: 10px;
    padding: 12px 24px;
    border: none;
    background-color: #3f4551;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gutscheine .gutschein button:hover {
    background-color: #555f6d;
}

#gutscheine .gutschein button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 69, 81, 0.5);
}


section {
    padding: 20px 40px;
    background-color: #d9d9d9c6; /* Standard Hintergrundfarbe für Abschnitte */
}

#home {
    background-color: #ffffff; /* Hintergrundfarbe für den Home-Abschnitt */
}

#praxiszeiten {
    background-color: #d9d9d9c6; /* Hintergrundfarbe für den Praxiszeiten-Abschnitt */
}

#wellnessangebote {
    background-color: #ffffff; /* Hintergrundfarbe für den Wellnessangebote-Abschnitt */
}

#gutscheine {
    background-color: #d9d9d9c6; /* Hintergrundfarbe für den Gutscheine-Abschnitt */
}

#kontakt {
    background-color: #ffffff; /* Hintergrundfarbe für den Kontakt-Abschnitt */
}




/* Basis-Stile, die für alle Bildschirmgrößen gelten */

/* Stile für Handys */
@media only screen and (max-width: 768px) {
    header {
        position: static; /* Entfernt die Sticky-Eigenschaft */
        padding: 15px 20px;
    }

    header .logo {
        font-size: 20px;
    }

    nav ul {
        display: flex;
        flex-direction: row; /* Elemente in einer Zeile */
        flex-wrap: wrap; /* Bricht die Navigation in eine neue Zeile, wenn nötig */
        width: 100%; /* Stellt sicher, dass sie eine eigene Zeile einnimmt */
        justify-content: center; /* Zentriert die Navigation horizontal */
        padding: 0;
        margin: 10px 0; /* Abstand zu anderen Elementen */
        list-style: none;
    }

    nav li {
        margin: 5px 10px; /* Abstand zwischen den Navigationspunkten */
    }

    main section {
        padding: 20px;
        text-align: center; /* Text immer zentrieren */
    }

    .slideshow {
        position: relative;
        display: flex;
        overflow: hidden;
        width: 100%;
        max-height: 215px; /* Maximale Höhe für den Slideshow-Container */
        margin-bottom: 50px;
    }

    .slideshow img {
        width: 100%; /* Breite auf 100% setzen */
        height: 100%; /* Füllt die Höhe des Containers */
        max-height: 215px; /* Maximale Bildhöhe */
        object-fit: cover; /* Bild wird hereingezoomt und Container vollständig ausgefüllt */
        object-position: center; /* Zentriert den sichtbaren Bereich des Bildes */
    }

    .slideshow-text {
        visibility: hidden;
    }

    .button-Start {
        visibility: hidden;
    }

    #home .info {
        grid-template-columns: 1fr; /* Wechsel zu einer Spalte */
        max-width: 90%; /* Breite anpassen */
        text-align: center; /* Textzentrierung für kleinere Bildschirme */
        margin: 0 auto; /* Zentrierung der gesamten Box */
    }

    #home .info img {
        width: 100%; /* Bild nimmt die gesamte Breite ein */
        max-width: 300px; /* Maximale Breite bleibt erhalten */
        margin: 0 auto; /* Zentrierung des Bildes */
        max-height: 250px; /* Kleinere Bildhöhe */
    }

    #home .info .text {
        height: auto;
        margin-top: 20px;
        text-align: center; /* Text im Info-Container zentrieren */
    }

    #home .info h3 {
        font-size: 1.3rem;
        text-align: center; /* Text zentriert */
    }

    #home .info p {
        font-size: 0.95rem;
        text-align: center; /* Text zentrieren */
    }

    #wellnessangebote .angebot,
    #gutscheine .gutschein {
        position: relative;
        padding-top: 20px; /* Abstand oberhalb des Angebots */
        border-top: 2px solid #ccc; /* Linie zwischen den Abschnitten */
    }

    #wellnessangebote .angebot:first-child,
    #gutscheine .gutschein:first-child {
        border-top: none; /* Entfernt die Linie vor dem ersten Angebot */
    }

    .angebot img, .gutschein img {
        margin-top: 10px; /* Zusätzlicher Abstand zum Bild */
    }
}


/* Stile für Tablets */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Zentriert den gesamten Header-Inhalt */
    }

    header .logo {
        display: flex;
        flex-direction: column;
        align-items: center; /* Zentriert das Logo und den Text */
        text-align: center;
    }

    header .logo img.logo_bild {
        max-width: 80px; /* Optional: Größe des Logos anpassen */
        margin-bottom: 10px; /* Abstand zwischen Logo und Text */
    }

    header .logo img.logo_text {
        max-width: 150px; /* Optional: Größe des Logo-Textes anpassen */
    }

    nav ul {
        flex-direction: column;
        align-items: center; /* Navigation zentrieren */
    }

    nav li {
        margin-bottom: 10px;
    }

    main section {
        padding: 30px;
        text-align: center; /* Text immer zentrieren */
    }

    .slideshow {
        position: relative;
        max-height: 400px;
    }

    .slideshow img {
        width: 100%;
        object-fit: cover;
    }

    .slideshow-text {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 20px;
        font-family: 'Julius Sans One', sans-serif;
        opacity: 0;
        animation: fadeIn 3s forwards;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }

    .button-Start{
        visibility: hidden;
    }

    #home .info {
        grid-template-columns: 1fr 1fr; /* 2 Spalten beibehalten */
        max-width: 80%; /* Breite für Tablets erweitern */
        margin: 0 auto; /* Zentriert die Box */
    }

    #home .info img {
        max-width: 300px;
        max-height: 280px;
        margin: 0 auto; /* Bild zentrieren */
    }

    #home .info h3 {
        font-size: 1.4rem;
        text-align: center; /* Text zentrieren */
    }

    #home .info p {
        font-size: 1rem;
        text-align: center; /* Text zentrieren */
    }
}


/* Gemeinsame Stile für Animationen */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
