/* v3.38 (2026-05-11): fi-* Helper zu tsnw-components.css migriert (Modul 12 Teil D) */
/* ═══════════════════════════════════════════════════════════════════
   TSNW SERVICE CLASS – v2.36 (2026-05-10): var()-Refactor analog enjoy
   ═══════════════════════════════════════════════════════════════════
   - 7× Cyan-Akzente auf var(--tsnw-service-badge, #7A8B5A) (Sage-Green)
   - Facts-Border auf var(--tsnw-service-facts-border, #C4D4B8)
   - Facts-BG auf var(--tsnw-service-facts-bg, #F5F8F2)
   - Bleibt hardcoded: #FFFFFF Hero/Card, #D0E4EB Light-Border (TODO components.css),
     .fi-blue/green/slate/sage Helper (TODO components.css)
   ─────────────────────────────────────────────────────────────────── */
/* =============================================
   TsNW Klasse: SERVICE (Tauchservices)
   Scope: Conditional Enqueue (nur auf Service-Seiten geladen)
   Gutenberg-Native Selektoren (v3 Architektur)
   10 Seiten: Service-Seiten mit Sage-Green Farbakzenten
   Farbe: Standard TsNW (Blau/Grün), Facts-Bar in Sage-Grün
   Abgeleitet 1:1 von tsnw-info.css
   Stand: 07.04.2026
   ============================================= */

/* ===== 1. HERO (section-hero, wp:cover mit Featured Image) ===== */
.wp-block-cover.section-hero {
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Featured Image Styling */
.wp-block-cover.section-hero img.wp-block-cover__image-background {
    object-fit: cover;
}

/* Minimaler Overlay (Featured Image kräftig sichtbar) */
.wp-block-cover.section-hero .wp-block-cover__background {
    opacity: 0.05 !important;
}

/* Inner Container */
.wp-block-cover.section-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    text-align: center; /* Fix: Editor überschreibt parent text-align */
}

/* Hero-Text weiss mit Schatten (auf Foto lesbar) */
.wp-block-cover.section-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
}
.wp-block-cover.section-hero .wp-block-cover__inner-container > p:not(.section-badge) {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    font-size: 18px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 26px;
    line-height: 1.6;
    font-weight: 400;
}

