/*
Theme Name: Florida Home Child Theme
Theme URI: https://deine-florida-seite.com
Description: Ein helles, freundliches Onepager-Theme für eine Ferienhausvermietung in Florida. Basis: GeneratePress.
Author: Dein Name
Template: generatepress
Version: 1.1.0
Text Domain: fh-child
*/

/* ============================================
   1. DESIGN SYSTEM & VARIABLEN
   ============================================ */
:root {
    /* Brand Colors */
    --fh-dark:   #1e2d3b;       /* Navy Text */
    --fh-accent: #00a8cc;       /* Ocean Blue */
    --fh-light:  #ffffff;       /* Background */
    --fh-sand:   #f8f6f2;       /* Sektionen */
    --fh-coral:  #ff7e67;       /* Buttons / Sunset */

    /* Layout & Spacing */
    --fh-container-max:         1200px;
    --fh-section-padding:       100px;
    --fh-header-height:         90px;
    --fh-header-height-scrolled:70px;
    --fh-side-padding:          clamp(20px, 5vw, 60px);

    /* Animation */
    --fh-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--fh-light);
    color: var(--fh-dark);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--fh-header-height);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--fh-dark);
}

.entry-content :is(img, video, iframe, embed):not(.wp-block-cover__image-background) {
    max-width: 100%;
    height: auto;
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */
.fh-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: var(--fh-header-height);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-bar .fh-header { top: 32px; }

.fh-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    height: var(--fh-header-height-scrolled);
    box-shadow: 0 4px 20px rgba(0, 168, 204, 0.08);
    border-bottom: 1px solid rgba(0, 168, 204, 0.1);
}

.fh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--fh-container-max);
    margin: 0 auto;
    padding: 0 var(--fh-side-padding);
}

/* Scroll Progress Bar (Teil des Headers) */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--fh-accent);
    width: 0%;
    z-index: 10001;
}

/* Desktop Menu */
.fh-nav {
    display: flex;
    align-items: center;
}

.fh-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.fh-menu li a {
    color: var(--fh-dark) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--fh-transition);
}

.fh-menu li a:hover,
.fh-menu li.current-menu-item a {
    color: var(--fh-accent) !important;
}

/* Mobile Toggle (Hamburger) */
.fh-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--fh-dark);
    cursor: pointer;
    padding: 10px;
}

/* Logo */
.fh-logo-container {
    display: flex;
    align-items: center;
    max-width: 220px;
}

.fh-logo-container img {
    display: block;
    width: auto;
    height: auto;
    max-height: 60px;
    transition: transform 0.3s ease;
}

.fh-logo-container a:hover img {
    transform: scale(1.05);
}

/* Language Switcher */
.fh-lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 25px;
    padding-left: 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    height: 24px;
}

.fh-lang-switch ul,
.fh-lang-switch li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lang-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--fh-dark) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.6;
    transition: var(--fh-transition);
}

.lang-link.active,
.lang-link:hover {
    opacity: 1;
    color: var(--fh-accent) !important;
}

/* ============================================
   4. HERO & GLASS CARDS
   ============================================ */
#header.wp-block-cover.hero-section {
    position: relative;
    min-height: 80vh;
}

#header.wp-block-cover.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    z-index: 1;
}

.fh-glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 168, 204, 0.1);
    color: var(--fh-dark);
    max-width: 600px;
}

/* ============================================
   5. SEKTIONEN & CARDS
   ============================================ */
.fh-section { padding: var(--fh-section-padding) 0; }
.fh-section-alt { background-color: var(--fh-sand); }
.fh-container { max-width: var(--fh-container-max); margin: 0 auto; padding: 0 20px; }

.fh-info-grid .wp-block-column {
    background: var(--fh-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 40px 30px !important;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.fh-info-grid .wp-block-column:hover {
    transform: translateY(-5px);
    border-color: var(--fh-accent);
}

.fh-card-icon {
    font-size: 2rem;
    color: var(--fh-accent);
    background: rgba(0, 168, 204, 0.08);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: inline-block;
}

.fh-check-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.fh-check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.fh-check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--fh-accent);
}

/* ============================================
   6. CONTACT FORM 7
   ============================================ */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(0, 168, 204, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    color: var(--fh-dark) !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    background-color: #fff !important;
    border-color: var(--fh-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.1) !important;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fh-accent);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(48%) sepia(80%) saturate(2450%) hue-rotate(160deg) brightness(95%) contrast(90%);
}

/* CF7 Submit Button */
.wpcf7-form input.wpcf7-submit {
    background-color: var(--fh-accent) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    margin: 20px auto 0 !important;
    width: auto !important;
}

.wpcf7-form input.wpcf7-submit:hover {
    background-color: var(--fh-coral) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.wpcf7-form p:last-child {
    text-align: center !important;
}

/* ============================================
   7. FOOTER
   ============================================ */
.fh-footer {
    background-color: var(--fh-sand) !important;
    padding: 80px 0 40px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.fh-footer .fh-button {
    display: inline-block !important;
    background-color: var(--fh-accent) !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.2);
}

.fh-footer .fh-button:hover {
    background-color: var(--fh-coral) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 103, 0.3);
}

.fh-footer-legal a {
    color: var(--fh-dark) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.fh-footer-legal a:hover {
    color: var(--fh-accent) !important;
}

/* ============================================
   8. GALERIE
   ============================================ */

/* Standard Gutenberg Galerie */
.wp-block-gallery .wp-block-image {
    position: relative !important;
    overflow: hidden;
    border-radius: 25px;
}

.wp-block-gallery .wp-block-image img {
    aspect-ratio: 3 / 2 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 25px;
    transition: transform 0.5s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.05);
}

