/* ==========================================================================
   HappyWeed V2 Design System - Organic Nature & Botanical Clean (1:1 Mockup Match)
   Web-Design & Frontend Excellence | 100% DSGVO-Konform (Lokale Schriftarten & Assets)
   ========================================================================== */

/* Lokale Schriftart-Einbindung (100% DSGVO-konform ohne externe CDN-Aufrufe) */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --v2-bg-page: #e8efe9;
    --v2-bg-hero-left: #f6f5ed;
    --v2-bg-card: rgba(255, 255, 255, 0.98);
    --v2-bg-card-hover: rgba(240, 248, 243, 0.98);
    
    --v2-forest-primary: #2d6a4f;
    --v2-forest-dark: #1b4332;
    --v2-eucalyptus: #52b788;
    --v2-mint-soft: #d8f3dc;
    --v2-sage-light: #eef7f1;
    --v2-gold-warm: #d4a373;
    
    --v2-text-dark: #163324;
    --v2-text-body: #2d4036;
    --v2-text-muted: #587063;
    
    --v2-border-light: rgba(45, 106, 79, 0.14);
    --v2-border-bright: rgba(45, 106, 79, 0.35);
    --v2-shadow-soft: 0 15px 40px rgba(27, 67, 50, 0.06);
    
    --v2-font-serif: "Playfair Display", Georgia, serif;
    --v2-font-sans: "Outfit", system-ui, -apple-system, sans-serif;
}

/* Page Background: Soft Sage Frame with Page Margin */
body.v2-dark-body {
    background-color: var(--v2-bg-page) !important;
    color: var(--v2-text-body) !important;
    font-family: var(--v2-font-sans) !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Reset default backgrounds */
body.v2-dark-body .home-one-pager,
body.v2-dark-body main,
body.v2-dark-body .bg-light,
body.v2-dark-body .bg-white:not(#cookieBanner) {
    background-color: transparent !important;
    color: var(--v2-text-body) !important;
}

/* Master Canvas Frame Container (Rounded White/Sage Master Box) */
.v2-master-frame {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(22, 51, 36, 0.08);
    margin: 16px auto 30px;
    max-width: 1400px;
    overflow: hidden;
    position: relative;
}

/* 1:1 Mockup Hero Block (Full-Width Split Layout with Overlapping Headline) */
.v2-hero-mockup-block {
    background: var(--v2-bg-hero-left);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Left Content Area (65% width to allow headline to stretch & overlap image) */
.v2-hero-left-content {
    padding: 70px 60px 70px 70px;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* 1:1 Editorial Serif Headline (Wide & Overlapping Image) */
.v2-hero-editorial-title {
    font-family: var(--v2-font-serif) !important;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--v2-text-dark);
    margin-bottom: 1.4rem;
    max-width: 760px;
    text-shadow: 0 2px 10px rgba(246, 245, 237, 0.8);
}

/* Subtitle */
.v2-hero-editorial-sub {
    font-size: 1.18rem;
    line-height: 1.65;
    color: #3b5446;
    max-width: 580px;
    margin-bottom: 2.4rem;
    font-weight: 400;
}

/* Right Edge-to-Edge Visual Image Section (58% width with smooth gradient fade) */
.v2-hero-right-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    overflow: hidden;
    z-index: 1;
}

.v2-hero-right-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Soft Radial & Linear Gradient Fade from Image to Overlapping Left Text Area */
.v2-hero-right-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(to right, var(--v2-bg-hero-left) 0%, rgba(246, 245, 237, 0.75) 45%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Botanical Left Margin Authentic Cannabis Fan Leaf Watermark */
.v2-hero-botanical-leaf {
    position: absolute;
    top: -50px;
    left: -70px;
    width: 450px;
    height: 450px;
    transform: rotate(-35deg);
    opacity: 0.13;
    pointer-events: none;
    z-index: 2;
    object-fit: contain;
}

/* 1:1 Dark Forest Pill Buttons */
.v2-btn-forest-pill {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 36px !important;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 18px rgba(27, 67, 50, 0.28) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.v2-btn-forest-pill:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(27, 67, 50, 0.4) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1b4332 0%, #0e271c 100%) !important;
}

.v2-btn-forest-pill-secondary {
    background: #1f4e37 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 36px !important;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 18px rgba(27, 67, 50, 0.2) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.v2-btn-forest-pill-secondary:hover {
    background: #143726 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Glassmorphism Cards (Organic Nature Style) */
.v2-glass-card {
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--v2-bg-card) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--v2-border-light) !important;
    border-radius: 24px !important;
    box-shadow: var(--v2-shadow-soft) !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, background 0.35s ease !important;
    color: var(--v2-text-body) !important;
    position: relative;
}

.v2-glass-card:hover {
    background: var(--v2-bg-card-hover) !important;
    border-color: var(--v2-border-bright) !important;
    box-shadow: 0 15px 40px rgba(27, 67, 50, 0.12) !important;
    transform: translateY(-5px) !important;
}

/* Step Number Watermark inside Card */
.v2-step-watermark {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.4rem;
    font-weight: 900;
    color: rgba(45, 106, 79, 0.12);
    letter-spacing: -1px;
    line-height: 1;
    pointer-events: none;
}

/* Card Headings & Paragraph Text Fixes */
.v2-glass-card h1, .v2-glass-card h2, .v2-glass-card h3, 
.v2-glass-card h4, .v2-glass-card h5, .v2-glass-card h6,
.v2-page-wrapper h1, .v2-page-wrapper h2, .v2-page-wrapper h3,
.v2-page-wrapper h4, .v2-page-wrapper h5, .v2-page-wrapper h6 {
    color: var(--v2-text-dark) !important;
    font-weight: 700 !important;
}

.v2-glass-card p, .v2-glass-card small, .v2-glass-card span, .v2-glass-card li,
.v2-page-wrapper p, .v2-page-wrapper small, .v2-page-wrapper span {
    color: var(--v2-text-body) !important;
}

.v2-text-neon {
    color: var(--v2-forest-primary) !important;
    font-weight: 700;
}

.v2-text-sub {
    color: var(--v2-text-muted) !important;
}

/* Badges & Buttons */
.v2-badge-neon {
    background: var(--v2-mint-soft) !important;
    border: 1px solid var(--v2-eucalyptus) !important;
    color: var(--v2-forest-dark) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.2) !important;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
}

