/* ============================================================
   TransLog v2.12 — Content Block + Image Gallery Slider
   Drop at: public/assets/css/sections.css
   ============================================================ */

/* =========================================================
   CONTENT BLOCK  (centered text section like "Fuhrpark")
   ========================================================= */
.cblock-section {
    padding: 88px 0 72px;
    background: #fff;
    position: relative;
}
.cblock-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.cblock-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f59e0b;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.cblock-eyebrow-icon {
    color: #3b82f6;
    font-size: 1.15rem;
}
.cblock-title {
    margin: 0 0 28px;
    font-size: 2.6rem;
    color: #0B1D3A;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
}
.cblock-body {
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.cblock-body p        { margin: 0 0 14px; }
.cblock-body p:last-child { margin-bottom: 0; }
.cblock-body h2       { font-size: 1.5rem; margin: 22px 0 10px; color: #0B1D3A; font-weight: 700; }
.cblock-body h3       { font-size: 1.2rem; margin: 18px 0 8px;  color: #0B1D3A; font-weight: 600; }
.cblock-body ul,
.cblock-body ol       { text-align: left; max-width: 640px; margin: 0 auto 14px; padding-left: 22px; }
.cblock-body li       { margin-bottom: 6px; }
.cblock-body a        { color: #2563eb; text-decoration: underline; }
.cblock-body strong   { color: #0B1D3A; }
.cblock-body blockquote {
    margin: 16px auto;
    padding: 10px 18px;
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
    color: #334155;
    max-width: 680px;
    text-align: left;
}

@media (max-width: 720px) {
    .cblock-section { padding: 56px 0 48px; }
    .cblock-title   { font-size: 1.65rem; }
    .cblock-body    { font-size: 0.95rem; }
}

/* =========================================================
   GALLERY SLIDER  (horizontal 3-image row)
   ========================================================= */
.gallery-section {
    padding: 72px 0 88px;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}
.gallery-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.gallery-head {
    text-align: center;
    margin-bottom: 40px;
}
.gallery-eyebrow {
    display: inline-block;
    color: #f59e0b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.gallery-title {
    margin: 0;
    font-size: 2.2rem;
    color: #0B1D3A;
    font-weight: 700;
    line-height: 1.2;
}

/* Track / viewport */
.gallery-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}
.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
/* each slide is 1/3 of the viewport; on tablet 1/2; on mobile full width */
.gallery-slide {
    flex: 0 0 calc((100% - 40px) / 3);  /* 3 visible, 2 gaps */
    min-width: 0;
}
@media (max-width: 1000px) {
    .gallery-slide { flex: 0 0 calc((100% - 20px) / 2); }   /* 2 visible */
    .gallery-track { gap: 20px; }
}
@media (max-width: 640px) {
    .gallery-slide { flex: 0 0 100%; }                      /* 1 visible */
    .gallery-track { gap: 16px; }
}

.gallery-card img {
    /* Overridden by v2.13 rule below — kept for fallback */
}

/* Overlay card (styled below in v2.13 section as sibling of card) */

/* Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0B1D3A;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.2s;
    line-height: 1;
}
.gallery-arrow:hover:not(:disabled) {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-50%) scale(1.06);
}
.gallery-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}
.gallery-arrow-prev { left: -12px; }
.gallery-arrow-next { right: -12px; }
@media (max-width: 640px) {
    .gallery-arrow-prev { left: 8px; }
    .gallery-arrow-next { right: 8px; }
    .gallery-arrow      { width: 40px; height: 40px; }
}

/* Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
.gallery-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-dot:hover { background: #94a3b8; }
.gallery-dot.is-active {
    background: #3b82f6;
    transform: scale(1.3);
}

/* =========================================================
   ADMIN — gallery list thumbnail
   ========================================================= */
.gallery-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
/* ============================================================
   TransLog v2.13 additions — appended to sections.css
   ============================================================ */

/* =========================================================
   CONTENT BLOCK with image (two-column layout)
   ========================================================= */
.cblock-section.cblock-with-image .cblock-inner {
    max-width: 1200px;
}
.cblock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.cblock-grid.image-right .cblock-visual  { order: 2; }
.cblock-grid.image-right .cblock-text    { order: 1; }

.cblock-visual { position: relative; }
.cblock-image {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    display: block;
    aspect-ratio: 4/3;
}

/* Left-aligned versions (when there's an image) */
.cblock-text { text-align: left; }
.cblock-eyebrow-left {
    justify-content: flex-start;
}
.cblock-title-left {
    text-align: left;
    font-size: 2.2rem;
}
.cblock-body-left {
    text-align: left;
    max-width: none;
    margin: 0;
}
.cblock-body-left ul,
.cblock-body-left ol {
    margin: 0 0 14px 0;
}
.cblock-body-left blockquote {
    margin: 16px 0;
    max-width: none;
}

@media (max-width: 900px) {
    .cblock-grid { grid-template-columns: 1fr; gap: 32px; }
    .cblock-grid.image-right .cblock-visual,
    .cblock-grid.image-right .cblock-text { order: 0; }
    .cblock-title-left { font-size: 1.55rem; }
    .cblock-image { max-height: 320px; }
}

/* =========================================================
   GALLERY — improved overlay (v2.13)
   ========================================================= */

/* Image wrapper so overlay can sit OUTSIDE the card's hover-scale */
.gallery-image-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
}
.gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
}
.gallery-card:hover .gallery-image-wrap img {
    transform: scale(1.06);
}

/* The slide is positioned relative so overlay can be absolute to it */
.gallery-slide {
    position: relative;
}

.gallery-overlay-text { flex: 1; min-width: 0; }
.gallery-overlay-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}
.gallery-overlay-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0B1D3A;
    line-height: 1.25;
    word-break: break-word;
}

/* Overlay — now positioned relative to slide, not card, so button is clickable */
.gallery-slide .gallery-overlay {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    z-index: 2;  /* above image */
    transition: transform 0.3s, box-shadow 0.3s;
    pointer-events: auto;
}
.gallery-slide:hover .gallery-overlay {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}

/* Ensure the card link fills only the image area, not the overlay */
.gallery-card {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

/* Override old rule where img was direct child */
.gallery-card > img {
    display: none;  /* prevent double image if old HTML is cached */
}

.gallery-overlay-arrow {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    cursor: pointer;
}
.gallery-overlay-arrow:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
    filter: brightness(1.08);
}
.gallery-overlay-arrow-static {
    cursor: default;
}
.gallery-overlay-arrow-static:hover {
    transform: none;
    filter: none;
}

@media (max-width: 640px) {
    .gallery-slide .gallery-overlay { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
    .gallery-overlay-title { font-size: 0.92rem; }
    .gallery-overlay-arrow { width: 38px; height: 38px; font-size: 1rem; }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Service Cards    [service-cards columns="N"]
   Reusable image-cards-with-overlay pattern. 1/2/3/4 columns,
   collapsing to 1 column on mobile.
   ════════════════════════════════════════════════════════════════ */
.module-service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px 0;
}
.module-service-cards.module-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-service-cards.module-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-service-cards.module-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.module-card {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    isolation: isolate;
}
a.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.module-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.10) 70%,
        rgba(0, 0, 0, 0)    100%
    );
    pointer-events: none;
}

.module-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}
.module-card-title {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
}
.module-card-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.module-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #E8A317;            /* site gold */
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}
a.module-card:hover .module-card-link {
    gap: 12px;                 /* arrow slides forward on card hover */
}
.module-card-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* When [card] has no image, give it a subtle navy-to-gold gradient
   so it doesn't render as a plain dark rectangle. */
.module-card:not([style*="background-image"]) {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #E8A317 200%);
}

/* Tighter padding for 3- and 4-up so titles still read well */
.module-cols-3 .module-card,
.module-cols-4 .module-card { min-height: 260px; }
.module-cols-3 .module-card-body,
.module-cols-4 .module-card-body { padding: 22px; }
.module-cols-3 .module-card-title,
.module-cols-4 .module-card-title { font-size: 1.2rem; }
.module-cols-3 .module-card-text,
.module-cols-4 .module-card-text { font-size: 0.88rem; }

/* Single-column variant: wider, more cinematic */
.module-cols-1 .module-card { min-height: 380px; }
.module-cols-1 .module-card-body { padding: 36px; }
.module-cols-1 .module-card-title { font-size: 1.8rem; }

/* Responsive: collapse to single column below 760px no matter what */
@media (max-width: 760px) {
    .module-service-cards.module-cols-2,
    .module-service-cards.module-cols-3,
    .module-service-cards.module-cols-4 {
        grid-template-columns: 1fr;
    }
    .module-card { min-height: 280px; }
    .module-card-body { padding: 22px; }
    .module-card-title { font-size: 1.25rem; }
    .module-card-text { font-size: 0.9rem; }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Reviews / Testimonials   [reviews layout="grid|marquee"]
   Reuses the homepage .tm-card / .tm-avatar / .tm-stars classes
   from products.css, so the cards look identical to the homepage.
   This block adds only the wrapper + grid-layout pieces.
   ════════════════════════════════════════════════════════════════ */
.module-reviews {
    margin: 40px 0;
}

/* Optional section header (eyebrow + title + accent line) */
.module-reviews-header {
    text-align: center;
    margin-bottom: 32px;
}
.module-reviews-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E8A317;
    margin-bottom: 10px;
}
.module-reviews-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0B1D3A;
    margin: 0 0 0;
    line-height: 1.2;
}
.module-reviews-accent {
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, #E8A317, #f59e0b);
    border-radius: 2px;
}

