:root {
    --bg-overlay: rgba(12, 16, 24, 0.72);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.16);
    --card-border: rgba(255, 255, 255, 0.15);
    --accent: #38bdf8;
    --accent-2: #a855f7;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --danger: #f87171;
    --success: #4ade80;
    --warn: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background: url('../../images/home_background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    z-index: -1;
}

/* ================= LOADING SCREEN ================= */
#loader {
    position: fixed;
    inset: 0;
    background: #0b0e14;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 16px;
}

.loader-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: pulse 1.5s infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ================= MAIN CONTAINER ================= */
.container {
    width: 100%;
    max-width: 1020px;
    padding: 36px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

body.loaded .container {
    opacity: 1;
    transform: translateY(0);
}

.flash {
    width: 100%;
    max-width: 680px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.85);
    text-align: center;
}

.flash.success { border-color: rgba(74, 222, 128, 0.5); color: var(--success); }
.flash.error { border-color: rgba(248, 113, 113, 0.5); color: var(--danger); }

/* ================= PROFILBEREICH ================= */
.profile {
    text-align: center;
    margin-bottom: 22px;
}

.site-logo {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.3));
}

.profile-people {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    max-width: 280px;
    margin: 0 auto 10px;
}

.profile-person {
    display: flex;
    flex: 0 1 132px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
}

.profile-person-avatar {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 6px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.profile-person.partner .profile-person-avatar {
    border-color: var(--accent-2);
}

.profile-person-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
}

.partner-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid rgba(168, 85, 247, 0.55);
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.25);
    color: #f3e8ff;
    font-size: 0.72rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.partner-profile-button:hover {
    background: rgba(168, 85, 247, 0.42);
}

.partner-profile-button:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.profile p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

@media (max-width: 380px) {
    .profile-people {
        gap: 12px;
    }

    .profile-person-name {
        font-size: 0.85rem;
    }

    .partner-profile-button {
        padding: 4px 8px;
        font-size: 0.68rem;
    }
}

/* ================= TABS NAVIGATION ================= */
.main-tabs {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    transition: all 0.22s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.32);
}

.tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.28));
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.18);
}

.tab-panel {
    display: none;
    width: 100%;
}

.tab-panel.active {
    display: block;
}

/* ================= LINK CARDS ================= */
.links-list {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 36px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.link-card:hover {
    background: var(--card-hover);
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.link-card.highlight {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.14);
}

.link-card.highlight:hover {
    background: rgba(56, 189, 248, 0.24);
}

.link-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.link-info { flex-grow: 1; }
.link-title { font-weight: 600; font-size: 1rem; display: block; }
.link-subtitle { font-size: 0.78rem; color: var(--text-muted); display: block; }

.link-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--text-main);
}

/* ================= STATISTIKEN & TÄGLICHES DIAGRAMM ================= */
.stats-box {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
}

.stat-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stats-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.chart-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
}

.chart-panel h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.daily-bars {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    height: 112px;
    padding-top: 8px;
}

.daily-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 4px;
}

.daily-bar-track {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px 6px 2px 2px;
    overflow: hidden;
}

.daily-bar-fill {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 5px 5px 0 0;
    transition: height 0.25s ease;
}

.daily-bar-label {
    font-size: 0.64rem;
    color: var(--text-muted);
    line-height: 1;
}

.stat-pill-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
}

.stat-pill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

