/* =========================================
   1. FRONTEND STYLES (Besucher)
   angepasst an luxury-first.de
   ========================================= */

/* Grundlegender Button Style */
.btn-wrap {
    text-align: center;
    margin: 2.5em 0;
    clear: both;
}

.btn-hi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #000000;
    color: #ffffff !important;
    border: 1px solid #000000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none !important;
    border-radius: 0;
    transition: all 0.2s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.btn-hi:hover {
    background-color: #111111;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    border-color: #111111;
}

/* Affiliate Sternchen */
.pk-affiliate::after,
.btn-hi[href*="amazon"]::after,
.btn-hi[href*="amzn"]::after,
.btn-hi[href*="awin"]::after,
.btn-hi[href*="digidip"]::after,
.btn-hi[href*="linksynergy"]::after,
.btn-hi[href*="breuninger"]::after {
    content: " *";
    font-size: 0.9em;
    margin-left: 2px;
    vertical-align: top;
    display: inline-block;
}

/* --- NEUES GALERIE LAYOUT --- */

/* Haupt-Container: Zentriert alles in Content-Breite */
.cta-gallery-container {
    position: relative;
    max-width: 880px; /* leicht schmaler für Magazin-Look */
    margin: 40px auto;
    padding: 0 48px; /* Platz für Pfeile */
}

/* Der Scroll-Bereich (Track) */
.cta-gallery-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cta-gallery-track::-webkit-scrollbar {
    display: none;
}

/* Die Pfeile (Navigation) */
.cta-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e5e5e5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 18px;
    color: #333333;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.cta-arrow:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.cta-prev { left: 0; }
.cta-next { right: 0; }

/* Auf Handy Pfeile ausblenden – Swipe only */
@media (max-width: 768px) {
    .cta-gallery-container {
        padding: 0;
        margin: 30px auto;
    }
    .cta-arrow {
        display: none;
    }
}

/* --- DESIGN DER KARTE --- */
.cta-card {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: center;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 0; /* kantiger, wie das Magazin */
    padding: 16px 16px 18px;
    text-align: left; /* magaziniger als komplett zentriert */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
    border-color: #d8d8d8;
}

.cta-card-img-wrap {
    width: 100%;
    margin-bottom: 14px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cta-card:hover .cta-card-img {
    transform: scale(1.04);
}

.cta-card-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    margin: 2px 0 14px 0;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Optional: kleine Meta-Zeile oben oder unten im Card-Content */
.cta-card-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #999999;
    margin-bottom: 6px;
}

.cta-card .btn-hi {
    width: 100%;
    font-size: 11px;
    letter-spacing: 0.14em;
    justify-content: center;
}

/* Mobile Optimierung */
@media (max-width: 480px) {
    .cta-card {
        flex: 0 0 78%;
        max-width: 78%;
        padding: 14px 14px 16px;
    }
}

/* =========================================
   2. ADMIN STYLES (Popup) – clean & hell
   ========================================= */

.img-preview-box {
    width: 100%;
    height: 200px;
    background-color: #fafafa;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

.img-preview-box:hover {
    border-color: #cfcfcf;
    background-color: #f2f2f2;
}

.img-preview-box.has-image {
    border-style: solid;
    border-width: 1px;
    background-color: #ffffff;
    border-color: #e3e3e3;
}

.placeholder-content {
    text-align: center;
    color: #888888;
    pointer-events: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
}

#cta-visual-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.overlay-actions {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.92);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.img-preview-box.has-image:hover .overlay-actions {
    display: flex;
}

.btn-action {
    padding: 7px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-edit { color: #333333; }
.btn-delete { color: #b33939; border-color: #f2b8a4; background: #fff6f3; }

/* Buttons in der Liste unten */
.button-link-edit:hover { 
    background-color: #f5f5f5 !important; 
}

.button-link-delete:hover { 
    background-color: #ffe7e7 !important; 
}