.v2-btn-primary {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 36px !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.35) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.v2-btn-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.45) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1b4332 0%, #0d281e 100%) !important;
}

.v2-btn-outline {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--v2-forest-primary) !important;
    color: var(--v2-forest-dark) !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 12px 32px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.v2-btn-outline:hover {
    background: var(--v2-forest-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.25) !important;
}

/* V2 Navbar (Light Organic Glass) */
.v2-navbar {
    background: rgba(247, 251, 248, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(45, 106, 79, 0.15) !important;
}

.v2-navbar .nav-link {
    color: var(--v2-text-dark) !important;
    font-weight: 600;
    transition: all 0.25s ease;
    border-radius: 8px;
    padding: 8px 16px !important;
}

.v2-navbar .nav-link:hover,
.v2-navbar .nav-link.active {
    color: var(--v2-forest-dark) !important;
    background: rgba(45, 106, 79, 0.1) !important;
}

/* Calculator Box */
.v2-calc-box {
    background: linear-gradient(145deg, #eef7f1 0%, #ffffff 100%) !important;
    border: 1px solid rgba(45, 106, 79, 0.25) !important;
    border-radius: 24px !important;
    padding: 36px !important;
    box-shadow: 0 15px 45px rgba(27, 67, 50, 0.08) !important;
}

.v2-slider-thumb {
    accent-color: var(--v2-forest-primary) !important;
}

/* Step Icons */
.v2-step-icon {
    width: 76px;
    height: 76px;
    background: rgba(45, 106, 79, 0.08);
    border: 2px solid var(--v2-forest-primary);
    color: var(--v2-forest-dark);
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.15);
}

/* Premium V2 Cookie Banner (Light Organic Glass) */
body.v2-dark-body #cookieBanner {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid var(--v2-border-bright) !important;
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.15) !important;
    color: var(--v2-text-dark) !important;
    border-radius: 20px !important;
}

body.v2-dark-body #cookieBanner h6 {
    color: var(--v2-text-dark) !important;
    font-weight: 700 !important;
}

body.v2-dark-body #cookieBanner p,
body.v2-dark-body #cookieBanner p.text-secondary {
    color: var(--v2-text-muted) !important;
}

