/* ============================================
   TREVARANDO PREMIUM CSS v4.0
   ============================================ */

/* --- LOCAL FONT FACES (DSGVO compliant — served from uploads) --- */
@font-face {
    font-family: 'DM Serif Display';
    src: url('/wp-content/uploads/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('/wp-content/uploads/fonts/DMSans-Regular.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
    --trv-primary: #1B4D3E;
    --trv-primary-dark: #0F2E25;
    --trv-secondary: #2D8C6F;
    --trv-accent: #E8A838;
    --trv-accent-hover: #D4952E;
    --trv-accent-light: #F5C563;
    --trv-dark: #0A0A1A;
    --trv-dark-surface: #0D1B2A;
    --trv-text: #1A1A2E;
    --trv-muted: #6B7280;
    --trv-light: #F8F7F4;
    --trv-surface: #FFFFFF;
    --trv-border: #E5E7EB;
    --trv-glass: rgba(255,255,255,0.07);
    --trv-radius: 16px;
    --trv-transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.trv-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--trv-transition), transform 0.7s var(--trv-transition);
}
.trv-animate.trv-visible {
    opacity: 1;
    transform: translateY(0);
}
.trv-delay-1 { transition-delay: 0.1s; }
.trv-delay-2 { transition-delay: 0.2s; }
.trv-delay-3 { transition-delay: 0.3s; }
.trv-delay-4 { transition-delay: 0.4s; }

/* Hero elements: use CSS keyframes instead of JS-triggered transitions (avoids race condition) */
@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.trv-hero-dark .trv-animate,
.trv-page-hero .trv-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
    animation: heroFadeInUp 0.8s var(--trv-transition) forwards;
}
.trv-hero-dark .trv-animate.trv-delay-1,
.trv-page-hero .trv-animate.trv-delay-1 { animation-delay: 0.15s; }
.trv-hero-dark .trv-animate.trv-delay-2,
.trv-page-hero .trv-animate.trv-delay-2 { animation-delay: 0.3s; }
.trv-hero-dark .trv-animate.trv-delay-3,
.trv-page-hero .trv-animate.trv-delay-3 { animation-delay: 0.45s; }
.trv-hero-dark .trv-animate.trv-delay-4,
.trv-page-hero .trv-animate.trv-delay-4 { animation-delay: 0.6s; }

/* ==========================================
   STICKY HEADER — transparent on hero, white after scroll
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid transparent !important;
    transition: all 0.3s ease;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
}
.site-header .wp-block-site-title a,
.site-header .wp-block-navigation a,
.site-header .wp-block-navigation-item__content,
.site-header .wp-block-navigation-item__label,
.site-header .wp-block-navigation .wp-block-navigation-item a {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.site-header.scrolled .wp-block-site-title a {
    color: var(--trv-primary) !important;
    text-shadow: none;
}
.site-header.scrolled .wp-block-navigation a,
.site-header.scrolled .wp-block-navigation-item__content,
.site-header.scrolled .wp-block-navigation-item__label,
.site-header.scrolled .wp-block-navigation .wp-block-navigation-item a {
    color: var(--trv-text) !important;
    text-shadow: none;
}
.site-header.scrolled .wp-block-navigation a:hover,
.site-header.scrolled .wp-block-navigation-item__content:hover {
    color: var(--trv-secondary) !important;
}
/* Partner-Login header link */
.trv-header-login:hover { background: rgba(255,255,255,0.12) !important; color: #fff !important; border-color: rgba(255,255,255,0.5) !important; }
.site-header.scrolled .trv-header-login { color: var(--trv-primary) !important; border-color: var(--trv-primary) !important; }
.site-header.scrolled .trv-header-login:hover { background: var(--trv-primary) !important; color: #fff !important; }
/* body padding removed — hero sections handle their own padding-top to clear fixed header */

/* Remove WordPress block gap everywhere so sections connect seamlessly */
.wp-site-blocks > * + *,
main.wp-block-group > * + *,
.wp-block-group.is-layout-flow > .wp-block-group + .wp-block-group {
    margin-block-start: 0 !important;
}

/* Section wave dividers */
.trv-wave-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
    line-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.trv-wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    display: block;
}

/* Benefit card images */
.trv-benefit-img {
    margin-top: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
}
.trv-benefit-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.trv-benefit-card:hover .trv-benefit-img img {
    transform: scale(1.05);
}

/* ==========================================
   HERO DARK SECTION
   ========================================== */
.trv-hero-dark {
    background: linear-gradient(135deg, var(--trv-dark) 0%, var(--trv-primary-dark) 40%, var(--trv-primary) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 160px !important;
}
.trv-hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
    pointer-events: none;
}
@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}
.trv-hero-dark::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232,168,56,0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite alternate;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 20px) scale(1.05); }
}
.trv-hero-orb-2 {
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45,140,111,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat2 10s ease-in-out infinite alternate;
}
@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -15px) scale(1.08); }
}

