/* === Basis === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f8f4;
    color: #333;
    line-height: 1.6;
}

/* === Kopfbereich === */
header {
    background: #4caf50;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
}

/* === Navigation === */
nav {
    background: #388e3c;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* === Hauptinhalt === */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === Footer === */
footer {
    background: #4caf50;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

/* === Beitrag-Karten (Startseite) === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card .meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.card img,
.card video {
    width: 60%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}


/* === Beitragsansicht === */
.media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.media-gallery img,
.media-gallery video {
    width: 60%;
    height: auto;
    max-height: 500px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: contain;
}


.post-content {
    margin-top: 20px;
    font-size: 1.05rem;
    white-space: pre-wrap;
}

/* === Formulare === */
form {
    margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

button {
    background: #4caf50;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

button:hover {
    background: #45a049;
}

/* === Tabellen === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f1f1f1;
}

/* === Fehlermeldungen & Hinweise === */
.error {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

.success {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}

/* === Responsives Verhalten === */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .media-gallery {
        flex-direction: column;
    }
}
/* === Zoom-Lightbox für Bilder === */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    border-radius: 6px;
    cursor: zoom-out;
}
/* Kommentare */
.comment {
    margin-bottom: 15px;
}

.comment strong {
    color: #2e7d32;
}
.logo-container {
    max-width: 200px;
    margin: 0 auto 10px;
}

.site-logo {
    width: 100%;
	max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.subtitle {
    font-size: 1rem;
    color: #dff0dc;
    margin-top: -10px;
    text-align: center;
}
.media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-item video,
.media-item img {
    max-width: 150px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
nav.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    background: #3a5f0b;
}

nav.main-nav ul li {
    position: relative;
}

nav.main-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    background-color: transparent;
    transition: background 0.3s ease;
}

nav.main-nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

nav.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #4caf50;
    border-radius: 4px;
    z-index: 1000;
}

nav.main-nav .dropdown-menu li {
    width: 100%;
}

nav.main-nav .dropdown-menu li a {
    padding: 10px 15px;
    color: #fff;
    white-space: nowrap;
}

nav.main-nav li.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile: Dropdowns untereinander */
@media (max-width: 768px) {
    nav.main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    nav.main-nav .dropdown-menu {
        position: static;
    }
}
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    overflow: hidden;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
}

.slider-container .slider img {
  max-height: 200px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-right: 10px;
  border-radius: 8px;
  scroll-snap-align: start;
}

.slider img:hover {
    transform: scale(1.05);
}

button.prev,
button.next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
}

button.prev { left: 10px; }
button.next { right: 10px; }

.slider-container img {
  outline: 3px dashed red; /* zum Testen sichtbar */
  max-width: 100%;
  max-height: 200px;
}
.media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Oder flex-start */
    margin: 20px 0;
}

.media-gallery img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-gallery img:hover {
    transform: scale(1.05);
}
@media (max-width: 600px) {
    .media-gallery img {
        max-width: 100%;
        max-height: 150px;
    }
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}
.fancybox__container {
    z-index: 99999 !important;
}
.post-content iframe,
.post-content .tiktok-embed,
.post-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
}
.social-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4EA3F1;
}.social-bar {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #444;
    color: #fff;
}

.social-bar p {
    margin-bottom: 10px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #4EA3F1; /* oder eine andere Farbe deiner Wahl */
}
