/* ============================================
   Baumpflege Schröder - Website Styles
   ============================================ */

:root {
    --bps-green-dark: #2d5016;
    --bps-green: #4a7c2e;
    --bps-green-light: #6ba33e;
    --bps-brown-dark: #3e2723;
    --bps-brown: #5d4037;
    --bps-brown-light: #8d6e63;
    --bps-cream: #faf8f5;
    --bps-white: #ffffff;
    --bps-text: #333333;
    --bps-text-light: #666666;
    --bps-orange: #e67e22;
    --bps-red: #c0392b;
    --bps-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --bps-shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --bps-radius: 8px;
    --bps-transition: 0.3s ease;
}

/* Reset & Base */
.bps-site * { box-sizing: border-box; }
.bps-site { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--bps-text); line-height: 1.6; }
.bps-site img { max-width: 100%; height: auto; }
.bps-site a { color: var(--bps-green); text-decoration: none; transition: color var(--bps-transition); }
.bps-site a:hover { color: var(--bps-green-light); }

/* Container */
.bps-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.bps-header {
    background: var(--bps-white);
    box-shadow: var(--bps-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.bps-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.bps-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--bps-green-dark);
}
.bps-logo-icon { font-size: 3rem; }
.bps-logo-text { font-size: 0.9rem; line-height: 1.2; color: var(--bps-brown-dark); }
.bps-logo-text strong { color: var(--bps-green-dark); font-size: 1.4rem; }

/* Navigation */
.bps-menu {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.bps-menu li { position: relative; }
.bps-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--bps-text);
    font-weight: 500;
    border-radius: var(--bps-radius);
    transition: all var(--bps-transition);
}
.bps-menu li a:hover,
.bps-menu li.current-menu-item > a {
    background: var(--bps-green);
    color: var(--bps-white);
}

/* Dropdown */
.bps-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bps-white);
    box-shadow: var(--bps-shadow-hover);
    border-radius: var(--bps-radius);
    min-width: 220px;
    padding: 8px 0;
    list-style: none;
    z-index: 100;
}
.bps-menu li:hover > .sub-menu { display: block; }
.bps-menu .sub-menu a {
    padding: 8px 20px;
    border-radius: 0;
}

/* Mobile Menu Toggle */
.bps-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.bps-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--bps-brown-dark);
    border-radius: 2px;
    transition: var(--bps-transition);
}

/* Hero */
.bps-hero {
    background: linear-gradient(135deg, var(--bps-green-dark) 0%, var(--bps-green) 100%);
    color: var(--bps-white);
    padding: 80px 20px;
    text-align: center;
}
.bps-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.bps-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 0 24px;
}
.bps-hero-sauna {
    background: linear-gradient(135deg, var(--bps-brown-dark) 0%, var(--bps-brown) 100%);
}
.bps-hero-huepfburg {
    background: linear-gradient(135deg, var(--bps-orange) 0%, #f39c12 100%);
}
.bps-hero-kontakt {
    background: linear-gradient(135deg, var(--bps-green) 0%, var(--bps-green-light) 100%);
}
.bps-hero-impressum {
    background: var(--bps-brown);
    padding: 50px 20px;
}
.bps-hero-galerie {
    background: linear-gradient(135deg, var(--bps-green-dark) 0%, var(--bps-brown) 100%);
}

/* Sections */
.bps-section {
    padding: 60px 0;
}
.bps-section h2 {
    font-size: 1.8rem;
    color: var(--bps-green-dark);
    margin: 0 0 24px;
    text-align: center;
}
.bps-section + .bps-section {
    border-top: 1px solid #eee;
}

/* Services Grid */
.bps-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.bps-service-card {
    background: var(--bps-white);
    border: 1px solid #e8e8e8;
    border-radius: var(--bps-radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--bps-transition);
}
.bps-service-card:hover {
    box-shadow: var(--bps-shadow-hover);
    transform: translateY(-2px);
}
.bps-service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.bps-service-card h3 { color: var(--bps-green-dark); margin: 0 0 12px; }
.bps-service-card p { color: var(--bps-text-light); margin: 0; }

/* Vermietungen Grid */
.bps-vermietungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}
.bps-vermietung-card {
    background: var(--bps-cream);
    border-radius: var(--bps-radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--bps-transition);
}
.bps-vermietung-card:hover { box-shadow: var(--bps-shadow-hover); }
.bps-vermietung-card h3 { font-size: 1.4rem; margin: 0 0 16px; }
.bps-vermietung-sauna { border-left: 4px solid var(--bps-brown); }
.bps-vermietung-huepfburg { border-left: 4px solid var(--bps-orange); }