/* Floating dot particles */
.trv-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.trv-hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(232,168,56,0.25);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}
.trv-hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.trv-hero-particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 5s; }
.trv-hero-particles span:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; animation-duration: 8s; }
.trv-hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-delay: 0.5s; animation-duration: 6s; }
.trv-hero-particles span:nth-child(5) { left: 85%; top: 15%; animation-delay: 1.5s; animation-duration: 9s; }
.trv-hero-particles span:nth-child(6) { left: 40%; top: 80%; animation-delay: 3s; animation-duration: 7s; }
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.7; }
}

/* Floating notification cards in hero */
.trv-float-card {
    position: absolute;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.8125rem;
    white-space: nowrap;
    z-index: 5;
    animation: floatNotif 6s ease-in-out infinite alternate;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.trv-float-card:nth-child(2) {
    animation-delay: 2s;
    animation-duration: 7s;
}
@keyframes floatNotif {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

/* ==========================================
   GLASSMORPHISM
   ========================================== */
.trv-glass {
    background: var(--trv-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--trv-radius) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ==========================================
   CARDS WITH HOVER
   ========================================== */
.trv-card {
    border: 1px solid var(--trv-border);
    border-radius: var(--trv-radius);
    background: var(--trv-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.4s var(--trv-transition), box-shadow 0.4s var(--trv-transition);
    position: relative;
    overflow: hidden;
}
.trv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--trv-primary), var(--trv-secondary), var(--trv-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.trv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.trv-card:hover::before {
    opacity: 1;
}

/* Benefits card — left border stripe */
.trv-benefit-card {
    border: 1px solid var(--trv-border);
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--trv-primary), var(--trv-secondary)) 1;
    border-image-slice: 0 0 0 1;
    border-radius: var(--trv-radius);
    background: var(--trv-surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.4s var(--trv-transition), box-shadow 0.4s var(--trv-transition);
    position: relative;
    overflow: hidden;
}
.trv-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ==========================================
   ICON CIRCLES
   ========================================== */
.trv-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #E8F5F0 0%, #D1EDE4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}
.trv-benefit-card:hover .trv-icon-wrap,
.trv-card:hover .trv-icon-wrap {
    transform: scale(1.08);
}
.trv-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: var(--trv-secondary);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================
   STEP NUMBERS & CONNECTING LINE
   ========================================== */
.trv-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--trv-primary), var(--trv-secondary));
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(27,77,62,0.3);
    position: relative;
    z-index: 2;
}
.trv-steps-row {
    position: relative;
}
.trv-steps-row::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--trv-secondary) 0, var(--trv-secondary) 8px, transparent 8px, transparent 16px);
    opacity: 0.4;
    z-index: 1;
}
.trv-step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.trv-step-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--trv-accent);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trv-step-img {
    margin-top: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.trv-step-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.trv-card:hover .trv-step-img img {
    transform: scale(1.05);
}

/* ==========================================
   CTA BUTTONS — BUG FIX: no pulse animation
   ========================================== */
.trv-btn-glow .wp-block-button__link,
.trv-btn-glow .wp-element-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(232,168,56,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.trv-btn-glow .wp-block-button__link:hover,
.trv-btn-glow .wp-element-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(232,168,56,0.5);
    filter: brightness(1.06);
}
/* NO shimmer, NO pulse — clean premium look */

/* ==========================================
   STAT CARDS WITH ICONS
   ========================================== */
.trv-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(232,168,56,0.1), rgba(232,168,56,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}
.trv-stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--trv-accent);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trv-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--trv-accent), var(--trv-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(232,168,56,0.25));
}
.trv-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--trv-radius);
    background: var(--trv-surface);
    border: 1px solid var(--trv-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.trv-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
/* Vertical separator between stat cards */
.trv-stat-card + .trv-stat-card::after {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--trv-border), transparent);
}
.trv-stat-label {
    color: var(--trv-muted);
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.trv-testimonial {
    background: var(--trv-surface);
    border-radius: var(--trv-radius);
    padding: 2.25rem !important;
    border: 1px solid var(--trv-border);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}
.trv-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
/* Large background quote mark */
.trv-testimonial::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 120px;
    line-height: 1;
    color: var(--trv-accent);
    opacity: 0.06;
    font-family: Georgia, serif;
    pointer-events: none;
}
.trv-quote-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    opacity: 0.2;
}
.trv-quote-mark svg {
    width: 100%;
    height: 100%;
    fill: var(--trv-accent);
}
.trv-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}
.trv-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--trv-accent);
}
.trv-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    flex-shrink: 0;
}

