/* =====================================================
   Piero Jet III – page-specific additions
   Load after responsive.css
   ===================================================== */

html {
    scroll-behavior: smooth;
}

.anchor-section {
    scroll-margin-top: 110px;
}

.pjiii-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 10, 18, 0.48) 0%, rgba(5, 10, 18, 0.10) 48%, rgba(5, 10, 18, 0.02) 100%);
    pointer-events: none;
}

.pjiii-hero-content {
    position: relative;
    z-index: 2;
   /* max-width: 760px; */
    top: -100px;
}

.pjiii-index-section {
    background: #faf6ec;
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(122, 90, 29, 0.16);
}

.pjiii-index {
    display: grid;
    gap: 1rem;
}

.pjiii-index-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pjiii-index-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(122, 90, 29, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #2f2d29;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.pjiii-index-links a:hover,
.pjiii-index-links a:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    border-color: #7a5a1d;
}

.pjiii-section {
    position: relative;
}

.pjiii-warm {
    background: #faf6ec;
}

.pjiii-split {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: clamp(2rem, 3vw, 4rem);
    align-items: center;
}

.back-to-top {
    display: inline-flex;
    margin-top: 1.75rem;
    color: #7a5a1d;
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    text-decoration: underline;
}

.back-to-top-light {
    color: #e1c98e;
}

/* =====================================================
   Engineering Section
   ===================================================== */

/* =====================================================
   PJ III – Engineering / Wing Efficiency
   ===================================================== */

.pjiii-engineering {
    position: relative;
    width: 100%;
    overflow: hidden;

    background: #05090d;
}

/* ---------- Hintergrundbild ---------- */

.pjiii-engineering-media {
    position: relative;
    width: 100%;
    line-height: 0;
}

.pjiii-engineering-media img {
    display: block;
    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;
}

/* ---------- Boxen über dem unteren Bildbereich ---------- */

.pjiii-engineering-overlay {
    position: absolute;
    left: 50%;
    bottom: clamp(2.5rem, 7vw, 7rem);

    width: 100%;
    z-index: 3;

    transform: translateX(-50%);
}

/* ---------- Boxenraster ---------- */

.pjiii-feature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;

    align-items: stretch;
}

/* ---------- Einzelne Box ---------- */

