/* Global Styles */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2a9d8f;
    --accent-color: #e9c46a;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* REVIEWS SECTION */
.reviews {
    background-color: #f8f9fa;
    text-align: center;
    padding: 60px 20px;
}

.reviews .container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
}

.google-reviews {
    margin: 40px 0;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-placeholder {
    padding: 20px;
    color: var(--text-color);
    font-style: italic;
}

.more-reviews {
    display: inline-block;
    margin: 20px 0 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.more-reviews:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Google Reviews Section */
.google-reviews {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 20px;
    text-align: center;
}

#google-reviews-container {
    position: relative;
    min-height: 200px;
}

#review-loading {
    padding: 20px;
    color: #666;
    font-style: italic;
}

.review {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.review-rating {
    color: #FFD700;
    font-size: 1.1em;
    white-space: nowrap;
}

.review-time {
    color: #777;
    font-size: 0.85em;
    margin-left: auto;
}

.review-text {
    color: #444;
    line-height: 1.5;
    margin-top: 10px;
}

.write-review-btn {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.write-review-btn:hover {
    background-color: #1557b0;
    color: white;
}

.error-message {
    color: #d32f2f;
    padding: 20px;
    background-color: #fde7e7;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border-left: 4px solid #d32f2f;
}

.error-message p {
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.retry-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background-color: #1557b0;
}

.retry-btn:active {
    transform: translateY(1px);
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#review-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    position: relative;
    min-height: 40px;
}

#review-loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #1a73e8;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .review-time {
        margin-left: 0;
    }
    
    .review {
        padding: 15px;
    }
}

.g-reviews {
    width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.review-note {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .google-reviews {
        padding: 15px 10px;
        min-height: 250px;
    }
    
    .g-reviews {
        min-height: 200px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews {
        padding: 40px 15px;
    }
    
    .reviews h3 {
        font-size: 1.5rem;
    }
}

.text-center {
    text-align: center;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 80vh;
    background: url('../images/sanitär-notdienst-schweiz fahrzeug pikett.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 100px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    max-width: 1000px;
    padding: 0 20px;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
    transform: translateY(-5px);
}

.call-btn {
    display: inline-block;
    margin: 1.5rem 0;
    padding: 1rem 2.5rem;
    background: #0d3c4e; /* Darker shade for better contrast */
    color: #ffffff;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.call-btn:hover {
    background: #1d7a5f; /* Darker shade of secondary color for better contrast */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
    position: relative;
    z-index: 2;
}

.sub {
    font-size: 1.4rem;
    margin: 1.5rem 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tags {
    font-size: 1.1rem;
    margin: 2rem 0 0;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* REVIEWS SECTION */
.reviews {
    background-color: var(--light-bg);
    padding: 60px 20px;
    text-align: center;
}

.reviews h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.reviews .call-btn {
    margin-top: 1rem;
    background: var(--secondary-color);
}

/* STEP SECTION */
.steps {
    padding: 80px 20px;
    background-color: var(--white);
    text-align: center;
}

.steps h2 {
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    padding: 2rem;
    border-radius: 10px;
    background: var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin: 0 0 1rem;
    line-height: 1;
}

.step p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.step a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.step a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* SERVICES */
.services {
    padding: 80px 20px;
    background-color: var(--light-bg);
    text-align: center;
}

.services h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.mid {
    margin: 0 auto 3rem;
    display: inline-block;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
}

.service h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
}

.service p {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* INSURANCE SECTION */
.insurance {
    padding: 80px 20px;
    background-color: var(--white);
    text-align: center;
}

.insurance h2 {
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    line-height: 1.3;
}

.insurance p {
    max-width: 800px;
    margin: 0 auto 1rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ABOUT SECTION */
.about {
    padding: 80px 20px;
    background-color: var(--light-bg);
    text-align: center;
}

.about h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* TEAM SECTION */
.team {
    padding: 80px 20px;
    background-color: var(--white);
    text-align: center;
}

.team h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.team-member {
    padding: 1.5rem;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
}

.team-member h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member .position {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* FOOTER */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.cookie-consent {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.cookie-consent p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cookie-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.cookie-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.cookie-link {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
    font-size: 0.85rem;
}

.cookie-link:hover {
    color: #fff !important;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .sub {
        font-size: 1.1rem;
    }
    
    .call-btn {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: auto;
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero h1 .badge {
        display: block;
        margin: 10px auto 0;
        width: fit-content;
        transform: none;
    }
    
    .steps h2,
    .services h2,
    .insurance h2,
    .about h2,
    .team h2 {
        font-size: 1.7rem !important;
    }
    
    .step h3 {
        font-size: 3rem !important;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .steps h2,
    .services h2,
    .insurance h2,
    .about h2,
    .team h2 {
        font-size: 1.5rem !important;
    }
    
    .step {
        padding: 1.5rem 1rem;
    }
    
    .step h3 {
        font-size: 2.5rem !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        margin: 5px 0;
    }
}
