/* --- Root & Reset --- */
:root {
    --primary-green: #1F8F3A;
    --primary-green-light: #39AA55;
    --bg-light-grey: rgba(102, 96, 96, 0.1);
    --text-dark: #000000;
    --text-muted: rgba(0, 0, 0, 0.7);
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* behavior */
    scroll-behavior: smooth;
    /* typography */
    font-family: "Lato", sans-serif;
}

a {
    /* design */
    text-decoration: none;
    transition: 0.3s ease;
    color: #ffffff;
}

/* --- Global Layout Helpers --- */
.section-title h1 {
    /* size */
    margin-bottom: 2rem;
    /* typography */
    font-size: clamp(32px, 5vw, 50px);
}

/* --- Buttons (Global) --- */
.btn-primary, .btn-secondary, .btn-nav {
    /* size */
    padding: 1rem 2.5rem;
    border-radius: 50px;
    display: inline-block;
    cursor: pointer;
    /* typography */
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.btn-nav {
    /* size */
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    /* design */
    background-color: var(--primary-green);
    border: none;
}

.btn-nav a, .btn-primary {
    /* typography */
    color: var(--white);
}

.btn-primary {
    /* design */
    background-color: var(--primary-green);
    border: none;
}

.btn-secondary {
    /* design */
    background-color: transparent;
    border: 1px solid var(--primary-green);
    /* typography */
    color: var(--primary-green);
}

/* --- Navbar --- */
.navbar {
    /* size */
    margin: 1.5rem 10%;
    /* design */
    list-style: none;
}

.nav-container {
    /* size */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    /* design */
    list-style: none;
}

.navbar .navbar-logo img {
    /* size */
    width: clamp(100px, 12vw, 130px);
}

.navbar-links-wrapper {
    /* size */
    display: flex;
    align-items: center;
    padding: 0.5rem;
    /* design */
    background-color: var(--bg-light-grey);
    border-radius: 20px;
    list-style: none;
}

.navbar-links-wrapper li {
    /* size */
    padding: 0 1rem;
}

.navbar-links-wrapper a {
    /* typography */
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted);
}

.btn-nav a {
    color: #ffffff;
}

.navbar-links-wrapper a:hover {
    /* typography */
    color: var(--text-dark);
}

/* --- Header --- */
.header {
    /* size */
    margin: clamp(2rem, 8vh, 4rem) 10%;
    padding: 0 1rem;
}

.header-info h1 {
    /* typography */
    font-size: clamp(38px, 9vw, 115px);
    font-weight: 600;
    line-height: 1.1;
}

.header-info p {
    /* size */
    max-width: 710px;
    margin: 2rem 0;
    /* typography */
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 300;
}

