/* ═══════════════════════════════════════════════
   NOW Aktivreisen – Gutenberg Block Styles
   Für Custom-Templates (now-page.php, now-blog.php)
   ═══════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --now-orange: #F5A623;
    --now-orange-hover: #E6941A;
    --now-green: #2D4A3E;
    --now-green-light: #4a7c59;
    --bg-offwhite: #F8F9F5;
    --bg-creme: #FAF8F0;
    --bg-white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-medium: #555555;
    --border-light: #e0e0e0;
    --radius: 6px;
    --shadow: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

/* ══════════════════════════════════════════
   Gutenberg Block Styles
   ══════════════════════════════════════════ */

/* ── Headings ── */
.now-content h1, .now-content h2, .now-content h3, .now-content h4 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--now-green);
}
.now-content h1 { font-size: 52px; font-weight: 700; }
.now-content h2 { font-size: 36px; margin-bottom: 16px; }
.now-content h3 { font-size: 22px; }
.now-content h4 { font-size: 18px; }

/* ── Links ── */
.now-content a { color: var(--now-orange); text-decoration: none; }
.now-content a:hover { color: var(--now-orange-hover); }

/* ── Container / Alignment ── */
.now-content .wp-block-group.alignfull {
    padding-left: 0;
    padding-right: 0;
    padding-top: 80px;
    padding-bottom: 80px;
}

.now-content .wp-block-group.alignfull > *:not(.wp-block-cover__background):not(.wp-block-cover__image-background) {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Nested containers nicht doppelt padden */
.now-content .wp-block-group.alignfull .wp-block-columns,
.now-content .wp-block-group.alignfull .wp-block-group {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ── Buttons ── */
.now-content .wp-block-button__link,
.now-content .is-style-now-primary .wp-block-button__link {
    background: var(--now-orange) !important;
    color: #FFFFFF !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 17px;
    padding: 16px 40px;
    border-radius: var(--radius);
    border: none;
    transition: background var(--transition), box-shadow var(--transition);
}
.now-content .wp-block-button__link:hover {
    background: var(--now-orange-hover) !important;
    box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}

.now-content .is-style-now-white .wp-block-button__link {
    background: #FFFFFF !important;
    color: var(--now-green) !important;
}
.now-content .is-style-now-white .wp-block-button__link:hover {
    background: #f0f0f0 !important;
    box-shadow: var(--shadow-md);
}

.now-content .is-style-now-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid #FFFFFF;
    color: #FFFFFF !important;
}
.now-content .is-style-now-outline .wp-block-button__link:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* ── Section Label ── */
.now-content .section-label,
.now-content .now-section-label {
    font-family: "Dancing Script", cursive;
    color: var(--now-orange);
    font-size: 22px;
    margin-bottom: 8px;
}

/* ── Cover Block (Hero) ── */
.now-content .wp-block-cover {
    overflow: hidden;
}

.now-content .wp-block-cover.is-style-now-hero {
    min-height: 70vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.now-content .wp-block-cover.is-style-now-hero .wp-block-cover__background {
    opacity: 0.75 !important;
}

.now-content .wp-block-cover.is-style-now-hero .wp-block-cover__inner-container {
    text-align: center;
    max-width: 800px;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}

/* Hero Logo */
.now-content .now-hero-logo { margin-bottom: 32px; }
.now-content .now-hero-logo img {
    height: 80px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    display: block;
}

/* Hero Label Badge */
.now-content .wp-block-cover.is-style-now-hero .now-hero-badge {
    display: inline-block;
    background: rgba(245,166,35,0.2);
    color: var(--now-orange) !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

/* ── Trust Bar ── */
.now-content .is-style-now-trust-bar {
    background: var(--now-green) !important;
    padding: 28px 24px !important;
}

.now-content .now-trust-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--now-orange) !important;
    color: #FFFFFF !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 8px;
    line-height: 1;
}

.now-content .is-style-now-trust-bar .wp-block-columns {
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.now-content .is-style-now-trust-bar .wp-block-column {
    flex: 0 1 auto !important;
    flex-grow: 0 !important;
}

.now-content .is-style-now-trust-bar p {
    color: #F5F5F5 !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

/* ── Cards ── */
.now-content .is-style-now-card {
    background: var(--bg-white) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow) !important;
    transition: box-shadow var(--transition), transform var(--transition);
    padding: 24px !important;
}
.now-content .is-style-now-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}
.now-content .is-style-now-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}
.now-content .is-style-now-card p {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
}