/* Grid layout — static cards in N columns */
.module-reviews-grid .module-reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.module-reviews-grid.module-cols-2 .module-reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-reviews-grid.module-cols-3 .module-reviews-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* In grid mode the .tm-card width should fill the grid cell, not its
   homepage flex-basis of 360px. */
.module-reviews-grid .tm-card {
    flex: none;
    max-width: none;
    width: 100%;
}

/* Responsive: collapse to single column on small screens */
@media (max-width: 760px) {
    .module-reviews-grid.module-cols-2 .module-reviews-list,
    .module-reviews-grid.module-cols-3 .module-reviews-list {
        grid-template-columns: 1fr;
    }
    .module-reviews-title { font-size: 1.5rem; }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: FAQ   [faq mode="single|multi"]
   The .faq-item / .faq-question / .faq-answer classes already exist
   in style.css from the dedicated FAQ page. This block only adds
   the optional eyebrow + title section header above the list.
   ════════════════════════════════════════════════════════════════ */
.module-faq {
    margin: 40px 0;
}
.module-faq-header {
    text-align: center;
    margin-bottom: 28px;
}
.module-faq-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E8A317;
    margin-bottom: 10px;
}
.module-faq-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0B1D3A;
    margin: 0;
    line-height: 1.2;
}
.module-faq-accent {
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, #E8A317, #f59e0b);
    border-radius: 2px;
}

/* The existing .faq-list rule has max-width: 800px; margin: 0 auto.
   Inside a module that's already centered in a .container, that
   still works fine — the list will be centered up to 800px wide. */

