
/* ==========================================
   RAUMAMBIENTE AACHEN
   PRÄZISION & HANDWERK
   ========================================== */

/* Grundlayout */

#main .craft-section {
    width: 100%;
}

.craft-layout {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    align-items: center;
    gap: 35px;
    width: 100%;
}

/* ==========================================
   TEXTBEREICH
   ========================================== */

.craft-content {
    min-width: 0;
}

.craft-subline {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--color-petrol);
}

.craft-content h2 {
    margin: 0 0 18px;
    font-family: var(--font-headline);
    font-size: clamp(28px, 2.7vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-headline);
}

.craft-content p {
    margin: 0;
    max-width: 480px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text);
}

/* ==========================================
   ICON-BEREICH
   ========================================== */

.craft-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
}

.craft-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;

    min-width: 0;
    padding: 15px 12px;

    border-left: 1px solid var(--color-border);
    text-align: center;
}

/* Icons */

.craft-feature i {
    display: block;
    font-size: 48px;
    line-height: 1.2;
    color: var(--color-petrol);
}

/* Beschriftungen */

.craft-feature span {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-headline);
}

/* ==========================================
   PRÄZISION & HANDWERK – HINTERGRUND
   ========================================== */

/* Artikel über volle Browserbreite */
#main .mod_article.craft-background {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    background: var(--color-gray-extra-light);
}

/* Inhalt auf 1440 px begrenzen */
#main .craft-background .craft-section {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 60px var(--content-padding);
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 991px) {
    #main .craft-background .craft-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    #main .craft-background .craft-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1199px) {

    .craft-layout,
    .craft-reverse .craft-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .craft-content,
    .craft-reverse .craft-content {
        grid-column: 1;
        grid-row: 1;
    }

    .craft-features,
    .craft-reverse .craft-features {
        grid-column: 1;
        grid-row: 2;
    }

    .craft-content p {
        max-width: 750px;
    }

    .craft-feature i {
        font-size: 43px;
    }

    .craft-feature span {
        font-size: 16px;
    }
}

/* ==========================================
   SMARTPHONE
   ========================================== */

@media (max-width: 767px) {

    .craft-layout {
        gap: 30px;
    }

    .craft-subline {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .craft-content h2 {
        font-size: 30px;
    }

    .craft-content p {
        font-size: 15px;
    }

    .craft-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }

    .craft-feature {
        min-height: 140px;
        padding: 15px 10px;
    }

    .craft-feature:nth-child(odd) {
        border-left: none;
    }

    .craft-feature i {
        font-size: 40px;
    }

    .craft-feature span {
        font-size: 15px;
    }
}


/* ==========================================
   RAUMAMBIENTE AACHEN
   BILD / TEXT – ZWEISPALTIG
   ========================================== */

/* Grundlayout */

#main .image-text-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 45px;

    width: 100%;
    min-width: 0;
}

/* ==========================================
   BILD
   ========================================== */

#main .image-text-section > figure {
    width: 100%;
    margin: 0;
    overflow: hidden;
        aspect-ratio: 3 / 1.5;
}

#main .image-text-section > figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   TEXT
   ========================================== */

#main .image-text-section > .rte {
    min-width: 0;
}

.image-text-content {
    width: 100%;
}

.image-text-subline {
    margin-bottom: 16px;

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: var(--color-petrol);
}

.image-text-content h2 {
    margin: 0 0 22px;

    font-family: var(--font-headline);
    font-size: clamp(28px, 2.7vw, 40px);
    font-weight: 700;
    line-height: 1.15;

    color: var(--color-headline);
}

.image-text-content p {
    margin: 0;

    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;

    color: var(--color-text);
}

/* ==========================================
   BILD OBEN = LINKS
   ========================================== */

#main .image-text-section.media--above > figure {
    grid-column: 1;
    grid-row: 1;
}

#main .image-text-section.media--above > .rte {
    grid-column: 2;
    grid-row: 1;
}

/* ==========================================
   BILD UNTEN = RECHTS
   ========================================== */

#main .image-text-section.media--below > .rte {
    grid-column: 1;
    grid-row: 1;
}

#main .image-text-section.media--below > figure {
    grid-column: 2;
    grid-row: 1;
}

/* ==========================================
   TABLET – BIS 991 PX
   ========================================== */

@media (max-width: 991px) {

    #main .image-text-section {
        gap: 30px;
    }

    .image-text-content h2 {
        font-size: 30px;
    }

    .image-text-content p {
        font-size: 16px;
    }
}

/* ==========================================
   SMARTPHONE – UNTER 768 PX
   TEXT OBEN, BILD UNTEN
   ========================================== */

@media (max-width: 767px) {

    #main .image-text-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        width: 100%;
        min-width: 0;
    }

    /* Text bei beiden Varianten immer oben */
    #main .image-text-section.media--above > .rte,
    #main .image-text-section.media--below > .rte {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    /* Bild bei beiden Varianten immer unten */
    #main .image-text-section.media--above > figure,
    #main .image-text-section.media--below > figure {
        display: block;
        grid-column: 1;
        grid-row: 2;

        width: 100%;
        height: auto;
        margin: 0;
        overflow: hidden;

        aspect-ratio: 2.3 / 1;
    }

    #main .image-text-section > figure img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Textabstände */
    .image-text-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .image-text-subline {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .image-text-content h2 {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .image-text-content p {
        font-size: 15px;
        line-height: 1.55;
    }
}

