/*
 * Die Klagenfurter - Complete Master Stylesheet
 * Responsive Mobile Navigation Drawer, High-End Admin Matrix, Single Trip Cockpit & Color Harmonization
 */

:root {
    --dk-bg-main: #fcfbfa;
    --dk-bg-card: #ffffff;
    --dk-text-primary: #0f172a;
    --dk-text-muted: #576375;
    --dk-border: #e8e3d9;
    --dk-card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --dk-card-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.12);

    /* ✈️ Reisen (Warm Klagenfurter Sunset Orange / Terracotta) */
    --dk-reisen-orange: #c25e38;
    --dk-reisen-orange-hover: #ab4f2d;
    --dk-reisen-bg: #fff7ed;
    --dk-reisen-border: #fed7aa;
    --dk-reisen-text: #9a3412;

    /* 🗺️ Kurztrips (Fresh Mountain Lake & Forest Sage) */
    --dk-kurztrips-green: #059669;
    --dk-kurztrips-green-hover: #047857;
    --dk-kurztrips-bg: #f0fdf4;
    --dk-kurztrips-border: #bbf7d0;
    --dk-kurztrips-text: #166534;

    /* 👨‍👩‍👧 Familientrips (Vibrant Mediterranean Azure & Wörthersee Sky Blue) */
    --dk-familie-blue: #0284c7;
    --dk-familie-blue-hover: #0369a1;
    --dk-familie-bg: #f0f9ff;
    --dk-familie-border: #bae6fd;
    --dk-familie-text: #0369a1;
    --dk-familie-gold: #0284c7;
    --dk-familie-gold-hover: #0369a1;

    /* 👶 Baby-Tagebuch (Eucalyptus Sage & Warm Sand Linen) */
    --dk-baby-sage: #5a7a58;
    --dk-baby-sage-hover: #456243;
    --dk-baby-bg: #edf3eb;
    --dk-baby-border: #d2e3cd;
    --dk-baby-text: #2f492e;
    --dk-baby-sand: #d3b499;
    --dk-baby-coral: #c8877b;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--dk-bg-main);
    color: var(--dk-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.dk-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.text-center { text-align: center; }

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--dk-text-primary);
    letter-spacing: -0.02em;
}

/* --- Brand Logo --- */
.dk-logo-container {
    margin: 0 auto 12px;
    max-width: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dk-exact-logo-img {
    width: 100%;
    max-width: 185px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}
.dk-header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.dk-header-logo-link:hover {
    opacity: 0.85;
}
.dk-header-logo-img {
    height: 38px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

/* --- Top Navigation Header --- */
.dk-header {
    background: #ffffff;
    border-bottom: 1px solid var(--dk-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.dk-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.dk-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dk-nav-link {
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.90rem;
    color: var(--dk-text-muted);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.dk-nav-link:hover {
    background: #f8fafc;
    color: var(--dk-text-primary);
}

.dk-nav-link.active {
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 600;
}
.dk-nav-link.active-reisen {
    background: var(--dk-reisen-orange) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(194, 94, 56, 0.3);
}
.dk-nav-link.active-kurztrips {
    background: var(--dk-kurztrips-green) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.dk-nav-link.active-familie {
    background: var(--dk-familie-gold) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.dk-nav-kind {
    background: var(--dk-baby-bg);
    color: var(--dk-baby-text);
    border: 1px solid var(--dk-baby-border);
}
.dk-nav-kind:hover {
    background: #e1ede0;
}
.dk-nav-link.active-kind {
    background: var(--dk-baby-sage) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(90, 122, 88, 0.35);
}
.dk-badge-privat {
    font-size: 0.68rem;
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
    font-weight: 700;
}

.dk-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.dk-btn-senior-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.dk-btn-senior-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.dk-btn-senior-toggle.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}
.dk-senior-state-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: #cbd5e1;
    color: #334155;
    font-weight: 700;
}
.dk-btn-senior-toggle.active .dk-senior-state-badge,
.dk-senior-state-badge.active {
    background: #22c55e;
    color: #ffffff;
}
.dk-btn-new-post {
    padding: 6px 14px;
    background: var(--dk-reisen-orange);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(194, 94, 56, 0.25);
}
.dk-btn-new-post:hover {
    background: var(--dk-reisen-orange-hover);
    transform: translateY(-1px);
}
/* Compact Profile Dropdown */
.dk-user-profile-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.dk-profile-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s ease;
}
.dk-profile-trigger-btn:hover, .dk-user-profile-dropdown.open .dk-profile-trigger-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.dk-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dk-reisen-orange), #ea580c);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dk-profile-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dk-profile-caret {
    font-size: 0.72rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}
.dk-user-profile-dropdown.open .dk-profile-caret {
    transform: rotate(180deg);
}

.dk-profile-popover {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 8px;
    z-index: 1000;
}
.dk-user-profile-dropdown.open .dk-profile-popover {
    display: block;
    animation: dkFadeDown 0.18s ease-out;
}
.dk-popover-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin-bottom: 6px;
}
.dk-popover-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dk-reisen-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(194, 94, 56, 0.30);
    flex-shrink: 0;
}
.dk-popover-info {
    overflow: hidden;
}
.dk-popover-user {
    font-weight: 700;
    font-size: 0.94rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dk-popover-role {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 1px;
}
.dk-popover-links {
    padding: 2px 0;
}
.dk-popover-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}
.dk-popover-icon {
    font-size: 1.1rem;
    line-height: 1;
}
.dk-popover-link:hover {
    background: #f8fafc;
    color: var(--dk-reisen-orange);
    transform: translateX(2px);
}
.dk-popover-link.dk-link-highlight {
    background: #fff7ed;
    color: #c25e38;
}
.dk-popover-link.dk-link-highlight:hover {
    background: #ffedd5;
    color: #9a3412;
}
.dk-popover-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 4px;
}
.dk-popover-link.dk-link-logout {
    color: #ef4444;
}
.dk-popover-link.dk-link-logout:hover {
    background: #fef2f2;
    color: #dc2626;
    transform: none;
}

/* --- Mobile Bottom App Bar (Always Accessible on Smartphones) --- */
.dk-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
    z-index: 998;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .dk-mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px !important;
    }
    /* In Senior Mode on single post, the senior bar takes priority */
    body.dk-mode-senior.single .dk-mobile-bottom-nav {
        display: none;
    }
}

.dk-mob-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    flex: 1;
    height: 100%;
    padding: 4px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.dk-mob-bottom-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 3px;
    transition: transform 0.15s;
}
.dk-mob-bottom-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}
.dk-mob-bottom-item:active .dk-mob-bottom-icon {
    transform: scale(0.9);
}
.dk-mob-bottom-item.active {
    color: #0f172a !important;
    font-weight: 700;
}
.dk-mob-bottom-item.active-reisen, .dk-mob-bottom-item.reisen.active, .dk-mob-bottom-item.reisen:active {
    color: var(--dk-reisen-orange) !important;
    font-weight: 700;
}
.dk-mob-bottom-item.active-kurztrips, .dk-mob-bottom-item.kurztrips.active, .dk-mob-bottom-item.kurztrips:active {
    color: var(--dk-kurztrips-green) !important;
    font-weight: 700;
}
.dk-mob-bottom-item.active-familie, .dk-mob-bottom-item.familie.active, .dk-mob-bottom-item.familie:active {
    color: var(--dk-familie-blue) !important;
    font-weight: 700;
}
.dk-mob-bottom-item.active-kind, .dk-mob-bottom-item.baby.active, .dk-mob-bottom-item.baby:active {
    color: var(--dk-baby-sage) !important;
    font-weight: 700;
}

/* Responsive header layout & utilities */
.dk-desktop-only {
    display: inline-flex !important;
}
.dk-mobile-senior-center {
    display: none !important;
}

@media (max-width: 900px) {
    .dk-desktop-only {
        display: none !important;
    }
    .dk-desktop-nav {
        display: none !important;
    }
    .dk-mobile-senior-center {
        display: inline-flex !important;
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
        border-radius: 999px;
    }
    .dk-mobile-senior-center .dk-senior-label {
        font-size: 0.76rem;
    }
    .dk-profile-name.dk-desktop-only {
        display: none !important;
    }
    .dk-profile-trigger-btn {
        padding: 4px 6px !important;
    }
    .dk-header-inner {
        padding: 8px 14px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
.dk-mobile-menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: #0f172a;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.dk-mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.dk-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.dk-mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Clean Unified Mobile Drawer --- */
.dk-mobile-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--dk-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
}
.dk-mobile-drawer.open {
    display: block;
    animation: dkSlideDown 0.25s ease-out;
}
@keyframes dkSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dk-mobile-drawer-inner {
    padding: 20px 20px 24px;
}
.dk-mob-section-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 10px;
}
.dk-mob-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dk-mob-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dk-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.dk-mob-link.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.dk-mob-link.active-reisen {
    background: var(--dk-reisen-orange);
    color: #ffffff;
    border-color: var(--dk-reisen-orange);
}
.dk-mob-link.active-kurztrips {
    background: var(--dk-kurztrips-green);
    color: #ffffff;
    border-color: var(--dk-kurztrips-green);
}
.dk-mob-link.active-familie {
    background: var(--dk-familie-gold);
    color: #ffffff;
    border-color: var(--dk-familie-gold);
}
.dk-mob-link.active-kind {
    background: var(--dk-baby-sage);
    color: #ffffff;
    border-color: var(--dk-baby-sage);
}
.dk-mob-icon {
    font-size: 1.15rem;
}
.dk-mob-badge-privat {
    margin-left: auto;
    font-size: 0.70rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: 999px;
}

