﻿/* ============================================================
   CDL Dashboard – 2026 Clean App Style
   ============================================================ */

/* ============================================================
   ROOT WRAPPER
   ============================================================ */

.cdl-dash {
    padding-bottom: 90px;
    overflow-x: hidden;
    max-width: 100%;
}

.cdl-dash-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 18px 0 18px;
    overflow-x: hidden;
}

/* ============================================================
   HERO
   ============================================================ */

.cdl-dash-hero {
    width: 100%;
    padding-top: 18px;
}

.cdl-dash-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 26px;
    background: radial-gradient(ellipse at 80% 50%, rgba(184,134,82,0.07) 0%, transparent 60%), rgba(255,255,255,0.70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.6);
    display: grid;
    grid-template-columns: 72px 1fr 44px;
    gap: 16px;
    align-items: center;
}

.cdl-dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border: 2px solid rgba(184,134,82,0.22);
    transition: transform .2s;
}

    .cdl-dash-avatar:hover {
        transform: scale(1.05);
    }

@media (max-width: 767px) {
    .cdl-dash-hero__inner {
        grid-template-columns: 52px 1fr 44px;
        gap: 12px;
        padding: 12px 14px;
    }

    .cdl-dash-avatar {
        width: 48px;
        height: 48px;
    }
}
.cdl-dash-hero__meta {
    min-width: 0;
}

.cdl-dash-hello {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
}

.cdl-dash-sub {
    color: rgba(0,0,0,0.55);
    font-weight: 600;
}




/* ============================================================
   CONTEXT PILLS
   ============================================================ */

.cdl-dash-context {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.cdl-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.88);
    font-weight: 800;
    cursor: pointer;
    transition: 0.16s ease;
}

    .cdl-context-pill:hover {
        background: rgba(255,255,255,0.92);
    }

    .cdl-context-pill.is-active {
        background: rgba(184,134,82,0.14);
        border-color: rgba(184,134,82,0.25);
    }


/* ============================================================
   GRID + CARDS
   ============================================================ */

.cdl-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.cdl-dash-grid--hero {
    grid-template-columns: 1fr;
}

.cdl-dash-grid--tertiary {
    opacity: 0.82;
}

/*.cdl-card {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.65);
    transition: 0.18s ease;
}

    .cdl-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 55px rgba(0,0,0,0.08);
    }
*/
.cdl-card--hero {
    padding: 26px;
}



/* ============================================================
   LOCKED OVERLAY
   ============================================================ */

.cdl-locked {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {

    .cdl-dash-wrap {
        padding-left: 0;
        padding-right: 0;
    }

    .cdl-dash-hero__inner {
        grid-template-columns: 84px 1fr;
        grid-template-areas:
            "avatar meta";
    }

    .cdl-dash-avatar {
        width: 72px;
        height: 72px;
    }

    .cdl-dash-hello {
        font-size: 1.25rem;
    }

    .cdl-dash-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cdl-card,
    .cdl-card--hero {
        padding: 18px;
        border-radius: 20px;
    }

}

@media (max-width: 767px) {

    /* FIX 2 — Hero compact */
    .cdl-dash-hero {
        padding-top: 10px;
    }

    .cdl-dash-hero__inner {
        grid-template-columns: 56px 1fr;
        padding: 12px;
        gap: 10px;
    }

    .cdl-dash-avatar {
        width: 48px;
        height: 48px;
    }

    .cdl-dash-hello {
        font-size: 1rem;
    }

    .cdl-dash-hero__meta .cdl-meta {
        font-size: 12px;
        gap: 8px;
    }

    /* FIX 1 — Pills compact + horizontal scroll */
    .cdl-dash-context {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        margin: 12px 0;
        padding-bottom: 4px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .cdl-dash-context::-webkit-scrollbar {
        display: none;
    }

    .cdl-context-pill {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 13px;
        gap: 6px;
    }

}



/* ============================================================
   PREMIUM BOOKING SECTION – 2026 SaaS
   ============================================================ */

.cdl-section {
    margin-bottom: 10px;
}

.cdl-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cdl-section-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.cdl-section-sub {
    font-size: .85rem;
    color: rgba(0,0,0,0.55);
    margin-top: 4px;
}

.cdl-link-gold {
    color: #b88652;
    font-weight: 700;
    text-decoration: none;
}

    .cdl-link-gold:hover {
        text-decoration: underline;
    }

/* ================= GRID ================= */

.cdl-booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

/* ================= CARD ================= */

.cdl-booking-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: .22s ease;
    min-height: 140px;
}

    .cdl-booking-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.08);
        border-color: rgba(184,134,82,0.35);
    }

