/* === Reset & Grundlagen === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 40%, #2980b9 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

/* === Öffentliche Seite === */
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-area {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.content-area h1,
.content-area h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    color: #f0f8ff;
    letter-spacing: 1px;
}

.content-area h3 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 15px;
    color: #b8d4e8;
}

.content-area p {
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: center;
    color: #d6e8f5;
}

.content-area strong {
    color: #ffffff;
}

.content-area em {
    color: #a8d8f0;
}

.content-area a {
    color: #5dade2;
    text-decoration: underline;
}

.image-area {
    text-align: center;
    margin-bottom: 40px;
}

.image-area img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

/* === Admin-Bereich === */
.admin-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: #f0f8ff;
}

.admin-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #a8d8f0;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f0f8ff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Formulare === */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #b8d4e8;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #5dade2;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.2);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #2980b9;
    color: #ffffff;
}

.btn-primary:hover {
    background: #3498db;
}

.btn-danger {
    background: #c0392b;
    color: #ffffff;
}

.btn-danger:hover {
    background: #e74c3c;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b8d4e8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* === Meldungen === */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #a8f0c6;
}

.alert-error {
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #f0a8a0;
}

.alert-info {
    background: rgba(41, 128, 185, 0.2);
    border: 1px solid rgba(41, 128, 185, 0.4);
    color: #a8d8f0;
}

/* === Login-Seite === */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: #f0f8ff;
}

/* === Tabellen === */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

table th {
    color: #b8d4e8;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    color: #d6e8f5;
    font-size: 0.95rem;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === Bild-Vorschau === */
.image-preview {
    margin-top: 10px;
}

.image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === Responsive === */
@media (max-width: 600px) {
    .content-area {
        padding: 30px 20px;
    }

    .content-area h1,
    .content-area h2 {
        font-size: 1.6rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        padding: 20px;
    }
}