/* ==========================================
   CTA DARK SECTION — with background image
   ========================================== */
.trv-cta-dark {
    background-image: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?w=1200&h=500&fit=crop&q=60');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.trv-cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,26,0.88) 0%, rgba(15,46,37,0.92) 50%, rgba(27,77,62,0.88) 100%);
    pointer-events: none;
}
.trv-cta-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.trv-cta-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.trv-cta-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}
.trv-cta-check svg {
    width: 18px;
    height: 18px;
    stroke: var(--trv-accent);
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* ==========================================
   FAQ ACCORDION — 2-column layout
   ========================================== */
.trv-faq-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}
.trv-faq-image {
    border-radius: var(--trv-radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    position: sticky;
    top: 120px;
}
.trv-faq-image img {
    width: 100%;
    height: auto;
    display: block;
}
.trv-faq details {
    border: 1px solid var(--trv-border);
    border-radius: var(--trv-radius);
    margin-bottom: 0.75rem;
    background: var(--trv-surface);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.trv-faq details:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border-color: #D1D5DB;
}
.trv-faq details[open] {
    border-color: var(--trv-secondary);
    box-shadow: 0 4px 20px rgba(45,140,111,0.08);
}
.trv-faq details summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--trv-text);
    transition: color 0.2s ease;
    gap: 1rem;
}
.trv-faq details summary::-webkit-details-marker { display: none; }
.trv-faq details summary::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D8C6F' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.35s ease;
}
.trv-faq details[open] summary::after {
    transform: rotate(45deg);
}
.trv-faq details[open] summary {
    color: var(--trv-primary);
}
.trv-faq .faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--trv-muted);
    line-height: 1.7;
    font-size: 1rem;
    animation: faqSlideIn 0.3s ease;
}
@keyframes faqSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   IMAGES & SECTIONS
   ========================================== */
.trv-img-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--trv-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.trv-img-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.trv-img-section:hover img {
    transform: scale(1.03);
}
.trv-img-accent {
    position: relative;
}
.trv-img-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -8px;
    width: 120px;
    height: 120px;
    border-radius: 0 0 0 var(--trv-radius);
    border-left: 3px solid var(--trv-accent);
    border-bottom: 3px solid var(--trv-accent);
    pointer-events: none;
}
/* Floating stat badges near images */
.trv-floating-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: var(--trv-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--trv-text);
    z-index: 3;
    animation: floatBadge 4s ease-in-out infinite alternate;
}
@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* ==========================================
   TRUST BADGES
   ========================================== */
.trv-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.trv-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    font-weight: 500;
}
.trv-trust-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ==========================================
   HERO IMAGE
   ========================================== */
.trv-hero-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.trv-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   DARK SECTION OVERRIDES
   ========================================== */
.trv-dark-section h2,
.trv-dark-section h1 {
    color: #fff !important;
}

/* ==========================================
   OVERLINE / KICKER
   ========================================== */
