/* Begin von bestehendem CSS */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    display: grid;
    grid-template-areas: 
        "sidebar header"
        "sidebar content";
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
}

.sidebar {
    grid-area: sidebar;
    background-color: #3b4d79;
    color: white;
    padding: 20px;
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
}

.sidebar nav ul li {
    margin: 10px 0;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.sidebar nav ul li a:hover {
    text-decoration: underline;
}

.header {
    grid-area: header;
    text-align: center;
    background-color: #fff;
    border-bottom: 2px solid #ccc;
}

.header img {
    width: 25%;
    max-height: 150px;
    object-fit: cover;
}

.content {
    grid-area: content;
    padding: 20px;
    background-color: white;
}

.content h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.gallery {
    display: grid;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: repeat(4, 1fr); /* Zwei Spalten auf mobilen Geräten */
}

.gallery img {
    width: calc(85% - 10px);
    /* width: 105px; */
    border: 2px solid #ccc;
    border-radius: 5px;
}

.gallery img:hover {
    border-color: #3b4d79;
}

.h-menu {
    display: none;
}

.sidebar.show {
    display: none;
}

#menu-toggle2 {
    font-family: 'Courier New', Courier, monospace;
    color: #ff9393;
    text-decoration: none;
}

.mitglieder {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
    gap: 20px; /* Abstand zwischen den Elementen */
    padding: 20px; /* Außenabstand */
}

.mitglied {
    text-align: center; /* Zentriere den Text */
    background-color: #f9f9f9; /* Hellgrauer Hintergrund */
    border: 1px solid #ccc; /* Leichter Rahmen */
    border-radius: 8px; /* Runde Ecken */
    padding: 15px; /* Innenabstand */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}

.mitglied img {
    width: 35%; /* Bild füllt den Container */
    height: auto; /* Seitenverhältnis bleibt erhalten */
    border-radius: 8px; /* Runde Ecken */
    margin-bottom: 10px; /* Abstand zum Text */
}

.mitglied h3 {
    margin: 10px 0 5px; /* Abstand oben und unten */
    font-size: 1.2rem; /* Schriftgröße */
    color: #333; /* Dunkelgraue Schrift */
}

.mitglied p {
    margin: 5px 0; /* Abstand zwischen Absätzen */
    font-size: 1rem; /* Schriftgröße */
    color: #666; /* Hellgraue Schrift */
}

form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #3b4d79;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #0056b3;
}

form button:active {
    background: #003f8a; 
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

thead {
    background-color: #3b4d79;
    color: white;
}

thead th {
    padding: 12px 15px;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

tbody td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

th, td {
    text-align: left;
}

ul {
    list-style-type: none;  /* Entfernt die Aufzählungspunkte */
    padding-left: 0;        /* Entfernt den linken Abstand */
}

li {
    margin-bottom: 10px;    /* Fügt zwischen den Listenelementen einen Abstand hinzu */
}

.hidden {
    display: none !important;
}

.dot3 {
    width: 4%;
}

.modal-own {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .4)
}

.modal-own-content {
    background-color: #fefefe;
    margin: auto;
    padding: 15px;
    border: 1px solid #888;
    width: 85%
}

.close-own {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: 700
}

.close-own:focus,
.close-own:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer
}

.btn {
    display: block;
    width: 10%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #3b4d79;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #0056b3;
}

.btn:active {
    background: #003f8a; 
}

.feedback {
    background-color: #383b79;
    color: #fff;
}

@media (max-width: 768px) {
    .sidebar {
        height: 112%;
    }

    .btn {
        width: 40%;
    }

    .dot3 {
        width: 35%;
    }

    table {
        font-size: 12px;
    }

    tbody td {
        padding: 10px 12px;
    }

    thead th {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    form button {
        font-size: 14px;
        padding: 8px;
    }
}

/* Responsives Verhalten */
@media (max-width: 768px) {
    .mitglieder {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten für kleinere Bildschirme */
    }
}

@media (max-width: 480px) {
    .mitglieder {
        grid-template-columns: 1fr; /* 1 Spalte für sehr kleine Bildschirme */
    }
}

@media (max-width: 768px) {
    #lightbox-image {
        width: 100%;
    }

    /* Header */
    .header img {
        width: 100%;
    }

    .header {
        width: 100%;
    }

    /* Container */
    .container {
        grid-template-areas: 
            "sidebar header"
            "sidebar content";
        grid-template-columns: 0fr; /* Nur eine Spalte */
        grid-template-rows: auto 1fr;
    }

    /* Sidebar */
    .sidebar {
        display: none;
    }

    /* Content */
    .content {
        /* padding: 20px; */
        width: 90%; /* Vollständige Breite */
    }

    /* Galerie */
    .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Zwei Spalten auf mobilen Geräten */
        gap: 10px;
        justify-content: center;
    }

    /* Hamburger Menü */
    .h-menu {
        display: block;
    }

    /* Wenn das Menü sichtbar ist */
    .sidebar.show {
        display: block;
        z-index: 99;
    }

    .gallery img {
        width: 75%;
    }
}

/* Auf kleineren Bildschirmen das Hamburger Menü sichtbar machen */
@media (max-width: 768px) {
    .h-menu {
        display: block;
    }
}

#nachObenBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background-color: #333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
  }

  #nachObenBtn:hover {
    background-color: #555;
    transform: scale(1.1);
  }