@media (max-width: 760px) {
    .module-faq-title { font-size: 1.5rem; }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: FAQ — MODERN STYLE   [faq style="modern"]
   Big editorial layout. Numbered items, huge display title,
   triangle indicator, hairline separators, light blue-gray bg.
   ════════════════════════════════════════════════════════════════ */
.module-faq-modern {
    /* Break out of the page container's padding so the section
       background stretches edge-to-edge — but cap its inner content
       width so the layout still feels like a designed canvas. */
    background: #eef2f6;
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 96px 24px;
}
.module-faq-modern-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Header ── */
.module-faq-modern-header {
    max-width: 880px;
    margin: 0 auto 64px;
    padding: 0 16px;
    /* Sit roughly where the screenshot has the title — left-aligned,
       offset from page-left, with empty space on the left. */
    padding-left: clamp(16px, 28%, 280px);
}
.module-faq-modern-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1d4ed8;        /* the blue used in the screenshot */
    margin-bottom: 16px;
}
.module-faq-modern-title {
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    font-weight: 800;
    color: #0B1D3A;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ── Item rows ── */
.module-faq-modern .faq-list {
    /* Override the classic .faq-list max-width so the modern layout
       can use the full width of its inner container. */
    max-width: none;
    margin: 0;
    padding: 0 16px;
}

.module-faq-modern .faq-item {
    /* Strip the classic card chrome — modern is hairline-only. */
    border: 0;
    border-top: 1px solid #c7d0db;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    transition: background-color 0.25s ease;
}
.module-faq-modern .faq-item:last-child {
    border-bottom: 1px solid #c7d0db;
}
.module-faq-modern .faq-item:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* The clickable question row — three columns: number, question, triangle */
.module-faq-modern .faq-question {
    display: grid;
    grid-template-columns: clamp(80px, 12%, 140px) 1fr auto;
    align-items: center;
    gap: clamp(20px, 4vw, 60px);
    width: 100%;
    padding: 28px 8px 28px 0;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: #0B1D3A;
    transition: padding 0.25s ease;
}
/* Override classic .faq-question hover bg (gray-50) — modern uses
   the row-level hover effect instead. */
.module-faq-modern .faq-question:hover {
    background: transparent;
}

.faq-modern-num {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    color: #6b7e95;
    letter-spacing: -0.01em;
    line-height: 1;
    /* Right-align numbers so digit columns stack evenly. */
    text-align: left;
    padding-left: clamp(8px, 4%, 60px);
}

.faq-modern-q {
    font-size: clamp(1.05rem, 1.7vw, 1.55rem);
    font-weight: 600;
    color: #0B1D3A;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.faq-modern-tri {
    /* CSS-drawn triangle: ▶ when closed, ▼ when open. */
    display: inline-block;
    width: 0; height: 0;
    border-left: 9px solid #0B1D3A;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: clamp(8px, 2%, 32px);
}
.module-faq-modern .faq-item.open .faq-modern-tri {
    transform: rotate(90deg);
}

/* The expanding answer panel */
.module-faq-modern .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.module-faq-modern .faq-item.open .faq-answer {
    /* Generous cap — modern style invites longer answers. */
    max-height: 1200px;
}
.module-faq-modern .faq-answer-inner {
    /* Indent answer to align with the question column (skipping the
       number column on the left). */
    padding: 0 clamp(20px, 6%, 80px) 36px;
    margin-left: clamp(80px, 12%, 140px);
    color: #4a5b73;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    line-height: 1.75;
    max-width: 760px;
}
.module-faq-modern .faq-answer-inner strong {
    color: #0B1D3A;
    font-weight: 700;
}

/* ── Mobile / tablet ── */
@media (max-width: 760px) {
    .module-faq-modern {
        padding: 56px 16px;
    }
    .module-faq-modern-header {
        margin-bottom: 40px;
        padding-left: 0;
    }
    .module-faq-modern .faq-list {
        padding: 0;
    }
    .module-faq-modern .faq-question {
        grid-template-columns: 48px 1fr auto;
        gap: 14px;
        padding: 20px 4px 20px 0;
    }
    .faq-modern-num {
        padding-left: 0;
        font-size: 1.2rem;
    }
    .faq-modern-q {
        font-size: 1rem;
    }
    .faq-modern-tri {
        border-left-width: 7px;
        border-top-width: 5px;
        border-bottom-width: 5px;
        margin-right: 4px;
    }
    .module-faq-modern .faq-answer-inner {
        padding: 0 4px 24px;
        margin-left: 62px;
        font-size: 0.95rem;
        line-height: 1.6;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Tabs   [tabs] / [tab]
   Bold uppercase tab labels with a gold underline under the active
   one. Matches the Branchenlösungen / Fuhrpark reference design.
   ════════════════════════════════════════════════════════════════ */
.module-tabs {
    margin: 32px 0;
}

/* Optional italic-orange heading above the tabs */
.module-tabs-title {
    color: #E8A317;
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -0.005em;
}

/* Button strip — the tabs themselves */
.module-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 28px;
    /* Allow horizontal scroll on tight screens rather than wrapping —
       matches the look in the screenshots. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Hide the scrollbar in webkit browsers — keep just the scroll behaviour */
.module-tabs-nav::-webkit-scrollbar { display: none; }
.module-tabs-nav { scrollbar-width: none; }

.module-tabs-btn {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 14px 22px;
    margin-bottom: -1px;            /* overlap the nav's bottom border */
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8A317;                 /* inactive: gold (matches reference) */
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.module-tabs-btn:hover {
    background: rgba(232, 163, 23, 0.06);
}
.module-tabs-btn.is-active {
    color: #0B1D3A;                 /* active: dark navy */
    border-bottom-color: #E8A317;   /* gold underline */
}
.module-tabs-btn:focus-visible {
    outline: 2px solid #E8A317;
    outline-offset: -2px;
}

/* Panel area */
.module-tabs-panels {
    position: relative;
}
.module-tabs-panel {
    /* Smooth-ish entrance — fade only (no layout shift) */
    animation: tabFadeIn 0.25s ease;
}
.module-tabs-panel[hidden] {
    display: none !important;       /* the [hidden] attribute should already do this; belt + braces */
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* When a tab body contains another module (service-cards, reviews,
   etc.), reset the top margin so it nests cleanly inside the panel. */
.module-tabs-panel > .module-service-cards:first-child,
.module-tabs-panel > .module-reviews:first-child,
.module-tabs-panel > .module-faq:first-child,
.module-tabs-panel > p:first-child,
.module-tabs-panel > h2:first-child,
.module-tabs-panel > h3:first-child {
    margin-top: 0;
}

/* Mobile / narrow screens */
@media (max-width: 640px) {
    .module-tabs-btn {
        padding: 12px 16px;
        font-size: 0.78rem;
    }
    .module-tabs-nav {
        margin-bottom: 22px;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: FAQ — BOXED STYLE   [faq style="boxed"]
   Light-gray rounded boxes per item. Gold/orange question text when
   open, dark navy when closed. Triangle indicator on the right.
   Designed to look great on its own AND nested inside [tabs].
   ════════════════════════════════════════════════════════════════ */
.module-faq-boxed {
    margin: 32px 0;
}

/* Override the classic .faq-item card chrome — boxed uses a filled
   gray background instead of an outlined card. */
.module-faq-boxed .faq-item {
    background: #f3f4f6;
    border: 0;                  /* kill the classic 1px border */
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: background 0.2s ease;
}
.module-faq-boxed .faq-item:hover {
    background: #ebeef2;
    border: 0;                  /* defensive — override classic hover border */
}
.module-faq-boxed .faq-item.open {
    background: #f3f4f6;        /* same as closed — the gold text is the cue */
}

/* The clickable question row */
.module-faq-boxed .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 22px 26px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    /* Override classic hover bg — boxed handles hover at the item level */
    transition: padding 0.2s ease;
}
.module-faq-boxed .faq-question:hover {
    background: transparent;
}

/* Closed: dark navy bold. Open: gold. */
.faq-boxed-q {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: #0B1D3A;
    transition: color 0.2s ease;
    flex: 1;
    min-width: 0;
}
.module-faq-boxed .faq-item.open .faq-boxed-q {
    color: #E8A317;             /* gold/orange — matches reference */
}

/* Triangle indicator (CSS-drawn, no SVG dependency) */
.faq-boxed-tri {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #0B1D3A;
    border-top: 5.5px solid transparent;
    border-bottom: 5.5px solid transparent;
    transition: transform 0.3s ease, border-left-color 0.2s ease;
}
.module-faq-boxed .faq-item.open .faq-boxed-tri {
    transform: rotate(90deg);
    border-left-color: #E8A317; /* gold when open */
}

/* The expanding answer panel — the .faq-answer max-height transition
   from style.css already handles open/close animation. */
.module-faq-boxed .faq-item.open .faq-answer {
    max-height: 1500px;         /* generous cap for long answers */
}

/* Inner answer content: divider line above + muted gray text below */
.module-faq-boxed .faq-answer-inner {
    padding: 0 26px 24px;
    color: #4a5b73;
    font-size: 0.95rem;
    line-height: 1.75;
    /* Subtle divider between question and answer when open */
    border-top: 1px solid rgba(11, 29, 58, 0.08);
    margin-top: 4px;
    padding-top: 18px;
}
.module-faq-boxed .faq-answer-inner strong {
    color: #0B1D3A;
    font-weight: 700;
}

/* When boxed FAQ is nested inside a tabs panel, tighten the top
   margin so it sits flush with the tab divider line. */
.module-tabs-panel > .module-faq-boxed:first-child {
    margin-top: 0;
}

/* Mobile */
@media (max-width: 640px) {
    .module-faq-boxed .faq-question {
        padding: 18px 18px;
    }
    .module-faq-boxed .faq-answer-inner {
        padding: 16px 18px 20px;
        font-size: 0.92rem;
    }
    .faq-boxed-q { font-size: 0.95rem; }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Media + Text   [media-text]
   Six layout variants for combining text with one or more images.
   Designed to drop into any [tab] panel or stand alone on a page.
   All layouts collapse to a single column on mobile.
   ════════════════════════════════════════════════════════════════ */

.module-mediatext {
    margin: 24px 0;
    display: grid;
    gap: 32px;
    align-items: start;
}

/* The italic-orange heading — same family as .module-tabs-title */
.module-mediatext-heading {
    color: #E8A317;
    font-style: italic;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.005em;
    line-height: 1.15;
}

/* Free-form text body — paragraphs of muted gray */
.module-mediatext-body {
    color: #4a5b73;
    font-size: 0.95rem;
    line-height: 1.75;
}
.module-mediatext-body p {
    margin: 0 0 14px;
}
.module-mediatext-body p:last-child {
    margin-bottom: 0;
}
.module-mediatext-body strong {
    color: #0B1D3A;
    font-weight: 700;
}
.module-mediatext-body a {
    color: #E8A317;
    text-decoration: none;
}
.module-mediatext-body a:hover {
    text-decoration: underline;
}

/* The image gallery container — its display mode varies by layout */
.module-mediatext-gallery {
    display: grid;
    gap: 10px;
}
.module-mediatext-img {
    overflow: hidden;
    border-radius: 4px;
    background: #f1f5f9;
    aspect-ratio: 4 / 3;
}
.module-mediatext-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.module-mediatext-img:hover img {
    transform: scale(1.04);
}

/* ── Layout 1: image-left ─────────────────────────
   One large image on the LEFT, text on the right. */
.module-mediatext-image-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.module-mediatext-image-left .module-mediatext-gallery {
    grid-template-columns: 1fr;
}
.module-mediatext-image-left .module-mediatext-img {
    aspect-ratio: 16 / 11;   /* slightly taller for hero feel */
}

/* ── Layout 2: image-right ────────────────────────
   Mirror of layout 1 — text on left, image on right.
   HTML order is gallery, text — we flip via `order`. */
.module-mediatext-image-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.module-mediatext-image-right .module-mediatext-gallery {
    grid-template-columns: 1fr;
    order: 2;
}
.module-mediatext-image-right .module-mediatext-text {
    order: 1;
}
.module-mediatext-image-right .module-mediatext-img {
    aspect-ratio: 16 / 11;
}

/* ── Layout 3: text-then-gallery ──────────────────
   Text full-width on top, then a row of images below.
   Good for "Oldtimer-Transporte" style pages. */
.module-mediatext-text-then-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
}
.module-mediatext-text-then-gallery .module-mediatext-gallery {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Layout 4: gallery-left ───────────────────────
   Single column of small thumbnails on the left, text on the right.
   Matches the FlexCover/LowBed reference (small column of thumbs). */
.module-mediatext-gallery-left {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 24px;
}
.module-mediatext-gallery-left .module-mediatext-gallery {
    grid-template-columns: 1fr;
    gap: 6px;
}
.module-mediatext-gallery-left .module-mediatext-img {
    aspect-ratio: 4 / 3;
}

/* ── Layout 5: gallery-2col-left ──────────────────
   2-column grid of small thumbnails on the left, text on the right.
   Matches the Landmaschinen reference. */
.module-mediatext-gallery-2col-left {
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
    gap: 24px;
}
.module-mediatext-gallery-2col-left .module-mediatext-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* ── Layout 6: gallery-2col-right ─────────────────
   Mirror of layout 5 — text on left, 2-col thumbs on right. */
.module-mediatext-gallery-2col-right {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 30%);
    gap: 24px;
}
.module-mediatext-gallery-2col-right .module-mediatext-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    order: 2;
}
.module-mediatext-gallery-2col-right .module-mediatext-text {
    order: 1;
}

/* When media-text is the FIRST thing inside a tab panel, kill the
   top margin so it sits flush with the tab divider line. */
.module-tabs-panel > .module-mediatext:first-child {
    margin-top: 0;
}

/* Responsive: collapse all 2-column layouts to a single stack on
   narrow screens. The HTML stays in the same order; the gallery
   appears above the text in stacked layouts (which reads naturally
   on mobile — see the image first, then the description). */
@media (max-width: 760px) {
    .module-mediatext-image-left,
    .module-mediatext-image-right,
    .module-mediatext-gallery-left,
    .module-mediatext-gallery-2col-left,
    .module-mediatext-gallery-2col-right {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    /* Reset order overrides on mobile so HTML order wins */
    .module-mediatext-image-right .module-mediatext-gallery,
    .module-mediatext-image-right .module-mediatext-text,
    .module-mediatext-gallery-2col-right .module-mediatext-gallery,
    .module-mediatext-gallery-2col-right .module-mediatext-text {
        order: initial;
    }
    /* Compress the inline thumbnail layouts to a wider grid */
    .module-mediatext-gallery-left .module-mediatext-gallery,
    .module-mediatext-gallery-2col-left .module-mediatext-gallery,
    .module-mediatext-gallery-2col-right .module-mediatext-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .module-mediatext-text-then-gallery .module-mediatext-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Track & Trace   [track-trace]
   Reusable shipment-tracking lookup form. 4 style variants.
   ════════════════════════════════════════════════════════════════ */

.module-tracktrace {
    margin: 24px 0;
    --tt-gold: #E8A317;
    --tt-blue: #0B1D3A;
    --tt-grey: #475569;
    --tt-bg-light: #f8fafc;
}

/* Form is shared across all variants */
.module-tracktrace-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Inputs reset (we want our own styling, not the global form-control) */
.module-tracktrace-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    color: var(--tt-blue);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}
.module-tracktrace-input::placeholder {
    color: #94a3b8;
    font-family: inherit;
}
.module-tracktrace-input:hover {
    border-color: #94a3b8;
}
.module-tracktrace-input:focus {
    outline: 0;
    border-color: var(--tt-gold);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.18);
    background: #fffdf7;
}

/* Button is shared across variants too */
.module-tracktrace-btn {
    flex-shrink: 0;
    padding: 12px 22px;
    background: var(--tt-gold);
    color: var(--tt-blue);
    border: 2px solid var(--tt-gold);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}
.module-tracktrace-btn:hover {
    background: #d4940a;
    border-color: #d4940a;
    box-shadow: 0 4px 12px rgba(232, 163, 23, 0.25);
}
.module-tracktrace-btn:active {
    transform: translateY(1px);
}
.module-tracktrace-btn:focus-visible {
    outline: 2px solid var(--tt-blue);
    outline-offset: 2px;
}

/* Headings — used by hero/card */
.module-tracktrace-heading {
    color: var(--tt-blue);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.module-tracktrace-subheading {
    color: var(--tt-grey);
    font-size: 0.95rem;
    margin: 0 0 22px;
    line-height: 1.5;
}
.module-tracktrace-icon {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 10px;
}

/* ── Style 1: hero ─────────────────────────────────────
   Big centred card, padded white background, large form. */
.module-tracktrace-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--tt-bg-light) 100%);
    border-radius: 12px;
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.module-tracktrace-hero .module-tracktrace-inner {
    max-width: 620px;
    margin: 0 auto;
}
.module-tracktrace-hero .module-tracktrace-form {
    margin-top: 8px;
}
.module-tracktrace-hero .module-tracktrace-input {
    padding: 14px 18px;
    font-size: 1rem;
}
.module-tracktrace-hero .module-tracktrace-btn {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ── Style 2: card ─────────────────────────────────────
   White bordered card with subtle shadow, header row left-aligned. */
.module-tracktrace-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    max-width: 720px;
}
.module-tracktrace-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.module-tracktrace-card-head .module-tracktrace-icon {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}
.module-tracktrace-card .module-tracktrace-heading {
    font-size: 1.5rem;
    margin-bottom: 2px;
}
.module-tracktrace-card .module-tracktrace-subheading {
    margin-bottom: 0;
    font-size: 0.88rem;
}

/* ── Style 3: compact ──────────────────────────────────
   Slim single-row bar — input + button. Fits inside a section. */
.module-tracktrace-compact {
    margin: 16px 0;
}
.module-tracktrace-compact .module-tracktrace-input {
    padding: 10px 14px;
    font-size: 0.9rem;
}
.module-tracktrace-compact .module-tracktrace-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* ── Style 4: minimal ──────────────────────────────────
   Borderless inline form — input has only a bottom border, button
   is link-styled. For embedding in tight UI like a footer column. */
.module-tracktrace-minimal {
    margin: 12px 0;
}
.module-tracktrace-minimal .module-tracktrace-form {
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 2px;
    transition: border-color 0.18s ease;
}
.module-tracktrace-minimal .module-tracktrace-form:focus-within {
    border-bottom-color: var(--tt-gold);
}
.module-tracktrace-minimal .module-tracktrace-input {
    border: 0;
    padding: 8px 0;
    background: transparent;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.92rem;
}
.module-tracktrace-minimal .module-tracktrace-input:focus {
    box-shadow: none;
    background: transparent;
    outline: 0;
}
.module-tracktrace-minimal .module-tracktrace-btn {
    background: transparent;
    border: 0;
    color: var(--tt-gold);
    padding: 8px 4px 8px 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.module-tracktrace-minimal .module-tracktrace-btn:hover {
    background: transparent;
    box-shadow: none;
    color: #d4940a;
}

/* ── Mobile: collapse hero/card forms to vertical stacks ──── */
@media (max-width: 560px) {
    .module-tracktrace-form {
        flex-direction: column;
        gap: 8px;
    }
    .module-tracktrace-btn {
        width: 100%;
    }
    .module-tracktrace-hero {
        padding: 40px 18px;
    }
    .module-tracktrace-card {
        padding: 22px 18px;
    }
    .module-tracktrace-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .module-tracktrace-minimal .module-tracktrace-form {
        flex-direction: row;   /* keep minimal style horizontal even on mobile */
    }
}

/* ── Existing tracking page form fix (overrides the broken
       .tracking-form rules in style.css that gave it white-on-white
       text when used outside the dark hero section). ───────────── */
.page-content .tracking-form {
    display: flex;
    gap: 8px;
}
.page-content .tracking-form input.form-control {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    color: #0B1D3A;
    background: #ffffff;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.page-content .tracking-form input.form-control::placeholder {
    color: #94a3b8;
}
.page-content .tracking-form input.form-control:focus {
    outline: 0;
    border-color: #E8A317;
    background: #fffdf7;
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.18);
}
.page-content .tracking-form .btn-primary {
    flex-shrink: 0;
    padding: 13px 24px;
    background: #E8A317;
    color: #0B1D3A;
    border: 2px solid #E8A317;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.page-content .tracking-form .btn-primary:hover {
    background: #d4940a;
    border-color: #d4940a;
    box-shadow: 0 4px 12px rgba(232, 163, 23, 0.25);
}
@media (max-width: 560px) {
    .page-content .tracking-form { flex-direction: column; }
    .page-content .tracking-form .btn-primary { width: 100%; }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Feature Cards   [feature-cards]
   Side-by-side cards with coloured icon + title + checkmark items.
   Matches the "Auto-Schutz / Maschinen-Schutz" home-page reference.
   ════════════════════════════════════════════════════════════════ */

.module-feature-cards {
    margin: 32px 0;
    --feat-blue: #0B1D3A;
    --feat-grey: #475569;
    --feat-grey-light: #64748b;
    --feat-bg-light: #f8fafc;
    --feat-check-green: #16a34a;
}

.module-feature-header {
    text-align: center;
    margin-bottom: 28px;
}
.module-feature-eyebrow {
    color: #E8A317;
    font-size: 0.78rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.module-feature-heading {
    color: var(--feat-blue);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    font-style: italic;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.module-feature-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}
.module-feature-cards-cols-1 .module-feature-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
.module-feature-cards-cols-2 .module-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-feature-cards-cols-3 .module-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.module-feature-card {
    background: var(--feat-bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 28px 24px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.module-feature-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.module-feature-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.module-feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.module-feature-icon-box svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}
.module-feature-icon-emoji {
    font-size: 22px;
    line-height: 1;
}
.module-feature-card-title {
    color: var(--feat-blue);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.module-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.module-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.module-feature-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.module-feature-check {
    flex-shrink: 0;
    color: var(--feat-check-green);
    margin-top: 2px;
    display: inline-flex;
}
.module-feature-check svg {
    width: 18px;
    height: 18px;
}
.module-feature-item-body {
    flex: 1;
    min-width: 0;
}
.module-feature-item-title {
    color: var(--feat-blue);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 2px;
}
.module-feature-item-desc {
    color: var(--feat-grey);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Mobile: collapse multi-column to single column */
@media (max-width: 760px) {
    .module-feature-cards-cols-2 .module-feature-grid,
    .module-feature-cards-cols-3 .module-feature-grid {
        grid-template-columns: 1fr;
    }
    .module-feature-card {
        padding: 22px;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Carousel   [carousel]
   Horizontal swipeable carousel — image cards or testimonials.
   CSS scroll-snap for native swipe; light JS for buttons + dots.
   ════════════════════════════════════════════════════════════════ */

.module-carousel {
    margin: 40px 0;
    --car-gap: 18px;
    --car-blue: #0B1D3A;
    --car-grey: #475569;
    --car-gold: #E8A317;
    /* Round 34: defensive — even if a child element somehow exceeds
       its bounds (e.g. an oversized image, a nav button positioned
       outside), the section itself never causes horizontal page
       scroll. overflow-x:clip is preferred over hidden because it
       doesn't establish a new scroll container (so position:sticky
       on parent still works). */
    overflow-x: clip;
}

.module-carousel-header {
    text-align: center;
    margin-bottom: 28px;
}
.module-carousel-eyebrow {
    color: var(--car-gold);
    font-size: 0.78rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.module-carousel-heading {
    color: var(--car-blue);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 700;
    font-style: italic;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

/* The viewport wraps the track and the prev/next buttons. */
.module-carousel-viewport {
    position: relative;
}

/* The track is the scroll container. */
.module-carousel-track {
    display: flex;
    gap: var(--car-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE */
    padding: 4px 4px 12px;        /* room for focus ring */
    -webkit-overflow-scrolling: touch;
}
.module-carousel-track::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
}

.module-carousel-slide {
    flex-shrink: 0;
    /* width formula: (100% - gap × (visible-1)) / visible */
    width: calc((100% - var(--car-gap) * (var(--carousel-visible, 3) - 1)) / var(--carousel-visible, 3));
    scroll-snap-align: start;
}

/* ── IMAGE STYLE ─────────────────────────────────── */
.module-carousel-slide-image .module-carousel-slide-inner {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}
/* Round 41: slide-inner is now an <a> when the slide has a link. Reset
   anchor styling so the card looks identical to the non-linked version. */
a.module-carousel-slide-inner,
a.module-carousel-slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
a.module-carousel-slide-inner:hover,
a.module-carousel-slide-link:hover {
    text-decoration: none;
}
.module-carousel-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.module-carousel-slide-image:hover img {
    transform: scale(1.04);
}
.module-carousel-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #e2e8f0;
    color: #94a3b8;
}

.module-carousel-caption {
    position: absolute;
    left: 18px;
    right: 70px;
    bottom: 18px;
    background: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.module-carousel-caption-label {
    color: var(--car-gold);
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 2px;
}
.module-carousel-caption-title {
    color: var(--car-blue);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.module-carousel-arrow {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--car-gold);
    color: var(--car-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
    box-shadow: 0 4px 12px rgba(232, 163, 23, 0.35);
}
.module-carousel-arrow:hover {
    background: #d4940a;
    transform: scale(1.06);
}
/* Round 41: when the entire slide is wrapped in <a>, the arrow is just
   a decorative <span>. Trigger its hover effect from the parent card so
   the visual feedback still works. */
a.module-carousel-slide-link:hover .module-carousel-arrow,
a.module-carousel-slide-link:focus .module-carousel-arrow {
    background: #d4940a;
    transform: scale(1.06);
}
.module-carousel-arrow svg {
    width: 22px;
    height: 22px;
}

/* ── TESTIMONIAL STYLE ────────────────────────────── */
.module-carousel-slide-testimonial .module-carousel-slide-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 28px 26px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.module-carousel-quote-mark {
    color: var(--car-gold);
    opacity: 0.4;
    height: 32px;
}
.module-carousel-quote-mark svg {
    width: 32px;
    height: 32px;
}
.module-carousel-quote {
    flex: 1;
    color: var(--car-grey);
    font-size: 0.96rem;
    line-height: 1.6;
    font-style: italic;
}
.module-carousel-attribution {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: auto;
}
.module-carousel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.module-carousel-author {
    font-weight: 700;
    color: var(--car-blue);
    font-size: 0.92rem;
}
.module-carousel-role {
    color: var(--car-grey);
    font-size: 0.82rem;
    margin-top: 1px;
}

/* ── PREV/NEXT NAV BUTTONS ────────────────────────── */
.module-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--car-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.module-carousel-nav:hover:not(:disabled) {
    background: var(--car-gold);
    border-color: var(--car-gold);
    color: var(--car-blue);
}
.module-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.module-carousel-nav svg {
    width: 20px;
    height: 20px;
}
/* Round 34: keep buttons INSIDE the viewport so they don't hang off
   the .container's left/right edges (which clip with body{overflow-x:hidden}).
   8px inset means there's a small gap between the button and the
   first/last slide — clean look without wasting horizontal space. */
.module-carousel-prev { left: 8px; }
.module-carousel-prev svg {
    transform: rotate(180deg);
}
.module-carousel-next { right: 8px; }

/* ── DOTS ────────────────────────────────────────── */
.module-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.module-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .15s ease, width .15s ease;
}
.module-carousel-dot:hover {
    background: #94a3b8;
}
.module-carousel-dot.is-active {
    background: var(--car-gold);
    width: 22px;
    border-radius: 4px;
}

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .module-carousel-visible-3,
    .module-carousel-visible-4 {
        --carousel-visible: 2;
    }
    .module-carousel-prev { left: 4px; }
    .module-carousel-next { right: 4px; }
}
@media (max-width: 600px) {
    .module-carousel-visible-2,
    .module-carousel-visible-3,
    .module-carousel-visible-4 {
        --carousel-visible: 1;
    }
    .module-carousel-caption {
        right: 70px;
        padding: 10px 14px;
    }
    .module-carousel-caption-title {
        font-size: 0.95rem;
    }
    .module-carousel-arrow {
        width: 42px;
        height: 42px;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Hero Slideshow   [hero-slideshow]
   When the slideshow is dropped on a regular page (inside
   .page-content > .container), it needs to BREAK OUT of the
   container's max-width and span the full viewport — same look as
   on the home page where it's rendered above .page-content.
   ════════════════════════════════════════════════════════════════ */

/* Full-bleed: pull edges out to the viewport. The 50% - 50vw trick
   works because .container is centered (margin: 0 auto), so the
   element's left/right edges line up with the viewport edges. */
.page-content > .container > .hero-slideshow,
.page-content .container > .hero-slideshow,
.page-content .hero-slideshow {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Body has overflow-x: hidden so the 100vw doesn't introduce
       a horizontal scrollbar even on systems with visible scrollbars. */
}

/* When the slideshow is the FIRST element on the page-content, it
   should sit flush against the navigation — no gap from the
   .page-content top padding (which is 48px in style.css).
   We use multiple selectors to be defensive against:
     - Stray empty <p></p> tags that might come before the section
     - The shortcode parser leaving whitespace text nodes
     - Variations in how the WYSIWYG saves content
   The :first-of-type selector is more lenient than :first-child —
   it only checks for the first element of a given type, ignoring
   surrounding whitespace and empty siblings. */
.page-content > .container > .hero-slideshow:first-child,
.page-content .container > .hero-slideshow:first-child,
.page-content > .container > .hero-slideshow:first-of-type,
.page-content .container > .hero-slideshow:first-of-type {
    margin-top: -48px;   /* cancels the .page-content top padding */
}
@media (max-width: 768px) {
    .page-content > .container > .hero-slideshow:first-child,
    .page-content .container > .hero-slideshow:first-child,
    .page-content > .container > .hero-slideshow:first-of-type,
    .page-content .container > .hero-slideshow:first-of-type {
        margin-top: -32px;   /* mobile has tighter padding */
    }
}

/* If the slideshow is the LAST element, push the bottom margin out
   the same amount so following sections don't have a doubled gap. */
.page-content > .container > .hero-slideshow:last-child,
.page-content .container > .hero-slideshow:last-child {
    margin-bottom: -80px;   /* cancels the .page-content bottom padding */
}

/* Height variants — let editors choose how tall the hero is.
   The base .hero-slideshow rule from style.css sets min-height: 600px;
   we ADD variants here without redefining it. */
.hero-slideshow.hero-slideshow-full {
    min-height: 100vh;
}
.hero-slideshow.hero-slideshow-short {
    min-height: 360px;
}
.hero-slideshow.hero-slideshow-short .hero-slide-content .hero-text h1 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

/* Module variant marker — when the slideshow is rendered VIA the
   module on a non-home page, give following sections a small top
   margin (the home page adds this via different CSS rules). */
.page-content .hero-slideshow + * {
    margin-top: 48px;
}


/* ════════════════════════════════════════════════════════════════
   HEADER REDESIGN — clean, modern, breathable
   ════════════════════════════════════════════════════════════════
   The original header used flex with space-between, which caused
   the logo to push menu items into wrapping when the logo was
   wide (e.g. branded logos like MUTOTO TRANSPORT).
   
   This redesign:
   - Constrains the logo image (max-height + max-width, object-fit)
   - Switches to a 3-column grid: [logo] [menu, centered] [CTA]
     so the logo and CTA are pinned to edges and the menu has
     the entire middle space to breathe
   - Forces nav items to a single line (white-space: nowrap)
   - Replaces tight padding with generous spacing
   - Cleans up the active state (gold underline + colour change,
     no more pill that competes with Track & Trace)
   - Adds a subtle hover affordance
   ════════════════════════════════════════════════════════════════ */

/* ── LOGO ──────────────────────────────────────────── */
/* Constrain whatever logo image admins upload — never let it
   blow out the header. */
.site-header .logo {
    flex-shrink: 0;
    max-height: 56px;
    line-height: 1;
}
.site-header .logo img {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
/* Text-fallback logo (when no image is uploaded) */
.site-header .logo:not(:has(img)) {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── HEADER CONTAINER ──────────────────────────────── */
/* Bump from 72px to 80px to give the bigger logo room.
   Use a flex layout instead of grid so the nav itself can
   distribute its children:
     [logo] [---------- main-nav ----------] [hamburger]
   Inside .main-nav, regular menu items flow left-to-right,
   and .nav-track-btn gets margin-left: auto to be pushed to
   the right edge. */
.site-header .header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── NAV (the middle, takes all available space) ───── */
.site-header .main-nav {
    display: flex !important;
    align-items: center;
    flex: 1;                  /* take up all space between logo and hamburger */
    gap: 4px;
    flex-wrap: nowrap;
    overflow: visible;
}
/* Push the Track & Trace button to the right edge of the nav,
   so the visual layout becomes:
     [logo]  [Startseite … Kontakt]  ←gap→  [Track & Trace] */
.site-header .main-nav .nav-track-btn {
    margin-left: auto;
}

/* Standard menu link — clean, no pill background */
.site-header .main-nav a:not(.nav-track-btn) {
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--gray-700, #475569) !important;
    background: transparent !important;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.2;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.site-header .main-nav a:not(.nav-track-btn):hover {
    color: var(--navy, #0B1D3A) !important;
    background: rgba(232, 163, 23, 0.06) !important;
    border-bottom-color: rgba(232, 163, 23, 0.4);
}
.site-header .main-nav a:not(.nav-track-btn).active {
    color: var(--gold, #E8A317) !important;
    background: transparent !important;
    border-bottom-color: var(--gold, #E8A317);
    font-weight: 600 !important;
}
/* Kill the old ::after underline — the border-bottom replaces it */
.site-header .main-nav a:not(.nav-track-btn).active::after {
    display: none !important;
}

/* ── TRACK & TRACE BUTTON (the right column) ───────── */
/* Make it cleaner and less aggressive — drop the pulsing icon
   animation, soften the shadow, slightly less padding */
.site-header .nav-track-btn {
    padding: 10px 18px !important;
    border-radius: 6px !important;     /* less pill, more button */
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(232, 163, 23, 0.25) !important;
    flex-shrink: 0;
}
.site-header .nav-track-btn:hover {
    transform: none !important;          /* no jump */
    box-shadow: 0 2px 6px rgba(232, 163, 23, 0.35) !important;
}
/* Calm down the pulsing emoji — it's distracting */
.site-header .nav-track-btn .track-icon {
    animation: none !important;
    font-size: 0.95rem !important;
}

/* ── HAMBURGER (mobile) ────────────────────────────── */
/* Make sure it sits in the right column on mobile. */
.site-header .hamburger {
    display: none;
}

/* ── RESPONSIVE BREAKPOINTS ────────────────────────── */
/* On medium screens, tighten the spacing before going mobile */
@media (max-width: 1100px) {
    .site-header .header-inner {
        gap: 16px;
        padding: 0 16px;
    }
    .site-header .main-nav {
        gap: 2px;
    }
    .site-header .main-nav a:not(.nav-track-btn) {
        padding: 10px 10px !important;
        font-size: 0.85rem !important;
    }
}

/* Hide the desktop menu and switch to hamburger on mobile.
   The original style.css already handles this at 768px, but we
   need to override our flex first. */
@media (max-width: 900px) {
    .site-header .header-inner {
        height: 70px;
        gap: 0;
        justify-content: space-between;
    }
    .site-header .main-nav {
        display: none !important;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 16px;
        gap: 2px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        border-top: 1px solid #f1f5f9;
        z-index: 1001;
        flex: 0 0 auto;
    }
    .site-header .main-nav.open {
        display: flex !important;
    }
    .site-header .main-nav a:not(.nav-track-btn) {
        padding: 12px 16px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-radius: 0;
    }
    .site-header .main-nav a:not(.nav-track-btn):last-child {
        border-bottom: 0 !important;
    }
    .site-header .main-nav a:not(.nav-track-btn).active {
        background: rgba(232, 163, 23, 0.08) !important;
        border-bottom-color: #f1f5f9 !important;
    }
    /* Track & Trace inside the dropdown menu */
    .site-header .main-nav .nav-track-btn {
        margin: 8px 0 0 0 !important;
        text-align: center;
        justify-content: center;
    }
    .site-header .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: 0;
        padding: 8px;
        cursor: pointer;
    }
    .site-header .hamburger span {
        width: 22px;
        height: 2px;
        background: var(--navy, #0B1D3A);
        border-radius: 1px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        max-height: 44px;
    }
    .site-header .logo img {
        max-height: 38px;
        max-width: 130px;
    }
}


/* ════════════════════════════════════════════════════════════════
   PAGE PADDING — flush layout when there's no title strip
   ════════════════════════════════════════════════════════════════
   The default style.css sets:
       .page-content { padding: 48px 0 80px; }
   That's correct when there's a .page-hero strip above (the dark
   blue title bar) — gives breathing room.
   
   But when the admin unchecks "Show page title strip" on a page
   (typically because the page starts with a [hero-slideshow] or
   another big visual), the 48px top padding becomes an awkward
   white gap.
   
   The header.php template adds class="no-page-title" to <body>
   when show_title=0. We use that to zero the top padding so
   the first module sits flush against the navigation — same
   look as the home page.
   ════════════════════════════════════════════════════════════════ */

body.no-page-title .page-content {
    padding-top: 0 !important;
}

/* Modern browsers also support :has() — same effect achieved by
   detecting that the page content starts with a hero slideshow.
   This is a belt-and-suspenders fallback in case the body class
   wasn't applied for any reason. */
@supports selector(:has(*)) {
    .page-content:has(> .container > .hero-slideshow:first-child),
    .page-content:has(> .container > .hero-slideshow:first-of-type) {
        padding-top: 0;
    }
}

/* When body.no-page-title is set, the .page-content top padding is
   already zero (rule above). The hero-slideshow's negative top
   margin would then pull it ABOVE the navigation, which we don't
   want. Cancel the negative margin in this case. */
body.no-page-title .page-content > .container > .hero-slideshow:first-child,
body.no-page-title .page-content .container > .hero-slideshow:first-child,
body.no-page-title .page-content > .container > .hero-slideshow:first-of-type,
body.no-page-title .page-content .container > .hero-slideshow:first-of-type {
    margin-top: 0;
}
@media (max-width: 768px) {
    body.no-page-title .page-content > .container > .hero-slideshow:first-child,
    body.no-page-title .page-content .container > .hero-slideshow:first-child,
    body.no-page-title .page-content > .container > .hero-slideshow:first-of-type,
    body.no-page-title .page-content .container > .hero-slideshow:first-of-type {
        margin-top: 0;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: About Section   [about-section]
   "Über uns / Warum uns wählen" layout — image on one side,
   structured content on the other (eyebrow, intro, sub-heading,
   bold-labelled points list, outro).
   ════════════════════════════════════════════════════════════════ */

.module-about-section {
    margin: 64px 0;
    --about-blue: #0B1D3A;
    --about-grey: #475569;
    --about-grey-light: #64748b;
    --about-gold: #E8A317;
}

.module-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.module-about-image {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
    aspect-ratio: 4 / 5;
    background: #f1f5f9;
}
.module-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.module-about-content {
    line-height: 1.65;
}

.module-about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--about-gold);
    font-size: 0.86rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.module-about-eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}
.module-about-eyebrow-icon svg {
    width: 18px;
    height: 18px;
}

/* Intro/outro are now richtext containers — they wrap the
   sanitized HTML emitted by the contenteditable editor. The
   styling targets the inner <p>, <strong>, <em>, <a>, <ul>, <ol>
   so admin-typed B/I/links/lists render with our typography. */
.module-about-intro {
    color: var(--about-grey);
    font-size: 0.98rem;
    font-style: italic;
    line-height: 1.65;
}
.module-about-intro p {
    margin: 0 0 16px;
}
.module-about-intro p:last-child {
    margin-bottom: 0;
}
.module-about-intro strong,
.module-about-intro b {
    font-style: normal;
    font-weight: 700;
    color: var(--about-blue);
}
.module-about-intro em,
.module-about-intro i {
    font-style: italic;
}
.module-about-intro a {
    color: var(--about-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.module-about-intro a:hover {
    color: var(--about-blue);
}
.module-about-intro ul,
.module-about-intro ol {
    margin: 8px 0 16px;
    padding-left: 22px;
}
.module-about-intro li {
    margin-bottom: 4px;
}

.module-about-subheading {
    color: var(--about-blue);
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    margin: 24px 0 14px;
    line-height: 1.2;
}

.module-about-points {
    list-style: none;
    padding: 0 0 0 22px;
    margin: 0 0 24px;
}
.module-about-point {
    color: var(--about-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}
.module-about-point-label {
    color: var(--about-blue);
    font-weight: 700;
    font-style: normal;
}
/* The desc is richtext now — strip the <p> wrapper margins so
   it stays inline alongside the bold label. */
.module-about-point-desc p {
    display: inline;
    margin: 0;
}
.module-about-point-desc strong,
.module-about-point-desc b {
    font-style: normal;
    font-weight: 700;
    color: var(--about-blue);
}
.module-about-point-desc a {
    color: var(--about-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.module-about-point-desc a:hover {
    color: var(--about-blue);
}

.module-about-outro {
    color: var(--about-grey);
    font-size: 0.96rem;
    font-style: italic;
    line-height: 1.65;
    margin: 16px 0 0;
}
.module-about-outro p {
    margin: 0 0 14px;
}
.module-about-outro p:last-child {
    margin-bottom: 0;
}
.module-about-outro strong,
.module-about-outro b {
    font-style: normal;
    font-weight: 700;
    color: var(--about-blue);
}
.module-about-outro em,
.module-about-outro i {
    font-style: italic;
}
.module-about-outro a {
    color: var(--about-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.module-about-outro a:hover {
    color: var(--about-blue);
}
.module-about-outro ul,
.module-about-outro ol {
    margin: 8px 0 14px;
    padding-left: 22px;
}

/* Image-right variant: just swap visual order via grid ordering */
.module-about-image-right .module-about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* Mobile: stack vertically, image on top */
@media (max-width: 900px) {
    .module-about-grid,
    .module-about-image-right .module-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .module-about-image {
        aspect-ratio: 16 / 10;
        max-width: 600px;
        margin: 0 auto;
    }
    .module-about-section {
        margin: 40px 0;
    }
}


/* ════════════════════════════════════════════════════════════════
   ROUND 31 — bulletproof slideshow gap fix
   ════════════════════════════════════════════════════════════════
   Problem: even after round 30's body.no-page-title approach, a
   ~20-30px white gap remained when [hero-slideshow] was used on
   regular pages. Cause: the body class is only added when the
   show_title COLUMN exists in the DB AND the admin set it to 0.
   On installs where the auto-migration didn't run yet, OR where
   the admin didn't set show_title=0, the body class isn't
   present so the round-30 rules don't apply.

   Solution: use :has() to detect "the page-content's first child
   contains a hero-slideshow" and zero the top padding REGARDLESS
   of body class or DB state. For older browsers without :has(),
   fall back to a more aggressive negative margin on the slideshow
   itself (which works as long as overflow doesn't clip it).
   ════════════════════════════════════════════════════════════════ */

/* Modern browsers (~95% as of 2026): :has() detects a slideshow
   inside .page-content's container and zeros the gap directly.
   This works regardless of the body class, regardless of whether
   the show_title column even exists in the database. */
@supports selector(:has(*)) {
    .page-content:has(> .container > .hero-slideshow:first-child),
    .page-content:has(> .container > .hero-slideshow:first-of-type) {
        padding-top: 0;
    }
    /* Cancel the negative margin too (round 25 added it to "eat"
       the page-content padding that's now zero). */
    .page-content:has(> .container > .hero-slideshow:first-child) > .container > .hero-slideshow:first-child,
    .page-content:has(> .container > .hero-slideshow:first-of-type) > .container > .hero-slideshow:first-of-type {
        margin-top: 0;
    }
}

/* Fallback for browsers without :has() — keep the round-25 approach
   (negative margin on the slideshow). This is already in place from
   round 25 / 29 / 30, so we just leave it untouched here. The :has()
   block above takes precedence in modern browsers. */

/* Bonus: the same treatment for [process-steps] and [about-section]
   when they're the first thing on a page with no title strip. */
@supports selector(:has(*)) {
    .page-content:has(> .container > .module-process-steps:first-child),
    .page-content:has(> .container > .process-section:first-child),
    .page-content:has(> .container > .module-about-section:first-child) {
        padding-top: 0;
    }
}


/* ════════════════════════════════════════════════════════════════
   ROUND 31 — sticky WYSIWYG toolbar
   ════════════════════════════════════════════════════════════════
   When editing long pages with many modules, the user shouldn't
   lose access to the formatting toolbar when they scroll down.
   position:sticky pins the toolbar to the top of the viewport
   while the wrapper is in view.

   We use top:0 with high z-index. The wy-wrapper (parent) is
   position:relative so sticky resolves correctly within it.
   ════════════════════════════════════════════════════════════════ */
.wy-toolbar {
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: var(--wy-toolbar-bg, #f8fafc);
    /* Subtle shadow when stuck so it's visually distinct from
       the content scrolling behind it. */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Industry Solutions   [industry-solutions]
   "Branchenlösungen" pattern — header strip with eyebrow / italic
   heading / subtitle / gold rule, then a row of cards. Each card
   has a big serif italic NUMBER at the top by default, with the
   option to override per-card to an icon or uploaded image.
   ════════════════════════════════════════════════════════════════ */

.module-industry-solutions {
    --isol-navy: #0B1D3A;
    --isol-gold: #E8A317;
    --isol-grey: #64748b;
    --isol-grey-light: #94a3b8;
    --isol-card-border: #e2e8f0;
    padding: 64px 0;
    background: #fff;
}

/* Header strip — shared visual language with services-grid */
.module-isol-header {
    text-align: center;
    margin-bottom: 40px;
}
.module-isol-eyebrow {
    display: inline-block;
    color: var(--isol-gold);
    font-size: 0.84rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.module-isol-heading {
    color: var(--isol-navy);
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    margin: 0 0 8px;
    line-height: 1.2;
}
.module-isol-subtitle {
    color: var(--isol-grey-light);
    font-size: 1rem;
    font-style: italic;
    margin: 0 0 18px;
    line-height: 1.5;
}
.module-isol-rule {
    width: 56px;
    height: 3px;
    background: var(--isol-gold);
    border-radius: 2px;
    margin: 0 auto;
}

/* Cards grid */
.module-isol-grid {
    display: grid;
    gap: 18px;
}
.module-isol-cols-2 .module-isol-grid { grid-template-columns: repeat(2, 1fr); }
.module-isol-cols-3 .module-isol-grid { grid-template-columns: repeat(3, 1fr); }
.module-isol-cols-4 .module-isol-grid { grid-template-columns: repeat(4, 1fr); }
.module-isol-cols-5 .module-isol-grid { grid-template-columns: repeat(5, 1fr); }

.module-isol-card {
    background: #fff;
    border: 1px solid var(--isol-card-border);
    border-radius: 12px;
    padding: 28px 22px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    /* Long descriptions in some cards shouldn't push other cards
       to be taller — but we DO want all cards in a row to have the
       same height, so use stretch on the grid. */
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.module-isol-card-link {
    cursor: pointer;
}
.module-isol-card-link:hover {
    border-color: var(--isol-navy);
    box-shadow: 0 8px 24px rgba(11, 29, 58, 0.10);
    transform: translateY(-2px);
}

/* Top-of-card visual — number / icon / image, all positioned the
   same way (top, ~ same vertical real-estate). */
.module-isol-card-visual {
    margin-bottom: 18px;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    min-height: 56px;       /* keeps cards aligned regardless of mode */
}

/* Number mode — big serif italic */
.module-isol-visual-number {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 3rem;
    color: var(--isol-navy);
    letter-spacing: -0.02em;
}

/* Icon mode — gold colour to make the icon pop visually */
.module-isol-visual-icon {
    color: var(--isol-navy);
}
.module-isol-visual-icon svg {
    width: 36px;
    height: 36px;
}

/* Image mode — capped size so layouts don't break */
.module-isol-visual-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}
.module-isol-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.module-isol-card-title {
    color: var(--isol-navy);
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 12px;
    line-height: 1.3;
}

.module-isol-card-desc {
    color: var(--isol-grey);
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.6;
    flex: 1;     /* take remaining space so cards stretch evenly */
}
.module-isol-card-desc p {
    margin: 0 0 10px;
}
.module-isol-card-desc p:last-child {
    margin-bottom: 0;
}
.module-isol-card-desc strong,
.module-isol-card-desc b {
    color: var(--isol-navy);
    font-style: normal;
    font-weight: 700;
}
.module-isol-card-desc a {
    color: var(--isol-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.module-isol-card-desc a:hover {
    color: var(--isol-navy);
}
.module-isol-card-desc ul,
.module-isol-card-desc ol {
    margin: 6px 0;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
    .module-isol-cols-4 .module-isol-grid,
    .module-isol-cols-5 .module-isol-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .module-isol-cols-2 .module-isol-grid,
    .module-isol-cols-3 .module-isol-grid,
    .module-isol-cols-4 .module-isol-grid,
    .module-isol-cols-5 .module-isol-grid {
        grid-template-columns: 1fr;
    }
    .module-industry-solutions {
        padding: 48px 0;
    }
    .module-isol-heading {
        font-size: 1.6rem;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Services Grid   [services-grid]
   "Unsere Leistungen" pattern — header strip + grid of cards. Each
   card has a navy-gradient square at the top-left containing a
   gold icon, then bold italic title + italic description below.
   ════════════════════════════════════════════════════════════════ */

.module-services-grid {
    --svc-navy: #0B1D3A;
    --svc-navy-2: #1e3a8a;
    --svc-gold: #E8A317;
    --svc-grey: #64748b;
    --svc-grey-light: #94a3b8;
    --svc-card-border: #e2e8f0;
    padding: 64px 0;
    background: #f8fafc;
}

/* Header strip — same shape as industry-solutions */
.module-svc-header {
    text-align: center;
    margin-bottom: 40px;
}
.module-svc-eyebrow {
    display: inline-block;
    color: var(--svc-gold);
    font-size: 0.84rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.module-svc-heading {
    color: var(--svc-navy);
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    margin: 0 0 8px;
    line-height: 1.2;
}
.module-svc-subtitle {
    color: var(--svc-grey-light);
    font-size: 1rem;
    font-style: italic;
    margin: 0 0 18px;
    line-height: 1.5;
}
.module-svc-rule {
    width: 56px;
    height: 3px;
    background: var(--svc-gold);
    border-radius: 2px;
    margin: 0 auto;
}

/* Cards grid */
.module-svc-grid {
    display: grid;
    gap: 22px;
}
.module-svc-cols-2 .module-svc-grid { grid-template-columns: repeat(2, 1fr); }
.module-svc-cols-3 .module-svc-grid { grid-template-columns: repeat(3, 1fr); }
.module-svc-cols-4 .module-svc-grid { grid-template-columns: repeat(4, 1fr); }

.module-svc-card {
    background: #fff;
    border: 1px solid var(--svc-card-border);
    border-radius: 12px;
    padding: 26px 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.module-svc-card-link {
    cursor: pointer;
}
.module-svc-card-link:hover {
    border-color: var(--svc-navy);
    box-shadow: 0 8px 24px rgba(11, 29, 58, 0.10);
    transform: translateY(-2px);
}

/* Icon box — navy gradient square with gold icon inside.
   This is the visual hallmark of the services-grid module. */
.module-svc-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--svc-navy) 0%, var(--svc-navy-2) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--svc-gold);   /* sets currentColor for SVG icon strokes */
    box-shadow: 0 2px 8px rgba(11, 29, 58, 0.15);
    flex-shrink: 0;
}
.module-svc-icon-box svg {
    width: 24px;
    height: 24px;
    color: var(--svc-gold);
    stroke: currentColor;
}
.module-svc-icon-emoji {
    font-size: 1.4rem;
    line-height: 1;
}
.module-svc-icon-empty {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: none;
}

.module-svc-title {
    color: var(--svc-navy);
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 8px;
    line-height: 1.3;
}

.module-svc-desc {
    color: var(--svc-grey);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.55;
    flex: 1;
}
.module-svc-desc p {
    margin: 0 0 8px;
}
.module-svc-desc p:last-child {
    margin-bottom: 0;
}
.module-svc-desc strong,
.module-svc-desc b {
    color: var(--svc-navy);
    font-style: normal;
    font-weight: 700;
}
.module-svc-desc a {
    color: var(--svc-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.module-svc-desc a:hover {
    color: var(--svc-navy);
}
.module-svc-desc ul,
.module-svc-desc ol {
    margin: 6px 0;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 1000px) {
    .module-svc-cols-4 .module-svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .module-svc-cols-2 .module-svc-grid,
    .module-svc-cols-3 .module-svc-grid,
    .module-svc-cols-4 .module-svc-grid {
        grid-template-columns: 1fr;
    }
    .module-services-grid {
        padding: 48px 0;
    }
    .module-svc-heading {
        font-size: 1.6rem;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Contact Form   [contact-form]
   Four selectable layout styles sharing a common set of input,
   alert, and button rules. The .module-cf-style-* class on the
   <section> picks the layout-specific tweaks.
   ════════════════════════════════════════════════════════════════ */

.module-contact-form {
    --cf-navy: #0B1D3A;
    --cf-navy-2: #1e3a8a;
    --cf-blue: #1565c0;
    --cf-gold: #E8A317;
    --cf-grey: #475569;
    --cf-grey-light: #94a3b8;
    --cf-bg-light: #f8fafc;
    --cf-border: #cbd5e1;
    padding: 56px 0;
}

/* ── Section header (eyebrow + heading + subtitle + optional rule) ── */
.module-cf-header {
    text-align: center;
    margin-bottom: 32px;
}
.module-cf-eyebrow {
    display: inline-block;
    color: var(--cf-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.module-cf-heading {
    color: var(--cf-navy);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    margin: 0 0 8px;
    line-height: 1.2;
}
.module-cf-subtitle {
    color: var(--cf-grey-light);
    font-size: 0.95rem;
    margin: 0 0 14px;
    line-height: 1.5;
}
.module-cf-rule {
    width: 50px;
    height: 3px;
    background: var(--cf-gold);
    border-radius: 2px;
    margin: 0 auto;
}

/* ── Generic form inputs (light theme) ── */
.module-cf-form {
    margin: 0;
}
.module-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}
.module-cf-row-full {
    grid-template-columns: 1fr;
}
.module-cf-row-extras {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.module-cf-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.module-cf-field label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--cf-navy);
    margin-bottom: 6px;
    line-height: 1.2;
}
.module-cf-req {
    color: #ef4444;
    margin-left: 1px;
}
.module-cf-input {
    padding: 10px 12px;
    border: 1px solid var(--cf-border);
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--cf-navy);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.module-cf-input:focus {
    outline: 0;
    border-color: var(--cf-gold);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.15);
}
.module-cf-input::placeholder {
    color: var(--cf-grey-light);
}
textarea.module-cf-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* ── Submit buttons ── */
.module-cf-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.module-cf-btn-gold {
    background: var(--cf-gold);
    color: var(--cf-navy);
    padding: 12px 28px;
    border-radius: 6px;
    width: 100%;
    margin-top: 8px;
}
.module-cf-btn-gold:hover {
    background: #f3b850;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 163, 23, 0.25);
}
.module-cf-btn-navy {
    background: var(--cf-navy);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    width: 100%;
    margin-top: 8px;
}
.module-cf-btn-navy:hover {
    background: #142a52;
    transform: translateY(-1px);
}
/* White pill button (image-form style) */
.module-cf-btn-pill {
    background: #fff;
    color: var(--cf-navy);
    padding: 11px 22px;
    border-radius: 999px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.module-cf-btn-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}
.module-cf-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--cf-navy);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    line-height: 1;
}

/* ── Alert banners ── */
.module-cf-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}
.module-cf-alert-icon {
    flex-shrink: 0;
    font-weight: 700;
}
.module-cf-alert-ok {
    background: #f0fdf4;
    color: #14532d;
    border: 1px solid #86efac;
}
.module-cf-alert-err {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* ════════════════════════════════════════════════════════════════
   STYLE 1: split-info (form left, info card right)
   ════════════════════════════════════════════════════════════════ */
.module-cf-grid-split {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 56px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.module-cf-info {
    color: var(--cf-grey);
    line-height: 1.5;
}
.module-cf-info-title {
    color: var(--cf-navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
}
.module-cf-info-company {
    color: var(--cf-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.module-cf-info-address {
    color: var(--cf-grey);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 18px;
}
.module-cf-info-line {
    color: var(--cf-grey);
    font-size: 0.92rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.module-cf-info-line a {
    color: var(--cf-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.module-cf-info-line a:hover {
    color: var(--cf-gold);
}
.module-cf-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}
.module-cf-icon-phone { color: #dc2626; }
.module-cf-icon-fax   { color: var(--cf-navy); }
.module-cf-icon-mail  { color: var(--cf-navy); }

.module-cf-info-hours {
    margin-top: 24px;
    padding: 18px 22px;
    background: var(--cf-bg-light);
    border-radius: 8px;
}
.module-cf-info-hours-title {
    color: var(--cf-navy);
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 10px;
}
.module-cf-info-hours-line {
    color: var(--cf-grey);
    font-size: 0.92rem;
    margin-bottom: 6px;
    line-height: 1.5;
}
.module-cf-info-hours-line:last-child {
    margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════════
   STYLE 2: image-form (image left, dark form panel right)
   ════════════════════════════════════════════════════════════════ */
.module-cf-style-image-form {
    background: var(--cf-bg-light);
    padding: 64px 0;
}
.module-cf-grid-image {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}
.module-cf-image {
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    min-height: 480px;
}
.module-cf-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.module-cf-image-empty {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}
.module-cf-panel {
    background: var(--cf-navy-2);
    color: #fff;
    border-radius: 12px;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.module-cf-panel-eyebrow {
    color: rgba(255,255,255,0.85);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.module-cf-panel-heading {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 24px;
    line-height: 1.05;
}
.module-cf-panel-subtitle {
    color: rgba(255,255,255,0.85);
    margin: 0 0 18px;
    font-size: 0.96rem;
    line-height: 1.5;
}

/* Dark-theme inputs (translucent on navy panel) */
.module-cf-form-dark .module-cf-field label {
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
}
.module-cf-input-dark {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
}
.module-cf-input-dark::placeholder {
    color: rgba(255,255,255,0.5);
}
.module-cf-input-dark:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}
textarea.module-cf-input-dark {
    border-radius: 16px;
    min-height: 100px;
}

/* ════════════════════════════════════════════════════════════════
   STYLE 3: centered (single centered card)
   ════════════════════════════════════════════════════════════════ */
.module-cf-style-centered {
    background: var(--cf-bg-light);
}
.module-cf-centered-wrap {
    display: flex;
    justify-content: center;
}
.module-cf-centered-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 40px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* ════════════════════════════════════════════════════════════════
   STYLE 4: compact-cta (inline single-row form)
   ════════════════════════════════════════════════════════════════ */
.module-cf-style-compact-cta {
    padding: 32px 0;
}
.module-cf-form-compact {
    background: var(--cf-navy);
    color: #fff;
    border-radius: 12px;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: end;
}
.module-cf-compact-intro {
    flex-shrink: 0;
    align-self: end;
    padding-bottom: 4px;
}
.module-cf-compact-eyebrow {
    color: var(--cf-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.module-cf-compact-heading {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}
.module-cf-compact-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}
.module-cf-compact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 14px;
    align-items: end;
}
.module-cf-form-compact .module-cf-field label {
    color: rgba(255,255,255,0.72);
    font-size: 0.74rem;
    margin-bottom: 4px;
}
.module-cf-input-translucent {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.86rem;
}
.module-cf-input-translucent::placeholder {
    color: rgba(255,255,255,0.5);
}
.module-cf-input-translucent:focus {
    border-color: var(--cf-gold);
    background: rgba(255,255,255,0.15);
}
.module-cf-btn-compact {
    align-self: end;
    padding: 11px 20px;
    height: auto;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE breakpoints for all 4 styles
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* split-info: stack form on top, info below */
    .module-cf-grid-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* image-form: stack image on top, panel below */
    .module-cf-grid-image {
        grid-template-columns: 1fr;
    }
    .module-cf-image {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .module-cf-panel {
        padding: 36px 28px;
    }
    .module-cf-panel-heading {
        font-size: 1.8rem;
    }
    /* compact-cta: stack everything */
    .module-cf-form-compact {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
    .module-cf-compact-fields {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    /* Inputs in 2-col rows stack to 1 col */
    .module-cf-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .module-cf-heading {
        font-size: 1.5rem;
    }
    .module-cf-centered-card {
        padding: 24px 20px;
    }
    .module-cf-panel-heading {
        font-size: 1.5rem;
    }
}


/* ════════════════════════════════════════════════════════════════
   MODULE: Text / HTML  (round 39)   [text-html]
   Free-form rich text block — eyebrow + heading + sanitized body.
   Width can be "normal" (full container) or "narrow" (max 720px,
   centered for easier reading). Alignment can be left, center,
   justify.
   ════════════════════════════════════════════════════════════════ */
.module-text-html {
    margin: 56px 0;
    --th-blue: #0B1D3A;
    --th-grey: #475569;
    --th-gold: #E8A317;
}
.module-text-html-header {
    text-align: center;
    margin-bottom: 32px;
}
.module-text-html-eyebrow {
    color: var(--th-gold);
    font-size: 0.78rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.module-text-html-heading {
    color: var(--th-blue);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 700;
    font-style: italic;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.module-text-html-body {
    color: var(--th-grey);
    font-size: 1rem;
    line-height: 1.7;
}
.module-text-html-body p { margin: 0 0 16px; }
.module-text-html-body p:last-child { margin-bottom: 0; }
.module-text-html-body strong { color: var(--th-blue); font-weight: 700; }
.module-text-html-body em { font-style: italic; }
.module-text-html-body a {
    color: var(--th-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
}
.module-text-html-body a:hover { color: var(--th-blue); }
.module-text-html-body h3 {
    color: var(--th-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 28px 0 12px;
    line-height: 1.25;
}
.module-text-html-body h4 {
    color: var(--th-blue);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 10px;
    line-height: 1.3;
}
.module-text-html-body ul,
.module-text-html-body ol {
    margin: 0 0 16px;
    padding-left: 28px;
}
.module-text-html-body ul { list-style: disc; }
.module-text-html-body ol { list-style: decimal; }
.module-text-html-body li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Width variants */
.module-text-html.module-th-width-narrow .module-text-html-body,
.module-text-html.module-th-width-narrow .module-text-html-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Alignment variants */
.module-text-html.module-th-align-center .module-text-html-body { text-align: center; }
.module-text-html.module-th-align-justify .module-text-html-body { text-align: justify; }
/* default left needs no rule */

@media (max-width: 600px) {
    .module-text-html { margin: 36px 0; }
    .module-text-html-header { margin-bottom: 20px; }
}