.pjiii-feature {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;

    height: 100%;
    min-height: 250px;
    padding: 2.25rem;

    background: rgba(5, 10, 15, 0.96);
    border: 1px solid rgba(183, 145, 53, 0.34);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.pjiii-feature:hover {
    transform: translateY(-4px);

    border-color: rgba(183, 145, 53, 0.62);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Icon ---------- */

.pjiii-feature-icon {
    display: block;

    width: 88px;
    height: 88px;

    object-fit: contain;
}

/* ---------- Text ---------- */

.pjiii-feature h3 {
    margin: 0 0 0.6rem;

    color: #e5c985;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.2;
}

.pjiii-feature p {
    margin: 0;

    color: #b6bcc6;
    font-size: 1.06rem;
    line-height: 1.7;
}

/* ---------- Back to contents ---------- */

.pjiii-engineering .back-to-top {
    display: inline-block;
    margin-top: 1.8rem;
}

/* =====================================================
   Tablet
   ===================================================== */

@media (max-width: 1000px) {

    /*
     * Auf kleineren Displays wieder normal unter dem Bild,
     * damit nichts mit dem Flugzeug kollidiert.
     */

    .pjiii-engineering {
        overflow: visible;
        padding-bottom: 3.5rem;
    }

    .pjiii-engineering-overlay {
        position: relative;
        left: auto;
        bottom: auto;

        width: 100%;
        margin-top: 2rem;

        transform: none;
    }

    .pjiii-feature-row {
        grid-template-columns: 1fr;
    }

    .pjiii-feature {
        min-height: 0;
    }
}

/* =====================================================
   Smartphone
   ===================================================== */

@media (max-width: 650px) {

    .pjiii-feature {
        grid-template-columns: 1fr;
        gap: 1.2rem;

        padding: 1.6rem;
        text-align: center;
    }

    .pjiii-feature-icon {
        width: 74px;
        height: 74px;
        margin-inline: auto;
    }
}

/* Long range wing */
.pjiii-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.patent-stamp {
    width: clamp(90px, 10vw, 145px);
    height: auto;
    opacity: 0.82;
    transform: rotate(-4deg);
}

.pjiii-formula {
    margin: 2rem 0 1rem;
    color: #7a5a1d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 3.2vw, 3.5rem);
    line-height: 1;
}

.pjiii-copy {
    max-width: 920px;
}

.pjiii-copy p + p {
    margin-top: 0.7rem;
}

.pjiii-bullets {
    padding-left: 1.2rem;
}

.pjiii-bullets li + li {
    margin-top: 0.85rem;
}

.pjiii-wide-card,
.pjiii-card,
.pjiii-table-card,
.pjiii-poster-card,
.pjiii-schema-card {
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(122, 90, 29, 0.13);
    box-shadow: 0 18px 50px rgba(17, 18, 20, 0.08);
}

.pjiii-wide-card img,
.pjiii-card img,
.pjiii-table-card img,
.pjiii-poster-card img,
.pjiii-schema-card img {
    display: block;
    width: 100%;
    height: auto;
}

.pjiii-image-grid {
    align-items: stretch;
}

.pjiii-image-grid .pjiii-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Full-width image sections */
.pjiii-full-image {
    position: relative;
    width: 100%;
    height: min(84vh, 920px);
    overflow: hidden;
    background: #0b1017;
}

.pjiii-full-image-tall {
    height: min(94vh, 1050px);
}

.pjiii-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile */
.pjiii-profile-section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: #090d13;
    color: #fff;
}

.pjiii-profile-grid {
    align-items: center;
}

.pjiii-profile-section h2 {
    color: #e1c98e;
}

.pjiii-profile-image {
    margin: 0;
    overflow: hidden;
}

.pjiii-profile-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* FL500 */
.pjiii-mission-grid {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: clamp(2rem, 3vw, 4rem);
    align-items: center;
}

.pjiii-mission-image,
.pjiii-map {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.pjiii-mission-image img,
.pjiii-map img {
    display: block;
    width: 100%;
    height: auto;
}

.pjiii-flight-overlay,
.pjiii-map-overlay {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    background: rgba(10, 14, 20, 0.72);
    border: 1px solid rgba(225, 201, 142, 0.45);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pjiii-flight-overlay span,
.pjiii-map-overlay span {
    color: #e1c98e;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pjiii-flight-overlay strong,
.pjiii-map-overlay strong {
    font-size: 1.25rem;
}

/* Range */
.pjiii-table-grid {
    align-items: start;
}

.pjiii-table-card {
    padding: 0.6rem;
}

.pjiii-map {
    background: #0b1017;
}

/* Fuselage cards */
.pjiii-comparison-stack {
    display: grid;
    gap: 1.5rem;
}

.pjiii-comparison-card {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
    gap: 2rem;
    align-items: center;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(122, 90, 29, 0.12);
    box-shadow: 0 18px 50px rgba(17, 18, 20, 0.07);
}

.pjiii-comparison-card-featured {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.pjiii-comparison-card img {
    display: block;
    width: 100%;
    height: auto;
}

.pjiii-comparison-card p {
    margin: 0;
}

.pjiii-comparison-card p + p {
    margin-top: 0.65rem;
}

.pjiii-poster-card {
    padding: clamp(0.75rem, 2vw, 2rem);
}

/* Cabin comparison */
.pjiii-cabin-compare {
    align-items: stretch;
}

.pjiii-cabin-compare .pjiii-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pjiii-cabin-compare .pjiii-card img {
    max-height: 760px;
    object-fit: contain;
}

/* Slideshow */
/*.pjiii-schema-card {
    padding: 1rem;
}

.pjiii-slideshow {
    position: relative;
    width: 100%;
    height: min(82vh, 920px);
    overflow: hidden;
    background: #0b0e12;
    cursor: pointer;
}

.pjiii-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.4s ease, transform 5.8s ease;
    pointer-events: none;
}

.pjiii-slide.is-active {
    opacity: 1;
    transform: scale(1.055);
}

.pjiii-slideshow-toggle {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(8, 12, 17, 0.68);
    color: #fff;
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pjiii-slideshow-toggle:hover,
.pjiii-slideshow-toggle:focus-visible {
    background: rgba(8, 12, 17, 0.88);
}

.pjiii-state-icon {
    color: #e1c98e;
    font-weight: 700;
}*/

/* Summary */
.pjiii-summary-heading {
    text-align: center;
}

.pjiii-summary-graphic {
    width: clamp(340px, 50vw, 680px);
    margin-inline: auto;
}

.pjiii-summary-graphic img {
    display: block;
    width: 100%;
    height: auto;
}

.pjiii-closing-copy {
    max-width: 780px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

@media (max-width: 900px) {
    .anchor-section {
        scroll-margin-top: 92px;
    }

    .pjiii-engineering,
    .pjiii-engineering-overlay {
        min-height: 880px;
    }

    .pjiii-engineering-media img {
        object-position: center top;
    }

    .pjiii-feature-row {
        grid-template-columns: 1fr;
    }

    .pjiii-heading-row {
        align-items: center;
    }

    .pjiii-comparison-card,
    .pjiii-comparison-card-featured {
        grid-template-columns: 1fr;
    }

    .pjiii-full-image,
    .pjiii-full-image-tall,
    .pjiii-slideshow {
        height: 68vh;
    }
}

@media (max-width: 640px) {
    .pjiii-index-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pjiii-index-links a {
        justify-content: center;
        text-align: center;
        border-radius: 10px;
    }

    .pjiii-engineering,
    .pjiii-engineering-overlay {
        min-height: 930px;
    }

    .pjiii-engineering-overlay {
        padding-bottom: 1.5rem;
    }

    .pjiii-feature {
        grid-template-columns: 64px 1fr;
        gap: 0.9rem;
    }

    .pjiii-feature-icon {
        width: 64px;
        height: 64px;
    }

    .pjiii-heading-row {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .patent-stamp {
        width: 84px;
    }

    .pjiii-full-image,
    .pjiii-full-image-tall,
    .pjiii-slideshow {
        height: 56vh;
        min-height: 420px;
    }

    .pjiii-flight-overlay,
    .pjiii-map-overlay {
        right: 0.75rem;
        top: 0.75rem;
    }

    .pjiii-slideshow-toggle {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pjiii-slide {
        transition: opacity 200ms linear;
        transform: none;
    }

    .pjiii-slide.is-active {
        transform: none;
    }
}

/* =====================================================
   Teil 4 – Fuel concept / wing structure
   ===================================================== */

.pjiii-wing-concept-grid {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.72fr)
        minmax(560px, 1.55fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: stretch;
    margin-top: 3rem;
}

/* Karten */

.pjiii-wing-concept-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(225, 201, 142, 0.45);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(225, 201, 142, 0.08);
}

/* Schwarze Bildflächen – auf beiden Karten exakt gleich hoch */

.pjiii-wing-concept-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 430px;
    width: 100%;
    height: 430px;
    min-height: 430px;
    margin: 0;
    padding: clamp(1.5rem, 1.5vw, 2.5rem);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 42%,
            #20242b 0%,
            #111419 58%,
            #080a0d 100%
        );
    border-bottom: 1px solid rgba(225, 201, 142, 0.35);
}

.pjiii-wing-concept-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Linkes, hochformatiges Tankbild */

.pjiii-wing-concept-fuel .pjiii-wing-concept-image img {
    width: auto;
    height: 92%;
    max-width: 92%;
    max-height: 92%;
}

/* Rechtes, breites Flügelbild */

.pjiii-wing-concept-wing .pjiii-wing-concept-image img {
    width: 94%;
    height: auto;
    max-width: 94%;
    max-height: 88%;
}

/* Weiße Textbereiche */

.pjiii-wing-concept-text {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.6rem, 2.8vw, 2.3rem);
    background: #ffffff;
    border-top: 0;
}

.pjiii-wing-concept-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1.6rem, 2.8vw, 2.3rem);
    width: 44px;
    height: 2px;
    background: #9a711d;
}

.pjiii-detail-label {
    display: block;
    margin: 0 0 0.8rem;
    color: #8a6417;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pjiii-wing-concept-text p {
    margin: 0;
    color: #25231f;
    font-size: clamp(1rem, 1.22vw, 1.12rem);
    line-height: 1.65;
}

/* Beide weißen unteren Bereiche gleich hoch */

.pjiii-wing-concept-fuel .pjiii-wing-concept-text {
    flex: 1 1 auto;
    min-height: 205px;
}

/* Zwei Textfelder unter dem Flügel */

.pjiii-wing-caption-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
    min-height: 205px;
    background: #ffffff;
}

.pjiii-wing-caption-grid .pjiii-wing-concept-text {
    height: 100%;
}

.pjiii-wing-caption-grid .pjiii-wing-concept-text +
.pjiii-wing-concept-text {
    border-left: 1px solid rgba(122, 90, 29, 0.18);
}

/* Tablet */

@media (max-width: 1000px) {
    .pjiii-wing-concept-grid {
        grid-template-columns:
            minmax(240px, 0.72fr)
            minmax(440px, 1.28fr);
    }

    .pjiii-wing-concept-image {
        flex-basis: 390px;
        height: 390px;
        min-height: 390px;
    }

    .pjiii-wing-caption-grid {
        grid-template-columns: 1fr;
    }

    .pjiii-wing-caption-grid .pjiii-wing-concept-text +
    .pjiii-wing-concept-text {
        border-left: 0;
        border-top: 1px solid rgba(122, 90, 29, 0.18);
    }

    .pjiii-wing-concept-fuel .pjiii-wing-concept-text,
    .pjiii-wing-caption-grid {
        min-height: auto;
    }
}

/* Smartphone */

@media (max-width: 720px) {
    .pjiii-wing-concept-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .pjiii-wing-concept-image {
        flex-basis: 360px;
        height: 360px;
        min-height: 360px;
        padding: 1.25rem;
    }

    .pjiii-wing-concept-fuel .pjiii-wing-concept-image img {
        height: 94%;
        max-height: 94%;
    }

    .pjiii-wing-concept-wing .pjiii-wing-concept-image img {
        width: 100%;
        max-width: 100%;
        max-height: 88%;
    }

    .pjiii-wing-caption-grid {
        grid-template-columns: 1fr;
    }

    .pjiii-wing-caption-grid .pjiii-wing-concept-text +
    .pjiii-wing-concept-text {
        border-left: 0;
        border-top: 1px solid rgba(122, 90, 29, 0.18);
    }

    .pjiii-wing-concept-text {
        padding: 1.5rem;
    }

    .pjiii-wing-concept-text::before {
        left: 1.5rem;
    }
}

/* Kleine Smartphones */

@media (max-width: 480px) {
    .pjiii-wing-concept-image {
        flex-basis: 310px;
        height: 310px;
        min-height: 310px;
    }

    .pjiii-wing-concept-text p {
        font-size: 1rem;
    }
}

/* =====================================================
   Teil 8 – Coupling for Efficiency
   ===================================================== */

.pjiii-coupling-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: stretch;
}


