/* Allgemeines Styling */
html, body {
    height: auto; /* Höhe an den Inhalt anpassen */
    overflow-y: auto; /* Scrollen erlauben */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden; /* Kein horizontales Scrollen */
	overflow-y: auto;  /* Erlaubt vertikales Scrollen */
}

/* Fixierter Header */
header {
    position: fixed;
    top: 50px; /* Verschiebt den Header 30px nach unten */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px; /* Header bleibt bei 800px begrenzt */
    height: 80px; /* Höhe des Headers */
    background-color: #007bff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    box-sizing: border-box;
}


header img {
    width: 100%;
    height: auto;
    max-width: 800px;
}

/* Hauptcontainer */
.container {
    margin-top: 165px; /* Abstand nach oben (100px Header + 35px zusätzlich) */
    padding-bottom: 100px; /* Abstand nach unten */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Überschrift */
.section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Kacheln */
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Weniger Abstand */
    justify-content: center;
}

.tile {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px; /* Feste Breite für alle Kacheln */
    height: 400px; /* Feste Höhe für alle Kacheln */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Inhalt gleichmäßig verteilen */
    margin-bottom: 15px; /* Abstand nach unten vergrößern */
}
.tile:last-child {
    margin-bottom: 70px; /* Abstand zur letzten Kachel */
}
.tile img {
    width: 100%; /* Bild nimmt gesamte Breite ein */
    height: 150px; /* Feste Höhe für das Bild */
    object-fit: cover; /* Bild wird zugeschnitten, um in den Bereich zu passen */
    border-radius: 5px; /* Abgerundete Ecken */
    margin-bottom: 10px; /* Abstand unterhalb des Bildes */
}

.tile h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.tile p {
    flex-grow: 1; /* Nimmt den Platz zwischen Bild und Button ein */
    overflow: hidden; /* Überlaufenden Text abschneiden */
    text-overflow: ellipsis; /* Zeigt „...“ bei abgeschnittenem Text */
    display: -webkit-box; /* Unterstützt mehrzeilige Kürzung */
    -webkit-line-clamp: 3; /* Maximal 3 Zeilen Text */
    -webkit-box-orient: vertical;
}


.tile a {
    display: inline-block; /* Blockelement für konsistente Größe */
    margin-top: auto; /* Schiebt den Link ans untere Ende der Kachel */
    padding: 10px 15px; /* Innenabstand */
    text-align: center; /* Zentrierter Text */
    border: none;
    border-radius: 5px;
    background-color: rgba(227, 0, 123, 1);
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tile a:hover {
    background-color: #3378f9;
}

/* Fixiertes Menü */
.bottom-nav {
    position: fixed; /* Menü bleibt unten fixiert */
    bottom: 0;
    left: 0;
    width: 100%; /* Menü deckt gesamte Breite ab */
    height: 60px; /* Höhe des Menüs */
    background-color: #3378f9;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.bottom-nav button {
    background: none;
    border: none;
    color: white;
    text-align: center;
    cursor: pointer;
    flex-grow: 1;
    padding: 10px 0;
}

.bottom-nav button i {
    display: block;
    font-size: 20px;
}

.bottom-nav button span {
    font-size: 12px;
}

.bottom-nav button.active {
    color: #FFD700;
}

/* Slider */
.post-slider {
    margin: 20px auto;
    max-width: 800px;
}

.slick-slide img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
}

.slick-prev, .slick-next {
    z-index: 1;
}

/* Zurück-Button */
.back-button {
    display: block;
    text-align: center;
    margin: 20px 0;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.back-button:hover {
    background: #218838;
}

/* Scrollbalken deaktivieren */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Sichtbare Scrollbalken entfernen */
body {
    overflow: hidden; /* Kein Standard-Scrollen */
}
/* Detailansicht Container */
.detail-container {
	margin: 200px auto 65px auto; /* Abstand nach oben und unten */
    max-width: 800px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
	}

/* Titel */
.detail-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: rgba(227, 0, 123, 1);
}

/* Hauptbild */
.detail-image {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto 20px auto;
    object-fit: contain;
    cursor: pointer;
}

/* Slideshow */
.slider {
    margin: 20px auto;
    max-width: 100%;
}

.slider img {
    width: 100%;
    height: auto;
}

/* Buttons */
.back-button, .link-button {
	margin-bottom: 50px; /* Zusätzlicher Platz unter dem Button */
    display: block;
    width: 200px;
    margin: 20px auto;
    text-align: center;
    padding: 10px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
	}

.back-button:hover, .link-button:hover {
    background: #0056b3;
}

/* Textinhalt */
.detail-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}
/* Allgemeine Header-Stile */
@media (max-width: 768px) {
    header {
        top: 10px !important; /* Header direkt oben */
        transform: none !important; /* Entfernt die horizontale Verschiebung */
        left: 0 !important; /* Kein Verschieben */
        width: 100%; /* Volle Breite */
    }

    header img {
        max-width: 100%; /* Bild füllt den Header */
        height: 100%; /* Bild passt sich der Header-Höhe an */
        object-fit: cover; /* Zuschneiden, falls nötig */
    }
}
@media (min-width: 769px) {
    .news-container {
        margin-top: 200px !important; /* Temporär vergrößerter Abstand */
        
    }
}
/* Submenü-Design */
.off-canvas.submenu {
    position: fixed;
    top: 0;
    right: -100%; /* Start außerhalb des Bildschirms */
    width: 300px;
    height: 100%;
    background-color: #3E8E41; /* Andere Hintergrundfarbe für Submenü */
    color: white;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;
}

/* Sichtbares Submenü */
.off-canvas.submenu.open {
    right: 0;
}

/* Hauptmenü nach links schieben */
.off-canvas.main-menu.shifted {
    right: 300px; /* Abstand zum Submenü */
}
/* Header-Bild */
.header-image {
    width: 100%;
    max-height: 200px; /* Begrenzte Höhe */
    overflow: hidden;
    position: relative;
    text-align: center;
    background-color: #f4f4f4;
    margin-bottom: 20px; /* Fügt Abstand unter dem Header-Bild hinzu */
}


.header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Sorgt dafür, dass das Bild gut passt */
}
/* Header-Bild */
.header-abfall {
	z-index: 1000;
    width: 100%;
    max-height: 200px; /* Begrenzte Höhe */
    overflow: hidden;
    position: relative; /* Ermöglicht absolute Positionierung der Filter-Bar */
    text-align: center;
    background-color: #f4f4f4;
    margin-bottom: 20px; /* Fügt Abstand unter dem Header hinzu */
}

.header-abfall img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Sorgt dafür, dass das Bild gut passt */
}



