/* =========================================================
   Heinz Allround-Service – Styles
   Design orientiert an WISAG (klar, sachlich, grün)
   ========================================================= */

:root {
    --green: #76B82A;
    --green-dark: #5A8F1F;
    --green-darker: #3F6814;
    --orange: #E8800C;
    --text: #1a1a1a;
    --text-muted: #5a5a5a;
    --bg: #ffffff;
    --bg-alt: #f4f6f1;
    --bg-dark: #1f2a17;
    --border: #e3e6df;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --radius: 4px;
    --container: 1200px;
    --header-h: 80px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .8em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }

p { margin: 0 0 1em; }

.lead { font-size: 1.15rem; color: var(--text-muted); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 1rem;
}

.centered { text-align: center; }

.section-lead {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.accent { color: var(--green); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none !important;
    line-height: 1.2;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

.btn-white {
    background: #fff;
    color: var(--green-darker);
    border-color: #fff;
}
.btn-white:hover { background: var(--bg-alt); }

.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1.05rem;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    border-radius: var(--radius);
}

.logo-text strong { font-weight: 700; color: var(--green-dark); }

.logo-light { color: #fff; }
.logo-light .logo-text strong { color: var(--green); }

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

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
}
.main-nav a:hover { color: var(--green-dark); text-decoration: none; }
.main-nav a.btn:hover { color: #fff; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 0 auto;
    transition: .2s;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(31,42,23,0.78) 0%, rgba(118,184,42,0.55) 100%),
        linear-gradient(135deg, #3F6814 0%, #76B82A 50%, #5A8F1F 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
}

.placeholder-label {
    display: inline-block;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 2px;
    font-family: "Courier New", monospace;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: var(--container);
}

.hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.hero-content h1 { color: #fff; max-width: 800px; }
.hero-content .lead {
    color: rgba(255,255,255,0.92);
    max-width: 600px;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Intro ---------- */

.intro {
    padding: 80px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.intro-text p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Services Grid ---------- */

.services {
    padding: 80px 0;
    background: var(--bg-alt);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text) !important;
    text-decoration: none !important;
    transition: all .25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--green);
    margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { margin-bottom: 8px; }
.service-card p {
    color: var(--text-muted);
    font-size: .95rem;
    flex-grow: 1;
    margin-bottom: 16px;
}

.card-link {
    color: var(--green-dark);
    font-weight: 600;
    font-size: .9rem;
}

/* ---------- Service Detail ---------- */

.service-detail {
    padding: 90px 0;
    border-bottom: 1px solid var(--border);
}
.service-detail.alt { background: var(--bg-alt); }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.detail-grid.reverse .detail-image { order: 2; }

.detail-image {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, rgba(118,184,42,0.18) 0%, rgba(63,104,20,0.28) 100%),
        repeating-linear-gradient(45deg, #d8e4c4 0 12px, #cdd9b8 12px 24px);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
}
.detail-image .placeholder-label {
    background: rgba(31,42,23,0.85);
}

.detail-text h2 { margin-bottom: .4em; }

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}
.check-list li {
    position: relative;
    padding: 8px 0 8px 32px;
    border-bottom: 1px solid var(--border);
}
.check-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 10px;
    border-left: 3px solid var(--green);
    border-bottom: 3px solid var(--green);
    transform: rotate(-45deg);
}

.hint {
    background: #fff8e6;
    border-left: 3px solid var(--orange);
    padding: 12px 16px;
    font-size: .92rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

/* ---------- Benefits ---------- */

.benefits {
    padding: 90px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.benefit {
    text-align: left;
    padding: 24px;
    border-top: 3px solid var(--green);
    background: var(--bg-alt);
    border-radius: 0 0 var(--radius) var(--radius);
}

.benefit-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 12px;
}

.benefit h3 { margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- CTA Band ---------- */

.cta-band {
    background: var(--green);
    color: #fff;
    padding: 60px 0;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; opacity: .95; }

/* ---------- Contact ---------- */

.contact {
    padding: 90px 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}
.contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 4px;
}

.contact-form {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}
.contact-form label > span { display: block; margin-bottom: 6px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 400;
    background: #fff;
    transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(118,184,42,0.18);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: .85rem !important;
    color: var(--text-muted);
}
.checkbox input { width: auto; margin-top: 4px; }
.checkbox span { margin: 0 !important; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
    font-size: .92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer h4 {
    color: #fff;
    font-size: .85rem;
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 6px 0; }
.site-footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.site-footer a:hover { color: #fff; }

.site-footer .logo { margin-bottom: 16px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 20px 0;
    font-size: .82rem;
    opacity: .7;
}
.footer-bottom p { margin: 0; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal {
    padding: 60px 0 80px;
    max-width: 820px;
    margin: 0 auto;
}
.legal h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.4rem; }
.legal .back-link { display: inline-block; margin-bottom: 2rem; font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .intro-grid,
    .detail-grid,
    .detail-grid.reverse,
    .contact-grid,
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .detail-grid.reverse .detail-image { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .main-nav.open { max-height: 500px; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px 24px;
        align-items: stretch;
    }
    .main-nav li { border-bottom: 1px solid var(--border); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 12px 0; }
    .main-nav a.btn { margin: 12px 0; text-align: center; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 70px 24px; }
    .hero { min-height: 500px; }
    .contact-form { padding: 24px; }
}
