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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

header::after {
    content: "v0.10";
    position: absolute;
    top: 8px;
    right: 0;
    font-size: 0.72rem;
    color: #bbb;
    letter-spacing: 0.03em;
}

header h1 {
    color: #2c5282;
    font-size: 2rem;
    margin-bottom: 5px;
}

header h1 .header-link {
    color: inherit;
    text-decoration: none;
}

header h1 .header-link:hover {
    opacity: 0.8;
}

header .subtitle {
    color: #666;
    font-size: 1rem;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
}

.login-card {
    max-width: 400px;
}

.card-danger {
    border: 1px solid #fc8181;
    margin-top: 40px;
}

.registration-card {
    max-width: 600px;
}

.card h2 {
    color: #2c5282;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

legend {
    color: #2c5282;
    font-weight: 600;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group-large {
    flex: 2 !important;
}

.form-group-small {
    flex: 1 !important;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a5568;
}

label small {
    font-weight: normal;
    color: #718096;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

input:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: #4299e1;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}

.btn-primary:hover {
    background-color: #3182ce;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-footer p {
    margin-bottom: 10px;
    color: #666;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-error ul {
    margin-left: 20px;
}

.alert-success {
    background-color: #c6f6d5;
    color: #276749;
    border: 1px solid #68d391;
}

.required-hint {
    color: #718096;
    font-size: 0.875rem;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 30px;
}

footer a {
    color: #666;
    text-decoration: underline;
}

footer a:hover {
    color: #4299e1;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.main-nav a {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
    background-color: #e2e8f0;
}

.main-nav a.active {
    background-color: #4299e1;
    color: white;
}

/* Hero Image */
.hero-image {
    text-align: center;
    line-height: 0;
}

.hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.5;
}

.hero-image + main {
    position: relative;
    z-index: 1;
    margin-top: -420px;
}

/* Container Variants */
.container-wide {
    max-width: 1200px;
}

.container-wide main {
    display: block;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    margin: 0;
    color: #2c5282;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background-color: #4299e1;
    color: white;
    margin-left: 10px;
    vertical-align: middle;
}

.badge-inactive {
    background-color: #a0aec0;
}

/* Objekt Liste */
.objekt-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.objekt-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.objekt-card-header {
    padding: 20px;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.objekt-card-header h3 {
    margin: 0;
    color: #2c5282;
    font-size: 1.1rem;
}

.objekt-card-header .objekt-typ {
    margin-left: 0;
    margin-top: 8px;
}

.objekt-card-body {
    padding: 20px;
    flex: 1;
}

.objekt-adresse {
    color: #666;
    margin-bottom: 10px;
}

.objekt-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 0.9rem;
}

.objekt-preis {
    font-size: 1.1rem;
    color: #2c5282;
    margin-top: 10px;
}

.objekt-ausstattung {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ausstattung-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    background-color: #edf2f7;
    color: #4a5568;
    border-radius: 15px;
}

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

.ausstattung-tags .ausstattung-tag {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.objekt-card-footer {
    padding: 15px 20px;
    background-color: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

/* Button Variants */
.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-state p {
    margin-bottom: 20px;
    color: #666;
}

/* Form Extras */
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

input[type="number"],
input[type="time"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Ausstattung Grid */
.ausstattung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ausstattung-kategorie h4 {
    color: #2c5282;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
}

.ausstattung-kategorie .checkbox-label {
    margin-bottom: 8px;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.details-grid .card {
    padding: 20px;
}

.details-grid .card h3 {
    color: #2c5282;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.details-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 15px;
}

.details-list dt {
    color: #666;
}

.details-list dd {
    margin: 0;
    color: #333;
}

.beschreibung-text {
    white-space: pre-wrap;
    line-height: 1.8;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
}

.dashboard-card h3 {
    color: #2c5282;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 20px;
}

.dashboard-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 10px;
}

/* Buchungs-Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    color: white;
    vertical-align: middle;
}

.status-angefragt {
    background-color: #ed8936;
}

.status-bestaetigt {
    background-color: #48bb78;
}

.status-abgelehnt {
    background-color: #e53e3e;
}

.status-storniert {
    background-color: #a0aec0;
}

.status-ausgecheckt {
    background-color: #4299e1;
}

.status-abgeschlossen {
    background-color: #2c5282;
}

.status-noshow {
    background-color: #718096;
}

/* Buchungsliste */
.buchung-liste {
    width: 100%;
}

.buchung-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.buchung-card-info {
    flex: 1;
    min-width: 200px;
}

.buchung-card-info h4 {
    color: #2c5282;
    margin-bottom: 5px;
}

.buchung-card-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.buchung-card-preis {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5282;
}

.buchung-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Status Filter */
.status-filter {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-filter a {
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    color: #4a5568;
    background-color: #edf2f7;
    transition: background-color 0.2s;
}

.status-filter a:hover {
    background-color: #e2e8f0;
}

.status-filter a.active {
    background-color: #4299e1;
    color: white;
}

/* Status Aktionen */
.status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Button Varianten */
.btn-success {
    background-color: #48bb78;
    color: white;
}

.btn-success:hover {
    background-color: #38a169;
}

.btn-warning {
    background-color: #ed8936;
    color: white;
}

.btn-warning:hover {
    background-color: #dd6b20;
}

/* Oeffentliche Navigation */
.public-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.public-nav a {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.public-nav a:hover {
    background-color: #e2e8f0;
}

.public-nav a.active {
    background-color: #4299e1;
    color: white;
}

.nav-user-name {
    padding: 8px 16px;
    color: #2c5282;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Katalog */
.katalog-header {
    text-align: center;
    margin-bottom: 30px;
}

.katalog-suche {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.katalog-suche input {
    flex: 1;
}

/* Preisberechnung */
.preis-zusammenfassung {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.preis-zeile {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #4a5568;
}

.preis-zeile.preis-gesamt {
    border-top: 2px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c5282;
}

/* Buchungsformular Layout */
.buchung-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

/* Bestaetigung */
.bestaetigung-nummer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5282;
    text-align: center;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 6px;
    margin: 15px 0;
    letter-spacing: 2px;
}

/* Date Input */
input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="date"]:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Neue Anfragen Hinweis */
.neue-anfragen-hinweis {
    margin-top: 10px;
    color: #ed8936;
    font-weight: 600;
}

/* Belegungskalender */
.kalender-navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kalender-einstellungen-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.kalender-einstellungen-form label {
    font-size: 0.9rem;
    color: #555;
}

.kalender-legende {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4a5568;
}

.legende-farbe {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #cbd5e0;
}

.kalender-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.kalender-monat {
    padding: 12px !important;
}

.kalender-monat h4 {
    color: #2c5282;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: center;
}

.kalender-tabelle {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.kalender-tabelle th {
    padding: 4px 2px;
    text-align: center;
    color: #718096;
    font-weight: 600;
    font-size: 0.7rem;
}

.kalender-tabelle td {
    padding: 4px 2px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.kalender-tag {
    cursor: default;
}

.kalender-frei {
    background: #f0fff4;
}

.kalender-belegt {
    background: #fed7d7;
}

.kalender-anreise {
    background: linear-gradient(to bottom right, #f0fff4 50%, #fed7d7 50%);
}

.kalender-abreise {
    background: linear-gradient(to bottom right, #fed7d7 50%, #f0fff4 50%);
}

.kalender-wechsel {
    background: linear-gradient(to bottom right, #fed7d7 50%, #feebc8 50%);
}

.kalender-leer {
    background: transparent;
    border-color: transparent;
}

.kalender-anderer-monat {
    opacity: 0.3;
}

.kalender-heute {
    font-weight: 700;
    text-decoration: underline;
}

/* Kompakter Kalender (3 Spalten) fuer eingebettete Ansichten */
.kalender-kompakt {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .kalender-kompakt {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .kalender-kompakt {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .kalender-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .kalender-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .kalender-grid {
        grid-template-columns: 1fr;
    }
}

/* Gaesteverwaltung */
.gast-suche {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gast-suche input {
    flex: 1;
}

.gast-liste {
    width: 100%;
}

.gast-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gast-card-info {
    flex: 1;
    min-width: 200px;
}

.gast-card-info h4 {
    color: #2c5282;
    margin-bottom: 5px;
}

.gast-card-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.gast-card-buchungen {
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
}

.gast-buchungen-badge {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4299e1;
}

.gast-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 600px) {
    .gast-suche {
        flex-direction: column;
    }

    .gast-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .gast-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group-large,
    .form-group-small {
        flex: 1 !important;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .main-nav {
        flex-wrap: wrap;
    }

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

    .objekt-liste {
        grid-template-columns: 1fr;
    }

    .objekt-card-footer {
        flex-wrap: wrap;
    }

    .ausstattung-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .buchung-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .buchung-card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .katalog-suche {
        flex-direction: column;
    }

    .buchung-layout {
        grid-template-columns: 1fr;
    }

    .status-filter {
        overflow-x: auto;
    }

    .bilder-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galerie-thumbnails {
        gap: 6px;
    }

    .galerie-thumb {
        width: 50px;
        height: 50px;
    }
}

/* Bilder-Grid (Verwaltung) */
.bilder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.bild-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.bild-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.bild-card-actions {
    padding: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bild-hauptbild {
    border: 3px solid #4299e1;
}

.bild-hauptbild-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #4299e1;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Bilder-Vorschau (Objekt-Details) */
.bilder-vorschau {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.bilder-vorschau-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.bilder-vorschau-mehr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100px;
    background-color: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.bilder-vorschau-mehr:hover {
    background-color: #edf2f7;
}

/* Objekt-Card Bild (Katalog) */
.objekt-card-bild {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Galerie (Gaeste-Ansicht) */
.galerie {
    width: 100%;
}

.galerie-gross {
    position: relative;
    width: 100%;
    background: #1a202c;
    border-radius: 6px;
    overflow: hidden;
}

.galerie-bild {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

.galerie-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.galerie-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.galerie-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.galerie-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.galerie-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.galerie-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.galerie-thumb:hover {
    opacity: 0.9;
}

.galerie-thumb-aktiv {
    opacity: 1;
    border: 2px solid #4299e1;
}

/* Profil */
.profil-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

a.nav-user-name {
    text-decoration: none;
}

a.nav-user-name:hover {
    background-color: #e2e8f0;
    border-radius: 4px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #718096;
    padding: 2px 6px;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.65;
    color: #4a5568;
}

.modal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: #2d3748;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    margin: 0 0 12px 24px;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    flex-shrink: 0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

/* Admin-Navigation */
.admin-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #2c5282;
}

.admin-nav a {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.admin-nav a:hover {
    background-color: #e2e8f0;
}

.admin-nav a.active {
    background-color: #2c5282;
    color: white;
}

/* Status-Badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-aktiv {
    background-color: #c6f6d5;
    color: #276749;
}

.status-gesperrt {
    background-color: #fed7d7;
    color: #c53030;
}

/* Admin-Tabellen */
.admin-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-tabelle th {
    text-align: left;
    padding: 10px 12px;
    background-color: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    white-space: nowrap;
}

.admin-tabelle td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #4a5568;
}

.admin-tabelle tr:last-child td {
    border-bottom: none;
}

.admin-tabelle tr:hover td {
    background-color: #f7fafc;
}

.admin-aktionen {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* Protokoll-Filter */
.protokoll-filter .form-row {
    align-items: flex-end;
    flex-wrap: wrap;
}

.protokoll-filter .form-group {
    min-width: 150px;
}
