/* ------------------------------------------------------------------ *
 * Bernhard Hutzler – Sachverständiger Garten- und Landschaftsbau
 * Alle Schriften stammen vom Gerät des Besuchers, es werden keine
 * Dateien von fremden Servern geladen.
 * ------------------------------------------------------------------ */

:root {
    --gruen-900: #16291d;
    --gruen-800: #1f3d2b;
    --gruen-700: #2c5239;
    --gruen-600: #3f6b4a;
    --gruen-100: #e4ece5;

    --messing: #a97a3c;
    --messing-hell: #c89a5c;

    --papier: #faf8f4;
    --sand: #f1ece2;
    --weiss: #ffffff;

    --text: #1c2320;
    --text-leise: #5c6861;
    --linie: #e0dcd2;

    --fehler: #a4332a;
    --fehler-bg: #fbeceb;

    --serif: Georgia, "Iowan Old Style", "Times New Roman", times, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --breite: 1180px;
    --rand: clamp(1.25rem, 5vw, 3rem);
    --radius: 4px;
    --schatten: 0 1px 2px rgba(22, 41, 29, .06), 0 8px 24px rgba(22, 41, 29, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--weiss);
    color: var(--text);
    font-family: var(--sans);
    font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--gruen-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--messing); }

:focus-visible {
    outline: 3px solid var(--messing);
    outline-offset: 2px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: var(--rand);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--gruen-800);
    color: #fff;
    padding: .75rem 1.25rem;
    text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- *
 * Knöpfe
 * ---------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.6rem;
    background: var(--gruen-800);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--gruen-800);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { background: var(--gruen-700); border-color: var(--gruen-700); color: #fff; }

.button--ghost { background: transparent; color: var(--gruen-800); border-color: var(--linie); }
.button--ghost:hover { background: var(--gruen-100); border-color: var(--gruen-600); color: var(--gruen-800); }

.button--light { background: var(--messing-hell); border-color: var(--messing-hell); color: var(--gruen-900); }
.button--light:hover { background: #d8ab6c; border-color: #d8ab6c; color: var(--gruen-900); }

.button--small { padding: .5rem 1rem; font-size: .9375rem; }
.button--wide { width: 100%; padding: 1rem 1.6rem; }

@media (min-width: 560px) {
    .button--wide { width: auto; min-width: 16rem; }
}

/* ---------------------------------------------------------------- *
 * Kopfbereich und Navigation
 * ---------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--linie);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.75rem;
    flex-wrap: wrap;
}

.brand { text-decoration: none; color: inherit; display: grid; line-height: 1.25; padding: .5rem 0; flex: 1 1 12rem; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--gruen-800); }
.brand__role { font-size: .8125rem; color: var(--text-leise); letter-spacing: .02em; }

.nav-toggle { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .9rem;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--gruen-800);
    cursor: pointer;
    user-select: none;
    flex: none;
}

.nav-button__bars, .nav-button__bars::before, .nav-button__bars::after {
    content: "";
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.nav-button__bars { position: relative; }
.nav-button__bars::before { position: absolute; top: -6px; }
.nav-button__bars::after { position: absolute; top: 6px; }

.nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--messing); outline-offset: 2px; }

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.site-nav__link {
    display: block;
    padding: .55rem .8rem;
    color: var(--text);
    text-decoration: none;
    font-size: .9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: var(--gruen-800); background: var(--gruen-100); }
.site-nav__link.is-current { color: var(--gruen-800); font-weight: 600; border-bottom-color: var(--messing); border-radius: 0; }

.site-nav__phone { margin-left: .5rem; }

@media (max-width: 1000px) {
    .site-nav {
        flex-basis: 100%;
        display: none;
        padding-bottom: 1rem;
    }
    .nav-toggle:checked ~ .site-nav { display: block; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__link {
        padding: .85rem .25rem;
        border-bottom: 1px solid var(--linie);
        border-radius: 0;
    }
    .site-nav__link.is-current { border-bottom-color: var(--messing); border-bottom-width: 2px; }
    .site-nav__phone { margin: 1rem 0 0; }
    .site-nav__phone .button { width: 100%; }
}

@media (min-width: 1001px) {
    .nav-button { display: none; }
}

/* ---------------------------------------------------------------- *
 * Begrüßung
 * ---------------------------------------------------------------- */

.hero {
    background: linear-gradient(170deg, var(--papier) 0%, var(--sand) 100%);
    border-bottom: 1px solid var(--linie);
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero__inner {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 880px) {
    .hero__inner { grid-template-columns: 1.15fr .85fr; }
}

.eyebrow {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--messing);
    margin-bottom: .9rem;
    max-width: 44ch;
}

.hero__title {
    font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.5rem);
    color: var(--gruen-900);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

.hero__lead {
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    color: var(--text-leise);
    max-width: 54ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .hero__actions .button { flex: 1 1 100%; }
}

.hero__figure {
    margin: 0;
    position: relative;
    width: 100%;
    max-width: 26rem;
    justify-self: center;
}

@media (min-width: 880px) {
    .hero__figure { justify-self: end; }
}

.hero__figure img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    background: var(--sand);
}

.hero__figure figcaption {
    display: grid;
    gap: .15rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--messing);
    font-size: .9375rem;
    color: var(--text-leise);
}
.hero__figure figcaption strong { color: var(--gruen-800); font-size: 1rem; }

