:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --padding-standard: 20px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--padding-standard);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
}

nav {
    margin-left: auto;
    margin-right: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

.phone-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: black;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 18vh var(--padding-standard) 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
}

/* Welcome Section */
.welcome-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 var(--padding-standard);
    font-size: 1.1rem;
    color: var(--text-color);
}

.welcome-title {
    font-size: 2.2rem;
    /* approx 35px */
    font-weight: 800;
    /* heavy */
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.welcome-subtitle {
    font-size: 1.75rem;
    /* approx 28px */
    font-weight: 300;
    /* light */
    font-style: italic;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.welcome-content p {
    margin-bottom: 1.5rem;
}

.intro-question {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    max-width: 800px;
    /* Matching welcome section for consistency initially, or maybe wider? The original WIX seems to be a single column flow mostly but the image is below title. Let's try to match the WIX layout which is somewhat centered. */
    margin: 4rem auto;
    padding: 0 var(--padding-standard);
    text-align: center;
    /* Center everything by default like WIX example seems to imply or at least the titles */
}

.about-divider {
    height: 1px;
    background-color: var(--primary-color);
    /* Or a lighter grey/accent */
    width: 60%;
    margin: 0 auto 3rem;
    opacity: 0.3;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.about-text-wrapper {
    font-size: 1.1rem;
    /* 18px */
    color: var(--text-color);
    text-align: left;
    /* Text itself looks left aligned in paragraphs mostly, but let's check. Yes, usually. */
    line-height: 1.6;
}

.about-text-wrapper p {
    margin-bottom: 1rem;
}

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

.spacer {
    height: 15px;
    /* Simulating the wixGuard or empty paragraphs */
}

.about-image {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 353px;
    /* As requested/seen in WIX snippet sizes="353px" */
    height: 353px;
    object-fit: cover;
    border-radius: 50%;
    /* It looks round in some designs or square? The WIX snippet has al_c which might imply crop. Looking at the class names 'wixui-image' it usually respects container. Given 'Bild Dieter 2.jpg' implies a portrait, let's keep it square or circle? The WIX code doesn't explicitly show border-radius in the snippet provided inline styles, but 'object-fit:cover' is there. Let's assume square or slightly rounded. I will make it square to be safe, or user can correct. Actually, standard for profiles is often circle. Let's stick to square as per snippet "width=353 height=353" without explicit raidus. */
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    /* If we wanted a side-by-side layout we could do flex here, but the WIX snippet looks like a vertical stack (Text then Image or Image inside text flow). The provided structure in user request has text block then image block. So vertical stack constitutes accordance. */
}

.welcome-section .emphasis {
    font-weight: 600;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits-section {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 2rem var(--padding-standard);
    background-color: var(--light-bg);
    /* Use light bg to differentiate from white about section */
}

.benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-header h2 {
    font-size: 2rem;
    /* 28px in WIX */
    color: var(--primary-color);
    font-weight: bold;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for definition */
    text-align: center;
}

.benefit-item h3 {
    font-size: 1.3rem;
    /* 21px in WIX */
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
    min-height: 2.5em;
    /* Attempt to align titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item p {
    font-size: 1.1rem;
    /* 18px in WIX */
    color: var(--text-color);
}

.welcome-section h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.welcome-list {
    list-style: none;
    /* Custom bullets or standard? Let's use standard with padding for now */
    padding-left: 0;
    margin-bottom: 2rem;
}

.welcome-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.welcome-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    /* Adjust if needed */
}

.signature {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 3rem var(--padding-standard);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.google-rating {
    display: inline-block;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    font-size: 2rem;
    color: #ffa500;
    letter-spacing: 2px;
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.rating-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.google-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.google-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #ffa500;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #888;
}


/* Services Section */
.services {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 var(--padding-standard);
    text-align: center;
}

.services h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.services-note {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f0f8ff;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e8f4ff;
}

.services-note p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.services-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s, transform 0.2s;
}

.services-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}


/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem var(--padding-standard);
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Page Specific: Ablauf & Preise */
.page-content {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 var(--padding-standard);
}

.page-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}


.steps-container {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #d35400);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}

.step-icon {
    font-size: 3rem;
    margin: 1.5rem 0 1rem;
}

.step-icon svg {
    width: 64px;
    height: 64px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}


.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.step-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
}

.step-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

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


/* Legacy step style - keeping for backwards compatibility but not used */
.step {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.price-table th,
.price-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.price-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.price-table tr:hover {
    background-color: var(--light-bg);
}

.price-notes {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f0f8ff;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    text-align: left;
}

.price-notes p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.6;
}

.price-notes p:last-child {
    margin-bottom: 0;
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem var(--padding-standard);
    margin-top: auto;
}

.footer-copyright {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-info h4 {
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: #bdc3c7;
    text-decoration: none;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        margin-left: 0;
        margin-right: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 4rem var(--padding-standard);
    background-color: var(--white);
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-header {
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 5px;
    /* Add veritcal padding for shadow */
    width: 100%;
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 600px;
    /* Wider cards */
    height: 400px;
    /* Fixed height to limit portrait images */
    scroll-snap-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--white);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    /* alignment */
    align-items: center;
    /* center vertically */
    justify-content: center;
    /* center horizontally */
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #f4f4f4;
}

/* Caption removed */

.gallery-btn {
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    flex-shrink: 0;
}

.gallery-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-btn {
        display: none;
        /* Hide buttons on mobile, swipe is natural */
    }

    .gallery-item {
        width: 85%;
        /* Larger items on mobile */
    }

    .gallery-item {
        width: 85%;
        /* Larger items on mobile */
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    padding-top: 50px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}