/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff; /* Example blue */
    --secondary-color: #6c757d; /* Example gray */
    --accent-color: #17a2b8; /* Example teal */
    --gradient-start: #007bff;
    --gradient-end: #0d6efd; /* Slightly different blue for gradient */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --background-color: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Modern sans-serif stack */
    --container-width: 1140px;
    --gutter: 1rem; /* 16px */
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 100%; /* 16px */
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust if fixed header is used */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    /*overflow-x: hidden; !* Prevent horizontal scroll *!*/
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Responsive heading */
h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* --- Header --- */
/*.site-header {*/
/*    background-color: var(--background-color);*/
/*    padding: 1rem 0;*/
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);*/
/*    position: sticky; !* Optional: Make header sticky *!*/
/*    top: 0;*/
/*    z-index: 1000;*/
/*}*/

/*.site-header .container {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*}*/

/*.logo {*/
/*    font-size: 1.5rem;*/
/*    font-weight: 700;*/
/*    color: var(--dark-color);*/
/*}*/

/*.logo img {*/
/*    height: 7rem;*/
/*}*/


.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: background 0.3s ease;
}

.site-header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo img {
    height: 7rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: #111;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color, #f59e0b); /* fallback = amber */
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color, #f59e0b);
}

.main-nav a:hover::after {
    width: 100%;
}


/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background-image: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* Subtle shadow */
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

/* --- Section Styling --- */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

/* Optional: Underline effect for titles */
.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background-image: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 85vh; /* Reduced from 100vh for better content visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax effect */
    padding: 6rem 0; /* More padding */
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- Services Section --- */
.services-section {
    background-color: var(--light-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem; /* Placeholder size */
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* Placeholder style - replace with actual icons */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    line-height: 1;
}

.service-icon img {
    max-height: 100px;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* --- Why Choose Us Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    background-color: rgba(23, 162, 184, 0.1); /* Light accent background */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px; /* Center icon */
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    position: relative; /* For potential quote marks */
}

.testimonial-card::before { /* Optional: decorative quote */
    /*content: '“';*/
    /*position: absolute;*/
    /*top: 10px;*/
    /*left: 15px;*/
    /*font-size: 3rem;*/
    /*color: var(--primary-color);*/
    /*opacity: 0.2; */
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 300;
}

.testimonial-card footer {
    font-weight: 600;
    color: var(--secondary-color);
    font-style: normal;
    text-align: right;
}

/* --- Contact Section --- */
.contact-section {
    background-color: #f0f4f8; /* Slightly different light bg */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 3rem;
    align-items: start; /* Align items to the top */
}

@media (min-width: 992px) {
    /* Desktop layout */
    .contact-wrapper {
        grid-template-columns: 2fr 1fr; /* Form takes more space */
    }
}

.form-group input.error,
.form-group input.error,
.form-group input.error,
.form-group textarea.error {
    border-color: red;
    outline: none;
}

input.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
}

.input-error {
    font-size: 0.875rem;
    color: red;
    margin-top: 0.3rem;
    display: none;
}

input.error,
textarea.error {
    border-color: red;
}


#form-status {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

#form-status.error {
    color: red;
}

.contact-form form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group input,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem; /* Larger submit button */
}

.mailto-fallback {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-align: center;
}

.contact-details {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.contact-details strong {
    color: var(--dark-color);
}

.contact-details a {
    text-decoration: underline;
}

.contact-details a:hover {
    color: var(--accent-color);
}


/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
    text-align: center;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-nav a {
    color: var(--light-color);
    margin: 0 0.75rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-nav {
        margin-left: auto; /* Push nav to the right */
    }
}

/* --- Animations & Effects (Subtle) --- */

/* Fade-in for Hero */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Impressum */
.legal-content {
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}


/* --- Responsiveness --- */
@media (max-width: 1290px) {
    .legal-content {
        max-width: 80%;
        margin: 1rem auto;
        padding: 2rem;
    }
}

@media (max-width: 1090px) {
    html {
        font-size: 95%;
    }

    /* Adjust container width for tablets */
    :root {
        --container-width: 95%;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .site-header .logo img {
        height: 6rem;
    }

    /* Disable parallax on mobile for performance */
}

@media (max-width: 867px) {
    html {
        font-size: 90%;
    }

    /* Slightly smaller base font on mobile */
    .section-title {
        margin-bottom: 2rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .service-grid, .features-grid, .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Stack elements */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form form, .contact-details {
        padding: 1.5rem;
    }

    .site-header .logo img {
        height: 5rem;
    }

    .site-header .container {
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .main-nav ul {
        /*flex-direction: column;*/
        align-items: center;
        gap: 1rem;
    }

    .logo {
        text-align: center;
    }
}

@media (max-width: 590px) {
    body {
        padding: 0px;
    }

    html {
        font-size: 80%;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-grid, .features-grid, .testimonial-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /*.site-header .logo img {*/
    /*    height: 4rem;*/
    /*}*/
    .legal-content {
        max-width: 90%;
        margin: 1rem auto;
        padding: 2rem;
    }
}