/* =====================================================================================
   page-materialien.css – "Materialien" Seite
   ===================================================================================== */

/* ── Fix: Ohne Elementor-JS muss --display explizit gesetzt werden ────────── */
/* Alle äußeren e-con-boxed Sections dieser Seite erhalten display:flex.       */
/* Ohne diesen Fix resolvet var(--display) zu display:inline → Grid/Flex-      */
/* Kinder haben keine Breitenbeschränkung und sprengen das Layout.             */
.elementor-materialien .e-con-boxed {
    --display: flex;
}

.elementor-materialien .e-con-boxed>.e-con-inner {
    display: flex;
    flex-direction: column;
}

/* ── Intro-Sektion ─────────────────────────────────────────────────────── */
.mat-intro {
    --display: flex;
    --flex-direction: column;
    --padding-top: 80px;
    --padding-bottom: 60px;
}

.mat-intro-inner {
    width: 100%;
    text-align: center;
}

.mat-section-label {
    font-family: var(--e-global-typography-e5f7065-font-family, "Syne"), sans-serif;
    font-size: var(--e-global-typography-e5f7065-font-size, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--e-global-color-d79e5ec, #00cea8);
    margin: 0 0 0.5rem;
}

.mat-intro-inner .elementor-heading-title,
.mat-intro-inner h3.elementor-heading-title {
    color: var(--e-global-color-primary, #fff);
    margin-bottom: 1.25rem;
}

.mat-intro-inner .elementor-widget-text-editor p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    max-width: 660px;
    margin: 0 auto 1rem;
}

/* ── Filament-Auswahl-Sektion ──────────────────────────────────────────────── */
.mat-selection {
    --padding-top: 0;
    --padding-bottom: 80px;
}

.mat-selection-head {
    width: 100%;
    margin-bottom: 48px;
    text-align: center;
    flex-direction: column;
}

.mat-selection-head .elementor-heading-title {
    color: var(--e-global-color-primary, #fff);
    margin-bottom: 1rem;
}

.mat-selection-head .elementor-widget-text-editor p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto;
}

/* ── Material Cards Grid ──────────────────────────────────────────────────── */
.mat-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

/* Card */
.mat-card {
    background: var(--e-global-color-secondary, #111318);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.mat-card:hover {
    border-color: rgba(0, 206, 168, 0.4);
    box-shadow: 0 8px 40px rgba(0, 206, 168, 0.12);
    transform: translateY(-4px);
}

/* Card Header */
.mat-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mat-card-icon {
    font-size: 1.5rem;
    color: var(--e-global-color-eabe6c8, #E867EA);
    line-height: 1;
    margin-bottom: 6px;
}

.mat-card-title {
    font-family: var(--e-global-typography-6a75036-font-family, "Syne"), sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--e-global-color-primary, #fff);
    margin: 0;
    letter-spacing: -0.01em;
}

.mat-card-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* Card Description */
.mat-card-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Properties List */
.mat-card-props {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Badges */
.mat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.mat-badge--cyan {
    background: rgba(0, 206, 168, 0.12);
    color: #00cea8;
    border: 1px solid rgba(0, 206, 168, 0.25);
}

.mat-badge--warn {
    background: rgba(232, 103, 234, 0.1);
    color: #E867EA;
    border: 1px solid rgba(232, 103, 234, 0.2);
}

/* Temperature row */
.mat-card-temp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.mat-temp-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.mat-temp-value {
    font-family: var(--e-global-typography-6a75036-font-family, "Syne"), sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #00cea8;
}

/* ── CTA-Button (geteilt mit so-wirds-gemacht) ───────────────────────────── */
.swg-cta-btn-wrap {
    margin-top: 1.5rem;
}

.swg-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--e-global-color-eabe6c8, #E867EA);
    color: #fff !important;
    font-family: var(--e-global-typography-6a75036-font-family, "Syne"), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 4px 18px rgba(232, 103, 234, 0.35);
}

.swg-cta-btn:hover {
    background: #D54AD2;
    box-shadow: 0 6px 24px rgba(232, 103, 234, 0.5);
    transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .mat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .mat-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mat-card {
        padding: 24px 20px;
    }

    .mat-intro {
        --padding-top: 48px;
    }

    .mat-selection {
        --padding-bottom: 48px;
    }
}