/**
 * CockpitOS CM-Immo Theme - Cookie-Style Components
 * 
 * Verantwortlichkeit: Wiederverwendbare UI-Komponenten (Cookie-Mood)
 * DRY Prinzip: Einmal definiert, überall nutzbar
 * 
 * @package CockpitOS_CM_Immo_Theme
 * @version 1.2.0
 */

/* ========================================
   Cookie-Style Card
   ======================================== */

.cm-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(74, 21, 64, 0.08);
    transition: all 0.3s var(--ease-smooth);
}

.cm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(74, 21, 64, 0.15);
}

.cm-card--sm {
    padding: 16px;
    border-radius: 16px;
}

.cm-card--lg {
    padding: 32px;
    border-radius: 24px;
}

.cm-card--pink {
    background-color: #fce4ec;
}

.cm-card--beige {
    background-color: #fef3c7;
}

.cm-card--turquoise {
    background-color: #a7d8de;
}

.cm-card--orange {
    background-color: #fed7aa;
}

/* ========================================
   Cookie-Style Badge
   ======================================== */

.cm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #4a1540;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s var(--ease-smooth);
}

.cm-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Badge Icons werden jetzt via FontAwesome im HTML gerendert */
.cm-badge--star .fa-star,
.cm-badge--new .fa-sparkles,
.cm-badge--sale .fa-fire {
    color: #fbbf24; /* Gold/Gelb für Icons */
    font-size: 14px;
}

/* ========================================
   Cookie-Style Button
   ======================================== */

.cm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: #a7d8de;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family-heading);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 16px rgba(167, 216, 222, 0.4);
}

.cm-button:hover {
    background-color: #4a1540;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 21, 64, 0.4);
}

.cm-button--primary {
    background-color: #4a1540;
    color: #ffffff;
}

.cm-button--primary:hover {
    background-color: #6b1f5b;
}

.cm-button--outline {
    background-color: transparent;
    color: #4a1540;
    border: 2px solid #4a1540;
}

.cm-button--outline:hover {
    background-color: #4a1540;
    color: #ffffff;
}

.cm-button--sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.cm-button--lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* ========================================
   Cookie-Style Section Header
   ======================================== */

.cm-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.cm-section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e85d75;
    margin-bottom: 12px;
}

.cm-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    color: #4a1540;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.cm-section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Cookie-Style Feature List
   ======================================== */

.cm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cm-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.9375rem;
    color: #4b5563;
}

.cm-feature-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4a1540 0%, #a7d8de 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.cm-feature-item--bullet::before {
    content: '•';
    font-size: 1.5rem;
    background: none;
    color: #e85d75;
}

/* ========================================
   Cookie-Style Progress Bar
   ======================================== */

.cm-progress {
    width: 100%;
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 50px;
    overflow: hidden;
}

.cm-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #a7d8de 0%, #e85d75 100%);
    border-radius: 50px;
    transition: width 0.8s var(--ease-smooth);
}

.cm-progress--thick {
    height: 12px;
}

.cm-progress--thin {
    height: 6px;
}

/* ========================================
   Cookie-Style Stat Card
   ======================================== */

.cm-stat-card {
    text-align: center;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(74, 21, 64, 0.08);
    transition: all 0.3s var(--ease-smooth);
}

.cm-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 21, 64, 0.12);
}

.cm-stat-card__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.cm-stat-card__number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    color: #4a1540;
    margin: 0 0 8px 0;
}

.cm-stat-card__label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   Cookie-Style Divider/Separator
   ======================================== */

.cm-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e85d75 50%, transparent 100%);
    margin: 48px 0;
}

.cm-divider--thick {
    height: 2px;
}

.cm-divider--with-icon {
    position: relative;
    height: 1px;
    background-color: rgba(74, 21, 64, 0.1);
}

.cm-divider--with-icon::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    color: #e85d75;
    padding: 0 16px;
    font-size: 1.5rem;
}

/* ========================================
   Cookie-Style Tag
   ======================================== */

.cm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: #fce4ec;
    color: #4a1540;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.25s var(--ease-smooth);
}

.cm-tag:hover {
    background-color: #4a1540;
    color: #ffffff;
    transform: scale(1.05);
}

.cm-tag--turquoise {
    background-color: #a7d8de;
    color: #4a1540;
}

.cm-tag--coral {
    background-color: #fff7ed;
    color: #e85d75;
}

.cm-tag--beige {
    background-color: #fef3c7;
    color: #4a1540;
}

/* ========================================
   Cookie-Style Image (Round)
   ======================================== */

.cm-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s var(--ease-smooth);
}

.cm-image--circle {
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.cm-image:hover {
    transform: scale(1.03);
}

/* ========================================
   Cookie-Style Container/Wrapper
   ======================================== */

.cm-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.cm-container--narrow {
    max-width: 800px;
}

.cm-container--wide {
    max-width: 1400px;
}

/* ========================================
   Cookie-Style Grid
   ======================================== */

.cm-grid {
    display: grid;
    gap: 24px;
}

.cm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.cm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .cm-grid--3,
    .cm-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cm-grid--2,
    .cm-grid--3,
    .cm-grid--4 {
        grid-template-columns: 1fr;
    }
}