/* ================= CONTENT ================= */

.cdl-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cdl-subject-badge {
    font-size: .75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
}

.cdl-date {
    font-size: .8rem;
    font-weight: 700;
    color: rgba(0,0,0,0.55);
}
.cdl-time {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.cdl-meta {
    font-size: .85rem;
    color: rgba(0,0,0,0.6);
    margin-bottom: 4px;
}

.cdl-meta-label {
    font-weight: 700;
    color: rgba(0,0,0,0.7);
    margin-right: 4px;
}


.cdl-comment {
    font-size: .8rem;
    color: rgba(0,0,0,0.6);
    background: rgba(0,0,0,0.03);
    padding: 6px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.cdl-booking-footer {
    margin-top: auto;
    font-size: .9rem;
    font-weight: 800;
    color: #a07040;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .cdl-booking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .cdl-booking-grid {
        grid-template-columns: 1fr;
    }
}



.cdl-section--dashboard {
    padding: 1.25rem 0;
}

.cdl-booking-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(184,134,82,0.4);
    font-weight: 700;
    font-size: .9rem;
    color: #b88652;
    transition: all .18s ease;
}

.cdl-booking-card:hover .cdl-booking-cta {
    background: rgba(184,134,82,0.08);
    border-color: rgba(184,134,82,0.7);
}

.cdl-booking-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

.cdl-booking-date-head {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b88652;
    margin-bottom: 4px;
}

    .cdl-booking-date-head.is-today {
        background: rgba(184,134,82,0.12);
        padding: 4px 10px;
        border-radius: 999px;
        display: inline-block;
    }

.cdl-booking-relative {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b88652;
    margin-bottom: 6px;
}

    .cdl-booking-relative.is-today {
        background: rgba(184,134,82,0.12);
        padding: 4px 10px;
        border-radius: 999px;
        display: inline-block;
    }

.cdl-booking-time-main {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cdl-booking-subject {
    margin-bottom: 8px;
}

@media (max-width: 576px) {
    .cdl-booking-card {
        padding: 14px 16px;
    }
}

@media (max-width: 576px) {
    .cdl-card--dashboard {
        padding: 16px;
    }
}



/* ============================= */
/* TIME CREDIT TILE             */
/* ============================= */

.cdl-timecredit-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.cdl-timecredit-unit {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(0,0,0,.6);
    margin-left: 6px;
}

.cdl-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    margin-bottom: 16px;
    overflow: hidden;
}

.cdl-progress-bar {
    height: 100%;
    background: linear-gradient( 90deg, rgba(184,134,82,1), rgba(184,134,82,0.6) );
    border-radius: inherit;
    transition: width .4s ease;
}

.cdl-timecredit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cdl-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 18px 0;
}

.cdl-warning {
    font-weight: 700;
    color: #b88652;
}

.cdl-booking-cta--soft {
    opacity: .75;
}


/* ============================= */
/* PURCHASE TILE                 */
/* ============================= */

.cdl-purchase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.cdl-kpi {
    background: rgba(184,134,82,0.08);
    border: 1px solid rgba(184,134,82,0.20);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.cdl-kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
}

.cdl-kpi-label {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(0,0,0,.55);
}

.cdl-warning-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,193,7,0.15);
    color: #b88652;
    font-weight: 700;
    font-size: .8rem;
    margin-bottom: 12px;
}

.cdl-purchase-footer {
    margin-top: 6px;
}



/* ============================================================
   SCHEDULE – CLEAN 2026 ROW STYLE (FINAL)
   ============================================================ */

.cdl-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ROW */
.cdl-schedule-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 22px rgba(0,0,0,.04);
    text-decoration: none;
    color: inherit;
    transition: .15s ease;
}

    .cdl-schedule-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(0,0,0,.07);
        border-color: rgba(184,134,82,.25);
    }

/* LEFT (Date + Time) */
.cdl-schedule-left {
    flex: 0 0 115px;
}

.cdl-schedule-rel {
    font-size: .99rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b88652; /* CDL Gold */
    margin-bottom: 3px;
}

.cdl-schedule-row.is-today .cdl-schedule-rel {
    background: rgba(184,134,82,.12);
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-block;
}