/* Karten */

.pjiii-coupling-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    margin: 0;

    background: #ffffff;

    border: 1px solid rgba(225, 201, 142, 0.45);

    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(225, 201, 142, 0.08);
}


/* Schwarze Bildflächen */

.pjiii-coupling-image {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 430px;

    width: 100%;
    height: 430px;
    min-height: 430px;

    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 42%,
            #20242b 0%,
            #111419 58%,
            #080a0d 100%
        );

    border-bottom: 1px solid rgba(225, 201, 142, 0.35);
}


/* Bilder */

.pjiii-coupling-image img {
    display: block;

    width: auto;
    height: auto;

    max-width: 94%;
    max-height: 90%;

    object-fit: contain;
}


/* Textbereich */

.pjiii-coupling-text {
    position: relative;

    display: flex;
    flex-direction: column;
    flex: 1;

    min-height: 190px;

    padding: clamp(1.6rem, 2.8vw, 2.3rem);

    background: #ffffff;
}


/* Goldene Linie */

.pjiii-coupling-text::before {
    content: "";

    position: absolute;
    top: 0;
    left: clamp(1.6rem, 2.8vw, 2.3rem);

    width: 44px;
    height: 2px;

    background: #9a711d;
}


/* Text */

.pjiii-coupling-text p {
    margin: 0;

    color: #25231f;

    font-size: clamp(1rem, 1.22vw, 1.12rem);
    line-height: 1.65;
}