/* ================= GALERIE & FILTER ================= */
.gallery-section {
    width: 100%;
    margin-bottom: 36px;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.filter-item select {
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-main);
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-missing-filter {
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-missing-filter.active {
    background: rgba(251, 191, 36, 0.34);
    border-color: var(--warn);
    color: #ffffff;
    font-weight: 600;
}

.btn-reset-filter {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-filter:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

.filter-empty {
    display: none;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.filter-empty.visible {
    display: block;
}

.admin-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.admin-toggle-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 18px;
}

.photo-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.photo-card.filtered-out,
.photo-card.scroll-hidden {
    display: none;
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
}

.photo-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.photo-thumb-wrap.is-loaded .img-loading-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mini-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.photo-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.photo-card:hover .photo-thumb-wrap img {
    transform: scale(1.03);
}

.session-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(12, 16, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(6px);
    z-index: 3;
}

.session-step-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(12, 16, 24, 0.72);
    color: #ffffff;
    font-size: 0.78rem;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.session-step-btn:hover {
    background: rgba(56, 189, 248, 0.45);
    border-color: var(--accent);
}

.session-step-prev {
    left: 8px;
}

.session-step-next {
    right: 8px;
}

.photo-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-grow: 1;
}

.photo-title {
    font-size: 1rem;
    font-weight: 600;
}

.photo-meta {
    font-size: 0.78rem;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.photo-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clickable-filter-tag {
    cursor: pointer;
    border-radius: 6px;
    padding: 1px 5px;
    margin-left: -5px;
    transition: background 0.18s ease, color 0.18s ease;
}

.clickable-filter-tag:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #ffffff;
}

.people-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.person-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.person-badge:hover {
    background: rgba(168, 85, 247, 0.38);
}

.tag-badges,
.photo-actions,
.community-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.tag-badges { margin-top: 2px; }

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    font-size: 0.7rem;
    cursor: pointer;
}

.tag-badge:hover { background: rgba(56, 189, 248, 0.3); }

.photo-actions {
    margin-top: 4px;
}

.photo-actions button,
.community-details summary {
    width: auto;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    font-size: 0.76rem;
    box-shadow: none;
}

.photo-actions .like-button {
    border-color: rgba(251, 113, 133, 0.35);
    color: #fecdd3;
}

.photo-actions .like-button.liked {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(251, 113, 133, 0.7);
    color: #fb7185;
}


.community-details {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.community-details summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    list-style: none;
}

.community-details summary::-webkit-details-marker { display: none; }

.community-forms {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.community-form {
    display: grid;
    gap: 8px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(4, 10, 22, 0.42);
}

.community-form h4 {
    margin: 0;
    color: var(--accent);
    font-size: 0.82rem;
}

.community-form input[type="text"],
.community-form input[type="email"],
.community-form select,
.community-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
}

.community-form textarea { min-height: 72px; resize: vertical; }

.community-form .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.community-form [hidden] { display: none; }
.community-form .consent-row input { margin-top: 3px; }
.community-form button { width: auto; justify-self: start; min-height: 36px; }

.moderation-box {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.05);
}

.moderation-box h4 { margin: 0 0 10px; color: #fde68a; }
.moderation-item {
    display: grid;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
}

.moderation-item:first-of-type { border-top: 0; }
.moderation-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-item form { display: flex; gap: 8px; }

.missing-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fde68a;
    cursor: pointer;
}

.missing-badge:hover {
    background: rgba(251, 191, 36, 0.34);
}

.photo-notes {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.scroll-sentinel {
    margin-top: 16px;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-admin-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-edit {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #bae6fd;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-edit:hover {
    background: rgba(56, 189, 248, 0.28);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.3);
}

.edit-inline-box {
    display: none;
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.edit-inline-box.open {
    display: block;
}

.edit-inline-box .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.inline-save-feedback {
    font-size: 0.76rem;
    margin-top: 4px;
    min-height: 16px;
}

.inline-save-feedback.success { color: var(--success); }
.inline-save-feedback.error { color: var(--danger); }

.empty-gallery {
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================= ADMIN PANEL, LIST MANAGER & DROPZONE ================= */
.admin-panel {
    display: none;
    width: 100%;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    backdrop-filter: blur(14px);
}

.admin-panel.open {
    display: block;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}

.admin-top h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.manage-lists-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.manage-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.cleanup-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cleanup-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.list-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
}

.saved-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
}

.saved-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    padding: 3px 6px 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-main);
}

.chip-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: rgba(248, 113, 113, 0.22);
    color: #fecaca;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
}

.inline-add-row {
    display: flex;
    gap: 8px;
}

.inline-add-row input {
    flex: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="date"],
select.form-select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-main);
    font-size: 0.86rem;
}

.world-combo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.checkbox-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkbox-inline-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-main);
}

