/**
 * CockpitOS CM-Immo Theme - CM-Immo Components
 * 
 * Globale CM-Immo Style Komponenten mit dynamischen Branding-Farben
 * Wiederverwendbare Design-Elemente für konsistentes Look & Feel
 * 
 * @package CockpitOS_CM_Immo_Theme
 * @version 2.0.8
 */

/* ═══════════════════════════════════════════════════════════
   CM CARD (Globale Card-Komponente)
   ═══════════════════════════════════════════════════════════ */

.cm-card {
    background: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--color-accent-pink-rgb, 252, 228, 236), 0.1) 100%);
    border-radius: var(--radius-2xl, 32px);
    padding: var(--spacing-6, 2rem);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb, 218, 32, 50), 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(var(--color-primary-rgb, 218, 32, 50), 0.12);
}

.cm-card--gradient {
    background: linear-gradient(135deg, var(--color-accent-pink, #fce4ec) 0%, #ffffff 100%);
}

.cm-card--beige {
    background: linear-gradient(135deg, var(--color-accent-beige, #faf3e0) 0%, #ffffff 100%);
}

.cm-card--cream {
    background: linear-gradient(135deg, var(--color-cream, #fdf6e9) 0%, #ffffff 100%);
}

/* Card Content */
.cm-card__title {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary, #da2032);
    margin-bottom: var(--spacing-md, 1rem);
    line-height: 1.3;
}

.cm-card__subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary, #F25363);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm, 0.5rem);
}

.cm-card__text {
    color: var(--color-gray-700, #334155);
    line-height: 1.6;
    margin-bottom: var(--spacing-md, 1rem);
}

/* ═══════════════════════════════════════════════════════════
   CM BADGE (Status/Label Badge)
   ═══════════════════════════════════════════════════════════ */

.cm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full, 999px);
    background: linear-gradient(135deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb, 242, 83, 99), 0.3);
    transition: all 0.3s ease;
}

.cm-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--color-secondary-rgb, 242, 83, 99), 0.4);
}

.cm-badge--primary {
    background: var(--color-primary, #da2032);
}

.cm-badge--secondary {
    background: var(--color-secondary, #F25363);
}

.cm-badge--outline {
    background: transparent;
    border: 2px solid var(--color-secondary, #F25363);
    color: var(--color-secondary, #F25363);
    box-shadow: none;
}

.cm-badge--star::before {
    content: "⭐";
    margin-right: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   CM IMAGE (Rounded Images mit Border)
   ═══════════════════════════════════════════════════════════ */

.cm-image {
    border-radius: var(--radius-2xl, 32px);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb, 218, 32, 50), 0.1);
    transition: all 0.3s ease;
}

.cm-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(var(--color-primary-rgb, 218, 32, 50), 0.15);
}

.cm-image--circle {
    border-radius: 50%;
}

.cm-image--bordered {
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb, 218, 32, 50), 0.15);
}

.cm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   CM SECTION HEADER (Eyebrow + Title + Subtitle)
   ═══════════════════════════════════════════════════════════ */

.cm-section-header {
    text-align: center;
    margin-bottom: var(--spacing-8, 3rem);
}

.cm-section-header--left {
    text-align: left;
}

.cm-section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary, #F25363);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm, 0.5rem);
}

.cm-section-title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary, #da2032);
    line-height: 1.2;
    margin-bottom: var(--spacing-md, 1rem);
}

.cm-section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600, #475569);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.cm-section-header--left .cm-section-subtitle {
    margin-left: 0;
}

/* ═══════════════════════════════════════════════════════════
   CM ICON (Gradient Icon Circles)
   ═══════════════════════════════════════════════════════════ */

.cm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl, 24px);
    background: linear-gradient(135deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb, 242, 83, 99), 0.3);
    transition: all 0.3s ease;
}

.cm-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(var(--color-secondary-rgb, 242, 83, 99), 0.4);
}

.cm-icon--circle {
    border-radius: 50%;
}

.cm-icon--large {
    width: 96px;
    height: 96px;
    font-size: 2.5rem;
}

.cm-icon--small {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   CM LINK (Styled Text Links)
   ═══════════════════════════════════════════════════════════ */

.cm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-secondary, #F25363);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cm-link:hover {
    color: var(--color-secondary-dark, #e03041);
    transform: translateX(4px);
}

.cm-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.cm-link:hover::after {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   CM DECORATOR (Floating Decorative Icons)
   ═══════════════════════════════════════════════════════════ */

.cm-decorator {
    position: absolute;
    font-size: 4rem;
    opacity: 0.1;
    color: var(--color-primary, #da2032);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.cm-decorator--left {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.cm-decorator--right {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.cm-decorator--secondary {
    color: var(--color-secondary, #F25363);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .cm-section-title {
        font-size: 2rem;
    }

    .cm-card {
        padding: var(--spacing-4, 1.5rem);
    }

    .cm-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .cm-decorator {
        font-size: 3rem;
        opacity: 0.05;
    }
}