/* CTA Box */
.bps-cta-box {
    background: var(--bps-cream);
    border-left: 4px solid var(--bps-green);
    padding: 24px 32px;
    border-radius: var(--bps-radius);
}
.bps-cta-box h2 { text-align: left; color: var(--bps-green); margin-bottom: 8px; font-size: 1.3rem; }
.bps-cta-box p { margin: 0; }

/* Content Grid (2 col) */
.bps-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.bps-content-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bps-content-image {
    border-radius: var(--bps-radius);
    object-fit: cover;
    width: 100%;
    height: 200px;
}

/* Sidebar layout (Kontakt) */
.bps-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bps-contact-box {
    background: var(--bps-cream);
    padding: 24px;
    border-radius: var(--bps-radius);
}
.bps-contact-box h3 { color: var(--bps-green-dark); margin: 0 0 12px; }

/* Pricing Table */
.bps-pricing-table {
    max-width: 600px;
    margin: 0 auto;
}
.bps-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.bps-price-row:last-child { border-bottom: none; }
.bps-price-highlight { background: var(--bps-cream); border-radius: var(--bps-radius); }
.bps-price-label { font-weight: 500; }
.bps-price-value { font-weight: 700; color: var(--bps-green-dark); font-size: 1.1rem; }
.bps-price-note { font-weight: 400; font-size: 0.85rem; color: var(--bps-text-light); display: block; }

/* Gallery */
.bps-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.bps-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--bps-radius);
    cursor: pointer;
    transition: all var(--bps-transition);
}
.bps-gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: var(--bps-shadow-hover);
}

/* Lightbox */
.bps-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.bps-lightbox.active { display: flex; }
.bps-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--bps-radius);
}
.bps-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.bps-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px 16px;
    border-radius: var(--bps-radius);
}
.bps-lightbox-prev { left: 20px; }
.bps-lightbox-next { right: 20px; }

/* Buttons */
.bps-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--bps-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--bps-transition);
    border: none;
    cursor: pointer;
}
.bps-btn-primary {
    background: var(--bps-green);
    color: var(--bps-white);
}
.bps-btn-primary:hover {
    background: var(--bps-green-dark);
    color: var(--bps-white);
}
.bps-btn-secondary {
    background: var(--bps-cream);
    color: var(--bps-green-dark);
    border: 2px solid var(--bps-green);
}
.bps-btn-secondary:hover {
    background: var(--bps-green);
    color: var(--bps-white);
}

/* Contact Form */
.bps-contact-form { max-width: 600px; }
.bps-form-group { margin-bottom: 20px; }
.bps-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bps-brown-dark);
}
.bps-form-group input,
.bps-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--bps-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--bps-transition);
}
.bps-form-group input:focus,
.bps-form-group textarea:focus {
    outline: none;
    border-color: var(--bps-green);
    box-shadow: 0 0 0 3px rgba(74,124,46,0.1);
}

/* Alerts */
.bps-alert {
    padding: 16px 20px;
    border-radius: var(--bps-radius);
    margin-bottom: 24px;
    font-weight: 500;
}
.bps-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.bps-alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Highlight & Warning */
.bps-highlight {
    background: var(--bps-cream);
    padding: 16px 20px;
    border-radius: var(--bps-radius);
    border-left: 4px solid var(--bps-green);
}
.bps-warning {
    background: #fff3cd;
    padding: 16px 20px;
    border-radius: var(--bps-radius);
    border-left: 4px solid var(--bps-orange);
    color: #856404;
}

