/* =========================================================
   INDEX.CSS – Startseite CEFAMEX
   Sauber, modern, exakt wie vorher, ohne globale Konflikte
========================================================= */

/* -------------------------------
   1) HERO IMAGE
--------------------------------*/
.hero-image-container {
    max-width: 1300px;
    margin: 0 auto 10px;
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 70%;
    margin-top: 80px;
    margin: 80px auto 10px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
    cursor: pointer;
}

/* -------------------------------
   2) HERO CLAIM
--------------------------------*/
.hero-claim {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-700);
    font-family: inherit;
    margin-top: 10px;
    margin-bottom: 60px;
}

/* -------------------------------
   3) STATS BANNER
--------------------------------*/
.stats-banner {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin: -20px auto 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
    flex: 1 1 150px;
    min-width: 150px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

/* -------------------------------
   4) CREDENTIALS SECTION
--------------------------------*/
.credentials-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    text-align: center;
    padding: 50px 40px;
    margin: 50px auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    max-width: 1300px;
}

.credentials-section h2 {
    margin-bottom: 10px;
}

.credentials-intro {
    color: var(--gray-700);
    margin-bottom: 35px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.credential-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 36px 24px;
    transition: 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 320px;
    margin: 0 auto;
    box-sizing: border-box;
}

.credential-card:hover {
    transform: translateY(-6px);
    border-color: #0066cc;
    box-shadow: 0 10px 28px rgba(0, 102, 204, 0.12);
}

/* ICONS für Credentials */
.credential-icon {
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
}

.credential-icon svg {
    width: 60px;
    height: 60px;
    stroke: #0066cc;
}

.credential-card h3,
.credential-card p {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* -------------------------------
   5) BESCHREIBUNG
--------------------------------*/
.beschreibung {
    background: #fff;
    padding: 0px 60px 50px 60px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin: 20px auto 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    max-width: 1300px;
    line-height: 1.7;
}

.beschreibung h2 {
    margin-top: 30px;
}

.beschreibung .ergebnis {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #0066cc;
    border-radius: 12px;
    padding: 16px 24px;
    margin: 30px 0 30px 20px;
    max-width: 900px;
    transition: 0.3s ease;
}

.beschreibung .ergebnis:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    transform: translateX(5px);
}

/* Wrapper für jeden thematischen Block */
.einzug-block {
    margin: 25px 0;
    padding: 0;
    border-left: none;
    /* frühere graue Linie entfällt */
}

/* 1x Einzug – Zwischenüberschrift */
.einzug-titel {
    margin-left: 25px;
    /* entspricht der Position der alten Linie */
    font-weight: 600;
    margin-top: 15px;
}


.einzug-liste {
    margin-left: 50px;
    padding-left: 20px;
    margin-bottom: 20px;
}

.beschreibung p.ergebnis {
    margin-top: 20px;
    margin-bottom: 50px;
}

/* ===========================
  5) KARTEN – SAUBERE VERSION
=========================== */
/* ===========================
  5) KARTEN – GRID SYSTEM
=========================== */
.karten-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1300px;
    margin: 50px auto 60px;
}

.karte {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: 0.3s ease;
}

.karte:hover {
    transform: translateY(-8px);
    border-color: #0066cc;
}

.karten-bild {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
}

.karten-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.karte h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 8px;
    color: #1e293b;
}

.karte p {
    font-size: 0.95rem;
    color: #475569;
}

/* Breakpoints */
@media (max-width: 1100px) {
    .karten-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .karten-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .karten-container {
        grid-template-columns: 1fr;
    }
}

/* Bild in den Karten */
.karten-bild {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
}

.karte h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 8px;
    line-height: 1.3;
    color: #1e293b;
}

.karte p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.karten-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.karte:hover h3 {
    color: #0066cc;
}

/* -------------------------------
   7) IMAGE STATEMENT
--------------------------------*/
.image-statement {
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.image-statement img {
    display: block;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
}

.image-caption {
    font-family: "Architects Daughter", cursive;
    background: #e0f2fe;
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 40px;
    padding: 18px 26px;
    font-size: 1.9rem;
    color: #0055aa;
    display: inline-block;
    max-width: 900px;
    width: 90%;
    line-height: 1.4;
}

/* -------------------------------
   8) CONSULT SECTION
--------------------------------*/
.consult-section {
    max-width: 1300px;
    margin: 0 auto;
}

.consult-container {
    background: #fff;
    border-radius: 16px;
    padding: 50px 60px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.consult-image img {
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: 0.3s ease;
}

.consult-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.consult-headline {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
}

.consult-sub {
    display: inline-flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 8px;
    gap: 10px;
    padding-bottom: 6px;
    position: relative;
    cursor: pointer;
}

.consult-sub::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #0099ff);
    border-radius: 2px;
}

.phone-number {
    display: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    margin-top: 10px;
}

.phone-number.show {
    display: block;
}

.consult-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #cfe8ff;
}

.consult-morelinks {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding-left: 0px;
    padding-right: 0px;
    text-align: left;
    font-size: 1.05rem;
}

.consult-morelinks a {
    color: #0066cc;
    font-weight: 600;
}

.consult-morelinks a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {

    .hero-claim {
        font-size: 1rem;
    }

    .stats-banner {
        gap: 30px;
        padding: 30px 20px;
        margin: -10px auto 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .credentials-section {
        padding: 40px 24px;
    }

    .beschreibung {
        padding: 32px 28px;
        margin: 30px auto;
    }

    .karte {
        width: 90%;
        max-width: 340px;
        padding: 28px 20px;
    }

    .image-caption {
        font-size: 1.5rem;
        padding: 22px 28px;
    }

    .consult-container {
        padding: 40px 24px;
        flex-direction: column;
        text-align: center;
    }

    .consult-image img {
        width: 80%;
        margin: 0 auto;
    }

    .phone-number {
        display: none;
        font-size: 1.2rem;
        font-weight: 700;
        color: #0066cc;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .phone-number.show {
        display: block;
    }
}

@media (max-width: 600px) {

    .image-caption {
        font-size: 1.3rem;
    }

    .consult-footer {
        flex-direction: column;
        text-align: center;
    }
}