.trv-overline {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* ==========================================
   SEPARATOR LINE
   ========================================== */
.trv-separator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--trv-accent), var(--trv-accent-light));
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ==========================================
   SUBPAGE HERO BANNER
   ========================================== */
.trv-page-hero {
    background: linear-gradient(135deg, var(--trv-dark) 0%, var(--trv-primary-dark) 50%, var(--trv-primary) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 140px !important;
    text-align: center;
}
.trv-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.trv-page-hero h1 {
    color: #fff !important;
    position: relative;
    z-index: 2;
}
.trv-page-hero p {
    position: relative;
    z-index: 2;
}
.trv-page-hero .trv-separator {
    position: relative;
    z-index: 2;
}

/* ==========================================
   PRICING CARDS (Karriere)
   ========================================== */
.trv-pricing-card {
    border: 1px solid var(--trv-border);
    border-radius: var(--trv-radius);
    background: var(--trv-surface);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trv-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.trv-pricing-featured {
    border: 2px solid var(--trv-accent);
    box-shadow: 0 8px 32px rgba(232,168,56,0.15);
}
.trv-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--trv-accent), var(--trv-accent-light));
    color: #fff;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.trv-pricing-price {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--trv-accent), var(--trv-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0 0.5rem;
}

/* ==========================================
   FLUENT FORMS STYLING
   ========================================== */
.fluentform {
    border-radius: var(--trv-radius);
    background: var(--trv-surface);
    padding: 2.5rem;
    border: 1px solid var(--trv-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.fluentform .ff-el-group {
    margin-bottom: 1.25rem;
}
.fluentform .ff-el-input--label label {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--trv-text);
    margin-bottom: 0.375rem;
}
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="url"],
.fluentform input[type="number"],
.fluentform select,
.fluentform textarea {
    border: 1.5px solid var(--trv-border) !important;
    border-radius: 10px !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
    color: var(--trv-text) !important;
    background: var(--trv-surface) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100%;
    font-family: 'DM Sans', sans-serif !important;
}
.fluentform input:focus,
.fluentform select:focus,
.fluentform textarea:focus {
    border-color: var(--trv-accent) !important;
    box-shadow: 0 0 0 3px rgba(232,168,56,0.12) !important;
    outline: none !important;
}
.fluentform textarea {
    min-height: 120px;
}
.fluentform .ff_submit_btn_wrapper button,
.fluentform button[type="submit"] {
    background: linear-gradient(135deg, var(--trv-accent), var(--trv-accent-hover)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 1rem 3rem !important;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(232,168,56,0.35) !important;
    font-family: 'DM Sans', sans-serif !important;
    width: 100%;
}
.fluentform .ff_submit_btn_wrapper button:hover,
.fluentform button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(232,168,56,0.5) !important;
    filter: brightness(1.05) !important;
}
.fluentform .ff-el-tc label {
    font-size: 0.875rem;
    color: var(--trv-muted);
}
.fluentform .ff-el-tc a {
    color: var(--trv-secondary);
    text-decoration: underline;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}
.site-footer a {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer a:hover {
    color: #fff !important;
}
/* Footer wave separator */
.trv-footer-wave {
    position: relative;
    height: 60px;
    overflow: hidden;
    background: var(--trv-light);
}
.trv-footer-wave svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
}
/* Social icons */
.trv-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.trv-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.trv-social-icons a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.trv-social-icons svg {
    width: 18px;
    height: 18px;
    fill: rgba(255,255,255,0.7);
}
.trv-social-icons a:hover svg {
    fill: #fff;
}

/* ==========================================
   VALUES CARDS (Über uns)
   ========================================== */