/* Tablet */

@media (max-width: 900px) {

    .pjiii-coupling-image {
        flex-basis: 380px;
        height: 380px;
        min-height: 380px;
    }

}


/* Smartphone */

@media (max-width: 700px) {

    .pjiii-coupling-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pjiii-coupling-image {
        flex-basis: 340px;
        height: 340px;
        min-height: 340px;

        padding: 1.25rem;
    }

    .pjiii-coupling-text {
        min-height: auto;
        padding: 1.5rem;
    }

    .pjiii-coupling-text::before {
        left: 1.5rem;
    }

}

/* =====================================================
   Range comparison tables
   ===================================================== */
.pjiii-range-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: start;
}

.pjiii-range-table-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(225, 201, 142, 0.45);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(225, 201, 142, 0.06);
}

.pjiii-range-table-header {
    min-height: 122px;
    padding: 1.6rem 1.8rem;
    background:
        radial-gradient(
            circle at 45% 20%,
            #20242b 0%,
            #111419 58%,
            #080a0d 100%
        );
    border-bottom: 1px solid rgba(225, 201, 142, 0.35);
}

.pjiii-range-table-kicker {
    display: block;
    margin-bottom: 0.45rem;
    color: #d5b86f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pjiii-range-table-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.35;
}

.pjiii-table-scroll {
    overflow-x: auto;
}