.cdl-schedule-time {
    font-size: 1rem;
    font-weight: 900;
    color: #222;
}

/* MIDDLE */
.cdl-schedule-mid {
    flex: 1;
    min-width: 0;
}

.cdl-schedule-titleline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cdl-schedule-title {
    font-weight: 800;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdl-schedule-sub {
    font-size: .85rem;
    color: rgba(0,0,0,.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdl-schedule-meta {
    font-size: .82rem;
    color: rgba(0,0,0,.55);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    /* Online Icon */
    .cdl-schedule-meta i.bi-globe2 {
        color: #0d6efd;
    }

/* RIGHT */
.cdl-schedule-right {
    flex: 0 0 auto;
}

.cdl-schedule-cta {
    font-weight: 800;
    font-size: .9rem;
    color: #b88652;
}

/* PILL */
.cdl-pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 900;
    border: 1px solid rgba(0,0,0,.06);
}

.cdl-pill-course {
    background: rgba(25,135,84,.12);
    color: #198754;
}

.cdl-pill-booking {
    background: rgba(13,202,240,.12);
    color: #0dcaf0;
}


/* ============================================================
   SCHEDULE – MOBILE FINAL CLEAN VERSION
   ============================================================ */

@media (max-width: 576px) {

    .cdl-schedule-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
        border-radius: 14px;
        position: relative;
    }

    /* Datum + Zeit */
    .cdl-schedule-left {
        flex: none !important;
        width: 100% !important;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cdl-schedule-rel {
        font-size: .99rem; /* größer */
        font-weight: 900;
        color: #b88652;
        margin: 0;
    }

    .cdl-schedule-time {
        font-size: .9rem;
        font-weight: 800;
        margin: 0;
        color: #222;
    }

    /* Titel */
    .cdl-schedule-mid {
        width: 100%;
    }

    .cdl-schedule-title {
        font-size: 1rem;
        font-weight: 800;
        margin: 0;
        line-height: 1.3;
        white-space: normal;
    }

    .cdl-schedule-sub,
    .cdl-schedule-meta {
        font-size: .82rem;
        margin-top: 3px;
        white-space: normal;
    }

    /* CTA nach unten */
    .cdl-schedule-right {
        position: static !important;
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(0,0,0,.06);
        display: flex;
        justify-content: flex-end;
    }

    .cdl-schedule-cta {
        font-size: .85rem;
        font-weight: 800;
        color: #b88652;
    }

    /* Touch-Feedback */
    .cdl-schedule-row:active {
        transform: scale(0.98);
    }
}

.cdl-schedule-row--primary {
    padding: 18px;
    border: 1px solid rgba(184,134,82,.35);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

    .cdl-schedule-row--primary .cdl-schedule-title {
        font-size: 1.05rem;
        font-weight: 900;
    }

.cdl-schedule-row--secondary {
    opacity: 0.85;
}

/* ============================================================
   TABS FÜR FILTER IN SCHEDULE INDEX
   ============================================================ */


/* ============================================================
   SCHEDULE FILTER PILLS – PREMIUM VERSION
   ============================================================ */

.cdl-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    text-decoration: none;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
    color: #333;
    transition: all .18s ease;
}

    .cdl-tab:hover {
        background: rgba(184,134,82,.12);
        border-color: rgba(184,134,82,.25);
        color: #b88652;
    }

    .cdl-tab.is-active {
        background: rgba(184,134,82,.18);
        border: 1px solid rgba(184,134,82,.4);
        color: #b88652;
        box-shadow: 0 6px 18px rgba(184,134,82,.18);
    }

/* ============================================================
   PAST ACCORDION
   ============================================================ */

.cdl-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    transition: .18s ease;
}

    .cdl-accordion-toggle:hover {
        background: rgba(184,134,82,.12);
        border-color: rgba(184,134,82,.25);
        color: #b88652;
    }

.cdl-section-heading {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(0,0,0,.6);
    margin-bottom: 12px;
}

/* ============================================================
   PAGE HEADER – COMPACT SaaS VERSION
   ============================================================ */

.cdl-page-header {
    margin-bottom: 28px;
}

.cdl-page-header-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.cdl-page-title {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

.cdl-page-sub {
    margin-top: 6px;
    font-size: .95rem;
    color: rgba(0,0,0,.55);
}

.cdl-page-back {
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    color: #b88652;
    transition: .15s ease;
}

    .cdl-page-back:hover {
        text-decoration: underline;
    }



