/* ==========================================================================
   Solutions Subpages Styling (exateq Design System matching Vorlage.png)
   ========================================================================== */

/* Main Container */
.solutionsPage {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    box-sizing: border-box;
}

.solutionsLanding {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 20px;
    box-sizing: border-box
}

.solutionsLanding h2 {
    color: #102d59;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    margin-bottom: 24px;
    line-height: 1.2
}

.solutionSelection {
    scroll-margin-top: 100px
}

.solutionSelectionGrid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px
}

.solutionSelectionCard {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 22px #102d5908;
    transition: transform .2s, box-shadow .2s
}

.solutionSelectionCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px #102d5914
}

.solutionSelectionCard:focus-visible {
    outline: 3px solid #5564aa;
    outline-offset: 4px
}

.solutionSelectionImage {
    height: 210px;
    background: linear-gradient(145deg, #f9fbff, #eef3fc);
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center
}

.solutionSelectionImage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply
}

.solutionSelectionSymbol img {
    max-width: 128px;
    max-height: 128px;
    mix-blend-mode: normal
}

.solutionSelectionBody {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px
}

.solutionSelectionBody h3 {
    color: #102d59;
    font-size: 1.3rem;
    line-height: 1.3
}

.solutionSelectionBody p {
    color: #61738a;
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 6px
}

.solutionSelectionBody span {
    color: #5564aa;
    font-weight: bold;
    margin-top: auto;
    padding-top: 8px
}

.solutionMaterials {
    margin-top: 64px;
    padding: 36px;
    background: #f5f8fd;
    border-radius: 18px;
    border: 1px solid #dfe7f2
}

.solutionMaterials > p {
    color: #61738a;
    line-height: 1.6;
    margin-bottom: 26px
}

.solutionMaterials .substratesGrid {
    margin: 0;
    grid-template-columns:repeat(9, minmax(0, 1fr));
    gap: 10px
}

