/* Basis-Styles */
body {
    background: #777;
    margin: 0;
    padding: 0;
}

.parallax-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

/*
.parallax-section {
    position: relative;
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 76px;
}
*/

.parallax-section {
    position: relative;
    width: 100vw;  /* statt 100% */
    left: 0;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    padding-top: 76px;
}

.content-section {
    background: #777;
    position: relative;
    z-index: 1;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 4rem 0;
}


/* Spezifische Anpassung für die erste Section mit dem Text */
#home.parallax-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #777; /* Hintergrundfarbe für die nicht-bedeckten Bereiche */
}


/* Google Translate Toolbar unter die Navbar verschieben */
/* Damit Navbar immer sichtbar bleibt */
nav.navbar {
    z-index: 2000 !important;
}

/* Überschreibt eventuell von Google gesetzte Body-Padding */
body {
    top: 0 !important;
}

/* Google-Wrapper */
body > .skiptranslate {
    margin-top: 0 !important;
}




/* Anpassungen für Bootstrap */
.content-section {
    background: #777;
    position: relative;
    width: 100%;
}

/* Container für den Content */
.content-section .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.content-section h2 {
    color: #333;
    margin-bottom: 2rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
        background-size: contain;
    }
    
	#google_translate_element {
	    margin: 80px auto 0 auto;
	    text-align: center;
	    z-index: 1;
	    position: relative;
	}
	
	iframe.goog-te-banner-frame.skiptranslate {
    position: absolute !important;
    top: 76px !important;
    left: 0;
    width: 100% !important;
    z-index: 999 !important;
    border: none !important;
	}
	
	.goog-logo-link, .goog-te-gadget span {
    display: none !important;
	}




    .navbar .navbar-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 1100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner button {
    white-space: nowrap;
}

/* Responsive Anpassungen für Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner .row {
        text-align: center;
    }
    
    .cookie-banner .col-md-4 {
        margin-top: 1rem;
    }
}

/* Navbar mit fester Hintergrundfarbe */
nav.navbar {
    background: rgb(128, 128, 128) !important;  /* Solider grauer Hintergrund */
    position: fixed !important;  /* Änderung zu fixed */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    color: white !important;
    margin: 0 0.5rem;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}


/* Optionale Anpassungen für bessere Lesbarkeit */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;  /* Hellerer Text für besseren Kontrast */
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;  /* Weiß beim Hover */
}

/* Reset für die Hero-Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    margin-top: -60px;
}

.hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1024px;
    height: 768px;
    max-width: 90vw;
    max-height: 90vh;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 4rem 1rem;  /* Weniger Padding auf mobilen Geräten */
    }

    .hero-content {
        width: 100%;
        padding: 1rem;
    }

    .display-1 {
        font-size: 2.5rem !important;  /* Kleinere Überschrift auf mobilen Geräten */
    }

    .lead {
        font-size: 1rem !important;  /* Kleinerer Text auf mobilen Geräten */
    }
}

.footer {
    position: relative;  /* Änderung von fixed zu relative */
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: rgba(33, 37, 41, 0.95);
    z-index: 1000;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline !important;
}

.image-gallery {
    margin-top: 2rem;
    margin-bottom: 60px;
}

.image-gallery img {
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Optionale Anpassungen für das Google Translate Widget */
.goog-te-gadget {
    font-family: inherit !important;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 4px 8px !important;
    border-radius: 5px;
    font-size: 0.9rem;
}

.goog-logo-link, .goog-te-gadget span {
    font-size: 0.7rem !important;
    color: #888 !important;
}


/* Verhindert unerwünschtes Zoomen auf iOS */
* {
    -webkit-text-size-adjust: 100%;
}

/* Spezifische iPad Anpassungen */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    .hero-section {
        background-size: auto 100% !important;
        background-position: center center !important;
        height: 100vh !important;
        width: 100vw !important;
        overflow: hidden !important;
    }

    .hero-section[style*="background-image"] {
        background-size: auto 100% !important;
    }
}