/* Feature List */
.bps-feature-list { padding-left: 20px; }
.bps-feature-list li { margin-bottom: 8px; }

/* Contact Section */
.bps-section-contact { text-align: center; background: var(--bps-cream); padding: 50px 0; border-radius: var(--bps-radius); margin: 0 0 40px; }
.bps-contact-info { margin: 20px 0; }

/* Legal */
.bps-section-legal h3 { color: var(--bps-brown-dark); margin-top: 32px; }

/* Hide WordPress Page Titles */
.entry-title,
.page-title,
.post-title,
h1.entry-title,
h1.page-title,
.article-title,
.single-title { display: none !important; }

/* Hide WordPress admin bar on frontend */
.bps-site #wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* Ensure header shows on all pages */
.bps-header { display: block !important; }

/* Full width without theme interference */
.bps-site .site-content,
.bps-site #content,
.bps-site .site-main { padding: 0 !important; margin: 0 !important; }

/* Footer */
.bps-footer {
    background: var(--bps-brown-dark);
    color: var(--bps-cream);
    padding: 50px 0 0;
}
.bps-footer h3 { color: var(--bps-white); margin: 0 0 12px; font-size: 1.1rem; }
.bps-footer a { color: var(--bps-green-light); }
.bps-footer a:hover { color: var(--bps-white); }
.bps-footer ul { list-style: none; padding: 0; margin: 0; }
.bps-footer li { margin-bottom: 6px; }
.bps-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.bps-footer-bottom {
    margin-top: 40px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .bps-menu-toggle { display: flex; }
    .bps-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bps-white); box-shadow: var(--bps-shadow); }
    .bps-nav.active { display: block; }
    .bps-menu { flex-direction: column; padding: 12px; }
    .bps-menu .sub-menu { position: static; box-shadow: none; padding-left: 16px; display: block; }
    
    .bps-hero { padding: 50px 20px; }
    .bps-hero h1 { font-size: 1.8rem; }
    
    .bps-content-grid { grid-template-columns: 1fr; }
    .bps-content-images { grid-template-columns: 1fr 1fr; }
    
    .bps-services-grid { grid-template-columns: 1fr 1fr; }
    .bps-vermietungen-grid { grid-template-columns: 1fr; }
    
    .bps-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    
    .bps-price-row { flex-direction: column; text-align: center; gap: 4px; }
}

@media (max-width: 480px) {
    .bps-services-grid { grid-template-columns: 1fr; }
    .bps-content-images { grid-template-columns: 1fr; }
    .bps-hero h1 { font-size: 1.5rem; }
}

/* Compact sections */
.bps-section-compact { padding: 30px 0; }
.bps-section-compact h2 { font-size: 1.4rem; margin-bottom: 16px; }
.bps-service-card { padding: 20px 16px; }
.bps-service-icon { font-size: 1.8rem; margin-bottom: 8px; }
.bps-service-card h3 { font-size: 1rem; margin-bottom: 6px; }
.bps-service-card p { font-size: 0.85rem; }

/* Staggered gallery animation */
.bps-gallery-staggered .bps-gallery-item { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.bps-gallery-staggered .bps-gallery-item img { height: 150px; }

/* Contact grid */
.bps-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bps-contact-form-wrapper .bps-contact-form { max-width: 100%; }
.bps-map iframe { width: 100%; height: 250px; border-radius: 8px; }
.bps-contact-info-compact p { margin: 8px 0; font-size: 0.9rem; }

/* Vermietungen compact */
.bps-vermietung-card { padding: 24px 20px; }
.bps-vermietung-card h3 { font-size: 1.2rem; }
.bps-vermietung-card p { font-size: 0.9rem; }

@media (max-width: 768px) {
    .bps-contact-grid { grid-template-columns: 1fr; }
}

/* Burger Menu */
.bps-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}
.bps-burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--bps-brown-dark);
    border-radius: 2px;
    transition: var(--bps-transition);
}
.bps-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.bps-burger.active span:nth-child(2) { opacity: 0; }
.bps-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Header scrolled */
.bps-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.bps-header.scrolled .bps-header-inner { padding: 8px 20px; }