.pjiii-performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
}

.pjiii-performance-table th,
.pjiii-performance-table td {
    padding: 0.82rem 0.9rem;
    border-right: 1px solid rgba(122, 90, 29, 0.14);
    border-bottom: 1px solid rgba(122, 90, 29, 0.14);
    text-align: right;
    white-space: nowrap;
}

.pjiii-performance-table th:first-child,
.pjiii-performance-table td:first-child {
    text-align: left;
}

.pjiii-performance-table th:last-child,
.pjiii-performance-table td:last-child {
    border-right: 0;
}

.pjiii-performance-table thead th {
    background: #ede8dc;
    color: #25231f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pjiii-performance-table tbody tr:nth-child(even):not(.is-average):not(.is-highlight):not(.is-spacer) {
    background: #f7f3ea;
}

.pjiii-performance-table tbody tr:nth-child(odd):not(.is-average):not(.is-highlight):not(.is-spacer) {
    background: #ffffff;
}

.pjiii-performance-table .is-average {
    background: #e4dfd3;
    font-weight: 700;
}

.pjiii-performance-table .is-highlight {
    background: #fffaf0;
    color: #7a5a1d;
    font-weight: 800;
}

.pjiii-performance-table .is-highlight td {
    border-top: 2px solid #9a711d;
}

.pjiii-performance-table .is-spacer td {
    height: 24px;
    padding: 0;
    background: #f0ece3;
}

@media (max-width: 1050px) {
    .pjiii-range-table-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pjiii-range-table-header {
        min-height: auto;
        padding: 1.35rem 1.4rem;
    }

    .pjiii-performance-table {
        font-size: 0.9rem;
    }

    .pjiii-performance-table th,
    .pjiii-performance-table td {
        padding: 0.72rem 0.75rem;
    }
}