.dk-mob-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 18px 0;
}
.dk-mob-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.dk-mob-btn-action {
    display: block;
    text-align: center;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    transition: all 0.2s;
}
.dk-mob-btn-new {
    background: var(--dk-reisen-orange);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(194, 94, 56, 0.25);
}
.dk-mob-btn-admin {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.dk-mob-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fcfbfa;
    border: 1px solid #e7e3da;
    border-radius: 14px;
    padding: 12px 16px;
}
.dk-mob-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dk-mob-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.90rem;
}
.dk-mob-username {
    font-weight: 700;
    font-size: 0.90rem;
    color: var(--dk-text-primary);
}
.dk-mob-userrole {
    font-size: 0.75rem;
    color: var(--dk-text-muted);
}
.dk-mob-btn-logout {
    color: #dc2626;
    background: #fee2e2;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

/* --- Public Landing Page & Login Card --- */
.dk-landing-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 20px;
    background: #0f172a;
}
.dk-landing-bg {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(1.5px);
    transform: scale(1.02);
}
.dk-landing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
}
.dk-landing-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 390px;
}
.dk-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 34px 28px 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-align: center;
}
.dk-card-tagline {
    font-size: 0.88rem;
    color: var(--dk-text-muted);
    margin: 0 0 22px;
    font-weight: 500;
}
.dk-form-group {
    text-align: left;
    margin-bottom: 15px;
}
.dk-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.dk-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.dk-field-icon {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    color: #94a3b8;
}
.dk-input-icon-wrap input, .dk-form-group input, .dk-form-group select, .dk-form-group textarea {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.92rem;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
.dk-form-group input:focus, .dk-form-group select:focus, .dk-form-group textarea:focus {
    border-color: var(--dk-reisen-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 94, 56, 0.12);
}
.dk-btn-login {
    background: var(--dk-reisen-orange);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--dk-reisen-orange);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(194, 94, 56, 0.25);
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}
.dk-btn-login:hover {
    background: var(--dk-reisen-orange-hover);
    border-color: var(--dk-reisen-orange-hover);
    transform: translateY(-1px);
}
.dk-btn-block { width: 100%; }

/* Card Divider */
.dk-card-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 16px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dk-card-divider::before,
.dk-card-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.dk-card-divider span {
    padding: 0 12px;
}

/* Secondary Action: Request Access Button */
.dk-btn-request {
    background: #f8fafc;
    color: #334155;
    font-size: 0.90rem;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}
.dk-btn-request:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.dk-access-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 14px 0 0;
    line-height: 1.4;
}

/* Modal Popup Styles */
.dk-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dk-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}
.dk-modal-content {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: dkModalZoom 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dkModalZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.dk-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.dk-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.dk-modal-title {
    font-size: 1.4rem;
    margin: 0 0 8px;
}
.dk-modal-desc {
    font-size: 0.88rem;
    color: var(--dk-text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}
.dk-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    font-weight: 500;
}
.dk-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.dk-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* --- Dashboard Hero & Stats --- */
.dk-dash-hero {
    background: linear-gradient(180deg, #fffcf7 0%, #fcf6eb 100%);
    padding: 44px 0 32px;
    border-bottom: 1px solid var(--dk-border);
    text-align: center;
}
.dk-dash-hero-badge {
    display: inline-block;
    background: var(--dk-reisen-bg);
    color: var(--dk-reisen-text);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid var(--dk-reisen-border);
}
.dk-dash-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.dk-dash-subtitle {
    font-size: 1.10rem;
    color: var(--dk-text-muted);
    margin: 0 auto 22px;
    max-width: 680px;
    line-height: 1.5;
}

.dk-search-bar {
    max-width: 580px;
    margin: 0 auto 10px;
    position: relative;
}
.dk-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
}
.dk-search-bar input {
    width: 100%;
    padding: 13px 20px 13px 48px;
    border-radius: 999px;
    border: 1.5px solid #dcd7ce;
    font-size: 0.96rem;
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.dk-search-bar input:focus {
    border-color: var(--dk-reisen-orange);
    outline: none;
    box-shadow: 0 4px 20px rgba(194, 94, 56, 0.15);
}

/* --- Filter Tabs --- */
.dk-filter-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 24px;
}
.dk-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.dk-filter-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid #ddd8cf;
    background: white;
    color: var(--dk-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.dk-filter-btn:hover {
    background: #f8fafc;
    color: var(--dk-text-primary);
}
.dk-filter-btn.active[data-filter="all"] {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}
.dk-filter-btn.active[data-filter="reisen"] {
    background: var(--dk-reisen-orange);
    color: white;
    border-color: var(--dk-reisen-orange);
    box-shadow: 0 3px 10px rgba(194, 94, 56, 0.3);
}
.dk-filter-btn.active[data-filter="kurztrips"] {
    background: var(--dk-kurztrips-green);
    color: white;
    border-color: var(--dk-kurztrips-green);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}
.dk-filter-btn.active[data-filter="familientrips"] {
    background: var(--dk-familie-blue);
    color: white;
    border-color: var(--dk-familie-blue);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}
.dk-filter-btn.active[data-filter="kind"] {
    background: var(--dk-baby-sage);
    color: white;
    border-color: var(--dk-baby-sage);
    box-shadow: 0 3px 10px rgba(90, 122, 88, 0.35);
}

.dk-btn-view-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: white;
    border: 1.5px solid var(--dk-reisen-orange);
    border-radius: 999px;
    color: var(--dk-reisen-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(194, 94, 56, 0.08);
    white-space: nowrap;
}
.dk-btn-view-map:hover {
    background: var(--dk-reisen-orange);
    color: white;
}

/* --- Card Grid --- */
.dk-grid-trips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
    margin-bottom: 60px;
}
.dk-card {
    background: white;
    border-radius: 18px;
    border: 1px solid var(--dk-border);
    overflow: hidden;
    box-shadow: var(--dk-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.dk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dk-card-shadow-hover);
    border-color: #dcd7ce;
}
.dk-card-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1ede6;
    display: block;
    text-decoration: none;
}
.dk-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.dk-card:hover .dk-card-img {
    transform: scale(1.05);
}

.dk-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    background: var(--dk-reisen-orange);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}
.dk-card-badge.kurztrips { background: var(--dk-kurztrips-green); }
.dk-card-badge.familientrips { background: var(--dk-familie-gold); }
.dk-card-badge.kind { background: var(--dk-baby-sage); }

.dk-card-date {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: white;
}
.dk-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.dk-card-title {
    font-size: 1.30rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--dk-text-primary);
    line-height: 1.3;
}
.dk-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.dk-card:hover .dk-card-title-link {
    color: var(--dk-reisen-orange);
}
.dk-card.dk-card-kind:hover .dk-card-title-link {
    color: var(--dk-baby-sage);
}
.dk-card-desc {
    font-size: 0.92rem;
    color: var(--dk-text-muted);
    margin: 0 0 16px;
    flex-grow: 1;
    line-height: 1.55;
}
.dk-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 14px;
    border-top: 1px solid #f1ece3;
}
.dk-metric-pills-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dk-metric-pill {
    background: #fdfbf7;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    border: 1px solid #ede7dc;
}
.dk-card-arrow-cue {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 700;
    transition: transform 0.25s ease, color 0.25s ease;
    margin-left: auto;
}
.dk-card:hover .dk-card-arrow-cue {
    color: var(--dk-reisen-orange);
    transform: translateX(4px);
}
.dk-card.dk-card-kind:hover .dk-card-arrow-cue {
    color: var(--dk-baby-sage);
}

/* ==========================================================================
   PAGE REISEN OVERVIEW (OPTION A)
   ========================================================================== */
.dk-reisen-page {
    padding: 36px 0 70px;
}
.dk-reisen-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.dk-reisen-badge {
    display: inline-block;
    background: var(--dk-reisen-bg);
    color: var(--dk-reisen-text);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid var(--dk-reisen-border);
}
.dk-reisen-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.dk-reisen-desc {
    font-size: 1.05rem;
    color: var(--dk-text-muted);
    margin: 0;
    max-width: 650px;
}
.dk-btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--dk-reisen-orange);
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.90rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(194, 94, 56, 0.25);
    transition: all 0.2s ease;
}
.dk-btn-primary-action:hover {
    background: var(--dk-reisen-orange-hover);
    transform: translateY(-1px);
}

.dk-continent-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dk-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #ded8cc;
    background: white;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-chip.active {
    background: var(--dk-reisen-orange);
    color: white;
    border-color: var(--dk-reisen-orange);
}

.dk-worldmap-container {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--dk-border);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--dk-card-shadow);
}
.dk-map-canvas {
    height: 480px;
    width: 100%;
}
.dk-map-legend {
    padding: 12px 24px;
    background: #f9f8f5;
    border-top: 1px solid var(--dk-border);
    font-size: 0.88rem;
    color: var(--dk-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.dk-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dk-reisen-orange);
    display: inline-block;
}

/* Floating Hide Route Button on Map */
.dk-floating-btn-hide-route {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1000;
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.dk-floating-btn-hide-route:hover {
    background: #c25e38;
    border-color: #c25e38;
    transform: translateY(-1px);
}

/* Clickable Interactive Legend on Dashboard */
.dk-clickable-legend {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.dk-legend-hint {
    font-size: 0.80rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 4px;
}
.dk-legend-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.dk-legend-filter-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.dk-legend-filter-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* Admin Create User Pills */
.dk-perm-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-perm-check-pill:has(input:checked) {
    background: #fdfbf7;
    border-color: var(--dk-reisen-orange);
    color: var(--dk-reisen-orange);
}
.dk-perm-check-pill.dk-pill-baby:has(input:checked) {
    background: #f0fdf4;
    border-color: #059669;
    color: #059669;
}

/* Category Pins for World Map */
.dk-world-pin-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.dk-world-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dk-reisen-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    border: 2.5px solid #ffffff;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dk-world-pin.kurztrips {
    background: var(--dk-kurztrips-green);
}
.dk-world-pin.familientrips {
    background: var(--dk-familie-gold);
}
.dk-world-pin:hover {
    transform: scale(1.25);
    z-index: 1000 !important;
}
.dk-world-pin-emoji {
    font-size: 13px;
    line-height: 1;
}

/* Rich Map Popup Card */
.dk-custom-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px -6px rgba(0,0,0,0.25);
    border: 1px solid var(--dk-border);
}
.dk-custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    line-height: 1.5;
}
.dk-map-popup-card {
    width: 290px;
    background: white;
}
.dk-popup-cover-wrap {
    position: relative;
    height: 145px;
    background: #0f172a;
    overflow: hidden;
}
.dk-popup-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dk-popup-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    background: var(--dk-reisen-orange);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.dk-popup-badge.kurztrips { background: var(--dk-kurztrips-green); }
.dk-popup-badge.familientrips { background: var(--dk-familie-gold); }

