/* ============================================
   EM Bulczak Heizung & Sanitär - Custom Theme
   Akzentfarbe: #1DCFC7 (Türkis)
   Font: Titillium Web
   ============================================ */

:root {
    --primary: #1DCFC7;
    --primary-dark: #15a89f;
    --primary-light: #e8faf9;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --gray: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font: 'Titillium Web', sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(29,207,199,0.2);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ---- Bootstrap Overrides ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 6px;
    transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 6px;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.8);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* ---- Header / Top Bar ---- */
.header-topbar {
    background: var(--dark);
    padding: 8px 0;
    font-size: 13px;
}
.header-topbar .topbar-item {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.header-topbar .topbar-item:hover { color: var(--primary); }
.header-topbar i { color: var(--primary); }

.navbar {
    padding: 4px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark) !important;
}
.navbar-brand .logo-text strong { display: block; font-size: 1rem; color: var(--dark); }
.navbar-brand .logo-text small { color: var(--gray); font-size: 0.8rem; }

.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.nav-btn { padding: 10px 22px !important; border-radius: 6px !important; }

.nav-item.dropdown { display: flex !important; align-items: center; }
.nav-dropdown-caret { background: none; border: none; padding: 4px 6px; color: var(--dark); font-size: 0.75rem; cursor: pointer; transition: var(--transition); border-radius: var(--radius-sm); line-height: 1; }
.nav-dropdown-caret:hover { color: var(--primary); background: var(--primary-light); }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius-sm); }
.dropdown-item { font-weight: 500; padding: 10px 20px; transition: var(--transition); }
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* ---- Hero Slider ---- */
.hero-swiper {
    width: 100%;
    height: 600px;
}
.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 6s ease;
}
.swiper-slide-active .hero-slide-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 span { color: var(--primary); }
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    max-width: 500px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-buttons .btn { padding: 14px 32px; font-size: 1rem; font-weight: 700; }

.swiper-pagination-bullet { background: rgba(255,255,255,0.5); width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: var(--primary); width: 30px; border-radius: 5px; }
.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(29,207,199,0.3);
    width: 50px; height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px; font-weight: 900; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--primary); }

/* ---- Section Styles ---- */
section { padding: 80px 0; }
section.section-gray { background: var(--light-bg); }
section.section-dark { background: var(--dark); color: white; }
section.section-dark h2, section.section-dark h3, section.section-dark p { color: inherit; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.section-header h2 span { color: var(--primary); }
.section-header p { font-size: 1.05rem; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ---- Service Boxes (Startseite) ---- */
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary);
}
.service-icon {
    width: 80px; height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); }
.service-icon i {
    font-size: 36px;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .service-icon i { color: white; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; }
.service-card .btn { font-size: 0.9rem; }

/* ---- Tabs Section ---- */
.tabs-section { background: var(--light-bg); }
.nav-tabs-custom { border-bottom: none; gap: 8px; flex-wrap: wrap; }
.nav-tabs-custom .nav-link {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    color: var(--gray) !important;
    font-weight: 600;
    padding: 12px 24px !important;
    background: white;
}
.nav-tabs-custom .nav-link.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}
.nav-tabs-custom .nav-link:hover:not(.active) {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: white !important;
}
.tab-content-custom { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); margin-top: 24px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: '✓';
    background: var(--primary);
    color: white;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Stats Bar ---- */
.stats-bar { background: var(--primary); padding: 50px 0; }
.stat-item { text-align: center; color: white; }
.stat-number { font-size: 3rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: 0.9rem; opacity: 0.85; margin-top: 6px; font-weight: 500; }

/* ---- Partner Logos ---- */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
    height: 80px;
}
.partner-logo:hover { filter: none; opacity: 1; }
.partner-logo img { max-height: 50px; max-width: 120px; object-fit: contain; }
.partner-placeholder {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 16px 28px;
    font-weight: 700;
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
}

/* ---- Google Reviews ---- */
.google-reviews-section { padding: 80px 0; }
.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid #e8e8e8;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.9rem;
    color: #444;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 10px; left: 24px;
    line-height: 1;
    font-family: Georgia, serif;
}
.stars { color: #ffc107; font-size: 14px; margin-bottom: 16px; }
.testimonial-text { color: var(--gray); font-size: 0.95rem; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.95rem; }
.author-location { color: var(--gray); font-size: 0.82rem; }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}
.cta-banner h2 { color: white; font-size: 2.2rem; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 36px; }
.cta-banner .btn { margin: 6px; }

/* ---- Page Header ---- */
.page-header-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%);
    background-size: cover;
    background-position: center;
    padding: 110px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-header-section.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20,20,40,0.72);
    z-index: 0;
}
.page-header-section.has-image .container { position: relative; z-index: 1; }
.page-header-section::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header-section.gray::after { background: var(--light-bg); }
.page-header-section h1 { color: white; font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 14px; }
.page-header-section .breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.breadcrumb-item.active { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Service Detail Page ---- */
.service-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.service-detail-image img { width: 100%; height: 400px; object-fit: cover; }

.feature-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.feature-box h5 { color: var(--primary-dark); margin-bottom: 4px; font-size: 1rem; }
.feature-box p { margin: 0; color: var(--gray); font-size: 0.9rem; }

/* ---- Contact Page ---- */
.contact-info-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.contact-info-icon {
    width: 60px; height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.contact-info-icon i { font-size: 24px; color: var(--primary); }
.contact-info-card h5 { font-size: 1rem; margin-bottom: 6px; }
.contact-info-card p { color: var(--gray); font-size: 0.9rem; margin: 0; }
.contact-info-card a { color: var(--dark); font-weight: 600; }
.contact-info-card a:hover { color: var(--primary); }

.contact-form-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.form-control, .form-select {
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,207,199,0.15);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--dark); margin-bottom: 6px; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); }
.footer-main { padding: 70px 0 40px; }
.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}
.footer-brand-sub {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-list li, .footer-list li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-list li a:hover { color: var(--primary); padding-left: 4px; }
.footer-list i { color: var(--primary); }
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--primary); }

/* ---- Utility ---- */
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-swiper { height: 480px; }
    section { padding: 60px 0; }
}
@media (max-width: 768px) {
    .hero-swiper { height: 400px; }
    .hero-content h1 { font-size: 1.8rem; }
    section { padding: 50px 0; }
    .contact-form-card { padding: 24px; }
    .tab-content-custom { padding: 24px; }
    .stat-number { font-size: 2.2rem; }
}
@media (max-width: 576px) {
    .hero-swiper { height: 360px; }
    .hero-buttons .btn { width: 100%; }
}

/* =====================
   Terminanfrage
   ===================== */
.appt-toggle-row {
    background: #f0fdfb;
    border: 1.5px solid var(--primary);
    border-radius: 10px;
    padding: 12px 16px;
}
.appt-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 18px;
    margin-top: 4px;
}

/* =====================
   Cookie-Banner
   ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}
.cookie-banner-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--dark);
}
.cookie-banner-text p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
@media (max-width: 576px) {
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1; }
}

/* =====================
   WhatsApp Button
   ===================== */
.whatsapp-btn {
    display: none !important; /* TODO: entfernen wenn WhatsApp bereit */
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1040;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