/* =====================================================
   Range comparison – kompakter Abstand
   MUSS ganz ans Ende der CSS-Datei
   ===================================================== */

section#range-comparison.section {
    padding-top: 55px !important;
    padding-bottom: 120px !important;
}

/* Mögliche Grid-/Flex-Abstände des allgemeinen Containers ausschalten */
section#range-comparison > .container {
    display: block !important;
    gap: 0 !important;
    row-gap: 0 !important;
}

/* Überschriftenblock */
section#range-comparison .pjiii-heading-row {
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
}

/* Eventuelle Standardabstände der Überschrift entfernen */
section#range-comparison .pjiii-heading-row h2 {
    margin-bottom: 0 !important;
}

/* Tabellen direkt unter die Überschrift */
section#range-comparison .pjiii-range-table-grid,
section#range-comparison .pjiii-range-table-grid.mt-lg {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
}

/* Mobile Darstellung */
@media (max-width: 1050px) {
    section#range-comparison.section {
        padding-top: 45px !important;
        padding-bottom: 80px !important;
    }

    section#range-comparison .pjiii-heading-row {
        margin-bottom: 22px !important;
    }
}

/* PJ III tables must always use the light design */

#range-comparison {
    color-scheme: only light;
    forced-color-adjust: none;
}

#range-comparison .pjiii-range-table-card,
#range-comparison .pjiii-table-scroll,
#range-comparison .pjiii-performance-table {
    color-scheme: only light;
    forced-color-adjust: none;
}

#range-comparison .pjiii-performance-table tbody tr:nth-child(odd):not(.is-average):not(.is-highlight):not(.is-spacer) {
    background-color: #ffffff !important;
}

#range-comparison .pjiii-performance-table tbody tr:nth-child(even):not(.is-average):not(.is-highlight):not(.is-spacer) {
    background-color: #f7f3ea !important;
}

#range-comparison .pjiii-performance-table .is-average {
    background-color: #e4dfd3 !important;
    color: #25231f !important;
}

#range-comparison .pjiii-performance-table .is-highlight {
    background-color: #fffaf0 !important;
    color: #7a5a1d !important;
}

#range-comparison .pjiii-performance-table thead th {
    background-color: #ede8dc !important;
    color: #25231f !important;
}

/* =====================================================
   FUSELAGE – EFFICIENT SHAPE
   ===================================================== */

#fuselage .pjiii-fuselage-layout {
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    display: grid;
    gap: 1.4rem;
}


/* Einzelne horizontale Zeile */

#fuselage .pjiii-fuselage-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(290px, 0.85fr);

    min-height: 260px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        rgba(177, 132, 47, 0.28);

    box-shadow:
        0 18px 45px
        rgba(16, 18, 21, 0.08);

    transition:
        transform 320ms ease,
        box-shadow 320ms ease,
        border-color 320ms ease;
}


#fuselage .pjiii-fuselage-row:hover {
    transform: translateY(-3px);

    border-color:
        rgba(177, 132, 47, 0.52);

    box-shadow:
        0 24px 55px
        rgba(16, 18, 21, 0.13);
}


/* Bildbereich */

#fuselage .pjiii-fuselage-media {
    position: relative;

    min-width: 0;
    min-height: 260px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            #262a30 0%,
            #15181d 52%,
            #080a0d 100%
        );
}


#fuselage .pjiii-fuselage-media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    box-shadow:
        inset -1px 0 0
        rgba(212, 177, 96, 0.24);
}


#fuselage .pjiii-fuselage-media img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 260px;

    object-fit: contain;
    object-position: center;

    padding: clamp(1rem, 2.4vw, 2rem);
}


/* Platzhalter bis die echten Bilder eingebunden werden */

#fuselage .pjiii-fuselage-placeholder {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 2rem;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