.dropzone {
    position: relative;
    border: 2px dashed rgba(56, 189, 248, 0.45);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 128px;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.12);
}

.dropzone i {
    font-size: 1.6rem;
    color: var(--accent);
}

.dropzone-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.dropzone-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.dropzone-preview-strip {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.dropzone.has-file .dropzone-preview-strip {
    display: flex;
}

.dropzone-preview-thumb {
    width: 78px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.sr-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-progress-box {
    display: none;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.upload-progress-box.visible {
    display: block;
}

.upload-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.upload-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.upload-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.15s ease;
}

.upload-progress-box.processing .upload-progress-fill {
    width: 34%;
    animation: upload-processing 1.2s ease-in-out infinite alternate;
}

@keyframes upload-processing {
    from { transform: translateX(-10%); }
    to { transform: translateX(205%); }
}

.upload-inline-status {
    margin-top: 6px;
    font-size: 0.8rem;
    display: none;
}

.upload-inline-status.visible {
    display: block;
}

.upload-inline-status.error { color: var(--danger); }
.upload-inline-status.success { color: var(--success); }
.upload-inline-status.warning { color: #fbbf24; }

.upload-date-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.upload-duplicate-check {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.upload-duplicate-check[hidden] { display: none; }
.upload-duplicate-check > p { margin: 0; }
.upload-duplicate-check > p.error { color: var(--danger); }
.duplicate-check-entry { margin-top: 12px; }
.duplicate-check-entry h4 {
    margin: 0 0 8px;
    color: var(--text-main);
    overflow-wrap: anywhere;
}
.duplicate-check-list .duplicate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}
.duplicate-check-list .duplicate-match {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.88);
}
.duplicate-check-list .duplicate-match img {
    display: block;
    width: 100%;
    height: 150px;
    margin-bottom: 8px;
    border-radius: 7px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.24);
}
.duplicate-check-list .duplicate-match h3 {
    margin: 0 0 4px;
    color: var(--text-main);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}
.duplicate-check-list .duplicate-match p {
    margin: 0;
    font-size: 0.76rem;
}
.duplicate-check-list .duplicate-grid { margin: 0; }
.duplicate-upload-override {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 190, 80, 0.35);
    border-radius: 9px;
    color: var(--text-main);
    cursor: pointer;
}
.duplicate-upload-override[hidden] { display: none; }
.duplicate-upload-override input { margin-top: 3px; accent-color: var(--accent); }

.people-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.people-checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.35);
    font-size: 0.8rem;
    color: #f3e8ff;
    cursor: pointer;
    user-select: none;
}

.people-checkbox-item input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
}

textarea {
    min-height: 72px;
    resize: vertical;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.84rem;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.92;
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
}

/* ================= TERMINE / GOOGLE KALENDER ================= */
.events-section {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 36px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}

.event-title {
    font-size: 1rem;
    font-weight: 600;
}

.event-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ================= LIGHTBOX & GALLERY NAV ================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-box {
    max-width: 820px;
    width: 100%;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.lightbox-stage {
    position: relative;
    background: #05080f;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.lightbox-stage img {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    display: block;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.35);
    border-color: var(--accent);
}

.lightbox-nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-caption {
    padding: 16px 20px;
}

.lightbox-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lightbox-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}

/* ================= FOOTER ================= */
footer {
    width: 100%;
    text-align: center;
    padding: 24px 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-nav { margin-bottom: 6px; }
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-size: 12px;
}

.footer-nav a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.stat-value-secondary {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.stat-value-warning { color: var(--warn); }
.daily-bar-fill { height: 0; }
.inline-form { display: inline; }
.form-field-note { margin-top: 4px; }
.is-hidden { display: none !important; }
.lightbox-title { font-size: 1.05rem; font-weight: 600; }
.lightbox-meta,
.lightbox-people,
.lightbox-notes { margin: 4px 0; font-size: 0.82rem; }
.lightbox-meta { color: var(--accent); }
.lightbox-people { color: #e9d5ff; }
.lightbox-notes { color: var(--text-muted); font-size: 0.86rem; }