/* ---------------------------------------------------------------- *
 * Eckdaten
 * ---------------------------------------------------------------- */

.facts { background: var(--gruen-800); color: #fff; }

.facts__grid {
    display: grid;
    gap: 0;
    padding-block: 0;
}

@media (min-width: 760px) {
    .facts__grid { grid-template-columns: repeat(3, 1fr); }
}

.fact {
    display: grid;
    gap: .35rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.fact:last-child { border-bottom: none; }

@media (min-width: 760px) {
    .fact { padding: 2rem 2rem 2rem 0; border-bottom: none; border-right: 1px solid rgba(255, 255, 255, .14); }
    .fact:last-child { border-right: none; padding-right: 0; }
    .fact + .fact { padding-left: 2rem; }
}

.fact__value { font-family: var(--serif); font-size: 1.3rem; color: var(--messing-hell); }
.fact__label { font-size: .9375rem; color: rgba(255, 255, 255, .8); line-height: 1.5; }

/* ---------------------------------------------------------------- *
 * Allgemeine Abschnitte
 * ---------------------------------------------------------------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--muted { background: var(--papier); border-block: 1px solid var(--linie); }

.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.section__title {
    font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.4rem);
    color: var(--gruen-900);
    margin-bottom: .85rem;
    text-wrap: balance;
}

.section__lead { color: var(--text-leise); font-size: 1.0625rem; }

.page-head {
    background: linear-gradient(170deg, var(--papier) 0%, var(--sand) 100%);
    border-bottom: 1px solid var(--linie);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-head__title {
    font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
    color: var(--gruen-900);
    max-width: 24ch;
    text-wrap: balance;
}

.page-head__lead {
    margin-top: 1.25rem;
    max-width: 62ch;
    font-size: 1.0625rem;
    color: var(--text-leise);
}

.page-head--narrow .page-head__title { max-width: 30ch; }

/* ---------------------------------------------------------------- *
 * Leistungskarten
 * ---------------------------------------------------------------- */

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-top: 3px solid var(--messing);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--schatten); transform: translateY(-2px); }

.card__title { font-size: 1.1875rem; color: var(--gruen-800); margin-bottom: .6rem; }
.card__text { color: var(--text-leise); font-size: .96875rem; margin-bottom: .6em; }

/* ---------------------------------------------------------------- *
 * Galerie
 * ---------------------------------------------------------------- */

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery figure { margin: 0; }

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--sand);
    box-shadow: var(--schatten);
}