#fuselage .pjiii-fuselage-placeholder::before {
    content: "";

    position: absolute;

    width: min(72%, 480px);
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(207, 166, 73, 0.72),
            transparent
        );
}


/* Textbereich */

#fuselage .pjiii-fuselage-copy {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    gap: 1.15rem;

    padding:
        clamp(2rem, 4vw, 3.5rem)
        clamp(1.8rem, 3.5vw, 3rem);

    color: #1d1d1b;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #faf7f0 100%
        );
}


#fuselage .pjiii-fuselage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.6rem;
    height: 2.6rem;

    margin-top: 0.1rem;

    border:
        1px solid
        rgba(158, 112, 29, 0.48);

    color: #946611;

    font-size: 0.69rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}


#fuselage .pjiii-fuselage-copy h3 {
    margin: 0 0 0.8rem;

    color: #17191c;

    font-size:
        clamp(1.25rem, 1.7vw, 1.65rem);

    font-weight: 600;
    line-height: 1.18;
}


#fuselage .pjiii-fuselage-copy p {
    max-width: 38rem;

    margin: 0;

    color: #55514a;

    font-size:
        clamp(0.98rem, 1.15vw, 1.08rem);

    line-height: 1.65;
}


#fuselage .pjiii-fuselage-copy p + p {
    margin-top: 0.95rem;
}


#fuselage .pjiii-fuselage-emphasis {
    position: relative;

    padding-left: 1.15rem;

    color: #7d5815 !important;

    font-weight: 650;
}


#fuselage .pjiii-fuselage-emphasis::before {
    content: "";

    position: absolute;
    top: 0.28em;
    bottom: 0.28em;
    left: 0;

    width: 2px;

    background: #b8872d;
}


/* Wechselnde Ausrichtung für ruhigere Seitengestaltung */

#fuselage .pjiii-fuselage-row:nth-child(even) {
    grid-template-columns:
        minmax(290px, 0.85fr)
        minmax(0, 1.65fr);
}


#fuselage .pjiii-fuselage-row:nth-child(even)
.pjiii-fuselage-media {
    grid-column: 2;
    grid-row: 1;
}


#fuselage .pjiii-fuselage-row:nth-child(even)
.pjiii-fuselage-copy {
    grid-column: 1;
    grid-row: 1;

    background:
        linear-gradient(
            225deg,
            #ffffff 0%,
            #faf7f0 100%
        );
}


/* Tablet */

@media (max-width: 980px) {

    #fuselage .pjiii-fuselage-row,
    #fuselage .pjiii-fuselage-row:nth-child(even) {
        grid-template-columns: 1.25fr 0.9fr;
    }

    #fuselage .pjiii-fuselage-row:nth-child(even)
    .pjiii-fuselage-media {
        grid-column: 1;
    }

    #fuselage .pjiii-fuselage-row:nth-child(even)
    .pjiii-fuselage-copy {
        grid-column: 2;
    }
}


/* Mobile */

@media (max-width: 760px) {

    #fuselage .pjiii-fuselage-layout {
        gap: 1.25rem;
    }

    #fuselage .pjiii-fuselage-row,
    #fuselage .pjiii-fuselage-row:nth-child(even) {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }

    #fuselage .pjiii-fuselage-row:nth-child(even)
    .pjiii-fuselage-media,
    #fuselage .pjiii-fuselage-row:nth-child(even)
    .pjiii-fuselage-copy {
        grid-column: auto;
        grid-row: auto;
    }

    #fuselage .pjiii-fuselage-media {
        min-height: 230px;
    }

    #fuselage .pjiii-fuselage-media img {
        min-height: 230px;
    }

    #fuselage .pjiii-fuselage-copy {
        padding: 1.7rem 1.4rem 2rem;
    }
}

/* =====================================================
   PJ III – Interior Slideshow
   ===================================================== */

.pjiii-interior-slideshow {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;

    background: #f3efe5;
    border: 1px solid rgba(122, 90, 29, 0.35);
}

