:root {
    --vh: 1vh; /* Standardwert, wird vom JavaScript überschrieben */
}

/* Grundlegende Einstellungen */
* {
    max-width: 100%;
    box-sizing: border-box;
}

html {
    scroll-snap-type: none; /* Aktiviert Snap-Scrolling */
    scroll-behavior: smooth; /* Macht das Scrollen weicher */
}

body {
    margin: 0;
    background: white;
    overflow-x: hidden;
}

/* Sektion Grundeinstellungen */
.section {
    height: 100vh; /* Standardhöhe - wird für mobile Geräte mit --vh überschrieben */
    height: calc(var(--vh, 1vh) * 100); /* Dynamische Höhe basierend auf JavaScript */
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto; /* Erlaubt vertikales Scrollen innerhalb der Sektion */
    overflow-x: hidden;
    scrollbar-width: none; /* Versteckt Scrollbalken in Firefox */
    -ms-overflow-style: none; /* Versteckt Scrollbalken in IE/Edge */
    scroll-snap-align: none; /* Für Snap-Scrolling */
    padding: 2rem;
}

/* Versteckt den Scrollbalken in Chrome/Safari */
.section::-webkit-scrollbar {
    display: none;
}

.nav-arrow {
    position: fixed;
    width: 50px;
    height: 50px;
    background-color: rgba(44, 62, 80, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-arrow-down {
    right: 20px;
    bottom: 20px;
}

.nav-arrow-up {
    right: 20px;
    bottom: 80px;
}

.nav-arrow:hover {
    background-color: rgba(44, 62, 80, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Hero-Sektion (erste Sektion) */
.first-body {
    position: relative; /* Wichtig für die absolute Positionierung des Bildes */
    padding: 0; /* Kein Padding, damit das Bild den ganzen Bereich füllen kann */
    overflow: hidden; /* Verhindert Scrollen für die Hero-Sektion */
}

.header-image {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100); /* Dynamische Höhe */
    width: 100%;
    object-fit: cover;
    filter: brightness(75%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    position: absolute;
    top: 2%;
    right: 5%;
    left: 1%;
    font-size: clamp(1rem, 2vw, 1.8rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.headline {
    position: absolute;
    color: white;
    left: 1.5%;
    top: 39%;
    width: 80%;
    max-width: 800px;
    font-size: clamp(2.5rem, 8vw, 7rem);
    text-shadow: 0.05em 0.05em rgba(0, 0, 0, 0.5);
}

.underheader {
    position: absolute;
    color: white;
    left: 2%;
    top: 60%;
    font-size: clamp(1rem, 2vw, 1.6rem);
}

/* Menü-Links */
.menu-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-link:hover, .menu-link.active-link {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Aktuelles Sektion */
#aktuelles {
    background-color: #f0f4c3;
    color: #333;
    display: flex;
    flex-direction: column;
}

#aktuelles h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin: 1.5rem 0;
    text-align: center;
    color: #5d4037;
    border-bottom: 3px solid #827717;
    padding-bottom: 0.5rem;
    width: fit-content;
    align-self: center;
}

.aktuelles-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.urlaub-section, .bewerben-section {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.urlaub-section {
    background-color: rgba(255, 255, 255, 0.8);
}

.bewerben-section {
    background-color: rgba(244, 252, 227, 0.8);
}

.section-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: black;
    margin: 0.5rem 0 1rem;
    text-align: center;
}

.urlaub-liste {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
    margin: 0 auto;
}

.urlaub-liste tr {
    border-bottom: 1px solid #ddd;
}

.urlaub-liste tr:last-child {
    border-bottom: none;
}

.urlaub-liste td {
    padding: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: bold;
    color: #5d4037;
    text-align: center;
}

.bewerben-box {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.bewerben-text {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.bewerben-mail {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.8rem 1.5rem;
    background-color: #33691e;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.bewerben-mail:hover {
    background-color: #558b2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Kontakt Sektion */
#kontakt {
    background-color: #e8f5e9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

#kontakt h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin: 1rem 0;
    text-align: center;
    color: #2e7d32;
    border-bottom: 3px solid #2e7d32;
    padding-bottom: 0.5rem;
    width: fit-content;
}

.kontakt-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0.5rem;
}

.kontakt-karte {
    background-color: #fff;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.kontakt-karte h2 {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin: 0.5rem 0;
    color: #2e7d32;
}

.kontakt-mail, .kontakt-nummer {
    display: block;
    padding: 0.5rem 0;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-decoration: none;
    margin: 0.2rem 0 0.8rem 0;
}

.kontakt-mail {
    color: #1976d2;
}

.kontakt-nummer {
    color: #2e7d32;
    font-weight: bold;
}

.kontakt-mail:hover, .kontakt-nummer:hover {
    text-decoration: underline;
}

.maps-container {
    width: 100%;
    max-width: 500px;
    height: 40vh;
    max-height: 300px;
    margin: 1rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.maps {
    width: 100%;
    height: 100%;
    border: none;
}

/* Öffnungszeiten Sektion */
#oeffnungszeiten {
    background-color: #f5f7fa;
    color: #333;
}

#oeffnungszeiten h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

#oeffnungszeiten p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
    max-width: 600px;
    margin: 1rem auto;
}

.zeiten-tabelle {
    margin: 2rem auto;
    width: 90%;
    max-width: 500px;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.zeiten-tabelle tr:nth-child(odd) {
    background-color: #ffffff;
}

.zeiten-tabelle tr:nth-child(even) {
    background-color: #f2f6fc;
}

.zeiten-tabelle td {
    padding: 1rem;
    text-align: left;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.zeiten-tabelle td:first-child {
    font-weight: bold;
    width: 40%;
}

.zeiten-tabelle td:nth-child(2), .zeiten-tabelle td:nth-child(3) {
    text-align: center;
}

.hinweis {
    background-color: #e8f4ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
    border-left: 4px solid #3498db;
    max-width: 90%;
}

.nummer {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.nummer:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 15px 0;
    font-size: clamp(0.8rem, 2vw, 1rem);
    width: 100%;
    height: auto;
    min-height: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-links {
    margin-top: 6px;
    font-size: 0.85em;
}

.footer-links a {
    color: inherit;          /* gleiche Farbe wie der restliche Footer-Text */
    text-decoration: none;   /* kein Standard-Unterstrich */
    opacity: 0.7;
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

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

.copyright-text {
    margin: 0;
    padding: 5px 0;
}

.copyright-symbol {
    font-size: 1.2em;
    margin-right: 5px;
    vertical-align: middle;
}

.current-year {
    font-weight: 300;
}

.footer-logo {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 1.4rem);
    letter-spacing: 1px;
}

/* Media Queries für verschiedene Bildschirmgrößen */
@media screen and (max-height: 600px) {
    /* Etwas kompaktere Darstellung für niedrige Bildschirme */
    .headline {
        top: 30%;
        font-size: clamp(2rem, 6vw, 5rem);
    }

    .underheader {
        top: 50%;
    }

    .zeiten-tabelle td {
        padding: 0.5rem;
    }

    .maps-container {
        height: 30vh;
    }

    .footer {
        padding: 10px 0;
    }
}

@media screen and (max-height: 450px) {
    /* Sehr kleine Bildschirme (wie Landscape auf kleinen Phones) */
    .headline {
        font-size: clamp(1.8rem, 5vw, 4rem);
    }

    /* Kompaktere Tabellen */
    .zeiten-tabelle td {
        padding: 0.3rem;
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    /* Kleinere Karten */
    .kontakt-karte {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .bewerben-box {
        padding: 0.8rem;
    }

    /* Kleinere Abstände */
    .section {
        padding: 1.5rem;
    }
}

/* Media Queries für unterschiedliche Breiten */
@media screen and (max-width: 380px) {
    /* Sehr schmale Bildschirme */
    .menu-link {
        font-size: clamp(1rem, 2vw, 1.3rem);
        padding: 5px 8px;
    }

    .container {
        top: 1%;
    }
}
@media screen and (max-height: 500px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .nav-arrow svg {
        width: 20px;
        height: 20px;
    }

    .nav-arrow-up {
        bottom: 70px;
    }
}