/* iPad Portrait Mode */
@media only screen 
and (min-width: 768px) 
and (max-width: 1024px) 
and (orientation: portrait) {
    .hero-image-container {
        width: 768px;
        height: 576px;
    }
}

/* Mobile Landscape Mode (iPhone & iPad) */
@media only screen 
and (orientation: landscape) 
and (max-device-width: 1024px) {
    .hero-section {
        /* Explizit Parallax deaktivieren */
        background-attachment: scroll !important;
        -webkit-background-attachment: scroll !important;
        transform: none !important;
        -webkit-transform: none !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        perspective: none !important;
        -webkit-perspective: none !important;
    }

    /* Bootstrap Parallax Override */
    .parallax {
        background-attachment: scroll !important;
        transform: none !important;
    }

    .hero-image-container {
        position: absolute;
        width: 100vw;  /* Volle Breite */
        height: 100vh;  /* Volle Höhe */
        top: 0;
        left: 0;
        transform: none;
        padding: 60px 20px;  /* Platz für Navbar */
    }

    .hero-image {
        width: auto !important;
        height: calc(100vh - 120px) !important;  /* Höhe minus Padding */
        max-width: 100% !important;
        object-fit: scale-down !important;
        margin: 0 auto;
        display: block;
    }

    /* Spezifischer Fix für iOS */
    @supports (-webkit-touch-callout: none) {
        .hero-image {
            transform-origin: top center;
            transform: scale(0.8) !important;
            -webkit-transform: scale(0.8) !important;
        }
    }
}

/* Portrait Mode */
@media only screen 
and (orientation: portrait) 
and (max-device-width: 1024px) {
    .hero-section {
        height: 100vh;
    }

    .hero-image-container {
        width: 90vw;
        height: auto;
    }

    .hero-image {
        max-height: 70vh;
    }
}

/* Verhindere jegliches Zoomen */
* {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Desktop Styles - mit Parallax */
@media screen and (min-width: 1025px) {
    .parallax-section {
        position: relative;
        height: 100vh;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        padding-top: 76px; /* Height of navbar */
    }
}



/* Mobile & Tablet Styles - ohne Parallax */
@media screen and (max-width: 1024px) {
    .parallax-section {
        position: relative;
        height: 100vh;
        background-attachment: scroll !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-color: #000 !important;
        padding-top: 76px;
    }
}

/* Landscape-Modus Fix */
@media screen 
and (orientation: landscape) 
and (max-width: 1024px) {
    .parallax-section {
        background-size: contain !important;
        background-position: center !important;
        background-color: #000 !important;
        min-height: 100vh;
        height: auto !important;
    }
}

/* iOS spezifische Anpassungen */
@supports (-webkit-touch-callout: none) {
    .parallax-section {
        background-attachment: scroll !important;
        background-size: contain !important;
        -webkit-transform: none !important;
        transform: none !important;
    }
}

/* Text-Section Styles */
.text-section {
    background-color: rgb(128, 128, 128);
    padding: 4rem 2rem;
    width: 100%;
}

/*
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
*/

/* Hero Title Styles */
.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.hero-title h1 {
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Content Section Styles */
.content-section {
    background-color: rgb(128, 128, 128);
    color: white;
    padding: 4rem 2rem;
    margin: 0;
    width: 100vw;       /* volle Bildschirmbreite */
    overflow-x: hidden;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content-section .lead {
    font-size: 1.25rem;
}

/* Überschrift im ersten Bild */
.parallax-section h1.display-1 {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    margin: 0;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Container Reset */
.content-wrapper, 
.parallax-container {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Verschiebe das Google Translate-Banner unter die Navbar */
.goog-te-banner-frame.skiptranslate {
    position: absolute !important;
    top: 76px !important;     /* Höhe deiner Navbar */
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    border: none !important;
}

/* Verhindert, dass Google Translate den Body verschiebt */
body {
    top: 0px !important;
}

/* Verhindere Doppelt-Übersetzer-Leiste bei mobilen Geräten */
body > .skiptranslate {
    padding-top: 0 !important;
}

/* Reduziert die Größe des Dropdowns leicht */
.goog-te-menu-value span {
    color: transparent !important;
}