.dk-popup-date {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.75);
    color: white;
}
.dk-popup-content {
    padding: 14px 16px 16px;
}
.dk-popup-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--dk-text-primary);
    line-height: 1.3;
}
.dk-popup-metrics {
    display: flex;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}
.dk-popup-desc {
    font-size: 0.82rem;
    color: var(--dk-text-muted);
    margin: 0 0 12px;
    line-height: 1.45;
}
.dk-popup-btn-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dk-popup-link-btn {
    display: block;
    text-align: center;
    background: var(--dk-reisen-orange);
    color: white !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}
.dk-map-popup-card.kurztrips .dk-popup-link-btn { background: var(--dk-kurztrips-green); }
.dk-map-popup-card.familientrips .dk-popup-link-btn { background: var(--dk-familie-gold); }

.dk-popup-link-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.dk-btn-show-route {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-btn-show-route:hover {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

/* Subpage Badges & Buttons */
.dk-badge-kurztrips {
    background: var(--dk-kurztrips-bg);
    color: var(--dk-kurztrips-text);
    border-color: var(--dk-kurztrips-border);
}
.dk-btn-kurztrips {
    background: var(--dk-kurztrips-green);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}
.dk-btn-kurztrips:hover {
    background: var(--dk-kurztrips-green-hover);
}

.dk-badge-familie {
    background: var(--dk-familie-bg);
    color: var(--dk-familie-text);
    border-color: var(--dk-familie-border);
}
.dk-btn-familie {
    background: var(--dk-familie-gold);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}
.dk-btn-familie:hover {
    background: var(--dk-familie-gold-hover);
}

.dk-section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.dk-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}
.dk-count-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ==========================================================================
   ADMIN BERECHTIGUNGEN PAGE (CLEAN MATRIX & MOBILE TOUCH CARDS)
   ========================================================================== */
.dk-admin-page-wrapper {
    padding-bottom: 80px;
}
.dk-admin-hero {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 44px 0 34px;
    margin-bottom: 34px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.dk-admin-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #fcd34d;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.dk-admin-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
}
.dk-admin-desc {
    color: #94a3b8;
    max-width: 680px;
    font-size: 0.98rem;
    margin: 0 0 22px;
    line-height: 1.5;
}
.dk-admin-stats-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 20px;
    gap: 16px;
}
.dk-admin-stats-bar .dk-stat-num {
    color: #38bdf8;
}
.dk-admin-stats-bar .dk-stat-label {
    color: #cbd5e1;
}

.dk-admin-container {
    max-width: 1080px;
}
.dk-admin-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--dk-border);
    padding: 28px;
    box-shadow: var(--dk-card-shadow);
    margin-bottom: 30px;
}
.dk-card-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.dk-card-section-header h2 {
    font-size: 1.4rem;
    margin: 0 0 4px;
}
.dk-card-sub {
    font-size: 0.88rem;
    color: var(--dk-text-muted);
    margin: 0;
}
.dk-save-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Desktop Admin Table */
.dk-desktop-table-wrap {
    overflow-x: auto;
}
.dk-admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.dk-admin-table th {
    padding: 12px 14px;
    font-size: 0.80rem;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.dk-admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1ede6;
    vertical-align: middle;
}
.dk-admin-table tr:hover td {
    background: #faf9f6;
}

/* Modern iOS-Style Toggle Switches */
.dk-switch {
    position: relative !important;
    display: inline-block !important;
    width: 48px !important;
    height: 26px !important;
    min-width: 48px !important;
    min-height: 26px !important;
    vertical-align: middle !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    line-height: 1 !important;
}
.dk-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
}
.dk-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 48px !important;
    height: 26px !important;
    background-color: #cbd5e1 !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    display: block !important;
    box-sizing: border-box !important;
}
.dk-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 20px !important;
    width: 20px !important;
    left: 3px !important;
    top: 3px !important;
    bottom: auto !important;
    background-color: #ffffff !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    display: block !important;
}
.dk-switch input:checked + .dk-slider {
    background-color: #059669 !important; /* Default crisp emerald */
}
.dk-switch.dk-switch-reisen input:checked + .dk-slider {
    background-color: #0284c7 !important; /* Sky Blue */
}
.dk-switch.dk-switch-kurztrips input:checked + .dk-slider {
    background-color: #0d9488 !important; /* Teal */
}
.dk-switch.dk-switch-familie input:checked + .dk-slider {
    background-color: #c25e38 !important; /* Warm Terra */
}
.dk-switch.dk-switch-baby input:checked + .dk-slider {
    background-color: #16a34a !important; /* Sage Green */
}
.dk-switch input:checked + .dk-slider:before {
    transform: translateX(22px) !important;
}
.dk-switch input:disabled + .dk-slider {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
}
.dk-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dk-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0f172a;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.90rem;
    flex-shrink: 0;
}
.dk-user-name-box strong {
    display: block;
    color: var(--dk-text-primary);
    font-size: 0.94rem;
}
.dk-user-name-box small {
    color: var(--dk-text-muted);
    font-size: 0.80rem;
}
.dk-uname-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    letter-spacing: 0.2px;
}
.dk-role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
}
.dk-role-badge.admin {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.dk-role-badge.creator {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.dk-role-badge.member {
    background: #f1f5f9;
    color: #475569;
}

/* Admin Role Selector */
.dk-role-select {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dk-role-select:focus {
    border-color: var(--dk-reisen-orange);
}
.dk-role-select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Password Action Button */
.dk-btn-pass-action {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dk-btn-pass-action:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}
.dk-btn-pass-mob {
    padding: 8px 14px;
    font-size: 0.84rem;
}

/* Request Actions Row */
.dk-req-actions-row {
    display: flex;
    gap: 8px;
}
.dk-btn-approve-req {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dk-btn-approve-req:hover {
    background: #047857;
    transform: translateY(-1px);
}
.dk-btn-delete-req {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dk-btn-delete-req:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Mobile User Cards List (Hidden on desktop) */
.dk-mobile-user-cards-list {
    display: none;
    flex-direction: column;
    gap: 16px;
}
.dk-mob-user-perm-card {
    background: #ffffff;
    border: 1px solid #e2ddd4;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.dk-mob-perm-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1ede6;
    margin-bottom: 14px;
}
.dk-mob-user-details {
    flex-grow: 1;
    min-width: 0;
}
.dk-mob-user-details strong {
    display: block;
    font-size: 0.95rem;
}
.dk-mob-user-details small {
    display: block;
    color: var(--dk-text-muted);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dk-mob-toggles-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dk-mob-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #faf8f5;
    border-radius: 10px;
    border: 1px solid #ede8de;
}
.dk-mob-row-baby {
    background: var(--dk-baby-bg);
    border-color: var(--dk-baby-border);
}
.dk-mob-toggle-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dk-text-primary);
}

/* iOS Style Switch */
.dk-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    vertical-align: middle;
}
.dk-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.dk-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}
.dk-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
input:checked + .dk-slider {
    background-color: var(--dk-reisen-orange);
}
.dk-switch-baby input:checked + .dk-slider {
    background-color: var(--dk-baby-sage);
}
input:checked + .dk-slider:before {
    transform: translateX(20px);
}
input:disabled + .dk-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Pending Requests Box */
.dk-pending-requests-card {
    border-color: #fde68a;
    background: #fffdf5;
}
.dk-pending-count-tag {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.dk-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.dk-request-item-card {
    background: white;
    border: 1px solid #fef08a;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.dk-req-user-info strong {
    display: block;
    font-size: 0.95rem;
}
.dk-req-email {
    display: block;
    color: var(--dk-text-muted);
    font-size: 0.80rem;
    margin-bottom: 4px;
}
.dk-role-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}
.dk-req-msg {
    font-size: 0.85rem;
    color: #475569;
    margin: 8px 0;
    background: #fafaf9;
    padding: 8px 10px;
    border-radius: 6px;
}
.dk-req-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.dk-req-time {
    font-size: 0.72rem;
    color: #94a3b8;
}
.dk-btn-approve-req {
    background: var(--dk-reisen-orange);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   MOBILE POCKET STORY EDITOR (PAGE-NEUER-BEITRAG.PHP)
   ========================================================================== */
.dk-pocket-editor-wrapper {
    min-height: calc(100vh - 80px);
    background: var(--dk-bg-main);
    padding: 30px 0 70px;
}
.dk-editor-container {
    max-width: 780px;
}
.dk-editor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.dk-editor-back-link {
    color: var(--dk-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.90rem;
    padding: 8px 14px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--dk-border);
    transition: all 0.2s;
}
.dk-editor-back-link:hover {
    color: var(--dk-reisen-orange);
    border-color: var(--dk-reisen-border);
}
.dk-editor-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}
.dk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}
.dk-btn-editor-publish {
    background: var(--dk-reisen-orange);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(194, 94, 56, 0.25);
}
.dk-btn-editor-publish:hover {
    background: var(--dk-reisen-orange-hover);
    transform: translateY(-1px);
}

.dk-editor-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--dk-border);
    padding: 28px;
    box-shadow: var(--dk-card-shadow);
}
.dk-editor-card.is-baby-mode #dk-gps-row {
    display: none !important;
}
.dk-editor-card.is-baby-mode #dk-baby-stats-box {
    display: block !important;
}