.wp-block-cover.section-hero .section-badge {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.wp-block-cover.section-hero .wp-block-buttons {
    justify-content: center;
}

/* ===== 2. FACTS BAR (section-facts) – Sage-Grün ===== */
.wp-block-group.section-facts {
    border-top: 3px solid var(--tsnw-service-facts-border, #C4D4B8);
    border-bottom: 3px solid var(--tsnw-service-facts-border, #C4D4B8);
    background: var(--tsnw-service-facts-bg, #F5F8F2) !important;
}
.wp-block-group.section-facts-item {
    background: var(--tsnw-white) !important;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Fact Icons (geteilt mit Kurs/Events/Enjoy) */
.fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
/* ===== 3. INTRO (section-intro) ===== */
.wp-block-group.section-intro {
    /* Basis-Styling ueber Block-Attribute */
}
.wp-block-group.section-intro .intro-hook {
    font-size: 18px;
    font-weight: 600;
    color: var(--tsnw-service-badge, #7A8B5A);
    margin-top: 8px;
}

/* Intro image placeholder */
.wp-block-group.section-intro .intro-image-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 4. HIGHLIGHTS (section-highlights) ===== */
.wp-block-group.section-highlights .section-sub {
    text-align: center;
    color: var(--tsnw-text-mid);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 26px;
}

.wp-block-group.section-highlight-card {
    box-shadow: 0 2px 12px var(--tsnw-service-card-shadow, rgba(0,182,222,0.08));
    transition: all 0.2s;
}
.wp-block-group.section-highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--tsnw-service-card-hover, rgba(0,182,222,0.12));
    border-color: var(--tsnw-service-badge, #7A8B5A) !important;
}
.wp-block-group.section-highlight-card h4 {
    margin-bottom: 8px;
}
.wp-block-group.section-highlight-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== 5. CONTENT SECTION (section-content, fuer lange Texte) ===== */
.wp-block-group.section-content {
    /* Basis-Styling */
}
.wp-block-group.section-content h2 {
    color: var(--tsnw-text-dark, #1B3A4B);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}
.wp-block-group.section-content h3 {
    color: var(--tsnw-service-badge, #7A8B5A);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.wp-block-group.section-content p {
    color: var(--tsnw-text-mid, #3D6478);
    line-height: 1.7;
}
.wp-block-group.section-content ul,
.wp-block-group.section-content ol {
    color: var(--tsnw-text-mid, #3D6478);
    line-height: 1.7;
    padding-left: 24px;
}
.wp-block-group.section-content li {
    margin-bottom: 6px;
}
.wp-block-group.section-content a {
    color: var(--tsnw-service-badge, #7A8B5A);
    font-weight: 600;
}
.wp-block-group.section-content a:hover {
    color: var(--tsnw-green, #35BDB2);
}

/* ===== 6. USP SECTION (section-usp) ===== */
.wp-block-group.section-usp {
    position: relative;
    overflow: hidden;
}
.wp-block-group.section-usp > h3 {
    text-align: center;
    margin-bottom: 32px;
}

.wp-block-group.section-usp-card {
    box-shadow: 0 2px 12px var(--tsnw-service-card-shadow, rgba(0,182,222,0.08));
    transition: all 0.2s;
}
.wp-block-group.section-usp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--tsnw-service-card-hover, rgba(0,182,222,0.12));
    border-color: var(--tsnw-service-badge, #7A8B5A) !important;
}
.wp-block-group.section-usp-card h4 {
    margin-bottom: 10px;
}
.wp-block-group.section-usp-card p {
    line-height: 1.6;
}

/* ===== 7. CTA WARM (cta-warm, geteilt mit allen Klassen) ===== */
.wp-block-group.cta-warm {
    text-align: center;
}
.wp-block-group.cta-warm h2,
.wp-block-group.cta-warm h3 {
    margin-bottom: 10px;
}
.wp-block-group.cta-warm > p {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}
.wp-block-group.cta-warm .wp-block-buttons {
    justify-content: center;
    margin-bottom: 20px;
}

/* ===== 8. EQUAL-HEIGHT CARDS & BUTTON ALIGNMENT ===== */

/* Columns-Container: Stretch fuer gleiche Hoehe */
.wp-block-group.section-highlights .wp-block-columns,
.wp-block-group.section-usp .wp-block-columns {
    display: flex;
    align-items: stretch;
}

/* Einzelne Column: flex damit Card vollen Platz nutzt */
.wp-block-group.section-highlights .wp-block-column,
.wp-block-group.section-usp .wp-block-column {
    display: flex;
    flex-direction: column;
}

/* Cards: volle Hoehe + flex-column */
.wp-block-group.section-highlight-card,
.wp-block-group.section-usp-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* Buttons in Cards immer nach unten pushen */
.wp-block-group.section-highlight-card > .wp-block-buttons,
.wp-block-group.section-usp-card > .wp-block-buttons {
    margin-top: auto;
    padding-top: 12px;
}

/* Letzter Absatz: flex-grow */
.wp-block-group.section-highlight-card > p:last-of-type,
.wp-block-group.section-usp-card > p:last-of-type {
    flex-grow: 1;
}

/* ===== 9. Gutenberg Flow-Gap Overrides ===== */
/* Hero: Kompakter */
.wp-block-cover.section-hero .wp-block-cover__inner-container > *:not(:first-child) {
    margin-block-start: 8px;
}
.wp-block-cover.section-hero .wp-block-cover__inner-container > .wp-block-buttons {
    margin-block-start: 20px;
}

/* Cards: Kompaktere Inhalte */
.wp-block-group.section-highlight-card > *:not(:first-child),
.wp-block-group.section-usp-card > *:not(:first-child) {
    margin-block-start: 6px;
}

/* Adjacent sections: kein Abstand zwischen Sektionen */
.entry-content > .wp-block-group.alignfull + .wp-block-group.alignfull {
    margin-block-start: 0;
}
.entry-content > .wp-block-cover.alignfull + .wp-block-group.alignfull {
    margin-block-start: 0;
}

/* ===== 10. RESPONSIVE ===== */
@media (max-width: 1024px) {
    .wp-block-group.section-highlights .wp-block-columns,
    .wp-block-group.section-usp .wp-block-columns {
        flex-wrap: wrap;
    }
    .wp-block-group.section-highlights .wp-block-column,
    .wp-block-group.section-usp .wp-block-column {
        flex-basis: calc(50% - 16px) !important;
    }
}

@media (max-width: 768px) {
    .wp-block-cover.section-hero {
        padding: 40px 20px !important;
        min-height: 300px !important;
    }
    .wp-block-cover.section-hero h1 {
        font-size: 30px;
    }
    .wp-block-group.section-facts {
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px 20px !important;
    }
    .wp-block-group.section-intro,
    .wp-block-group.section-highlights,
    .wp-block-group.section-content,
    .wp-block-group.section-usp,
    .wp-block-group.cta-warm {
        padding: 40px 20px !important;
    }
    .wp-block-group.section-highlights .wp-block-column,
    .wp-block-group.section-usp .wp-block-column {
        flex-basis: 100% !important;
    }
}

@media (max-width: 600px) {
    /* Alle Card-Columns einspaltig stapeln */
    .wp-block-group.section-highlights .wp-block-columns,
    .wp-block-group.section-usp .wp-block-columns {
        flex-direction: column;
        gap: 16px;
    }
    .wp-block-group.section-highlights .wp-block-column,
    .wp-block-group.section-usp .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}

/* ===== SERVICE-SPECIFIC: Pricing Cards ===== */
.wp-block-group.section-pricing {
    /* Basis via Block-Attribute */
}
.wp-block-group.section-price-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #D0E4EB !important;
    padding: 24px !important;
    text-align: center;
    transition: all 0.2s;
}
.wp-block-group.section-price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--tsnw-service-card-hover, rgba(0,182,222,0.12));
    border-color: var(--tsnw-service-badge, #7A8B5A) !important;
}
.wp-block-group.section-price-card h4 {
    color: var(--tsnw-text-dark, #1B3A4B);
    margin-bottom: 8px;
}
.wp-block-group.section-price-card .price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--tsnw-service-badge, #7A8B5A);
    margin-bottom: 4px;
}
.wp-block-group.section-price-card .price-note {
    font-size: 13px;
    color: var(--tsnw-text-mid, #3D6478);
}

/* ===== SERVICE-SPECIFIC: Live Dashboard (airScan/Temperatur) ===== */
.wp-block-group.section-live-section {
    /* Preserve existing inline styles from airScan/Temperatur pages */
}


/* ─── v2.1 (10.05.2026): Body-Text-Farbe in Karten via Plugin-Variable ─── */
.wp-block-group.section-highlight-card p,
.wp-block-group.section-usp-card p {
    color: var(--tsnw-service-text-body, #3D6478);
}
