/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Auth Menu */
.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
    background: transparent;
    position: absolute;
    top: 0;
    right: 0;
}

.auth-menu {
    display: flex;
    gap: 10px;
}

.auth-menu .auth-link {
    color: #fff;
    background: #4caf50;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.auth-menu .auth-link:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Header Section */
.header {
    background: url('../bilder/header-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.header .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    background: #4caf50;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.header .btn:hover {
    background: #45a049;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    background: #4caf50;
    padding: 10px 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.navbar ul li a:hover {
    background: #45a049;
}

.navbar ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar ul li ul li a {
    color: #333;
    padding: 10px 15px;
    white-space: nowrap;
}

.navbar ul li ul li a:hover {
    background: #f5f5f5;
}alert-success
.navbar ul li:hover ul {
    display: block;
}

/* News Section */ich wollte das man direkt
.news-section {
    padding: 50px 20px;
    background: #fff;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #4caf50;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-grid article {
    background: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-grid article:hover {
    transform: translateY(-10px);
}

.news-grid img {
    width: 100%;
    display: block;
}

.news-grid h3 {
    margin: 10px;
    font-size: 1.5rem;
    color: #333;
}

.news-grid p {
    margin: 0 10px 10px;
    color: #666;
}

/* Stats Section */
.stats-section {
    padding: 50px 20px;
    background: #fff;
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #4caf50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 250px; /* Einheitliche Höhe */
    transition: transform 0.3s;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.stat p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.stat a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background: #4caf50;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.stat a:hover {
    background: #45a049;
}

/* Benutzerverwaltung Section */
.user-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.user-management-card {
    background: #ffffff;
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.user-management-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.user-management-card h3 {
    font-size: 1.5rem;
    color: #4caf50;
    margin-bottom: 15px;
}

.user-management-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.user-management-card a {
    display: inline-block;
    padding: 10px 20px;
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s;
}

.user-management-card a:hover {
    background: #45a049;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 100px; /* Abstand oberhalb des Footers */
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer ul li a {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: #45a049;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Benutzerverwaltungs-Kacheln */
.user-card {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.user-card h3 {
    color: #333333;
    margin-bottom: 10px;
}

.user-card p {
    color: #666666;
    margin-bottom: 15px;
}

.user-card .btn {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
}
.user-card .btn-primary {
    background-color: #4caf50;
}

.user-card .btn-primary:hover {
    background-color: #45a049;
}

.user-card .btn-warning {
    background-color: #ffa000;
}

.user-card .btn-warning:hover {
    background-color: #ff8f00;
}

.user-card .btn-danger {
    background-color: #f44336;
}

.user-card .btn-danger:hover {
    background-color: #e53935;
}
/* Login Section */
.login-container {
    background-color: white;
    padding: 20px ;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 350px; /* Kürzere Breite */
    margin: 50px auto;
    transform: translateY(10%); /* Zentriert die Kachel */
}

.form-control {
    width: 100%;
    padding: 10px 0; /* Verringert die Höhe */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px; /* Abstand zwischen Feldern */
}

.btn-primary {
    background-color: #4caf50; /* Auffälliges Grün */
    color: white;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Button volle Breite */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: scale(1.05); /* Leichter Hover-Effekt */
}

.alert {
    background-color: #f8d7da;
    color: #842029;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.text-link {
    color: #4caf50;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}
.top-bar .auth-link {
    background-color: #4caf50; /* Grüne Hintergrundfarbe */
    color: white; /* Weiße Schrift */
    padding: 10px 15px; /* Abstand für den Button */
    border-radius: 5px; /* Abgerundete Ecken */
    text-decoration: none; /* Entfernt Unterstreichung */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.top-bar .auth-link:hover {
    background-color: #45a049; /* Dunklere Hintergrundfarbe beim Hover */
    transform: scale(1.05); /* Leichter Zoom-Effekt beim Hover */
}
/* Dashboard spezifische Styles */
.dashboard-header {
    background: url('../bilder/header-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.dashboard-top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}

.dashboard-auth-menu {
    display: flex;
    gap: 10px;
}

.dashboard-auth-link {
    color: white;
    background: #4caf50;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dashboard-auth-link:hover {
    background: #45a049;
    transform: scale(1.05);
}

.dashboard-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.dashboard-content {
    margin-top: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-stat {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.dashboard-stat:hover {
    transform: translateY(-10px);
}

.dashboard-stat-title {
    font-size: 1.5rem;
    color: #4caf50;
    margin-bottom: 15px;
}

.dashboard-stat-list {
    list-style: none;
    padding: 0;
}

.dashboard-stat-list li {
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}

.dashboard-link {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s;
}

.dashboard-link:hover {
    text-decoration: underline;
}

.dashboard-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.dashboard-image {
    width: 100%;
    border-radius: 5px;
}

.dashboard-footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}
.toggle-text-btn {
    background-color: #4caf50; /* Grüne Farbe */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.toggle-text-btn:hover {
    background-color: #45a049; /* Dunkleres Grün beim Hover */
}
/* Profile Styles */
.profile-header {
    text-align: center;
    padding: 20px 0;
    background-color: #3a3f3a; /* Dunkler Hintergrund */
    color: #a3cf60; /* Grüne Akzentfarbe */
    border-bottom: 2px solid #4caf50;
}

.profile-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-family: Arial, sans-serif;
}

.profile-navbar {
    background-color: #4caf50;
    padding: 10px;
    margin-top: 10px;
}

.profile-navbar .nav-link {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.profile-navbar .nav-link:hover {
    background-color: #45a049; /* Dunkleres Grün */
}

.profile-container {
    margin: 30px auto;
    padding: 20px;
    background-color: #3a3f3a; /* Passender Hintergrund */
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
}

.profile-card {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Transparenter Effekt */
    color: #e0e0e0;
    border-radius: 10px;
}

.profile-card label {
    font-weight: bold;
    color: #a3cf60; /* Grüne Akzentfarbe */
}

.profile-card input,
.profile-card select,
.profile-card button,
.profile-card .form-control {
    width: 100%;
    padding: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 1rem;
}

.profile-card input:focus,
.profile-card .form-control:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Grüner Schatten */
}

.profile-card button {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

.profile-card button:hover {
    background-color: #45a049; /* Dunkleres Grün */
    transform: scale(1.05); /* Leichter Hover-Effekt */
}

.profile-card img {
    display: block;
    margin: 20px auto 10px;
    max-width: 150px;
    border-radius: 50%; /* Runde Profilbilder */
    border: 2px solid #4caf50; /* Grüner Rand */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.profile-footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 20px;
    margin-top: 30px;
    border-top: 2px solid #4caf50;
}

.profile-footer p {
    margin: 0;
    font-size: 0.9rem;
}
.profile-img {
    margin-top: 15px;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    object-fit: cover; /* Sorgt dafür, dass das Bild korrekt skaliert wird */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
    gap: 20px;
    justify-content: center;
}

.gallery-grid img {
    max-width: 256px;
    max-height: 256px;
    object-fit: cover; /* Bild wird zugeschnitten, um die Größe zu erhalten */
    border-radius: 10px; /* Optionale Abrundung der Ecken */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten für die Bilder */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05); /* Leichter Zoom beim Hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Schatten wird intensiver */
}
/* Content List spezifische Styles */
.content-list-title {
    font-family: 'Arial', sans-serif;
    color: #a3cf60; /* Grüne Akzentfarbe */
    text-align: center;
    margin-bottom: 20px;
}

.content-list-filter {
    background-color: #3a3f3a;
    color: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
}

.content-list-table {
    background-color: #3a3f3a;
    color: #e0e0e0;
    border-radius: 10px;
}

.content-list-table table {
    width: 100%;
    border-collapse: collapse;
}

.content-list-table table th,
.content-list-table table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.content-list-table table th {
    background-color: #7fbf40;
    color: #fff;
}

.content-list-footer {
    background-color: #3a3f3a;
    color: #d0d0d0;
    margin-top: 50px;
}
/* Content Edit spezifische Styles */
.content-edit-header-title {
    font-family: 'Arial', sans-serif;
    color: #a3cf60; /* Grüne Akzentfarbe */
    text-align: center;
    margin-bottom: 20px;
}

.content-edit-form-section {
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparentes Schwarz */
    color: #ffffff; /* Weißer Text */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.content-edit-form-section label {
    color: #fff; /* Weiße Labels für bessere Lesbarkeit */
    font-weight: bold;
}

.content-edit-form-section .form-control {
    background-color: #3a3f3a; /* Dunkles Grau */
    color: #ffffff; /* Weißer Text */
    border: 1px solid #7fbf40; /* Grüne Umrandung */
}

.content-edit-form-section .form-control:focus {
    background-color: #3a3f3a; /* Gleiche Farbe bei Fokus */
    border-color: #6da335; /* Intensiveres Grün bei Fokus */
    color: #ffffff;
}

.content-edit-btn-primary {
    background-color: #7fbf40; /* Grüne Hauptfarbe */
    border-color: #6da335;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.content-edit-form-section .btn-primary {
    background-color: #7fbf40; /* Grüner Button */
    border-color: #6da335;
}

.content-edit-form-section .btn-primary:hover {
    background-color: #6da335; /* Dunkleres Grün bei Hover */
    border-color: #5c8e2b;
}
.content-edit-btn-primary:hover {
    background-color: #6da335; /* Dunkleres Grün beim Hover */
    border-color: #5c8e2b;
    transform: scale(1.05); /* Leichter Zoom-Effekt */
}

.content-edit-alert {
    background-color: #f44336; /* Rotes Hintergrund für Fehler */
    color: #ffffff; /* Weißer Text */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
}

.content-edit-footer {
    background-color: #3a3f3a; /* Passender Footer-Hintergrund */
    color: #d0d0d0; /* Helle Footer-Farbe */
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}