/* Baby Milestone Meta Box Styling in Editor */
.dk-baby-stats-meta-box {
    margin-bottom: 24px;
    background: linear-gradient(145deg, #f4f9f3 0%, #eaf4e8 100%);
    border: 1.5px solid #cce2cb;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 4px 16px rgba(45, 74, 43, 0.05);
}
.dk-baby-stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(45, 74, 43, 0.10);
    padding-bottom: 12px;
}
.dk-baby-header-icon {
    font-size: 1.6rem;
    background: white;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(45, 74, 43, 0.08);
}
.dk-baby-stats-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #264224;
}
.dk-baby-stats-subtitle {
    margin: 2px 0 0;
    font-size: 0.80rem;
    color: #527950;
}
.dk-baby-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .dk-baby-stats-grid {
        grid-template-columns: 1fr;
    }
}
.dk-baby-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dk-baby-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #264224;
    margin: 0;
}
.dk-baby-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #c2dec0;
    background: #ffffff;
    font-size: 0.92rem;
    color: #1e293b;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.dk-baby-input:focus {
    border-color: #447a41;
    box-shadow: 0 0 0 3px rgba(68, 122, 65, 0.15);
    background: #ffffff;
}
.dk-post-type-switcher {
    display: flex;
    gap: 8px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.dk-type-btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dk-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
.dk-type-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.dk-field-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.dk-trip-parent-select-box {
    margin-bottom: 18px;
}
.dk-select-field {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.94rem;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    color: var(--dk-text-primary);
}
.dk-day-number-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.dk-day-index-col {
    width: 110px;
    flex-shrink: 0;
}
.dk-day-title-col {
    flex-grow: 1;
}
.dk-input-day-num {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}
.dk-input-title {
    width: 100%;
    font-size: 1.20rem;
    font-weight: 700;
    font-family: 'Outfit', 'Inter', sans-serif;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 16px;
    box-sizing: border-box;
}
.dk-input-title:focus, .dk-input-day-num:focus, .dk-select-field:focus {
    outline: none;
    border-color: var(--dk-reisen-orange);
    box-shadow: 0 0 0 3px rgba(194, 94, 56, 0.12);
}

.dk-meta-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.dk-input-text-sm {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.90rem;
    font-family: 'Inter', sans-serif;
}

.dk-editor-row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.dk-cat-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dk-cat-pill {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #dcd7ce;
    background: #faf8f5;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-cat-pill.active[data-cat="reisen"] {
    background: var(--dk-reisen-orange);
    color: white;
    border-color: var(--dk-reisen-orange);
}
.dk-cat-pill.active[data-cat="kurztrips"] {
    background: var(--dk-kurztrips-green);
    color: white;
    border-color: var(--dk-kurztrips-green);
}
.dk-cat-pill.active[data-cat="familientrips"] {
    background: var(--dk-familie-gold);
    color: white;
    border-color: var(--dk-familie-gold);
}
.dk-cat-pill.active[data-cat="kind"] {
    background: var(--dk-baby-sage);
    color: white;
    border-color: var(--dk-baby-sage);
}
.dk-input-date {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 0.90rem;
}

.dk-cover-upload-zone {
    border: 2px dashed #d1cbbd;
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    background: #fcfbfa;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.dk-cover-upload-zone:hover {
    border-color: var(--dk-reisen-orange);
    background: #fefcf8;
}
.dk-cover-placeholder {
    padding: 20px 0;
}
.dk-upload-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
}
.dk-upload-label {
    display: block;
    font-weight: 600;
    color: var(--dk-text-primary);
    font-size: 0.95rem;
}
.dk-upload-sub {
    font-size: 0.78rem;
    color: var(--dk-text-muted);
}
.dk-cover-preview-wrap {
    position: relative;
    max-height: 320px;
    overflow: hidden;
    border-radius: 12px;
}
.dk-cover-preview-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}
.dk-btn-remove-cover {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.dk-compress-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #166534;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.dk-hidden-input { display: none !important; }

/* Dynamic Story Blocks */
.dk-story-blocks {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}
.dk-story-block {
    background: #faf9f6;
    border: 1px solid #e2ddd4;
    border-radius: 14px;
    padding: 18px;
    position: relative;
}
.dk-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.dk-block-type-tag {
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--dk-text-muted);
}
.dk-btn-delete-block {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
}
.dk-btn-delete-block:hover {
    color: #dc2626;
}

.dk-block-textarea {
    width: 100%;
    min-height: 110px;
    border: 1.5px solid #dcd7ce;
    border-radius: 10px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.94rem;
    line-height: 1.6;
    resize: vertical;
    background: white;
}
.dk-gallery-dropzone {
    margin-bottom: 12px;
}
.dk-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.dk-gallery-placeholder:hover {
    border-color: var(--dk-reisen-orange);
    background: #fefcf8;
}
.dk-gallery-placeholder span {
    font-weight: 600;
    font-size: 0.90rem;
    color: #1e293b;
}
.dk-gallery-placeholder small {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}
.dk-gallery-grid-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.dk-polaroid-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.dk-polaroid-item img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 6px;
    display: block;
}
.dk-pol-size-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(22, 101, 52, 0.88);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.dk-btn-del-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.80);
    color: #ffffff;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.dk-btn-del-photo:hover {
    background: #dc2626;
}

.dk-gallery-caption-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #dcd7ce;
    font-size: 0.88rem;
    background: white;
}

.dk-block-tip {
    border-left: 4px solid var(--dk-reisen-orange);
    background: #fefdfa;
}
.dk-tip-title-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #dcd7ce;
    font-weight: 600;
    font-size: 0.90rem;
    margin-bottom: 8px;
    background: white;
}
.dk-tip-textarea {
    width: 100%;
    min-height: 70px;
    border-radius: 8px;
    border: 1.5px solid #dcd7ce;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.90rem;
    background: white;
}