.gallery figcaption {
    display: grid;
    gap: .2rem;
    margin-top: .9rem;
    font-size: .9375rem;
    color: var(--text-leise);
}
.gallery figcaption strong { color: var(--gruen-800); font-size: 1rem; font-family: var(--serif); font-weight: 600; }

/* ---------------------------------------------------------------- *
 * Kompetenzliste
 * ---------------------------------------------------------------- */

.competence-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    counter-reset: none;
}

@media (min-width: 800px) {
    .competence-list { grid-template-columns: repeat(2, 1fr); column-gap: 3.5rem; }
}

.competence {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding-block: 1.6rem;
    border-bottom: 1px solid var(--linie);
}

.competence__number {
    font-family: var(--serif);
    font-size: 1.0625rem;
    color: var(--messing);
    padding-top: .15rem;
    font-variant-numeric: tabular-nums;
}

.competence__title { font-size: 1.125rem; color: var(--gruen-800); margin-bottom: .3rem; }
.competence__text { color: var(--text-leise); font-size: .96875rem; margin-bottom: .6em; }

/* ---------------------------------------------------------------- *
 * Niederlassungen
 * ---------------------------------------------------------------- */

.locations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 760px) { .locations { grid-template-columns: repeat(3, 1fr); } }

.location {
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.location__badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--messing);
    margin-bottom: .75rem;
}

.location__city { font-size: 1.375rem; color: var(--gruen-800); margin-bottom: .5rem; }
.location__address { font-style: normal; color: var(--text-leise); }

.prose-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 820px) { .prose-grid { grid-template-columns: repeat(2, 1fr); } }

.prose-block__title { font-size: 1.375rem; color: var(--gruen-800); margin-bottom: .85rem; }
.prose-block p { color: var(--text-leise); }

/* ---------------------------------------------------------------- *
 * Handlungsaufruf
 * ---------------------------------------------------------------- */

.cta { background: var(--gruen-800); color: #fff; padding-block: clamp(2.75rem, 6vw, 4.5rem); }

.cta__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 880px) { .cta__inner { grid-template-columns: 1.3fr .7fr; } }

.cta__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); margin-bottom: .75rem; color: #fff; text-wrap: balance; }
.cta__text { color: rgba(255, 255, 255, .82); max-width: 54ch; }

.cta__actions { display: grid; gap: .9rem; justify-items: start; }
@media (min-width: 880px) { .cta__actions { justify-items: end; text-align: right; } }

.cta__phone { color: rgba(255, 255, 255, .82); font-size: .9375rem; text-decoration: none; }
.cta__phone strong { color: #fff; white-space: nowrap; }
.cta__phone:hover { color: #fff; }

/* ---------------------------------------------------------------- *
 * Kontakt
 * ---------------------------------------------------------------- */

.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact { grid-template-columns: .85fr 1.15fr; } }

.contact__aside {
    background: var(--papier);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 1.75rem;
    align-self: start;
}

.contact__aside-title {
    font-size: 1rem;
    color: var(--gruen-800);
    letter-spacing: .02em;
    margin-bottom: .9rem;
}
.contact__aside-title + * + .contact__aside-title,
.contact__channels + .contact__aside-title { margin-top: 2rem; }

.contact__channels, .contact__locations { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.contact__label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-leise);
}
.contact__value { font-family: var(--serif); font-size: 1.125rem; color: var(--gruen-800); text-decoration: none; }
.contact__value:hover { color: var(--messing); }

.contact__locations strong { display: block; color: var(--gruen-800); }
.contact__locations address { font-style: normal; color: var(--text-leise); font-size: .9375rem; }

.contact__title { font-size: 1.5rem; color: var(--gruen-900); margin-bottom: .6rem; }
.contact__hint { color: var(--text-leise); font-size: .9375rem; margin-bottom: 2rem; }

/* ---------------------------------------------------------------- *
 * Formular
 * ---------------------------------------------------------------- */

