:root {
    --green-dark: #2f4a34;
    --green: #4c7a52;
    --green-light: #eef3ec;
    --accent: #d9601f;
    --cream: #faf8f3;
    --brown: #5c4530;
    --text: #2c2c26;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Verdana, Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--green-dark);
}

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--green-dark);
    line-height: 1.25;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--cream);
    border-bottom: 3px solid var(--green-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    height: 56px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green-dark);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--green-dark);
    border-radius: 2px;
}

/* Hero */
.hero, .page-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.hero {
    padding: 120px 20px;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.page-hero {
    padding: 70px 20px;
}

.page-hero-inner h1 {
    color: #fff;
    margin-bottom: 8px;
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #b84e19;
}

.link-arrow {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
    text-decoration: none;
}

/* Sections */
.section {
    padding: 60px 0;
}

.alt-bg {
    background: var(--green-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.intro-badge img {
    max-width: 160px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 32px 0;
}

.services-grid-text {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.service-card img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.service-card h3,
.service-card p {
    padding: 0 18px;
}

.service-card h3 {
    margin-top: 16px;
    margin-bottom: 8px;
}

.service-card-text {
    padding: 24px 18px;
}

.service-card-text h3,
.service-card-text p {
    padding: 0;
}

.service-card-text h3 {
    margin-top: 0;
}

.service-card p {
    margin-bottom: 20px;
    font-size: .95rem;
}

/* Leistungen page */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.insurance-note {
    text-align: center;
    margin-top: 36px;
    font-weight: 600;
    color: var(--green-dark);
}

.leistung-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.leistung-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.leistung-card img.obj-top {
    object-position: center 25%;
}

.leistung-card h2,
.leistung-card p {
    padding: 0 18px;
}

.leistung-card h2 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.leistung-card p {
    margin-bottom: 20px;
    font-size: .95rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.gallery-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-grid-full {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,15,10,.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 34px;
    color: #fff;
    font-size: 2.4rem;
    text-decoration: none;
    line-height: 1;
}

/* CTA band */
.cta-band {
    background: var(--green-dark);
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
}

/* Kontakt */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9c4b8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-row-hidden {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e2f2e2;
    border: 1px solid var(--green);
    color: var(--green-dark);
}

.alert-error {
    background: #fbe7e2;
    border: 1px solid var(--accent);
    color: #8a2f0f;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

/* Legal pages */
.legal-page h2 {
    margin-top: 32px;
}

/* Footer */
.site-footer {
    background: var(--brown);
    color: #f1ece2;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.footer-col h3 {
    color: #f1ece2;
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #f1ece2;
}

.footer-bottom {
    text-align: center;
    padding: 16px;
    background: #4a3624;
    font-size: .85rem;
}

/* Responsive */
@media (max-width: 860px) {
    .intro-grid,
    .kontakt-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .leistungen-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .gallery-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
    }

    .main-nav.open {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,.08);
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}
