/* Grundlegende Einstellungen */
:root {
    background-color: #ebebeb;
}
* {
    box-sizing: border-box; /* nützlich, verhindert Breiten-Überläufe */
    padding: 0;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.3;
    font-weight: 300;
}
html, body {
    background-color: #ebebeb !important;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* wichtig: verhindert horizontales Scrollen / leere Fläche rechts */
}

/* Layout & Container */
section {
    background-color: transparent !important;
}
section .container {
    width: 1020px;
    margin: 0 auto;
    position: relative;
    background-color: transparent !important;
}

/* Navigation & Header */
header {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden; /* falls Bilder etwas größer sind */
}

/* Alle Bilder - generelle responsive Regeln */
img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* speziell Header-Bilder */
header img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    -webkit-transform: translateZ(0); /* kann Rendering-Probleme auf manchen Geräten mindern */
    transform: translateZ(0);
}

/* Top Navigation */
.top-nav {
    width: 100%;
    padding: 0;
    position: absolute;
    top: 40px;
    z-index: 3;
}
.top-nav .container {
    max-width: 1020px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    background-color: transparent !important;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    justify-content: flex-start;
}
.nav-logo img {
    height: 55px;
    width: auto;
}
.nav-text {
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: white;
    position: relative;
    z-index: 3;
    flex: 0 1 auto;
}
.nav-text-right {
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: white;
    position: relative;
    z-index: 3;
    margin-left: auto;
    flex: 0 1 auto;
}

/* Typografie & Text */
.text-default {
    font-size: 25px;
    font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    font-size: 25px;
    margin-bottom: 5px;
}

/* Links */
.content a {
    color: inherit;
    text-decoration: none;
}
.content a:visited {
    color: inherit;
}
.content a:hover {
    text-decoration: underline;
}

/* Logo */
section .container .logo {
    width: 100%;
    display: block;
    margin: 85px auto 30px auto;
    border-bottom: 1px solid #41bee3;
    padding-bottom: 50px;
}
section .container .logo img {
    width: 100%;
}

/* Content */
section .container .content {
    width: 100%;
    display: block;
    margin-top: 30px;
    position: relative;
    background-color: transparent !important;
}

/* Listen */
section .container .content ul {
    padding: 0;
    margin: 0 0 30px 0;
    font-size: 25px;
    font-weight: 400;
}
section .container .content ul li {
    list-style: none;
    padding-left: 0.55em;
    text-indent: -0.55em;
}

/* Anreise-Informationen */
.travel-info {
    font-size: 20px !important;
}

/* Öffnungszeiten */
section .container .open-time {
    width: 100%;
    display: block;
    margin: 30px 0;
}
section .container .open-time table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 30%;
    font-size: 25px;
    margin-right: auto;
}
section .container .open-time table tr:first-child td {
    padding-bottom: 4px;
}
section .container .open-time table td {
    font-weight: 500;
}
section .container .open-time table td:first-child {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}
section .container .open-time table td:last-child {
    text-align: right;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

/* Team Grid */
.team-grid {
    width: 100%;
    margin: 50px 0 55px 0;
    border-bottom: 1px solid #41bee3;
    padding-bottom: 60px;
}
.team-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}
.team-member {
    width: 30%;
}
.team-member h2 {
    margin: 7px 0 3px 0;
}
.team-member p {
    font-size: 16px;
}
.team-row:last-child .team-member:last-child {
    margin-bottom: -30px;
}

/* Impressum */
.impressum {
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
    border-top: 1px solid #41bee3;
    padding-top: 30px;
}
.impressum p {
    font-size: 14px;
}

/* Announcement Bar
   => ersetzt den 100vw-hack durch eine stabile 100%-Lösung */
.announcement-bar {
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    margin: 0; /* entfernt negative margins die oft overflow erzeugen */
    margin-top: -2px;
    z-index: 1;
    background-color: #ffed00;
    padding: 9px 0 45px 0;
    box-sizing: border-box;
}
.announcement-bar .container {
    max-width: 1020px;
    width: 90%;
    margin: 0 auto;
}
.announcement-bar p {
    display: block;
    font-size: 18px;
}

/* Header-Bilder (Original-Ansatz mit zwei <img>) */
/* Desktop-Image sichtbar, mobile Image ausgeblendet */
.header-desktop {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
.header-mobile {
    display: none;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Media Queries */
/* bei kleineren Viewports reagieren wir auf "width", das funktioniert beim Drehen/Resizing zuverlässig */
@media (max-width: 1080px) {
    section .container {
        width: 90%;
        background: transparent !important;
    }
}

/* HIER: mobile styles (ersetzt max-device-width) */
@media only screen and (max-width: 767px) {
    body {
        background-color: #ebebeb !important;
    }
    section,
    section .container,
    .content {
        background-color: transparent !important;
    }
    .top-nav {
        top: 15px;
    }
    .nav-logo {
        gap: 10px;
    }
    .nav-logo img {
        height: 30px;
    }
    .nav-text, .nav-text-right {
        font-size: 10px;
    }
    section .container .logo {
        margin: 24px auto 10px auto;
        padding-bottom: 21px;
    }
    .announcement-bar {
        padding: 21px 0 27px 0;
        margin-bottom: 32px;
    }
    .team-grid {
        margin-bottom: 32px;
        margin-top: 25px;
    }
    .team-row {
        display: block;
        width: 100%;
    }
    .team-member {
        width: 100%;
        margin-bottom: 0;
    }
    section .container .open-time table {
        width: 75%;
    }
    section .container .open-time table td:first-child {
        padding-right: 15px;
    }
    .text-default,
    h1, h2, h3, h4, h5, h6,
    section .container .content ul {
        font-size: 20px;
    }
    .travel-info {
        font-size: 17px !important;
    }
    .impressum p {
        font-size: 12px;
    }

    /* Header-Image switching for mobile */
    .header-desktop {
        display: none; /* Desktop-Bild ausblenden */
    }
    .header-mobile {
        display: block; /* Mobile-Bild anzeigen */
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}
