/* =================================================================== */
/* --- Stylesheet für Seite Klaris --- */
/* =================================================================== */

.klaris-page .hero-section {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

/* --- Sektion 1: Intro (Headline + Bild rechts) --- */
.klaris-intro-section .container {
    max-width: 1450px;
    text-align: left;
}
.klaris-intro-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 1.5rem;
}
.klaris-intro-header h2 {
    margin: 0;
    flex-grow: 1;
    max-width: 630px;
    color: #c12d38;
    font-weight: normal;
    font-size: 2.5rem;
}
.klaris-intro-header img {
    max-width: 230px;
    height: auto;
    flex-shrink: 0;
}

section p {
    max-width: 760px;
    font-size: 1.1rem;
}

.section-white.klaris-text-section h2 {
    color: var(--akzentfarbe);
    margin-bottom: 1rem;
}


/* --- Zweifarbige Sektionen (Grau unten) --- */
.two-tone-section {
    position: relative;
    padding: 0;
    background-color: var(--weiss);
}
.two-tone-section .background-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 47.49%; /* Unteres Drittel grau */
    background-color: #dadada;
    z-index: 1;
}
#zweifarbig-2-bg {
    height: 55%;
}

#zweifarbig-2-text {
    max-width: 730px;
}
.two-tone-section .container {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) var(--space-l);
    text-align: center;
}
.two-tone-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: var(--space-m);
    display: inline-block;
}
.two-tone-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom:20px;
    font-size: 1.1rem;
}

/* --- Sektion mit Hintergrundbild --- */
.background-image-section {
    background-size: cover;
    background-position: center;
    padding: var(--space-xl) var(--space-l);
    position: relative;
    color: var(--weiss);
    text-align: left;
    min-height: 40vh;
    height: auto;
}

.background-image-section .container {
    position: relative;
    z-index: 2;
    max-width: 1450px;
    padding-bottom: 2rem;
}
.background-image-section h2 {
    color: var(--weiss);
    margin-bottom: 1rem;
    padding-top: 4.5rem;
    max-width: 600px;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.background-image-section p {
    font-size: 1.1rem;
    color: var(--weiss);

}

/* --- Reine Text-Sektion --- */
.klaris-cards-section {
    background-color: #555654;
}
.klaris-text-section .container {
    max-width: 1450px;
    text-align: left;
}

/* --- Karten Sektion (Vorteile) --- */
.klaris-cards-section .container {
    max-width: 1450px;
}
.klaris-cards-section h2 {
    text-align: left;
    margin-bottom: 3rem;
    color: white;
}
.klaris-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.klaris-card {
    background-color: #6f6e6e;
    color: var(--weiss);
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.klaris-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.klaris-card .plus-icon {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    background-color: var(--weiss);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.klaris-card:hover .plus-icon {
    transform: rotate(90deg);
    background-color: var(--akzentfarbe);
}
.klaris-card:hover .plus-icon svg {
    fill: var(--weiss);
}
.klaris-card .plus-icon svg {
    width: 26px;
    height: 26px;
    fill: #6a6965;
    transition: fill 0.3s ease;
}
.klaris-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.klaris-card:hover .icon-wrapper {
    transform: scale(1.08);
}
.klaris-card .icon-wrapper svg,
.klaris-card .icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    fill: var(--weiss);
    stroke: var(--weiss);
    color: var(--weiss);
}
.klaris-card hr {
    width: 150px;
    height: 2px;
    background-color: var(--akzentfarbe);
    border: none;
    margin: 0 auto 1.5rem auto;
    transition: width 0.3s ease;
}
.klaris-card:hover hr {
    width: 170px;
}
.klaris-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #e0e0e0;
    transition: color 0.3s ease;
}
.klaris-card:hover p {
    color: #ffffff;
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINER DESKTOP (max-width: 1200px) --- */
/* =================================================================== */
@media (max-width: 1200px) {
    .klaris-card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .klaris-card {
        padding: 1.75rem 1rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE TABLETS (max-width: 992px) --- */
/* =================================================================== */
@media (max-width: 992px) {
    .klaris-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .klaris-intro-section .container {
        max-width: 100%;
    }

    .klaris-intro-header h2 {
        max-width: 100%;
    }

    .two-tone-section .container {
        padding: var(--space-l) var(--space-m);
    }

    .background-image-section {
        padding: var(--space-l) var(--space-m);
        min-height: 35vh;
    }

    .background-image-section h2 {
        padding-top: 3rem;
        max-width: 100%;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - NORMALE TABLETS (max-width: 768px) --- */
/* =================================================================== */
@media (max-width: 768px) {
    .klaris-page .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .klaris-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .klaris-intro-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .klaris-intro-header img {
        max-width: 120px;
    }

    .klaris-cards-section h2 {
        margin-bottom: 2rem;
    }

    .klaris-card {
        padding: 1.5rem 1rem;
    }

    .klaris-card .icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .klaris-card hr {
        width: 120px;
        margin-bottom: 1.25rem;
    }

    .klaris-card p {
        font-size: 0.8rem;
    }

    .two-tone-section .background-layer {
        height: 25%;
    }

    .background-image-section {
        padding: var(--space-m) var(--space-m);
        min-height: 30vh;
    }

    .background-image-section h2 {
        padding-top: 2rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE SMARTPHONES (max-width: 576px) --- */
/* =================================================================== */
@media (max-width: 576px) {
    .klaris-page .hero-section {
        height: 45vh;
        min-height: 300px;
    }

    .klaris-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .klaris-card {
        padding: 1.25rem 0.875rem;
    }

    .klaris-card .plus-icon {
        top: -10px;
        right: -10px;
        width: 22px;
        height: 22px;
    }

    .klaris-card .plus-icon svg {
        width: 22px;
        height: 22px;
    }

    .klaris-card .icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .klaris-card hr {
        width: 100px;
        margin-bottom: 1rem;
    }

    .klaris-intro-header img {
        max-width: 100px;
    }

    .two-tone-section p {
        font-size: 0.95rem;
    }

    .background-image-section {
        padding: var(--space-m) var(--space-s);
        min-height: auto;
        padding-top: var(--space-l);
        padding-bottom: var(--space-l);
    }

    .background-image-section .container {
        max-width: 100%;
    }

    .background-image-section h2 {
        padding-top: 1rem;
    }

    .background-image-section p {
        max-width: 100%;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINE SMARTPHONES (max-width: 480px) --- */
/* =================================================================== */
@media (max-width: 480px) {
    .klaris-page .hero-section {
        height: 40vh;
        min-height: 280px;
    }

    .klaris-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .klaris-card {
        padding: 1.5rem 1rem;
    }

    .klaris-card .icon-wrapper {
        width: 65px;
        height: 65px;
    }

    .klaris-card hr {
        width: 130px;
    }

    .klaris-card p {
        font-size: 0.85rem;
    }

    .klaris-cards-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .klaris-intro-header h2 {
        font-size: 1.4rem;
    }

    .klaris-intro-header img {
        max-width: 90px;
    }

    .two-tone-section .container {
        padding: var(--space-m) var(--space-s);
    }

    .background-image-section {
        padding: var(--space-m) var(--space-s);
        padding-bottom: 2rem;
    }

    .background-image-section h2 {
        padding-top: 0.5rem;
    }
}