/* Grundlegende Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

h1 {
    color: #FF5733; /* Rot */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* Artikel-Stile */
.article {
    background-color: white;
    border-left: 5px solid;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.infos {
    background-color: #FF5733;
    color: white;
    border-left: 5px solid;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;

    display: block;
}

.article p {
    margin-bottom: 15px;
}

/* Farbige Akzente für Artikel */
.article-rot {
    border-left-color: #FF5733; /* Rot */
}

.article-gelb {
    border-left-color: #FFC300; /* Gelb */
}

.article-gruen {
    border-left-color: #4CAF50; /* Grün */
}

.article-blau {
    border-left-color: #2196F3; /* Blau */
}
.impressum-text{
    font-size: 0.7em;
}

/* Responsive Stile */
@media (min-width: 768px) {
    /* Tablet-Layout */
    .article {
        /*display: flex;
        flex-direction: row;*/
        align-items: center;
        max-width: 800px;
        margin-left: auto;
        /*margin-left: 10px;*/
        margin-right: auto;
    }

    .article img {
        width: 40%;
        margin: 0 20px 0 0;
    }

    .article-text .impressum-text{
        width: 60%;
    }

    h1 {
        font-size: 3rem;
    }

    .article h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 1024px) {
    /* Desktop-Layout */
    body {
        max-width: 1200px;
        margin: 0 auto;
    }

    h1 {
        font-size: 3.5rem;
    }

    .article h2 {
        font-size: 2rem;
    }
}

/* Overlay-Stile */
.overlay {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed; /* Fixiert, um über dem gesamten Inhalt zu schweben */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Halbdurchsichtiger schwarzer Hintergrund */
    z-index: 30; /* Stellt sicher, dass das Overlay über allem liegt */
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Ermöglicht Scrollen, falls der Inhalt zu groß ist */
}

.overlay-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.overlay-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 8px;

}

.close-btn:hover {
    color: #FF5733; /* Rot beim Hovern */
}

.overlay-button {
    background-color: #4CAF50; /* Grün */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.overlay-button:hover {
    background-color: #45a049; /* Dunkleres Grün beim Hovern */
}

/* Button zum Öffnen des Overlays (optional) */
.open-overlay-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFC300; /* Gelb */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.open-overlay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#diashow {
text-align: center;
margin: 20px;
}

#bild {
width: 80%;
max-width: 800px;
border-radius: 10px;
transition: opacity 1s ease-in-out;
}

.controlpanel {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch bei Platzmangel */
    gap: 10px;
    padding-left: 10%;
}

.controls img{
    max-width: 20%;    /* Feste Breite pro Bild */
    height: auto;    /* Seitenverhältnis beibehalten */

}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* FORMULAR */

form {
    display: grid;
    grid-template-columns: [labels] 100px [controls] 1fr; /* Feste Label-Breite, flexible Eingabefelder */
    gap: 10px; /* Abstand zwischen Zeilen und Spalten */
    max-width: 80%; /* Gesamte Breite begrenzen */
    /*margin: 0 auto; *//* Zentrieren */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-top: 20px;
}

/* Absende-Button in die zweite Spalte */
form > input[type="submit"] {
    grid-column: controls;
    justify-self: start;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form > input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Styling für Labels und Eingabefelder */
form label {
    font-weight: bold;
    color: #333;
}

form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.centered {
    margin: 0 auto;
}

/* Container für das Bild und den überlagerten Button */
.image-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Stil für das Bild */
.image-container img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Download-Button (standardmäßig ausgeblendet) */
.download-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Verhindert, dass der Button ohne Hover klickbar ist */
}

/* Button wird sichtbar beim Hovern */
.image-container:hover .download-btn {
    opacity: 1;
    pointer-events: auto;
}

.download-btn-video {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    opacity: 50;
    transition: opacity 0.3s ease;
    pointer-events: auto; /* Verhindert, dass der Button ohne Hover klickbar ist */
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Maximale Breite für große Bildschirme */
    margin: 0 auto; /* Zentriert den Container */
    text-align: center; /* Zentriert den Download-Link */
    background: #000; /* Schwarzer Hintergrund für das Video */
    border-radius: 8px;
    overflow: hidden;
}

video {
    width: 100%;
    display: block; /* Entfernt zusätzlichen Abstand unter dem Video */
}
