/* Allgemeine Stile */
body, html {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Impressum-Seite optimieren */
.impressum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

/* Hauptinhalt */
main.content {
    max-width: 100%;
    padding: 20px;
}


/* Standard: Button ist transparent und unsichtbar */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 8px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 6px 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s, visibility 0.3s;
    
    opacity: 0; /* Startet unsichtbar */
    visibility: hidden;
}

/* Button erscheint beim Scrollen */
#back-to-top.show {
    opacity: 1; 
    visibility: visible;
}

/* Header / Hero Bereich */
.hero {
    background: url('img/header.png') no-repeat center center;
    background-color: #f1ebdf;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Kundenbewertungen */
.carousel-item {
    text-align: center;
}

/* Bewertungen - Name und Sterne */
.carousel-item h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Textfeld für Bewertungen mit fester Höhe */
.carousel-item .p-4 {
    max-height: 250px;
    overflow-y: auto;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

/* Optimierung des Textes */
.carousel-item p {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Pfeile in der Slideshow */
.custom-arrow {
    background: none !important;
    border: none !important;
    opacity: 1 !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#stars {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 24px;
    color: black;
    background-color: white; /* Sicherstellen, dass der Hintergrund weiß bleibt */
    cursor: pointer;
    padding-right: 40px; /* Platz für Pfeil */
    text-align: left;
    border: none; /* Kein Rahmen */
    width: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M7 10l5 5 5-5 M7 5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}


/* 📄 TEXT- & LISTEN-AUSRICHTUNG */
.text-container {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    max-width: 600px;
    padding-left: 15px; /* Etwas Abstand für bessere Lesbarkeit */
}

/* Listenpunkte - Einheitliche Ausrichtung */
.text-container ul {
    padding-left: 0;
    list-style: none;
}

.text-container ul li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Liste mit Checkbox-Symbolen nur für .text-container */
.text-container ul li::before {
    content: "✅ ";
    font-size: 1.2em;
    margin-right: 5px;
}

/* Pfeile für Karussell */
.carousel-control-prev {
    left: -100px;
}

.carousel-control-next {
    right: -100px;
}

/* Navigationsleiste */
.navbar-text {
    color: white;
}

.bg-custom {
    background-color: #ccc;
}

.bg-custom2 {
    background-color: #f1ebdf;
}

/* Box-Layout */
.box-height {
    min-height: 300px;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}



/* Bilder richtig skalieren */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Logo */
.logo-img {
    height: 80px;
    width: auto;
}

/* Navbar-Toggler */
.navbar-toggler {
    position: absolute;
    right: 10px;
}

/* Navbar Links */
.nav-link {
    font-size: 22px;
}

/* ---------------- MOBILE ANPASSUNGEN ---------------- */

@media (max-width: 1200px) {
    .text-container {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .box-height {
        min-height: auto;
    }
}

/* Anpassungen für Bilder und Texte in kleiner Bildschirmgröße */
@media (max-width: 992px) {
    .text-container {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .box-height {
        min-height: auto;
    }

    .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }

    .d-flex img {
        width: 80%; /* Reduziere Bildgröße für bessere Lesbarkeit */
        max-width: 300px;
        margin-bottom: 10px;
    }

    .text-container ul {
		text-align: left; /* Linksbündig */
        padding-left: 0;
        list-style: none;
    }
}
@media (max-width: 768px) {
	#back-to-top {
	display: none;
	}
	
    .impressum-container {
        padding: 10px;
        max-width: 90%;
        word-break: break-word;
    }
	
    /* 🏠 HERO-BEREICH */
    .hero {
        height: 35vh;
        background-size: contain;
        background-position: center center;
    }

	/* 📄 TEXT- & LISTEN-AUSRICHTUNG */
	.text-container {
		width: 100%;
		text-align: left; /* Linksbündig */
		padding-left: 15px; /* Etwas Abstand für bessere Lesbarkeit */
	}

	/* Listenpunkte - Einheitliche Ausrichtung */
	.text-container ul {
		padding-left: 0;
		list-style: none;
	}

	.text-container ul li {
		display: flex;
		align-items: center;
		font-size: 1.1rem;
		margin-bottom: 10px;
	}

	/* Liste mit Checkbox-Symbolen nur für .text-container */
	.text-container ul li::before {
		content: "✅ ";
		font-size: 1.2em;
		margin-right: 5px;
	}

    /* 📦 Box-Höhe für bessere Anpassung */
    .box-height {
        min-height: auto;
    }

    /* 🏗️ NAVIGATION FIX: Logo, Text und Menü-Button nebeneinander */
    .navbar .container-fluid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Logo bleibt links */
    .navbar-brand {
        display: flex;
        align-items: center;
    }

    .logo-img {
        height: 50px;
        width: auto;
    }

    /* Navbar-Titel bleibt mittig */
    .navbar-text {
        flex-grow: 1;
        text-align: left; /* Links ausrichten */
        font-size: 1rem;
        color: white;
        margin-left: 10px;
    }

    /* Menü-Button bleibt rechts */
    .navbar-toggler {
        margin-left: auto; /* Sorgt dafür, dass der Button rechts bleibt */
    }

    /* 🍔 Menü klappt UNTER der Navbar auf */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        z-index: 1000;
        padding: 10px 0;
    }

    /* Menü-Links besser klickbar */
    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav .nav-item {
        padding: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 1.2rem;
        color: white;
        text-decoration: none;
        padding: 10px;
        display: block;
    }

    /* 📸 BILDER & TEXT - SAUBERE AUSRICHTUNG */
    .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100%;
    }

    .d-flex img {
        margin-bottom: 10px;
        align-self: center;
    }

    /* ⭐ BEWERTUNGSSYSTEM */
    .bewertung-container {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    .bewertung-container input,
    .bewertung-container textarea,
    .bewertung-container select {
        width: 100%;
        max-width: 300px;
    }

    /* 🔄 KARUSSELL-PFEILE SICHTBARER MACHEN */
    .carousel-control-prev {
        left: -30px;
    }

    .carousel-control-next {
        right: -30px;
    }
}



@media (max-width: 576px) {
		#back-to-top {
	display: none;
	}
    .hero {
        height: 25vh;
    }

    .text-container {
        padding: 5px;
    }

    .box-height {
        min-height: auto;
    }
}