body.v2-dark-body #cookieBanner #declineCookies {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: var(--v2-text-dark) !important;
    border-radius: 50px !important;
    transition: all 0.25s ease !important;
}

body.v2-dark-body #cookieBanner #declineCookies:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: var(--v2-text-dark) !important;
}

body.v2-dark-body #cookieBanner #acceptCookies {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3) !important;
    transition: all 0.25s ease !important;
}

body.v2-dark-body #cookieBanner #acceptCookies:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.4) !important;
}

/* Footer V2 */
.v2-footer {
    background: #122c21 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #a0c4ab !important;
}

.v2-footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s ease;
}

.v2-footer a:hover {
    color: var(--v2-eucalyptus) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (@media max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .v2-hero-mockup-block {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .v2-hero-left-content {
        padding: 36px 20px 30px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .v2-hero-editorial-title {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
        max-width: 100% !important;
    }

    .v2-hero-editorial-sub {
        font-size: 1rem !important;
        margin-bottom: 1.6rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .v2-hero-right-visual {
        position: relative !important;
        width: 100% !important;
        height: 260px !important;
    }

    .v2-hero-right-visual::before {
        width: 100% !important;
        height: 30% !important;
        background: linear-gradient(to bottom, var(--v2-bg-hero-left) 0%, transparent 100%) !important;
    }

    .v2-hero-left-content .d-flex {
        flex-direction: column !important;
        width: 100% !important;
    }

    .v2-btn-forest-pill, .v2-btn-forest-pill-secondary {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
    }
    .display-6 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
}

/* ==========================================================================
   MOBILE OFFCANVAS NAVIGATION DRAWER FIX
   ========================================================================== */
#navbarNavMobile.offcanvas {
    background-color: #ffffff !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 1055 !important;
}

#navbarNavMobile .offcanvas-header {
    background-color: #f8faf8 !important;
    border-bottom: 1px solid rgba(45, 106, 79, 0.12) !important;
    padding: 1.25rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#navbarNavMobile .offcanvas-header .offcanvas-title {
    color: #1b4332 !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
}

#navbarNavMobile .offcanvas-body {
    padding: 1.5rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    height: calc(100% - 70px) !important;
}

#navbarNavMobile .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

#navbarNavMobile .navbar-nav .nav-item {
    width: 100% !important;
    list-style: none !important;
}

#navbarNavMobile .navbar-nav .nav-link {
    color: #2d4036 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
}

#navbarNavMobile .navbar-nav .nav-link i {
    font-size: 1.2rem !important;
    color: #198754 !important;
}

#navbarNavMobile .navbar-nav .nav-link:hover,
#navbarNavMobile .navbar-nav .nav-link.active {
    color: #198754 !important;
    background-color: #f0f8f2 !important;
}

/* ==========================================================================
   CUSTOM RANGE SLIDER (Botanic Control Knob with Double Arrow Icon)
   ========================================================================== */
.v2-custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #d8f3dc 0%, #eef7f1 100%);
    border: 1px solid rgba(45, 106, 79, 0.25);
    border-radius: 8px;
    outline: none;
    margin: 8px 0;
    transition: background 0.2s ease;
}

/* WebKit (Chrome, Safari, Edge) */
.v2-custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 38px;
    height: 38px;
    margin-top: -15px !important;
    border-radius: 50%;
    background: #1b4332 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.146 8.354a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L2.707 7.5H13.293l-2.147-2.146a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L13.293 8.5H2.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3z'/%3E%3C/svg%3E") center center no-repeat;
    background-size: 20px 20px;
    border: 2.5px solid #52b788;
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.35), 0 0 0 4px rgba(82, 183, 136, 0.2);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.v2-custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    background-color: #2d6a4f;
    box-shadow: 0 6px 18px rgba(27, 67, 50, 0.45), 0 0 0 6px rgba(82, 183, 136, 0.3);
}

.v2-custom-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.18);
    background-color: #198754;
}

/* Firefox */
.v2-custom-range::-moz-range-thumb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1b4332 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.146 8.354a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L2.707 7.5H13.293l-2.147-2.146a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L13.293 8.5H2.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3z'/%3E%3C/svg%3E") center center no-repeat;
    background-size: 20px 20px;
    border: 2.5px solid #52b788;
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.35);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v2-custom-range::-moz-range-thumb:hover {
    transform: scale(1.12);
    background-color: #2d6a4f;
}
