/* GLOBAL BASE THEME VARIABLES */
:root {
    --sage: #94a391;
    --sage-dark: #6e7d6b;
    --sage-light: #b4c2b1;
    --gold: #f0d399;
    --gold-dark: #d4b472;
    --cream: #f9f9f7;
    --dark: #1e241d;
    --glass: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(240, 211, 153, 0.3);
    --glass-card: rgba(30, 36, 29, 0.45);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Outfit', 'Montserrat', sans-serif;
}

/* THEMES */
body.theme-dark {
    --sage: #141814;
    --gold: #e2c07d;
    --cream: #ededed;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(226, 192, 125, 0.25);
    --glass-card: rgba(10, 12, 10, 0.6);
}

body.theme-boho_gold {
    --sage: #bba689;
    --gold: #ffd993;
    --cream: #fffdf9;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 217, 147, 0.4);
    --glass-card: rgba(45, 36, 25, 0.5);
}

body.theme-rose {
    --sage: #a87e85;
    --gold: #fce1e1;
    --cream: #fff9f9;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(252, 225, 225, 0.4);
    --glass-card: rgba(40, 20, 25, 0.5);
}

body.theme-royal_blue {
    --sage: #1e324d;
    --gold: #d4af37;
    --cream: #f4f6fb;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(212, 175, 55, 0.3);
    --glass-card: rgba(10, 20, 35, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--sage);
    background-image: 
        radial-gradient(at 0% 0%, rgba(240, 211, 153, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 0, 0, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--cream);
    font-family: var(--font-body);
    min-height: 100vh;
    padding-bottom: 60px;
    line-height: 1.5;
}

/* OPTIMIERTER LIGHTBOX CONTAINER BEIM ÖFFNEN */
body.pswp-open, .pswp--open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 768px) {
    .container { padding: 0 16px; }
}

/* HEADER */
.header {
    text-align: center;
    padding: 25px 10px 18px;
}

.header h1 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
    margin-bottom: 4px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .header { padding: 35px 15px 20px; }
    .header h1 { font-size: 3.5rem; }
}

.header p {
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(249, 249, 247, 0.9);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .header p { font-size: 1.1rem; }
}

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.2s ease;
}

.event-date-badge.zip-btn {
    background: rgba(240, 211, 153, 0.15);
    border-color: var(--gold);
}

.event-date-badge.zip-btn:hover {
    background: var(--gold);
    color: #1a1a1a;
}

/* TOOLBAR & FILTERS */
.controls-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .controls-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        margin-bottom: 25px;
    }
}

.filter-buttons {
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,0.25);
    padding: 4px;
    border-radius: var(--radius-sm);
    width: 100%;
}

@media (min-width: 768px) {
    .filter-buttons { width: auto; }
}

.btn-filter {
    flex: 1;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--cream);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-filter .filter-icon {
    font-size: 1.18rem;
    line-height: 1;
    display: inline-block;
}

.btn-filter.active, .btn-filter:hover {
    background: var(--gold);
    color: #1a1a1a;
}

.sort-box {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .sort-box {
        width: auto;
        min-width: 200px;
    }
}

.sort-box select {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--cream);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    min-height: 42px;
}

.sort-box select option {
    background: #181c18;
    color: #fff;
}

.search-box {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .search-box {
        flex: 1;
        min-width: 160px;
        max-width: 260px;
    }
}

.search-box input {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px 10px 36px;
    color: var(--cream);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    min-height: 42px;
}

.search-box input::placeholder {
    color: rgba(249, 249, 247, 0.6);
}

.search-box input:focus {
    border-color: var(--gold);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    pointer-events: none;
}