.solutionContact {
    margin-top: 48px;
    background: #102d59;
    border-radius: 18px;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.solutionContact h2 {
    color: white;
    margin: 0 0 12px
}

.solutionContact p {
    color: #e0e9f6;
    max-width: 690px;
    line-height: 1.6
}

.solutionContact .btn {
    flex-shrink: 0
}

@media (max-width: 1000px) {
    .solutionSelectionGrid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .solutionMaterials .substratesGrid {
        grid-template-columns:repeat(5, minmax(0, 1fr))
    }

    .solutionContact {
        align-items: flex-start;
        flex-direction: column
    }
}

@media (max-width: 600px) {
    .solutionsLanding {
        width: 100%;
        padding: 36px 18px
    }

    .solutionSelectionGrid {
        grid-template-columns:minmax(0, 1fr);
        gap: 20px
    }

    .solutionSelectionImage {
        height: 190px
    }

    .solutionMaterials, .solutionContact {
        padding: 24px 18px
    }

    .solutionMaterials .substratesGrid {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}

/* ==========================================================================
   2. Feature Highlights Strip (5 Items)
   ========================================================================== */
.solutionsHighlightsSection {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 36px 0;
}

.solutionsHighlightsGrid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.highlightCard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlightIcon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #0056b3;
}

.highlightIcon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.highlightTitle {
    color: #102d59 !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 10px 0 6px 0;
    line-height: 1.3;
}

.highlightText {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   3. Overview Section (Text + Photo + Checklist)
   ========================================================================== */
.solutionsOverviewSection {
    padding: 70px 0 50px 0;
}

.solutionsOverviewGrid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.overviewContent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.overviewBadge {
    color: #0070ba;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.overviewTitle {
    color: #102d59 !important;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.overviewDescription {
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.overviewVisual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 45, 89, 0.12);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.overviewVisual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overviewVisual:hover img {
    transform: scale(1.02);
}

.overviewChecklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklistItem {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.checkIconWrapper {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkIconWrapper svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkText {
    color: #1e293b;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
}

/* ==========================================================================
   4. Substrates and Materials Banner
   ========================================================================== */
.solutionsSubstratesSection {
    background: #f1f5fa;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 40px;
    margin: 40px auto 60px auto;
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 36px;
    align-items: center;
}

.substratesInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.substratesTitle {
    color: #0056b3 !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.substratesSubtitle {
    color: #102d59 !important;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.substratesDescription {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.substratesLink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0056b3 !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.substratesLink:hover {
    gap: 10px;
    color: #004494 !important;
}

.substratesGrid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
    justify-items: center;
    align-items: start;
}

.substrateChip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
}

.substrateChip img{
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

/* Material Gradients & Textures */
.orbSi {
    background: radial-gradient(circle at 35% 30%, #a0aec0 0%, #4a5568 60%, #1a202c 100%);
}

.orbComponents {
    background: radial-gradient(circle at 35% 30%, #94a3b8 0%, #475569 60%, #0f172a 100%);
}

.substrateLabel {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    text-align: center;
    word-break: normal;
}

/* ==========================================================================
   5. Related Products Section (4 Cards)
   ========================================================================== */
.solutionsRelatedSection {
    padding: 20px 0 60px 0;
}

.solutionsSectionHeader {
    margin-bottom: 32px;
}

.sectionMainTitle {
    color: #102d59 !important;
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.sectionMainSubtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

.relatedCardsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.relatedProductCard {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none !important;
}

.relatedProductCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(16, 45, 89, 0.12);
    border-color: #cbd5e1;
}

.relatedImageContainer {
    width: 100%;
    height: 190px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
}

.relatedImageContainer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.relatedProductCard:hover .relatedImageContainer img {
    transform: scale(1.04);
}

.relatedBody {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.relatedCardTitle {
    color: #102d59 !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.relatedCardDesc {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 18px;
    flex: 1;
}

.relatedCardLink {
    color: #0056b3;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.relatedProductCard:hover .relatedCardLink {
    gap: 10px;
}

/* ==========================================================================
   6. Typical Applications Section (5 Cards)
   ========================================================================== */
.solutionsApplicationsSection {
    padding: 20px 0 60px 0;
}

.applicationsGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.appCard {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.appCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(16, 45, 89, 0.1);
}

.appImageWrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #e2e8f0;
}

.appImageWrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.appCard:hover .appImageWrapper img {
    transform: scale(1.05);
}

.appBody {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.appTitle {
    color: #102d59 !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.appSubtitle {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   7. Personal Consultation CTA Box
   ========================================================================== */
.solutionsCtaSection {
    background: #f0f5fc;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    padding: 44px 50px;
    margin: 20px auto 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ctaInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ctaBadge {
    color: #0056b3;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ctaHeadline {
    color: #102d59 !important;
    font-size: clamp(1.8rem, 2.6vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.ctaDescription {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0;
}

.ctaActionsWrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.ctaButtonsRow {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
}

.ctaDirectContactRow {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
}

.directContactItem {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #102d59 !important;
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.directContactItem:hover {
    color: #0056b3 !important;
}

.directContactIcon {
    width: 22px;
    height: 22px;
    color: #0056b3;
}

.directContactIcon img,
.directContactIcon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .solutionsHighlightsGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .solutionsOverviewGrid {
        grid-template-columns: 1fr 1fr;
    }

    .overviewVisual {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
    }

    .substratesGrid {
        grid-template-columns: repeat(5, 1fr);
    }

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

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

@media screen and (max-width: 992px) {
    .solutionsSubstratesSection {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 24px;
    }

    .solutionsCtaSection {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 24px;
    }
}

@media screen and (max-width: 768px) {
    .solutionsHighlightsGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutionsOverviewGrid {
        grid-template-columns: 1fr;
    }

    .overviewVisual {
        grid-column: auto;
    }

    .substratesGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .relatedCardsGrid {
        grid-template-columns: 1fr;
    }

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

@media screen and (max-width: 576px) {
    .solutionsHighlightsGrid {
        grid-template-columns: 1fr;
    }

    .applicationsGrid {
        grid-template-columns: 1fr;
    }

    .ctaButtonsRow {
        flex-direction: column;
        width: 100%;
    }

    .ctaDirectContactRow {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* Shared substrate thumbnails: same material assets as the materials overview. */
.solutionsSubstratesSection .substratesGrid{width:100%;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px;align-items:stretch}
.solutionsSubstratesSection .substrateChip{box-sizing:border-box;min-width:0;padding:10px 5px 12px;background:#f0f5fb;border-radius:6px;justify-content:flex-start;text-decoration:none;transition:background .2s}
.solutionsSubstratesSection .substrateChip img{width:100%;max-width:80px;height:auto;aspect-ratio:1;object-fit:contain;border-radius:8px}
.solutionsSubstratesSection .substrateChip:hover{background:#e2ecf9}
.solutionsSubstratesSection .substrateChip:focus-visible{outline:3px solid #2D56A9;outline-offset:3px}
.solutionsSubstratesSection .substrateLabel{font-size:12px;line-height:1.3}
@media(max-width:1000px){.solutionsSubstratesSection .substratesGrid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:600px){.solutionsSubstratesSection .substratesGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Original qCFS photos */
.digestoriumDetailPhoto{max-width:1080px;margin:25px auto 55px;padding:0 25px}
.digestoriumDetailPhoto img{display:block;width:100%;height:auto;border-radius:8px}
.digestoriumDetailPhoto figcaption{color:#61738a;font-size:14px;line-height:1.6;margin-top:12px}

/* Consistent application symbols: meaningful alternatives to repeated building photos. */
.appImageWrapper{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f9fbff,#f0f5fd)}
.appImageWrapper img{width:96px;height:96px;object-fit:contain}
.appCard{min-width:0}
.appBody{min-width:0;overflow-wrap:anywhere}

/* ==========================================================================
   Solutions & Product Overview Adjustments
   ========================================================================== */
.overviewVisual img[src*="round-manual-2"],
.overviewVisual img[src*="round-cxs-1"] {
    max-height: 440px;
    object-fit: contain;
    background: #ffffff;
}