.header-buttons {
    /* size */
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* --- Leistungen Section --- */
.leistung {
    /* size */
    margin: 8rem 10%;
    padding: 0 1rem;
}

.leistungen-grid {
    /* size */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    /* size */
    padding: 2rem;
    border-radius: 20px;
    /* design */
    background-color: var(--bg-light-grey);
}

.card i {
    /* size */
    margin-bottom: 1rem;
    /* typography */
    font-size: 40px;
    /* design */
    color: rgba(0, 0, 0, 0.3);
}

.card-title {
    /* size */
    margin-bottom: 0.5rem;
    /* typography */
    font-size: 24px;
    font-weight: 600;
}

/* --- Ueber Uns --- */
.ueber-uns {
    /* size */
    margin: 8rem 10%;
}

.ueber-uns-card {
    /* size */
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 20px;
    /* typography */
    color: var(--white);
    /* design */
    background-color: var(--primary-green);
}

.ueber-uns-card h2 {
    /* typography */
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
}

.ueber-uns-card p {
    /* size */
    margin: 1.5rem 0;
    /* typography */
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
}

.ebay-link img {
    /* size */
    max-width: 100%;
    width: 300px;
    padding: 1rem 2rem;
    margin-top: 1rem;
    /* design */
    background-color: var(--primary-green-light);
    border-radius: 15px;
}

/* --- FAQ Section --- */
.faq {
    /* size */
    margin: 8rem 10%;
}

.faq-item {
    /* design */
    border-bottom: 1px solid #eee;
}

.faq-question {
    /* size */
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    /* typography */
    font-size: 20px;
    font-weight: 300;
}

.faq-answer {
    /* size */
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    /* typography */
    font-size: 19px;
    font-weight: 300;
    /* design */
    transition: all 0.4s ease;
    color: #555;
}

.faq-item.active .faq-answer {
    /* size */
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.faq-item i {
    /* design */
    transition: transform 0.3s ease;
    color: var(--primary-green);
}

.faq-item.active i {
    /* design */
    transform: rotate(180deg);
}

/* --- Footer & Kontakt --- */
.footer {
    /* size */
    padding: 60px 10%;
    border-radius: clamp(30px, 5vw, 50px) clamp(30px, 5vw, 50px) 0 0;
    /* design */
    background-color: var(--primary-green);
    color: var(--white);
}

.contact-form-title {
    /* size */
    margin-bottom: 30px;
    /* typography */
    font-size: clamp(28px, 4vw, 38px);
    font-weight: bold;
}

#contactForm {
    /* size */
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem 50px;
}

.contact-form-group > * {
    /* size */
    margin: 1rem 0;
}

.contact-form-input,
.contact-form-textarea {
    /* size */
    width: 100%;
    padding: 14px 25px;
    box-sizing: border-box;
    outline: none;
    /* typography */
    font-size: 16px;
    color: white;
    font-family: 'Lato', sans-serif;
    /* design */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.contact-form-input::placeholder, 
.contact-form-textarea::placeholder {
    /* typography */
    color: var(--white);
}

.contact-form-input {
    /* size */
    border-radius: 50px;
}

.contact-form-textarea {
    /* size */
    border-radius: 30px;
    min-height: 200px;
    resize: none;
}

.contact-divider {
    /* size */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.footer-row {
    /* size */
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    margin-top: 10px;
}

.contact-form-checkbox-wrapper {
    /* size */
    display: flex;
    align-items: center;
    gap: 12px;
    /* typography */
    font-size: 14px;
}

.contact-form-button {
    /* size */
    padding: 12px 35px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    /* typography */
    font-size: 16px;
    color: white;
    /* design */
    background: transparent;
    border: 1px solid white;
    transition: 0.3s ease;
}

.contact-form-button:hover {
    /* design */
    background: rgba(255, 255, 255, 0.2);
}

.footer input[type="checkbox"] {
    /* size */
    height: 12px;
    width: 12px;
    border-radius: 50px;
    cursor: pointer;
    /* design */
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid white;
}

.footer input[type="checkbox"]:checked {
    /* design */
    background-color: white;
}

/* --- Footer Infos & Stats --- */
.footer .footer-info-text {
    /* size */
    margin: clamp(2rem, 5vh, 5rem) 0;
    /* typography */
    font-size: 18px;
}

.footer .footer-infos {
    /* size */
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer .footer-infos .ueberschrift {
    /* size */
    margin-bottom: 1rem;
    /* typography */
    font-size: 20px;
    color: rgba(255, 255, 255, 0.45);
}

.footer .footer-stats span {
    /* typography */
    font-size: clamp(35px, 5vw, 50px);
    font-weight: 600;
}

.footer .footer-stats .bewertungen {
    /* typography */
    font-size: 14px;
    text-align: right;
}

hr {
    /* size */
    width: 80%;
    margin: 2rem auto;
    /* design */
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Legal Sections --- */
.impressum-form, .datenschutz-form {
    /* size */
    margin: 8rem 10%;
    /* typography */
    font-weight: 300;
}

.impressum-form { line-height: 30px; }
.datenschutz-form { line-height: 32px; }

/* --- Media Queries --- */

/* Laptops & Tablets */
@media (max-width: 1024px) {
    .navbar, .header, .leistung, .ueber-uns, .faq, .footer, .impressum-form, .datenschutz-form {
        margin-left: 5%;
        margin-right: 5%;
    }
    #contactForm {
        grid-template-columns: 1fr;
    }
}

/* Smartphones */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .navbar-links-wrapper {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }

    .header-buttons {
        flex-direction: column;
    }

    .header-buttons a {
        width: 100%;
        text-align: center;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-form-button {
        width: 100%;
    }

    .footer .footer-stats .bewertungen {
        text-align: left;
    }
}