.form { display: grid; gap: 1.5rem; }

.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 620px) { .form__row { grid-template-columns: repeat(2, 1fr); } }

/* Falle für Maschinen – für Menschen unsichtbar, aber nicht display:none,
   damit einfache Skripte sie nicht erkennen. */
.form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field { display: grid; gap: .45rem; }

.field__label { font-size: .9375rem; font-weight: 600; color: var(--gruen-800); }
.field__req { color: var(--messing); }

.field__input {
    width: 100%;
    padding: .8rem .9rem;
    font: inherit;
    color: var(--text);
    background: var(--weiss);
    border: 1px solid #cfc9bd;
    border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input:hover { border-color: #b4ad9e; }
.field__input:focus {
    outline: none;
    border-color: var(--gruen-600);
    box-shadow: 0 0 0 3px rgba(63, 107, 74, .16);
}

.field__input--area { resize: vertical; min-height: 10rem; line-height: 1.6; }

.field__input::placeholder { color: #9aa49d; }

.field--error .field__input { border-color: var(--fehler); }
.field--error .field__input:focus { box-shadow: 0 0 0 3px rgba(164, 51, 42, .14); }

.field__error { color: var(--fehler); font-size: .875rem; margin: 0; }

.field--check { gap: .5rem; }

.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .9375rem; color: var(--text-leise); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .22rem; accent-color: var(--gruen-700); cursor: pointer; }

/* ---------------------------------------------------------------- *
 * Hinweise
 * ---------------------------------------------------------------- */

.notice { padding: 1.5rem 1.75rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1.5rem; }
.notice__title { font-size: 1.25rem; margin-bottom: .5rem; }

.notice--success { background: var(--gruen-100); border-color: #bcd3c0; color: var(--gruen-900); }
.notice--success .notice__title { color: var(--gruen-800); }

.notice--error { background: var(--fehler-bg); border-color: #e3b7b3; color: #7d2721; }

/* ---------------------------------------------------------------- *
 * Rechtstexte
 * ---------------------------------------------------------------- */

.legal { max-width: 70ch; }
.legal__title { font-size: 1.25rem; color: var(--gruen-800); margin: 2.5rem 0 .85rem; }
.legal__title:first-child { margin-top: 0; }
.legal p { color: var(--text-leise); }

.legal__data { display: grid; gap: .1rem; margin: 0; }
@media (min-width: 620px) { .legal__data { grid-template-columns: 12rem 1fr; gap: .6rem 1.5rem; } }

.legal__data dt { font-weight: 600; color: var(--gruen-800); font-size: .9375rem; }
.legal__data dd { margin: 0 0 .75rem; color: var(--text-leise); }
@media (min-width: 620px) { .legal__data dd { margin-bottom: 0; } }

/* ---------------------------------------------------------------- *
 * Fußbereich
 * ---------------------------------------------------------------- */

.site-footer { background: var(--gruen-900); color: rgba(255, 255, 255, .75); padding-top: clamp(2.75rem, 6vw, 4rem); font-size: .9375rem; }

.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: var(--messing-hell); text-decoration: underline; }

.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }

.site-footer__name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .15rem; }
.site-footer__role { color: var(--messing-hell); margin-bottom: .75rem; }
.site-footer__note { color: rgba(255, 255, 255, .6); font-size: .875rem; max-width: 38ch; }

.site-footer__head {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 1rem;
}

.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.site-footer__city { display: block; color: #fff; font-weight: 600; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .875rem;
    color: rgba(255, 255, 255, .55);
}
.site-footer__bottom p { margin: 0; }

.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }

/* ---------------------------------------------------------------- *
 * Druck
 * ---------------------------------------------------------------- */

@media print {
    .site-header, .site-footer__grid, .cta, .nav-button, .skip-link, .form { display: none; }
    body { font-size: 11pt; color: #000; }
    .hero, .page-head, .section--muted { background: none; }
    a { color: #000; text-decoration: none; }
}