.dk-add-block-controls {
    text-align: center;
    padding-top: 10px;
}
.dk-add-block-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dk-text-muted);
    margin-bottom: 10px;
}
.dk-add-block-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dk-btn-add-block {
    background: #f4f0e6;
    border: 1px solid #ded6c5;
    color: #45341d;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-btn-add-block:hover {
    background: var(--dk-reisen-orange);
    color: white;
    border-color: var(--dk-reisen-orange);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MOBILE EDITOR OPTIMIZATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .dk-pocket-editor-wrapper {
        padding: 16px 12px 120px; /* Generous bottom spacing for mobile bottom navigation */
    }
    .dk-editor-card {
        padding: 18px 14px;
        border-radius: 16px;
    }
    .dk-editor-topbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        gap: 8px;
    }
    .dk-editor-back-link {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    .dk-editor-status-pill {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
    .dk-btn-editor-publish {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    
    /* Clean 2x2 Post Type Switcher Grid on Phones */
    .dk-post-type-switcher {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 5px;
        margin-bottom: 16px;
    }
    .dk-type-btn {
        padding: 8px 6px;
        font-size: 0.76rem;
        line-height: 1.25;
        border-radius: 8px;
        white-space: normal;
        text-align: center;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Title and Day Number */
    .dk-day-number-row {
        gap: 8px;
        margin-bottom: 14px;
    }
    .dk-day-index-col {
        width: 80px;
    }
    .dk-input-day-num {
        padding: 10px 8px;
        font-size: 0.92rem;
    }
    .dk-input-title {
        font-size: 1.02rem;
        padding: 10px 12px;
    }
    
    /* Category & Date Options Stacked Cleanly */
    .dk-editor-row-options {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }
    .dk-cat-selector-group {
        width: 100%;
    }
    .dk-cat-pills {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }
    .dk-cat-pill {
        padding: 8px 6px;
        font-size: 0.78rem;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    .dk-meta-date-wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .dk-input-date {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
    }
    
    /* Baby Milestone Stats Box on Mobile */
    .dk-baby-stats-meta-box {
        padding: 14px 12px;
        margin-bottom: 16px;
        border-radius: 14px;
    }
    .dk-baby-stats-header {
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .dk-baby-header-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        border-radius: 10px;
    }
    .dk-baby-stats-title {
        font-size: 0.90rem;
    }
    .dk-baby-stats-subtitle {
        font-size: 0.72rem;
    }
    .dk-baby-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .dk-baby-label {
        font-size: 0.76rem;
    }
    .dk-baby-input {
        padding: 8px 10px;
        font-size: 0.84rem;
        border-radius: 8px;
    }
    
    /* Add Block Controls */
    .dk-add-block-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .dk-btn-add-block {
        width: 100%;
        padding: 10px 8px;
        font-size: 0.80rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .dk-baby-stats-grid {
        grid-template-columns: 1fr;
    }
    .dk-post-type-switcher {
        grid-template-columns: 1fr;
    }
    .dk-cat-pills {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SINGLE TRIP HUB & ADVENTURE DASHBOARD (PAGE-REISE-SINGLE.PHP)
   ========================================================================== */
.dk-trip-single-page {
    padding-bottom: 80px;
}

.dk-post-hero {
    padding: 56px 0 44px;
    color: #ffffff;
    position: relative;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.dk-post-meta-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.dk-badge-cat {
    background: var(--dk-reisen-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}
.dk-badge-family {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}
.dk-badge-lock {
    background: rgba(0, 0, 0, 0.4);
    color: #fcd34d;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.dk-post-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.dk-post-sub {
    font-size: 1.15rem;
    color: #f1f5f9;
    max-width: 780px;
    margin: 0 0 28px;
    line-height: 1.6;
}

.dk-post-metrics-bar {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 24px;
    gap: 24px;
    flex-wrap: wrap;
}
.dk-p-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.90rem;
}
.dk-p-icon {
    font-size: 1.2rem;
}

.dk-trip-author-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.dk-btn-add-day-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
}
.dk-btn-add-day-action:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}
.dk-btn-edit-trip-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-btn-edit-trip-meta:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Adventure Split Layout */
.dk-adventure-split-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 36px;
    align-items: flex-start;
}

.dk-adv-left {
    position: sticky;
    top: 90px;
}
.dk-sticky-map-wrapper {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--dk-border);
    padding: 20px;
    box-shadow: var(--dk-card-shadow);
}
.dk-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.dk-map-header h3 {
    font-size: 1.1rem;
    margin: 0;
}
.dk-btn-gpx {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.dk-btn-gpx:hover {
    background: #e2e8f0;
}

.dk-post-map-canvas {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--dk-border);
}

.dk-elevation-card {
    background: #faf8f5;
    border: 1px solid #e7e3da;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}
.dk-elev-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dk-elev-stops-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dk-day-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #ede8de;
    text-decoration: none;
    transition: all 0.25s ease;
}
.dk-day-nav-item:hover {
    background: var(--dk-reisen-bg);
    border-color: var(--dk-reisen-border);
    transform: translateX(3px);
}
.dk-day-nav-item.active {
    background: var(--dk-reisen-bg);
    border-color: var(--dk-reisen-orange);
    box-shadow: 0 2px 8px rgba(194, 94, 56, 0.2);
}
.dk-day-nav-item.active .dk-stop-name {
    color: var(--dk-reisen-text);
}
.dk-day-nav-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.dk-stop-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dk-day-nav-meta {
    font-size: 0.74rem;
    color: var(--dk-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dk-gps-indicator {
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 2px;
}
.dk-gps-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}
.dk-day-nav-item .dk-stop-num-badge {
    width: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--dk-reisen-orange);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.70rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Map Interactive Pins */
.dk-map-day-pin {
    background: var(--dk-reisen-orange);
    color: #ffffff;
    font-weight: 700;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}
.dk-map-day-pin.dk-pin-active {
    transform: scale(1.3);
    background: #ea580c;
    box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.35), 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1000 !important;
}

.dk-widget-box {
    background: #fdfcfa;
    border: 1px solid #e7e3da;
    border-radius: 12px;
    padding: 14px;
}
.dk-widget-box h4 {
    font-size: 0.88rem;
    margin: 0 0 10px;
}
.dk-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
}
.dk-checklist li {
    margin-bottom: 6px;
}

/* Right Column: Daily Stories */
.dk-adv-right {
    min-width: 0;
}
.dk-story-intro {
    margin-bottom: 24px;
}
.dk-story-intro h2 {
    font-size: 1.6rem;
    margin: 0 0 6px;
}
.dk-story-intro p {
    color: var(--dk-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.dk-day-timeline {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 36px;
}
.dk-day-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.dk-day-badge {
    background: var(--dk-reisen-orange);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(194, 94, 56, 0.25);
    flex-shrink: 0;
}
.dk-day-card {
    background: white;
    border-radius: 18px;
    border: 1px solid var(--dk-border);
    padding: 24px;
    box-shadow: var(--dk-card-shadow);
    flex-grow: 1;
}

.dk-day-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.dk-day-date-tag {
    font-size: 0.80rem;
    font-weight: 600;
    color: #64748b;
}
.dk-day-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--dk-text-primary);
}
.dk-day-title-link {
    color: var(--dk-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.dk-day-title-link:hover {
    color: var(--dk-reisen-orange);
}

.dk-day-paragraph {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 18px;
}

.dk-day-gallery-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.dk-day-img-item {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: block;
}
.dk-day-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.dk-day-img-item:hover img {
    transform: scale(1.04);
}

/* -------------------------------------------------------------------------
   COMPACT SINGLE-LINE TIP PILLS (Both left sidebar and day cards)
   ------------------------------------------------------------------------- */
.dk-day-tip-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fffdf2 0%, #fefce8 100%);
    border: 1.5px solid #fde047;
    border-radius: 10px;
    padding: 6px 14px;
    margin: 10px 0 6px;
    font-size: 0.88rem;
    color: #713f12;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.08);
    max-width: 100%;
    flex-wrap: wrap;
}

.dk-day-tip-line .dk-day-tip-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.dk-day-tip-line .dk-day-tip-bold {
    font-weight: 700;
    color: #854d0e;
    white-space: nowrap;
}

.dk-day-tip-line .dk-day-tip-txt {
    color: #713f12;
}

/* Left sidebar inline tip card */
.dk-trip-tip-inline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(135deg, #fffdf2 0%, #fefce8 100%);
    border: 1.5px solid #fef08a;
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dk-trip-tip-inline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.18);
    border-color: #facc15;
}

.dk-tip-inline-left {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.84rem;
}

.dk-tip-inline-left .dk-day-tip-bold {
    font-weight: 700;
    color: #854d0e;
    white-space: nowrap;
}

.dk-tip-inline-left .dk-day-tip-txt {
    color: #713f12;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dk-tip-tag-pill {
    background: #fef08a;
    color: #713f12;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid #fde047;
    flex-shrink: 0;
}

.dk-day-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1ede6;
    padding-top: 14px;
    margin-top: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.dk-btn-read-day {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dk-reisen-bg);
    color: var(--dk-reisen-text);
    border: 1.5px solid var(--dk-reisen-border);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.dk-btn-read-day:hover {
    background: var(--dk-reisen-orange);
    color: white;
    border-color: var(--dk-reisen-orange);
}
.dk-day-btn-heart {
    background: #fee2e2;
    color: #e11d48;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-day-btn-heart:hover {
    background: #fecdd3;
}

/* ==========================================================================
   STANDALONE SINGLE DAY POST VIEW (SINGLE.PHP)
   ========================================================================== */
.dk-single-day-wrapper {
    padding: 30px 0 80px;
    background: var(--dk-bg-main);
}
.dk-single-day-container {
    max-width: 860px;
}
.dk-day-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--dk-text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dk-bc-link {
    color: var(--dk-reisen-orange);
    text-decoration: none;
    font-weight: 600;
}
.dk-bc-sep {
    color: #cbd5e1;
}
.dk-bc-current {
    color: var(--dk-text-primary);
    font-weight: 600;
}

.dk-single-day-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--dk-border);
    overflow: hidden;
    box-shadow: var(--dk-card-shadow);
}
.dk-day-cover-hero {
    position: relative;
    max-height: 420px;
    overflow: hidden;
    background: #0f172a;
}
.dk-day-cover-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.dk-day-cover-overlay {
    position: absolute;
    bottom: 20px;
    left: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.dk-day-pill-badge {
    background: var(--dk-reisen-orange);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.dk-day-pill-date {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: white;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 999px;
}

.dk-single-day-body {
    padding: 36px 32px;
}
.dk-single-day-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 16px;
    line-height: 1.25;
}
.dk-single-day-meta-row {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1ede6;
    margin-bottom: 24px;
    font-size: 0.86rem;
    color: var(--dk-text-muted);
    flex-wrap: wrap;
}
.dk-single-day-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}
.dk-single-day-content p {
    margin-bottom: 20px;
}

.dk-single-day-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #f1ede6;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 14px;
}
.dk-btn-heart-lg {
    background: #fee2e2;
    color: #e11d48;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-btn-heart-lg:hover {
    background: #fecdd3;
    transform: scale(1.03);
}
.dk-btn-back-hub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--dk-reisen-orange);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.90rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(194, 94, 56, 0.25);
    transition: all 0.2s;
}
.dk-btn-back-hub:hover {
    background: var(--dk-reisen-orange-hover);
    transform: translateY(-1px);
}

.dk-single-day-wrapper.familientrips .dk-bc-link { color: var(--dk-familie-blue); }
.dk-single-day-wrapper.kurztrips .dk-bc-link { color: var(--dk-kurztrips-green); }
.dk-single-day-wrapper.kind .dk-bc-link { color: var(--dk-baby-sage); }

.dk-day-pill-badge.familientrips { background: var(--dk-familie-blue); }
.dk-day-pill-badge.kurztrips { background: var(--dk-kurztrips-green); }
.dk-day-pill-badge.kind { background: var(--dk-baby-sage); }