/* Glass Card */
.now-content .is-style-now-glass-card {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(4px);
}
.now-content .is-style-now-glass-card h3 { color: #FFFFFF; }
.now-content .is-style-now-glass-card p { color: #c0d5cb; }

/* ── Preis-Box ── */
.now-content .now-price-box {
    background: var(--bg-white) !important;
    border-radius: 12px !important;
    padding: 36px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border: 1px solid var(--border-light);
}

.now-content .now-price-badge {
    display: inline-block;
    background: var(--now-green) !important;
    color: #FFFFFF !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.now-content .now-price-amount {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: var(--now-green);
}

/* ── CTA Cover Section ── */
.now-content .wp-block-cover.is-style-now-cta {
    min-height: 400px !important;
    text-align: center;
}
.now-content .wp-block-cover.is-style-now-cta .wp-block-cover__background {
    opacity: 0.85 !important;
}
.now-content .wp-block-cover.is-style-now-cta h2 {
    color: #FFFFFF !important;
    font-size: 40px;
    margin-bottom: 16px;
}
.now-content .wp-block-cover.is-style-now-cta p {
    color: #d4e0da !important;
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* ── Highlight Box ── */
.now-content .is-style-now-highlight-box {
    border-left: 4px solid var(--now-orange) !important;
    background: var(--bg-creme) !important;
    padding: 20px 24px !important;
    border-radius: 0 var(--radius) var(--radius) 0 !important;
}

/* ── Wave Divider ── */
.now-content .now-wave-divider {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    line-height: 0;
}

/* ── FAQ Accordion ── */
.now-content .now-faq {
    max-width: 800px;
    margin: 0 auto;
}
.now-content .now-faq details {
    border-bottom: 1px solid var(--border-light);
}
.now-content .now-faq summary {
    padding: 20px 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--now-green);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.now-content .now-faq summary::-webkit-details-marker { display: none; }
.now-content .now-faq summary::after {
    content: "+";
    font-size: 24px;
    color: var(--now-orange);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
}
.now-content .now-faq details[open] summary::after {
    content: "\2212";
}
.now-content .now-faq details p {
    padding-bottom: 20px;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* ── Checklist ── */
.now-content .is-style-now-checklist {
    list-style: none !important;
    padding-left: 28px !important;
    margin-left: 0 !important;
}
.now-content .is-style-now-checklist li {
    position: relative;
    padding-left: 0 !important;
    margin-bottom: 12px;
    line-height: 1.6;
}
.now-content .is-style-now-checklist li::before {
    content: "\2713";
    position: absolute;
    left: -28px;
    color: var(--now-orange);
    font-weight: 700;
    font-size: 16px;
}

/* ── Footer (in Gutenberg Content) ── */
.now-content .now-footer {
    background: var(--now-green) !important;
    padding: 56px 0 40px !important;
    max-width: 100% !important;
}
.now-content .now-footer h4 {
    color: #FFFFFF !important;
    font-size: 16px !important;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.now-content .now-footer p,
.now-content .now-footer a {
    color: #d4e0da !important;
    font-size: 15px;
    line-height: 1.8;
}
.now-content .now-footer a:hover { color: var(--now-orange) !important; }
.now-content .now-footer-bottom {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* ── Section Backgrounds ── */
.now-content .is-style-now-section-offwhite { background: var(--bg-offwhite); }
.now-content .is-style-now-section-creme { background: var(--bg-creme); }
.now-content .is-style-now-section-green {
    background: var(--now-green);
    color: #FFFFFF;
}
.now-content .is-style-now-section-green h2,
.now-content .is-style-now-section-green h3 { color: #FFFFFF; }
.now-content .is-style-now-section-green p { color: #c0d5cb; }
.now-content .is-style-now-section-green .section-label { color: var(--now-orange); }

/* ── Orange Separator ── */
.now-content .is-style-now-orange-separator {
    border-color: var(--now-orange) !important;
    border-width: 3px !important;
    width: 60px !important;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .now-content .wp-block-group.alignfull {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }

    .now-content h1 { font-size: 32px !important; }
    .now-content h2 { font-size: 28px !important; }

    .now-content .wp-block-cover.is-style-now-hero {
        min-height: 60vh !important;
    }
    .now-content .wp-block-cover.is-style-now-hero h1 {
        font-size: 30px !important;
    }
    .now-content .now-hero-logo img {
        height: 60px !important;
    }

    .now-content .wp-block-cover.is-style-now-cta h2 {
        font-size: 28px !important;
    }

    .now-content .is-style-now-trust-bar .wp-block-columns {
        gap: 16px !important;
    }
    .now-content .is-style-now-trust-bar .wp-block-column {
        flex-basis: 100% !important;
    }

    .now-content .wp-block-columns.alignwide {
        flex-direction: column;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .now-content .now-price-box {
        padding: 28px !important;
    }
    .now-content .now-price-amount {
        font-size: 36px !important;
    }

    .now-content .now-footer > div {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* ══════════════════════════════════════════
   Section Block Styles – fehlende Definitionen
   ══════════════════════════════════════════ */

/* Section Label: Dancing Script Orange */
.now-content .is-style-now-section-label {
    font-family: 'Dancing Script', cursive !important;
    color: var(--now-orange) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    display: block;
    letter-spacing: 0.3px;
}

/* Section Title: kräftiger, enger */
.now-content .is-style-now-section-title {
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    color: var(--now-green) !important;
    margin-bottom: 20px !important;
    line-height: 1.15 !important;
}

/* Section Intro: größer, zentriert, etwas heller */
.now-content .is-style-now-section-intro {
    font-size: 18px !important;
    color: var(--text-medium) !important;
    line-height: 1.75 !important;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 44px !important;
    display: block;
}

/* ══════════════════════════════════════════
   Card – Hover-Akzent oben + bessere Transition
   ══════════════════════════════════════════ */

.now-content .is-style-now-card {
    position: relative !important;
    overflow: hidden !important;
    border-top: 3px solid transparent !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-top-color 0.3s ease !important;
}

.now-content .is-style-now-card:hover {
    border-top-color: var(--now-orange) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
    transform: translateY(-4px) !important;
}

/* ══════════════════════════════════════════
   Steps – Nummern mit Shadow + Linie
   ══════════════════════════════════════════ */

.now-content .step-num {
    box-shadow: 0 4px 14px rgba(245,166,35,0.28) !important;
    flex-shrink: 0;
}

.now-content .step-content h3 {
    color: var(--now-green) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

/* ══════════════════════════════════════════
   Trust Bar – Icons als echte Kreise (bereits inline,
   aber Farbe und Gewicht verbessern)
   ══════════════════════════════════════════ */

.now-content .is-style-now-trust-bar {
    background: var(--now-green) !important;
}

.now-content .is-style-now-trust-bar p {
    font-size: 14px !important;
    letter-spacing: 0.1px !important;
}

/* ══════════════════════════════════════════
   Fade-In Animation beim Laden
   ══════════════════════════════════════════ */

@keyframes nowFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.now-content .is-style-now-card {
    animation: nowFadeUp 0.55s ease both;
}

.now-content .wp-block-columns .wp-block-column:nth-child(1) .is-style-now-card { animation-delay: 0.05s; }
.now-content .wp-block-columns .wp-block-column:nth-child(2) .is-style-now-card { animation-delay: 0.15s; }
.now-content .wp-block-columns .wp-block-column:nth-child(3) .is-style-now-card { animation-delay: 0.25s; }

/* ══════════════════════════════════════════
   FAQ – Hover-Hintergrund auf Summary
   ══════════════════════════════════════════ */

.now-content .now-faq summary {
    padding: 22px 8px !important;
    border-radius: 4px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.now-content .now-faq summary:hover {
    background: var(--now-orange-light, rgba(245,166,35,0.06));
    padding-left: 12px !important;
}

.now-content .now-faq details[open] summary {
    color: var(--now-orange) !important;
}

/* ══════════════════════════════════════════
   Highlight Box – etwas kräftiger
   ══════════════════════════════════════════ */

.now-content .is-style-now-highlight-box {
    border-left-width: 4px !important;
    box-shadow: var(--shadow-xs) !important;
}
/* ── Fix: horizontal overflow on mobile ── */
body.page {
    overflow-x: hidden;
}

/* Trust-Bar: force column stack on mobile with full specificity */
@media (max-width: 782px) {
    .is-style-now-trust-bar .wp-block-columns.is-layout-flex.wp-block-columns-is-layout-flex {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    .is-style-now-trust-bar .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
    .is-style-now-trust-bar p {
        font-size: 14px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}