@media (max-width: 900px) {
    .bps-burger { display: flex; }
    .bps-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bps-white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.2);
        padding: 80px 24px 24px;
        flex-direction: column;
        gap: 8px;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    .bps-nav.active { right: 0; }
    .bps-nav a {
        padding: 14px 16px;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }
    .bps-nav .sub-menu { display: none; }
    .bps-header-inner { padding: 12px 16px !important; }
}

/* Fix: Kontaktformular kompakter */
.bps-contact-form { max-width: 400px; }
.bps-contact-form .bps-form-group { margin-bottom: 12px; }
.bps-contact-form .bps-form-group label { font-size: 0.85rem; margin-bottom: 4px; }
.bps-contact-form .bps-form-group input,
.bps-contact-form .bps-form-group textarea { padding: 8px 12px; font-size: 0.9rem; }
.bps-contact-form .bps-form-group textarea { min-height: 100px; }
.bps-contact-form .bps-btn { padding: 10px 20px; font-size: 0.9rem; }

/* Fix: Hero Button sichtbar */
.bps-hero .bps-btn-primary {
    background: #fff !important;
    color: var(--bps-green-dark) !important;
    border: 2px solid #fff;
}
.bps-hero .bps-btn-primary:hover {
    background: var(--bps-green-light) !important;
    color: #fff !important;
}

/* Fixed Header */
.bps-header-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--bps-green-dark) 0%, var(--bps-green) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.bps-header-fixed .bps-logo-text,
.bps-header-fixed .bps-logo-icon { color: #fff !important; }
.bps-header-fixed .bps-burger span { background: #fff; }

.bps-main-content {
    margin-top: 80px; /* Space for fixed header */
}

/* Hero Text in Header */
.bps-header-fixed .bps-hero-tagline {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* ============================================
   MODERN SLIDESHOW - Redesign v2
   ============================================ */
.bps-slideshow-section { 
    margin-top: 60px;
    margin-bottom: 50px;
    width: 100%;
}

.bps-slideshow {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.bps-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.bps-slide.active {
    opacity: 1;
    z-index: 1;
}

.bps-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Modern Navigation Arrows */
.bps-slideshow-prev,
.bps-slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2d5016;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.bps-slideshow:hover .bps-slideshow-prev,
.bps-slideshow:hover .bps-slideshow-next {
    opacity: 1;
}

.bps-slideshow-prev:hover,
.bps-slideshow-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.bps-slideshow-prev { left: 16px; }
.bps-slideshow-next { right: 16px; }

/* Modern Dot Navigation */
.bps-slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.bps-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.bps-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.bps-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.bps-slideshow-link {
    text-align: center;
    margin-top: 24px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bps-slideshow { height: 280px; border-radius: 12px; }
    .bps-slideshow-section { margin-top: 50px; }
    .bps-slideshow-prev, .bps-slideshow-next { 
        width: 40px; 
        height: 40px; 
        font-size: 18px;
        opacity: 1; /* Always show on mobile */
    }
    .bps-slideshow-prev { left: 10px; }
    .bps-slideshow-next { right: 10px; }
    .bps-slideshow-dots { padding: 8px 16px; bottom: 12px; }
    .bps-dot { width: 8px; height: 8px; }
    .bps-header-fixed .bps-logo-text { display: none; }
    .bps-header-fixed .bps-logo { flex-direction: row; gap: 8px; }
    .bps-header-fixed .bps-logo-icon { font-size: 1.8rem; }
}

/* Fixed Header - white text */
.bps-header-fixed { background: linear-gradient(135deg, #2d5016 0%, #4a7c2e 100%) !important; }
.bps-header-fixed .bps-logo { color: #fff !important; }
.bps-header-fixed .bps-logo-text { color: #fff !important; }
.bps-header-fixed .bps-logo-text strong { color: #fff !important; }
.bps-header-fixed .bps-logo-icon { color: #fff !important; }
.bps-header-fixed .bps-nav a { color: #fff !important; }
.bps-header-fixed .bps-burger span { background: #fff !important; }