.dk-btn-back-hub.familientrips {
    background: var(--dk-familie-blue);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.dk-btn-back-hub.familientrips:hover {
    background: var(--dk-familie-blue-hover);
}
.dk-btn-back-hub.kurztrips {
    background: var(--dk-kurztrips-green);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.dk-btn-back-hub.kurztrips:hover {
    background: var(--dk-kurztrips-green-hover);
}
.dk-btn-back-hub.kind {
    background: var(--dk-baby-sage);
    box-shadow: 0 4px 12px rgba(90, 122, 88, 0.25);
}
.dk-btn-back-hub.kind:hover {
    background: var(--dk-baby-sage-hover);
}

.dk-day-prev-next-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}
.dk-nav-day-btn {
    background: white;
    border: 1px solid var(--dk-border);
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dk-text-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.2s;
}
.dk-nav-day-btn:hover {
    border-color: var(--dk-reisen-orange);
    color: var(--dk-reisen-orange);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & SMARTPHONES e.g. PIXEL 10 PRO)
   ========================================================================== */
@media (max-width: 1024px) {
    .dk-header-inner {
        padding: 10px 16px;
    }
    .dk-grid-trips {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .dk-adventure-split-layout {
        grid-template-columns: 320px 1fr;
        gap: 24px;
    }
}

@media (max-width: 899px) {
    /* Mobile Header & Drawer */
    .dk-mobile-menu-toggle {
        display: flex;
    }
    .dk-desktop-nav, .dk-desktop-user-menu {
        display: none !important;
    }

    /* Dashboard mobile */
    .dk-dash-hero {
        padding: 28px 0 20px;
    }
    .dk-dash-title {
        font-size: 1.7rem;
        padding: 0 8px;
    }
    .dk-dash-subtitle {
        font-size: 0.90rem;
        margin-bottom: 18px;
        padding: 0 8px;
    }
    .dk-dash-stats-bar {
        padding: 8px 16px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .dk-grid-trips {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Single Trip Mobile Split */
    .dk-adventure-split-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dk-adv-left {
        position: static;
    }
    .dk-post-title {
        font-size: 1.8rem;
    }
    .dk-post-sub {
        font-size: 0.95rem;
    }
    .dk-post-metrics-bar {
        gap: 12px 18px;
        padding: 12px 16px;
    }
    .dk-day-block {
        flex-direction: column;
        gap: 10px;
    }
    .dk-day-card {
        padding: 18px 16px;
    }
    .dk-single-day-body {
        padding: 22px 16px;
    }
    .dk-single-day-title {
        font-size: 1.6rem;
    }
    .dk-day-gallery-wrap {
        grid-template-columns: 1fr;
    }

    /* Mobile Admin Matrix Transformation */
    .dk-desktop-table-wrap {
        display: none;
    }
    .dk-mobile-user-cards-list {
        display: flex;
    }
    .dk-admin-title {
        font-size: 1.7rem;
    }
    .dk-admin-stats-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        gap: 8px;
    }
    .dk-admin-stats-bar .dk-stat-divider {
        display: none;
    }
    .dk-admin-card {
        padding: 18px 14px;
    }

    /* Baby Timeline Mobile Alignment */
    .dk-baby-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .dk-baby-hero-title {
        font-size: 1.8rem;
    }
    .dk-baby-circle-badge {
        margin: 0 auto;
    }
    .dk-timeline-sage::before {
        left: 20px !important;
    }
    .dk-tl-item-sage {
        width: 100% !important;
        left: 0 !important;
        right: auto !important;
        padding-left: 48px !important;
        padding-right: 0 !important;
        margin-bottom: 26px;
    }
    .dk-tl-item-sage.right {
        left: 0 !important;
    }
    .dk-tl-marker-sage {
        left: 11px !important;
        right: auto !important;
    }
    .dk-tl-card-sage {
        border-radius: 16px;
    }
    .dk-tl-card-main {
        padding: 18px 16px;
    }
    .dk-tl-heading {
        font-size: 1.2rem;
    }
    .dk-tl-content-split {
        flex-direction: column;
        gap: 16px;
    }
    .dk-tl-polaroids-row {
        justify-content: center;
        gap: 10px;
    }
    .dk-sage-polaroid {
        width: 120px;
        padding: 6px 6px 16px;
    }
    .dk-tl-comments-bar {
        padding: 14px 16px;
    }
    .dk-comment-bubble-item {
        font-size: 0.82rem;
    }

    /* Editor mobile */
    .dk-editor-card {
        padding: 18px 14px;
    }
    .dk-input-title {
        font-size: 1.15rem;
        padding: 10px 12px;
    }
    .dk-day-number-row {
        flex-direction: column;
        gap: 8px;
    }
    .dk-day-index-col {
        width: 100%;
    }
    .dk-meta-grid-2col {
        grid-template-columns: 1fr;
    }
    .dk-container {
        padding: 0 16px;
    }
}

/* ==========================================================================
   BABY DIARY & MEILENSTEINE TIMELINE (DESKTOP & UNIVERSAL)
   ========================================================================== */
.dk-baby-page {
    padding-bottom: 80px;
    background: #fdfbf7;
}
.dk-baby-hero-banner {
    background: linear-gradient(135deg, #f7f3ea 0%, #ebe3d5 100%);
    border-bottom: 1px solid #e2ddd4;
    padding: 40px 0 36px;
    margin-bottom: 36px;
}
.dk-baby-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.dk-baby-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e2d;
    margin: 0;
    line-height: 1.25;
}
.dk-baby-circle-badge {
    background: #ffffff;
    border: 2px solid #cbd5b8;
    border-radius: 50%;
    width: 96px;
    height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.dk-lock-icon-svg {
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 2px;
}
.dk-lock-badge-text {
    font-size: 0.62rem;
    font-weight: 700;
    color: #4a5d4e;
    line-height: 1.15;
    text-transform: uppercase;
}
.dk-btn-add-milestone {
    display: inline-flex;
    align-items: center;
    background: #4a6b53;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.90rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(74, 107, 83, 0.3);
    transition: all 0.2s ease;
}
.dk-btn-add-milestone:hover {
    background: #3c5743;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Central Sage Timeline Structure */
.dk-timeline-sage {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
    padding: 20px 0;
}
.dk-timeline-sage::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #cbd5b8;
    transform: translateX(-50%);
    border-radius: 3px;
}
.dk-tl-item-sage {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    box-sizing: border-box;
}
.dk-tl-item-sage.left {
    left: 0;
    padding-right: 36px;
}
.dk-tl-item-sage.right {
    left: 50%;
    padding-left: 36px;
}

/* Timeline Node Marker */
.dk-tl-marker-sage {
    position: absolute;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a6b53;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px #cbd5b8;
    z-index: 5;
}
.dk-tl-item-sage.left .dk-tl-marker-sage {
    right: -9px;
}
.dk-tl-item-sage.right .dk-tl-marker-sage {
    left: -9px;
}

/* Card Styling */
.dk-tl-card-sage {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e6e2d8;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dk-tl-card-sage:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.08);
}
.dk-tl-card-main {
    padding: 24px;
}
.dk-tl-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.dk-tl-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2d20;
    margin: 0;
    line-height: 1.3;
}
.dk-tl-pill-date {
    background: #eef2e6;
    color: #4a6b53;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid #dbe4cc;
}
.dk-tl-content-split {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.dk-tl-content-split.has-multi-photos {
    flex-direction: column;
    gap: 14px;
}
@media (min-width: 768px) {
    .dk-tl-content-split.has-single-photo {
        flex-direction: row;
    }
}

/* Polaroids */
.dk-tl-polaroids-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.dk-sage-polaroid {
    width: 105px;
    background: #ffffff;
    padding: 6px 6px 12px;
    border: 1px solid #e2ddd4;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.dk-sage-polaroid:hover {
    transform: scale(1.06) rotate(0deg) !important;
    z-index: 10;
}
.dk-sage-polaroid img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

/* Meta & Audio */
.dk-tl-meta-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dk-sage-stats-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    width: 100%;
}
.dk-sage-stat-chip {
    background: #f4f6ee;
    border: 1px solid #e1e7d5;
    color: #384d3b;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dk-sage-stat-chip strong {
    color: #1f2d20;
    white-space: nowrap;
}

/* Audio Player */
.dk-sage-audio-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef2e6;
    border: 1px solid #dce4ce;
    border-radius: 12px;
    padding: 8px 12px;
}
.dk-audio-play-btn {
    background: #4a6b53;
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-audio-play-btn:hover {
    background: #3c5743;
}
.dk-audio-waveform-line {
    flex-grow: 1;
    height: 6px;
    background: #d3debf;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}
.dk-audio-progress {
    width: 45%;
    height: 100%;
    background: #4a6b53;
    border-radius: 999px;
}
.dk-audio-timer {
    font-size: 0.76rem;
    font-weight: 700;
    color: #4a6b53;
}

/* Comments Section Bar */
.dk-tl-comments-bar {
    background: #f8f6f0;
    border-top: 1px solid #ede8de;
    padding: 16px 24px;
}
.dk-comments-caption {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #837a6b;
    margin-bottom: 10px;
}
.dk-comment-bubbles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.dk-comment-bubble-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e8e3d8;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.84rem;
}
.dk-comm-avatar {
    width: 26px;
    height: 26px;
    background: #eef5ed;
    color: #2d4a2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.dk-comm-bubble-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dk-comm-author-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #2d4a2b;
    line-height: 1.2;
}
.dk-comm-bubble-text {
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.4;
    word-break: break-word;
}
.dk-comm-heart-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e11d48;
    background: #ffe4e6;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
    margin-top: 2px;
}
.dk-quick-comment-row {
    display: flex;
    gap: 8px;
}
.dk-quick-comment-input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    outline: none;
}
.dk-quick-comment-input:focus {
    border-color: #4a6b53;
}
.dk-btn-heart-send {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-btn-heart-send:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    transform: scale(1.1);
}

/* User Name Link in Header */
.dk-user-name-link {
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dk-user-name-link:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}
.dk-user-name-link strong {
    color: inherit;
    font-weight: 700;
}

/* ==========================================================================
   FRONTEND PROFILE PAGE (STAMMDATEN & PASSWORD EDIT)
   ========================================================================== */
.dk-profile-page {
    padding-bottom: 80px;
    background: #faf8f5;
    min-height: calc(100vh - 160px);
}
.dk-profile-hero {
    background: linear-gradient(180deg, #fffcf7 0%, #f6efe2 100%);
    padding: 44px 0 48px;
    border-bottom: 1px solid #ede5d5;
}
.dk-profile-badge {
    display: inline-block;
    background: var(--dk-reisen-bg);
    color: var(--dk-reisen-text);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid var(--dk-reisen-border);
}
.dk-profile-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 8px;
}
.dk-profile-desc {
    color: var(--dk-text-muted);
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Profile Card Box */
.dk-profile-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--dk-border);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    padding: 32px 28px;
}
.dk-profile-header-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1ede6;
    margin-bottom: 24px;
}
.dk-prof-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.dk-prof-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 6px;
}
.dk-prof-meta-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dk-form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 14px;
}
.dk-form-divider {
    border: none;
    border-top: 1px solid #f1ede6;
    margin: 24px 0;
}
.dk-form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .dk-form-grid-2col {
        grid-template-columns: 1fr;
    }
    .dk-profile-card {
        padding: 20px 16px;
    }
    .dk-profile-title {
        font-size: 1.7rem;
    }
    .dk-profile-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
    .dk-profile-submit-row .dk-btn-login,
    .dk-profile-submit-row .dk-btn-request {
        text-align: center;
        width: 100%;
    }
}

/* Permission Badges in Profile */
.dk-perm-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}
.dk-perm-info-badge.active {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.dk-perm-info-badge.disabled {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    opacity: 0.6;
}
.dk-perm-info-badge.dk-badge-baby.active {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

/* ==========================================================================
   EDITOR: RELIABLE FILE PICKER & VIDEO BLOCK STYLES
   ========================================================================== */
.dk-native-file-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.dk-cover-label-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
}

.dk-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #faf8f5;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 16px;
    transition: all 0.2s ease;
}
.dk-gallery-placeholder:hover {
    background: #f1f5f9;
    border-color: var(--dk-reisen-orange);
}