.guest-identity-btn {
    background: rgba(10, 14, 10, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-height: 42px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .guest-identity-btn { width: auto; }
}

.guest-identity-btn:hover {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
}

/* UPLOAD DROPZONE */
.upload-wrapper {
    margin-bottom: 25px;
}

.dropzone-container {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px dashed var(--gold);
    border-radius: var(--radius-md);
    padding: 22px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dropzone-container { padding: 30px 20px; }
}

.dropzone-container:active, .dropzone-container:hover, .dropzone-container.dragover {
    background: rgba(240, 211, 153, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.dropzone-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
    display: block;
}

@media (min-width: 768px) {
    .dropzone-icon { font-size: 2.8rem; margin-bottom: 8px; }
}

.dropzone-text h3 {
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.dropzone-text p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.upload-progress {
    display: none;
    margin-top: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #ffecb3);
    transition: width 0.2s ease;
}

.upload-status-text {
    font-size: 0.85rem;
    margin-top: 6px;
    color: var(--gold);
}

/* MASONRY GALLERY GRID (HIGH PERFORMANCE SCROLLING) */
.gallery-masonry {
    column-count: 2;
    column-gap: 10px;
}

@media (min-width: 600px) { .gallery-masonry { column-count: 3; column-gap: 14px; } }
@media (min-width: 900px) { .gallery-masonry { column-count: 4; column-gap: 18px; } }

.gallery-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    content-visibility: auto;
    contain-intrinsic-size: 1px 280px;
    contain: layout paint;
}

@media (min-width: 768px) {
    .gallery-card { margin-bottom: 16px; }
}

.gallery-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

.gallery-card a {
    display: block;
    position: relative;
    text-decoration: none;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* EMPTY GALLERY STATE */
.empty-gallery-state {
    column-span: all;
    -webkit-column-span: all;
    width: 100%;
    text-align: center;
    padding: 40px 15px;
    margin: 20px 0;
    background: var(--glass-card);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-gallery-state h3 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.empty-gallery-state p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* BADGES & CARDS */
.media-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.card-overlay-actions {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    pointer-events: auto;
}

.comment-badge, .like-btn {
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    outline: none;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    background: rgba(10, 14, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.comment-badge.has-comments {
    background: rgba(10, 14, 10, 0.95);
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 700;
}

.like-btn {
    cursor: pointer;
}

.like-btn.has-likes {
    background: rgba(10, 14, 10, 0.95);
    border-color: #ff6b6b;
    color: #ff6b6b;
    font-weight: 700;
}

.like-btn.liked {
    background: rgba(235, 77, 75, 0.92);
    border-color: #ff4757;
    color: #ffffff;
    font-weight: 700;
}

.del-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e74c3c;
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
    line-height: 1;
    padding: 0;
    outline: none;
}

.del-btn:hover {
    background: #ff4757;
    transform: scale(1.15);
}

.card-info {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 18, 15, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploader-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dot-separator {
    color: rgba(249, 249, 247, 0.4);
    font-size: 0.7rem;
}

.upload-time {
    font-size: 0.72rem;
    color: rgba(249, 249, 247, 0.75);
    white-space: nowrap;
}

/* PHOTOSWIPE HARDWARE ACCELERATION & OPTIMIZATION */
.pswp__img, .pswp__zoom-wrap, .pswp__content {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.pswp__bg {
    background: rgba(0, 0, 0, 0.94) !important;
}

.pswp__custom-collapsible-panel {
    position: absolute;
    z-index: 1050;
    background: rgba(15, 18, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--cream);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
    .pswp__custom-collapsible-panel {
        bottom: 20px;
        right: 20px;
        width: 270px;
        max-height: 125px;
        overflow: hidden;
        border-radius: var(--radius-md);
        padding: 12px 14px;
        border: 1px solid var(--glass-border);
    }

    .pswp__custom-collapsible-panel.is-expanded {
        top: 20px;
        bottom: 20px;
        right: 20px;
        width: 380px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        padding: 18px;
    }
}

@media (max-width: 767px) {
    .pswp__custom-collapsible-panel {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-height: 115px;
        overflow: hidden;
        border-radius: var(--radius-md);
        padding: 10px 14px;
    }

    .pswp__custom-collapsible-panel.is-expanded {
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 65vh;
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
        padding: 14px 16px;
    }
}

.pswp-panel-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pswp-panel-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.84rem;
}

.pswp-summary-name {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pswp-summary-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(249, 249, 247, 0.85);
}

.pswp-summary-date {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* INTERAKTIVER LIKE BUTTON IN DER GROSSANSICHT */
.pswp-like-btn {
    background: rgba(10, 14, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.pswp-like-btn.has-likes {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.pswp-like-btn.liked {
    background: rgba(235, 77, 75, 0.92);
    border-color: #ff4757;
    color: #ffffff;
}

.pswp-panel-toggle-btn {
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
    transition: background 0.2s;
}

.pswp-panel-toggle-btn:hover {
    background: #ffecb3;
}

.pswp-panel-details {
    display: none;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.pswp__custom-collapsible-panel.is-expanded .pswp-panel-details {
    display: block;
}

.pswp-download-link {
    background: var(--gold);
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease;
    margin-bottom: 12px;
}

.pswp-download-link:hover {
    background: #ffecb3;
}

.pswp-comments-wrapper {
    margin-top: 10px;
}

.pswp-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pswp-comments-header h4 {
    font-size: 0.9rem;
    color: var(--gold);
}

.pswp-comments-count-badge {
    font-size: 0.75rem;
    opacity: 0.7;
}

.pswp-comments-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 4px;
}

.comment-tree-node.level-1 {
    margin-left: 14px;
    border-left: 2px solid var(--glass-border);
    padding-left: 8px;
}

.comment-tree-node.level-2 {
    margin-left: 14px;
    border-left: 2px solid var(--gold);
    padding-left: 8px;
}

.pswp-comment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.82rem;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.comment-author {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.78rem;
}

.comment-date {
    font-size: 0.7rem;
    opacity: 0.5;
}

.comment-body {
    color: var(--cream);
    line-height: 1.3;
}

.reply-comment-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 4px;
    opacity: 0.9;
}

.reply-comment-btn:hover {
    text-decoration: underline;
}

.del-comment-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0 4px;
}

.reply-target-indicator {
    background: rgba(240, 211, 153, 0.15);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.reply-target-indicator button {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.75rem;
}

.pswp-comment-form {
    display: flex;
    gap: 8px;
}

.pswp-comment-form input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
}

.pswp-comment-form input:focus {
    border-color: var(--gold);
}

.btn-send-comment {
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-send-comment:hover {
    background: #ffecb3;
}

.pswp-no-comments, .pswp-comments-loading {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
    padding: 6px 0;
}

/* MODAL & NAME OVERLAY */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card {
    background: #181c18;
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    text-align: center;
    position: relative;
    color: #fff;
}

.modal-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.modal-card p {
    font-size: 0.9rem;
    color: rgba(249, 249, 247, 0.85);
    margin-bottom: 18px;
    line-height: 1.4;
}

.modal-card input, .modal-card select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(240, 211, 153, 0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
    min-height: 46px;
}

.modal-card input:focus {
    border-color: var(--gold);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 46px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #ffecb3;
}

.btn-secondary-link {
    background: none;
    border: none;
    color: rgba(249, 249, 247, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px;
}

/* VISUELLER THEME SELECTOR MIT GROSSEN VORSCHAU-KARTEN */
.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 18px;
}

.theme-preview-card {
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: left;
    user-select: none;
}

.theme-preview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 211, 153, 0.6);
}

.theme-preview-card.selected {
    border-color: var(--gold) !important;
    box-shadow: 0 0 16px rgba(240, 211, 153, 0.5);
    transform: translateY(-3px);
}

.theme-preview-card .theme-name {
    font-weight: 700;
    font-size: 0.84rem;
    margin-bottom: 3px;
    line-height: 1.2;
}

.theme-preview-card .theme-desc {
    font-size: 0.7rem;
    opacity: 0.85;
    line-height: 1.2;
}

.theme-preview-card .check-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--gold);
    color: #1a1a1a;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.theme-preview-card.selected .check-icon {
    display: flex;
}

/* Individual Preview Swatches */
.theme-preview-sage { background: linear-gradient(135deg, #94a391, #6e7d6b); color: #ffffff; }
.theme-preview-dark { background: linear-gradient(135deg, #141814, #242b24); color: #e2c07d; }
.theme-preview-boho_gold { background: linear-gradient(135deg, #bba689, #7a6850); color: #ffd993; }
.theme-preview-rose { background: linear-gradient(135deg, #a87e85, #6e4c52); color: #fff9f9; }
.theme-preview-royal_blue { background: linear-gradient(135deg, #1e324d, #0d1a2d); color: #d4af37; }

/* ADMIN TOP NAVIGATION BUTTONS */
.btn-admin, .admin-top-nav-btn {
    background: rgba(240, 211, 153, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--gold) !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    outline: none;
    cursor: pointer;
}

.btn-admin:hover, .admin-top-nav-btn:hover {
    background: var(--gold);
    color: #1a1a1a !important;
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(240, 211, 153, 0.35);
}

.btn-admin.danger, .admin-top-nav-btn.danger {
    border-color: rgba(255, 71, 87, 0.4);
    color: #ff6b6b !important;
}

.btn-admin.danger:hover, .admin-top-nav-btn.danger:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.35);
}

/* ELEGANTES ADMIN DASHBOARD EVENT CARD DESIGN */
.admin-card {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.event-item-card {
    background: rgba(14, 17, 14, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-event-title {
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-event-subtitle {
    font-size: 0.82rem;
    color: rgba(249, 249, 247, 0.75);
    margin-top: 2px;
}

.event-status {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-active { background: rgba(46, 213, 115, 0.18); color: #2ed573; border: 1px solid rgba(46, 213, 115, 0.4); }
.status-inactive { background: rgba(255, 71, 87, 0.18); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.4); }

/* 4-KPI METRICS GRID */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.admin-kpi-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
}

.admin-kpi-label {
    font-size: 0.7rem;
    color: rgba(249, 249, 247, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 1px;
}

.admin-kpi-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AKTIVITÄTS-SECTION */
.admin-activity-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    line-height: 1.3;
}

.admin-activity-label {
    color: rgba(249, 249, 247, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-activity-date {
    font-size: 0.73rem;
    color: var(--gold);
    font-weight: 500;
    white-space: nowrap;
}

/* AKTIONEN-LEISTE */
.admin-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.btn-primary-admin {
    width: 100%;
    padding: 10px;
    background: var(--gold);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-primary-admin:hover {
    background: #ffecb3;
}

.admin-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.btn-secondary-admin {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--cream);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    outline: none;
}

.btn-secondary-admin:hover {
    background: rgba(240, 211, 153, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-secondary-admin.danger {
    border-color: rgba(255, 71, 87, 0.4);
    color: #ff6b6b;
}

.btn-secondary-admin.danger:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #fff;
}

/* TOASTS */
.toast-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (min-width: 600px) {
    .toast-container { left: auto; max-width: 380px; }
}

.toast {
    background: #181c18;
    border-left: 4px solid var(--gold);
    color: var(--cream);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.toast.error {
    border-left-color: #ff6b6b;
}

/* PUSH NOTIFICATION BUTTON & MODAL */
.btn-push-bell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream, #f9f9f7);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.btn-push-bell:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold, #d4af37);
    color: var(--gold, #d4af37);
    transform: translateY(-1px);
}

.btn-push-bell.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold, #d4af37);
    color: var(--gold, #d4af37);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.push-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.push-modal-card {
    background: #1c221c;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    color: var(--cream, #f9f9f7);
}

.push-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.push-modal-header h3 {
    margin: 0;
    font-family: var(--font-heading, sans-serif);
    color: var(--gold, #d4af37);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.push-option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.push-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.push-option-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold, #d4af37);
    cursor: pointer;
}

.push-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