/* Floating Caption Label */
.wp-block-gallery .wp-block-image figcaption {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px !important;
    color: var(--fh-dark) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    display: block !important;
}

.wp-block-gallery .wp-block-image:hover figcaption {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--fh-accent) !important;
}

/* Grand Coastal Gallery */
.gallery-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 100px !important;
}

.gallery-trigger {
    position: relative;
    width: 100% !important;
    max-width: 1400px !important;
    display: block;
    overflow: hidden;
    border-radius: 35px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 60px !important;
}

.gallery-trigger img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-trigger:hover img {
    transform: scale(1.04);
}

/* Gallery Counter Badge */
.gallery-counter {
    position: absolute !important;
    bottom: 35px !important;
    right: 35px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 10px 20px !important;
    border-radius: 15px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
    z-index: 10;
}

.counter-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.gallery-icon {
    width: 26px !important;
    height: 26px !important;
    color: var(--fh-accent) !important;
}

.count-plus {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--fh-dark) !important;
    line-height: 1 !important;
}

.count-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--fh-accent) !important;
}

/* Gallery Titel */
.gallery-group h3 {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--fh-accent) !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin: 0 !important;
    text-align: center !important;
}

.gallery-group p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--fh-dark);
    text-align: center;
    margin: 5px 0 0 !important;
    padding: 0 10px;
    letter-spacing: 0.5px;
}

/* Single Thumbnail Gallery */
.single-thumb-gallery .wp-block-image { display: none; }

.single-thumb-gallery .wp-block-image:first-child {
    display: block;
    width: 100%;
}

.single-thumb-gallery .wp-block-image:first-child::after {
    content: "View All Photos";
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 168, 204, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* Hidden Assets (technisch vorhanden für Lightbox-Plugins, aber unsichtbar) */
.hidden-assets {
    display: block !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* ============================================
   9. BUCHUNGS-SEKTION
   ============================================ */
.fh-booking-section {
    margin: 80px auto !important;
    padding: 60px 40px !important;
    background-color: var(--fh-sand);
    border-radius: 40px;
    max-width: 1000px !important;
    width: 90% !important;
}

.fh-booking-section .wp-block-columns {
    display: flex !important;
    justify-content: center !important;
    gap: 60px !important;
    margin: 0 auto !important;
}

.fh-booking-section .wp-block-column {
    flex: 0 1 400px !important;
    min-width: 300px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   10. WPBS KALENDER
   ============================================ */

/* Titel des Kalender-Widgets ausblenden */
.wpbs-main-wrapper .wpbs-container.wpbs-calendar-1 h2,
.wpbs-main-wrapper-calendar-1 h2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
    pointer-events: none !important;
}

/* Frei (Status 1) – Soft Aqua */
.wpbs-container.wpbs-calendar-1 .wpbs-legend-item-icon-1 div:first-of-type,
.wpbs-container.wpbs-calendar-1 .wpbs-day.wpbs-status-1 {
    background-color: #E0F4F7 !important;
    border: none !important;
}

/* Gebucht (Status 2) – Soft Coral */
.wpbs-container.wpbs-calendar-1 .wpbs-legend-item-icon-2 div:first-of-type,
.wpbs-container.wpbs-calendar-1 .wpbs-day.wpbs-status-2 {
    background-color: #FFC0BD !important;
    border: none !important;
}

/* Kalender-Tage */
.wpbs-container.wpbs-calendar-1 .wpbs-day {
    border-radius: 8px !important;
    margin: 2px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    color: var(--fh-dark) !important;
}

/* Legende */
.wpbs-container.wpbs-calendar-1 .wpbs-legend-item-name {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fh-accent);
}

/* ============================================
   11. COASTAL WAVE DIVIDER
   ============================================ */
.fh-wave-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -80px;
    margin-bottom: -2px;
    position: relative;
    z-index: 10;
}

.fh-wave-container svg {
    display: block;
    width: 100%;
    height: 100px;
    shape-rendering: geometricPrecision;
    transform: scale(1.02);
}

.double-wave svg path {
    transition: all 0.8s ease;
}

/* ============================================
   12. UTILITIES
   ============================================ */
.fh-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--fh-accent);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fh-back-to-top.is-visible { opacity: 1; visibility: visible; }

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    body { padding-top: var(--fh-header-height-scrolled); }

    .fh-mobile-toggle { display: block; }

    .fh-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .fh-nav.is-open { display: flex; }
    .fh-menu { flex-direction: column; gap: 15px; }

    .fh-lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
        justify-content: center;
    }

    .gallery-trigger { margin-bottom: 45px !important; }
}

@media (max-width: 782px) {
    .fh-booking-section { padding: 40px 20px !important; }

    .fh-booking-section .wp-block-columns {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .fh-booking-section .wp-block-column {
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
}

@media (max-width: 768px) {
    :root { --fh-section-padding: 60px; }

    .fh-glass-card { padding: 25px; margin: 0 15px; }

    .admin-bar .fh-header { top: 46px; }

    .fh-logo-container { max-width: 150px; }
    .fh-logo-container img { max-height: 45px; }

    .fh-wave-container { margin-top: -50px; }
    .fh-wave-container svg { height: 50px; }

    .gallery-trigger {
        border-radius: 20px !important;
        margin-bottom: 35px !important;
    }

    .gallery-counter {
        bottom: 20px !important;
        right: 20px !important;
        transform: scale(0.9);
    }

    .gallery-group h3 { font-size: 1.2rem !important; }
}