/* Video Block */
.dk-block-video {
    background: #ffffff;
    border: 1px solid #e2ddd4;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
}
.dk-editor-video-preview {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    background: #0f172a;
}

/* Frontend Video Player in Posts */
.dk-post-video-row {
    margin: 24px 0;
    text-align: center;
}
.dk-post-video {
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    background: #0f172a;
}

/* ==========================================================================
   SENIOR / FOTOBUCH MODE: EINFACHE GROSSANSICHT (OMA & OPA)
   ========================================================================== */

/* Toggle Button in Header (Desktop) */
.dk-btn-senior-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dk-btn-senior-toggle:hover {
    border-color: #059669;
    background: #f0fdf4;
}
.dk-btn-senior-toggle.active {
    background: #ecfdf5;
    border-color: #059669;
    color: #065f46;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}
.dk-senior-state-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 800;
}
.dk-senior-state-badge.active {
    background: #059669;
    color: #ffffff;
}

/* Mobile Drawer Senior Toggle */
.dk-mob-senior-toggle-wrap {
    margin-bottom: 16px;
}
.dk-btn-senior-toggle-mob {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 2px solid #059669;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dk-btn-senior-toggle-mob .dk-senior-icon {
    font-size: 1.6rem;
}
.dk-senior-mob-text {
    flex-grow: 1;
}
.dk-senior-mob-text strong {
    display: block;
    font-size: 0.95rem;
    color: #065f46;
}
.dk-senior-mob-text small {
    display: block;
    font-size: 0.75rem;
    color: #047857;
}

/* Feedback Toast Notification */
.dk-senior-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.90rem;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    display: none;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --------------------------------------------------------------------------
   SENIOR DASHBOARD VIEW LAYOUT
   -------------------------------------------------------------------------- */
.dk-senior-dashboard-view {
    display: none; /* Hidden by default in standard view */
    margin-top: 20px;
}

/* When Senior Mode is ACTIVE: */
body.dk-mode-senior .dk-senior-dashboard-view {
    display: block;
}
/* Only hide complex dashboard elements on homepage */
body.dk-mode-senior .dk-dashboard-wrapper .dk-dash-hero,
body.dk-mode-senior .dk-dashboard-wrapper .dk-dashboard-map-section,
body.dk-mode-senior .dk-dashboard-wrapper .dk-continent-filters,
body.dk-mode-senior .dk-dashboard-wrapper .dk-dash-stats-bar,
body.dk-mode-senior .dk-dashboard-wrapper .dk-search-bar,
body.dk-mode-senior .dk-dashboard-wrapper .dk-filter-header-row,
body.dk-mode-senior .dk-dashboard-wrapper #dk-trips-grid {
    display: none !important;
}

/* Subpages in Senior Mode: Clean, calm and large */
body.dk-mode-senior .dk-reisen-page .dk-worldmap-container,
body.dk-mode-senior .dk-reisen-page .dk-continent-filters,
body.dk-mode-senior .dk-kurztrips-page .dk-worldmap-container,
body.dk-mode-senior .dk-familie-page .dk-worldmap-container {
    display: none !important;
}

/* Subpages Cards Grid in Senior Mode */
body.dk-mode-senior .dk-grid-trips {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 28px !important;
    margin-top: 24px;
}
body.dk-mode-senior .dk-card-title {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
body.dk-mode-senior .dk-card-desc {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #475569 !important;
}
body.dk-mode-senior .dk-reisen-title {
    font-size: 2.2rem !important;
}
body.dk-mode-senior .dk-reisen-desc {
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
}

/* Senior Mode Global Typography & Ease */
body.dk-mode-senior {
    font-size: 18px;
    padding-bottom: 60px; /* Space for sticky bar on mobile */
}
body.dk-mode-senior p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Welcome Card */
.dk-senior-welcome-card {
    background: #fffdf5;
    border: 2px solid #fed7aa;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.dk-senior-welcome-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}
.dk-senior-welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #9a3412;
    margin: 0 0 8px;
}
.dk-senior-welcome-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Big Senior Category Cards */
.dk-senior-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.dk-senior-cat-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid #e2ddd4;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dk-senior-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}
.dk-senior-cat-card.reisen { border-color: var(--dk-reisen-border); }
.dk-senior-cat-card.kurztrips { border-color: var(--dk-kurztrips-border); }
.dk-senior-cat-card.familie { border-color: var(--dk-familie-border); }
.dk-senior-cat-card.baby { border-color: var(--dk-baby-border); }

.dk-senior-cat-img-wrap {
    height: 190px;
    background: #0f172a;
    overflow: hidden;
}
.dk-senior-cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.dk-senior-cat-card:hover .dk-senior-cat-img-wrap img {
    transform: scale(1.05);
}

.dk-senior-cat-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.dk-senior-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
    width: fit-content;
}
.dk-senior-cat-badge.reisen { background: var(--dk-reisen-bg); color: var(--dk-reisen-text); }
.dk-senior-cat-badge.kurztrips { background: var(--dk-kurztrips-bg); color: var(--dk-kurztrips-text); }
.dk-senior-cat-badge.familie { background: var(--dk-familie-bg); color: var(--dk-familie-text); }
.dk-senior-cat-badge.baby { background: var(--dk-baby-bg); color: var(--dk-baby-text); }

.dk-senior-cat-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 6px;
}
.dk-senior-cat-sub {
    font-size: 0.95rem;
    color: var(--dk-text-muted);
    margin: 0 0 16px;
    line-height: 1.4;
}

.dk-senior-cat-btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    margin-top: auto;
}
.dk-senior-cat-btn.reisen { background: var(--dk-reisen-orange); }
.dk-senior-cat-btn.kurztrips { background: var(--dk-kurztrips-green); }
.dk-senior-cat-btn.familie { background: var(--dk-familie-blue); }
.dk-senior-cat-btn.baby { background: var(--dk-baby-sage); }

/* Senior Timeline Section */
.dk-senior-timeline-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 20px;
}
.dk-senior-stories-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dk-senior-story-item {
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid #ede8de;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dk-senior-story-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
    border-color: #cbd5e1;
}
.dk-senior-story-img-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    background: #0f172a;
    overflow: hidden;
}
@media (max-width: 768px) {
    .dk-senior-story-img-wrap {
        height: 210px;
    }
}
.dk-senior-story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.dk-senior-story-item:hover .dk-senior-story-img {
    transform: scale(1.02);
}
.dk-senior-story-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}
.dk-senior-story-badge.reisen { background: var(--dk-reisen-orange); }
.dk-senior-story-badge.kurztrips { background: var(--dk-kurztrips-green); }
.dk-senior-story-badge.familie { background: var(--dk-familie-blue); }
.dk-senior-story-badge.baby { background: var(--dk-baby-sage); }

.dk-senior-story-body {
    padding: 24px;
}
.dk-senior-story-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dk-text-muted);
    margin-bottom: 6px;
}
.dk-senior-story-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dk-text-primary);
    margin: 0 0 10px;
}
.dk-senior-story-desc {
    font-size: 1.08rem;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dk-senior-story-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 1.0rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.dk-senior-story-read-btn.reisen {
    background: var(--dk-reisen-orange) !important;
    color: #ffffff !important;
}
.dk-senior-story-read-btn.kurztrips {
    background: var(--dk-kurztrips-green) !important;
    color: #ffffff !important;
}
.dk-senior-story-read-btn.familie {
    background: var(--dk-familie-blue) !important;
    color: #ffffff !important;
}
.dk-senior-story-read-btn.baby {
    background: var(--dk-baby-sage) !important;
    color: #ffffff !important;
}
.dk-senior-story-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    filter: brightness(1.08);
}
@media (max-width: 768px) {
    .dk-senior-story-read-btn {
        display: flex !important;
        justify-content: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 18px !important;
        font-size: 1.05rem !important;
    }
}

/* --------------------------------------------------------------------------
   SENIOR SINGLE POST ENHANCEMENTS
   -------------------------------------------------------------------------- */
body.dk-mode-senior .dk-single-day-content p {
    font-size: 1.25rem !important;
    line-height: 1.85 !important;
    color: #1e293b !important;
}
body.dk-mode-senior .dk-single-day-title {
    font-size: 2.6rem !important;
    line-height: 1.25 !important;
}