.trv-value-card {
    padding: 2.5rem 2rem;
    border-radius: var(--trv-radius);
    background: var(--trv-surface);
    border: 1px solid var(--trv-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trv-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* ==========================================
   HERO OVERLAPPING IMAGE
   ========================================== */
.trv-hero-overlap-img {
    position: absolute;
    bottom: -20px;
    left: -30px;
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    z-index: 2;
    border: 3px solid rgba(255,255,255,0.1);
}
/* Trust icon circles in hero */
.trv-trust-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(232,168,56,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================
   ABOUT OVERLAP IMAGES
   ========================================== */
.trv-about-images {
    position: relative;
    padding-bottom: 30px;
    padding-right: 30px;
}
.trv-about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    border-radius: 16px 4px 16px 4px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    border: 3px solid var(--trv-surface);
    z-index: 2;
}
.trv-about-img-secondary img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   PARTNER SHOWCASE (new dark section)
   ========================================== */
.trv-showcase-dark {
    background: linear-gradient(135deg, var(--trv-dark) 0%, var(--trv-primary-dark) 50%, var(--trv-primary) 100%);
    position: relative;
    overflow: hidden;
}
.trv-showcase-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}
.trv-showcase-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.trv-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.3), 0 0 30px rgba(232,168,56,0.08);
}
.trv-showcase-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   TESTIMONIAL ACCENT BORDER
   ========================================== */
.trv-testimonial {
    border-left: 3px solid var(--trv-accent) !important;
}

/* ==========================================
   BENEFIT CARD TOP GRADIENT BORDER
   ========================================== */
.trv-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--trv-primary), var(--trv-secondary));
    border-radius: 16px 16px 0 0;
}

/* ==========================================
   UTILITY
   ========================================== */
.trv-relative { position: relative; }
.trv-z10 { position: relative; z-index: 10; }
.trv-text-center { text-align: center; }

/* ==========================================
   DOT PATTERN FOR LIGHT SECTIONS
   ========================================== */
.trv-dot-pattern {
    position: relative;
}
.trv-dot-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.trv-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--trv-accent), var(--trv-secondary));
    z-index: 10001;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.trv-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--trv-primary), var(--trv-secondary));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27,77,62,0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    pointer-events: none;
}
.trv-back-to-top.trv-btt-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.trv-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(27,77,62,0.5);
}

/* ==========================================
   MOBILE STICKY CTA BAR
   ========================================== */
.trv-mobile-cta {
    display: none;
}
@media (max-width: 768px) {
    .trv-mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.75rem 1rem;
        z-index: 998;
        box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
        transition: transform 0.3s ease;
    }
    .trv-mobile-cta.trv-mcta-hidden {
        transform: translateY(100%);
    }
    .trv-mobile-cta a {
        display: block;
        background: linear-gradient(135deg, var(--trv-accent), var(--trv-accent-hover));
        color: #fff;
        text-align: center;
        padding: 0.875rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9375rem;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(232,168,56,0.3);
    }
    .trv-back-to-top {
        bottom: 5rem;
    }
    body {
        padding-bottom: 60px;
    }
}

/* ==========================================
   TRUST BAR
   ========================================== */
.trv-trust-bar {
    padding: 0.5rem 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 782px) {
    .trv-hero-dark { padding-top: 120px !important; }
    .trv-page-hero { padding-top: 110px !important; }
    .trv-trust-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .trv-stat-number { font-size: 2.5rem; }
    .trv-steps-row::before { display: none; }
    .trv-cta-checks { flex-direction: column; align-items: center; gap: 0.75rem; }
    .fluentform { padding: 1.5rem; }
    .trv-testimonial { padding: 1.5rem !important; }
    .trv-img-accent::after { display: none; }
    .trv-pricing-card { padding: 2rem 1.5rem; }
    .trv-hero-particles { display: none; }
    .trv-float-card { display: none; }
    .trv-floating-badge { display: none; }
    .trv-hero-overlap-img { display: none; }
    .trv-about-img-secondary { display: none; }
    .trv-about-images { padding: 0; }
    .trv-benefit-card { margin-bottom: 0; }
    .trv-faq-grid { grid-template-columns: 1fr; }
    .trv-faq-image { display: none; }
    div[style*="grid-template-columns:repeat(2"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr !important; }
    .trv-stat-card + .trv-stat-card::after { display: none; }
}
@media (max-width: 600px) {
    .trv-hero-dark { padding-top: 100px !important; }
    .trv-stat-number { font-size: 2rem; }
    .trv-stat-card { padding: 1.25rem 1rem; }
    .trv-step-img { display: none; }
    div[style*="grid-template-columns:repeat(2"] { grid-template-columns: 1fr !important; }
}