/*
 * Dieser Container bestimmt die tatsächliche Höhe.
 * Die Bilder liegen darin absolut übereinander.
 */
.pjiii-interior-slides {
    position: relative;
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
    background: #f3efe5;

	margin:0;
    padding:0;
}

/*
 * Beide Bilder exakt übereinanderlegen.
 */
.pjiii-interior-slide {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.4s ease,
        visibility 0s linear 1.4s;

    pointer-events: none;
}

/*
 * Nur die aktive Ebene ist sichtbar.
 */
.pjiii-interior-slide.is-active {
    opacity: 1;
    visibility: visible;

    transition:
        opacity 1.4s ease,
        visibility 0s linear 0s;

    z-index: 2;
}

/* Pfeiltasten */

.pjiii-interior-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(12, 12, 12, 0.58);

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);
    transition:
        background 220ms ease,
        border-color 220ms ease;
}

.pjiii-interior-arrow:hover {
    background: rgba(122, 90, 29, 0.88);
    border-color: rgba(255, 255, 255, 0.7);
}

.pjiii-interior-prev {
    left: 1.2rem;
}

.pjiii-interior-next {
    right: 1.2rem;
}

/* Pause-/Play-Schaltfläche */

.pjiii-interior-toggle {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    padding: 0.65rem 0.9rem;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    color: #ffffff;
    background: rgba(12, 12, 12, 0.62);

    cursor: pointer;
}

.pjiii-interior-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 1rem;
}

@media (max-width: 700px) {

    .pjiii-interior-slides {
        aspect-ratio: 4 / 3;
    }

    .pjiii-interior-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
    }

    .pjiii-interior-prev {
        left: 0.65rem;
    }

    .pjiii-interior-next {
        right: 0.65rem;
    }

    .pjiii-interior-toggle {
        right: 0.65rem;
        bottom: 0.65rem;
    }
}

/* =====================================================
   Interior introduction
   ===================================================== */

#interior .pjiii-interior-intro, #coupling .pjiii-interior-intro, {
    max-width: 920px;
    margin: 0 0 2.8rem;
}

#interior .pjiii-interior-intro .pjiii-bullets, #coupling .pjiii-interior-intro .pjiii-bullets {
    margin: 0;
    padding-left: 1.6rem;

    list-style: disc;
}

#interior .pjiii-interior-intro .pjiii-bullets li, #coupling .pjiii-interior-intro .pjiii-bullets li {

    margin-bottom: 0.9rem;

    color: #25231f;

    font-size: clamp(1rem, 1.22vw, 1.12rem);
    line-height: 1.65;
}

#interior .pjiii-interior-intro .pjiii-bullets li::marker, #coupling .pjiii-interior-intro .pjiii-bullets li::marker  {
    color: #9a711d;
}

/* =====================================================
   Wide Feature Box
   ===================================================== */

.pjiii-wide-feature{

    display:grid;
    grid-template-columns:110px 1fr;
    gap:2.5rem;

    align-items:center;

    width:100%;

    margin-top:4rem;
    padding:2.5rem;

    background:rgba(6,10,15,.96);

    border:1px solid rgba(183,145,53,.30);

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);

    transition:
        transform .35s ease,
        border-color .35s ease;
}

.pjiii-wide-feature:hover{

    transform:translateY(-4px);

    border-color:rgba(183,145,53,.60);
}

.pjiii-wide-feature-icon{

    width:90px;
    height:90px;

    object-fit:contain;
}

.pjiii-wide-feature-copy h3{

    margin:0 0 .75rem;

    color:#e5c985;

    font-size:clamp(1.7rem,2vw,2.2rem);
}

.pjiii-wide-feature-copy p{

    margin:0;

    max-width:900px;

    line-height:1.75;

    color:#b6bcc6;

    font-size:1.08rem;
}

@media(max-width:850px){

    .pjiii-wide-feature{

        grid-template-columns:1fr;

        text-align:center;
    }

    .pjiii-wide-feature-icon{

        margin:auto;
    }
}