/* Senior Greeting Box in Post */
.dk-senior-greeting-box {
    display: none;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 18px;
    padding: 22px;
    margin-top: 30px;
}
body.dk-mode-senior .dk-senior-greeting-box {
    display: block;
}
.dk-senior-greeting-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.dk-senior-greeting-icon {
    font-size: 2.0rem;
}
.dk-senior-greeting-header strong {
    display: block;
    font-size: 1.15rem;
    color: #065f46;
}
.dk-senior-greeting-header small {
    display: block;
    font-size: 0.85rem;
    color: #15803d;
}
.dk-senior-greeting-input {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.dk-btn-senior-send {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1.0rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dk-btn-senior-send:hover {
    background: #047857;
}

/* Floating Senior Sticky Bar at Bottom (Mobile & Tablet) */
.dk-senior-sticky-bar {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
body.dk-mode-senior .dk-senior-sticky-bar {
    display: flex;
}
.dk-senior-stick-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.dk-senior-stick-btn.prev {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.dk-senior-stick-btn.heart {
    background: #fee2e2;
    color: #e11d48;
}
.dk-senior-stick-btn.next {
    background: var(--dk-reisen-orange);
    color: #ffffff;
}
.dk-senior-stick-btn:active {
    transform: scale(0.96);
}

@media (max-width: 640px) {
    .dk-senior-cat-img-wrap {
        height: 160px;
    }
    .dk-senior-story-img-wrap {
        height: 200px;
    }
    .dk-senior-story-title {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   SUBTLE, COMPACT FOOTER
   ========================================================================== */
.dk-footer {
    background: transparent;
    border-top: 1px solid #f1ede6;
    padding: 16px 0 20px;
    margin-top: 48px;
    font-size: 0.76rem;
    color: #94a3b8;
}
.dk-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.dk-footer-left {
    color: #94a3b8;
    font-size: 0.76rem;
}
.dk-footer-left strong {
    color: #64748b;
    font-weight: 600;
}
.dk-security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-weight: 500;
}

/* ==========================================================================
   ADMIN MEDIA OPTIMIZER & ZERO-LOSS CLEANUP (PAGE-MEDIEN-MANAGER.PHP)
   ========================================================================== */
.dk-admin-media-wrapper {
    min-height: 100vh;
    padding: 36px 0 80px;
    background: #f8fafc;
}
.dk-media-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.dk-back-btn {
    display: inline-block;
    color: var(--dk-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.dk-back-btn:hover {
    color: var(--dk-reisen-orange);
}
.dk-media-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.dk-media-subtitle {
    font-size: 0.94rem;
    color: #64748b;
    margin: 0;
}
.dk-server-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dk-server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

/* Metrics Cards Grid */
.dk-media-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.dk-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dk-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.dk-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.dk-metric-card-green .dk-metric-icon {
    background: #ecfdf5;
    color: #059669;
}
.dk-metric-card-amber .dk-metric-icon {
    background: #fffbeb;
    color: #d97706;
}
.dk-metric-card-blue .dk-metric-icon {
    background: #f0f9ff;
    color: #0284c7;
}
.dk-metric-label {
    font-size: 0.80rem;
    font-weight: 600;
    color: #64748b;
    display: block;
}
.dk-metric-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2px 0;
}
.dk-metric-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    display: block;
}

/* Main Content Card */
.dk-media-main-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
}
.dk-media-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow-x: auto;
}
.dk-tab-btn {
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.94rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.dk-tab-btn:hover {
    color: #0f172a;
}
.dk-tab-btn.active {
    color: var(--dk-reisen-orange);
    border-bottom-color: var(--dk-reisen-orange);
    background: #ffffff;
}

.dk-tab-content {
    display: none;
    padding: 32px;
}
.dk-tab-content.active {
    display: block;
}
.dk-tab-intro h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.dk-tab-intro p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Scan Controls & Progress */
.dk-scan-action-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}
.dk-btn-primary-scan {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1.0rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.20);
}
.dk-btn-primary-scan:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
.dk-btn-primary-scan:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.dk-scan-progress-wrap {
    max-width: 500px;
    margin: 20px auto 0;
}
.dk-progress-bar-bg {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.dk-progress-bar-fill {
    height: 100%;
    background: var(--dk-reisen-orange);
    transition: width 0.3s ease;
}
.dk-progress-status-text {
    margin-top: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
}

/* Tables Breakdown */
.dk-scan-tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .dk-scan-tables-grid {
        grid-template-columns: 1fr;
    }
}
.dk-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}
.dk-table-card-title {
    margin: 0;
    padding: 14px 18px;
    font-size: 0.94rem;
    font-weight: 700;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}
.dk-table-scroll {
    max-height: 360px;
    overflow-y: auto;
}
.dk-media-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.dk-media-table th, .dk-media-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.dk-media-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    position: sticky;
    top: 0;
    z-index: 2;
}
.dk-table-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}

/* Quarantine Box */
.dk-quarantine-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .dk-quarantine-box {
        grid-template-columns: 1fr;
    }
}
.dk-quarantine-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dk-q-icon {
    font-size: 2.2rem;
}
.dk-q-info h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.dk-q-info p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.5;
}
.dk-btn-action-amber {
    background: #d97706;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.90rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-btn-action-amber:hover {
    background: #b45309;
}
.dk-btn-action-amber:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.dk-btn-action-outline {
    background: transparent;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.90rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.dk-btn-action-outline:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

/* WebP Controls */
.dk-webp-control-panel {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    box-sizing: border-box;
}
.dk-quality-selector {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 20px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 14px 18px;
    box-sizing: border-box;
}
.dk-quality-selector label {
    display: block;
    font-size: 0.88rem;
    color: #0369a1;
    margin-bottom: 6px;
}
.dk-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    box-sizing: border-box;
    display: block;
    accent-color: #0284c7;
    height: 8px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .dk-footer {
        padding: 12px 16px 18px;
        margin-top: 32px;
        font-size: 0.70rem;
    }
    .dk-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

/* ==========================================================================
   CREATOR & ADMIN POST ACTION BAR (EDIT & DELETE ON SINGLE POST)
   ========================================================================== */
.dk-creator-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px 16px;
    margin: 18px 0 24px;
    flex-wrap: wrap;
}
.dk-creator-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}
.dk-btn-creator-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dk-btn-creator-edit:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
.dk-btn-creator-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dk-btn-creator-delete:hover {
    background: #fecaca;
}

/* -------------------------------------------------------------------------
   PHOTO JOURNAL & ALBUM GRID (3 Columns side-by-side like screenshot)
   ------------------------------------------------------------------------- */
.dk-post-gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}
.dk-post-gallery-row br,
.dk-baby-milestone-stat-box br {
    display: none !important;
}

/* 1 Single Photo: Full Width Clean Display */
.dk-post-gallery-row.dk-gallery-count-1,
.dk-post-gallery-row:has(> :only-child) {
    grid-template-columns: 1fr;
}
.dk-post-gallery-row.dk-gallery-count-1 .dk-gallery-img,
.dk-post-gallery-row:has(> :only-child) .dk-gallery-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
}

/* 2 Photos: 50 / 50 Split */
.dk-post-gallery-row.dk-gallery-count-2,
.dk-post-gallery-row:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}
.dk-post-gallery-row.dk-gallery-count-2 .dk-gallery-img,
.dk-post-gallery-row:has(> :nth-child(2):last-child) .dk-gallery-img {
    height: 300px;
    aspect-ratio: 4 / 3;
}

/* 3+ Photos: Uniform 3-Column Album Grid */
.dk-gallery-img {
    width: 100%;
    height: 250px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
    cursor: pointer;
    background: #f1f5f9;
    display: block;
}
.dk-gallery-img:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.dk-gallery-caption {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: -8px;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

/* Mobile responsive (3 columns on tablets, 3 compact columns on phones) */
@media (max-width: 640px) {
    .dk-post-gallery-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin: 14px 0;
    }
    .dk-gallery-img {
        height: 130px;
        aspect-ratio: 4 / 5;
        border-radius: 6px;
    }
    .dk-post-gallery-row.dk-gallery-count-2,
    .dk-post-gallery-row:has(> :nth-child(2):last-child) {
        grid-template-columns: 1fr 1fr;
    }
    .dk-post-gallery-row.dk-gallery-count-2 .dk-gallery-img,
    .dk-post-gallery-row:has(> :nth-child(2):last-child) .dk-gallery-img {
        height: 160px;
        aspect-ratio: 4 / 3;
    }
    .dk-post-gallery-row.dk-gallery-count-1,
    .dk-post-gallery-row:has(> :only-child) {
        grid-template-columns: 1fr;
    }
    .dk-post-gallery-row.dk-gallery-count-1 .dk-gallery-img,
    .dk-post-gallery-row:has(> :only-child) .dk-gallery-img {
        height: auto;
        max-height: 280px;
        aspect-ratio: 16 / 10;
        border-radius: 8px;
    }
}

/* -------------------------------------------------------------------------
   TRIP HIGHLIGHTS & TIPS SIDEBAR WIDGET
   ------------------------------------------------------------------------- */
.dk-trip-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.22);
    border-color: #facc15 !important;
}

/* ==========================================================================
   FULLSCREEN PHOTO GALLERY LIGHTBOX WITH SWIPE & KEYBOARD NAV
   ========================================================================== */
.dk-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: pan-y;
}
.dk-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: dkFadeIn 0.25s ease;
}
.dk-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.dk-lightbox-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    cursor: grab;
}
.dk-lightbox-stage:active {
    cursor: grabbing;
}
.dk-lightbox-img {
    max-width: 95vw;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
    animation: dkZoomIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dk-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.dk-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.08);
}
.dk-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
}
.dk-lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.dk-lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.dk-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}
.dk-lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}
.dk-lightbox-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
}
.dk-lightbox-counter {
    background: rgba(0, 0, 0, 0.6);
    color: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}
.dk-lightbox-caption {
    color: #e2e8f0;
    font-size: 0.94rem;
    font-style: italic;
    text-align: center;
    max-width: 80%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

@keyframes dkFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes dkZoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .dk-lightbox-prev {
        left: 10px;
        width: 42px;
        height: 42px;
    }
    .dk-lightbox-next {
        right: 10px;
        width: 42px;
        height: 42px;
    }
    .dk-lightbox-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }
    .dk-lightbox-img {
        max-height: calc(100vh - 160px);
    }
}

/* ==========================================================================
   13. GUTENBERG GALLERY & CHILD PAGE STYLING (Auto 3-Column Grid)
   ========================================================================== */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin: 24px 0 !important;
    padding: 0 !important;
}

.wp-block-gallery .wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-gallery .wp-block-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.wp-block-gallery .wp-block-image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.wp-block-gallery .wp-block-image img {
    display: block;
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .wp-block-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin: 16px 0 !important;
    }
    .wp-block-gallery .wp-block-image img {
        height: 125px !important;
        border-radius: 8px !important;
    }
}

/* ==========================================================================
   14. SLEEK ADMIN ACTION PILLS (Day Edit & Delete)
   ========================================================================== */
.dk-day-admin-pills {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dk-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dk-action-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.dk-pill-edit:hover {
    color: #0284c7;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.dk-pill-delete {
    color: #94a3b8;
    background: #ffffff;
}

.dk-pill-delete:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}



