/* Farben aus dem Logo */
:root {
    --green: #627056;
    --blue: #38627e;
    --brown: #80645a;

    --text: #2a2e28;
    --muted: #5f655b;
    --bg: #fbfaf7;
    --surface: #ffffff;
    --line: #e3e1da;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

    --gutter: 1rem;
    --width: 62rem;
    --measure: 46rem;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--blue);
    text-underline-offset: 0.18em;
}

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

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

.container {
    width: 100%;
    max-width: calc(var(--width) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    z-index: 10;
}

.skip-link:focus {
    left: 0.5rem;
}

/* Header */
.site-header {
    padding: 1.25rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
}

.brand-logo {
    flex: none;
    width: 64px;
    height: 64px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
}

.brand-tagline {
    color: var(--green);
    font-size: 0.95rem;
}

/* Inhalt */
.site-main {
    flex: 1;
    padding: 3rem 0 4rem;
}

h1,
h2,
h3 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 1.9rem;
    margin: 0 0 1.5rem;
}

h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 0.75rem;
    color: var(--green);
}

h3 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.5rem;
}

p,
ul {
    margin: 0 0 1rem;
}

/* angenehme Zeilenlänge für Fließtext trotz breiterem Layout */
p,
.legal,
.motto {
    max-width: var(--measure);
}

/* Startseite */
.hero h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    line-height: 1.2;
}

.hero-claim {
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-style: italic;
}

.hero-claim span + span {
    margin-left: 0.35em;
}

.hero-lead {
    font-size: 1.2rem;
}

.c-green { color: var(--green); }
.c-brown { color: var(--brown); }
.c-blue  { color: var(--blue); }

.section {
    margin-top: 4rem;
}

.section > h2 {
    margin-top: 0;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.service {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
}

/* schräger Strich wie im Logo, Farbe im Wechsel grün/braun/blau */
.service::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 1.4rem;
    width: 4px;
    height: 1.1rem;
    border-radius: 2px;
    background: var(--green);
    transform: skewX(-21deg);
}

.service:nth-child(3n + 2)::before { background: var(--brown); }
.service:nth-child(3n + 3)::before { background: var(--blue); }

.service h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.service p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.motto {
    margin: 0 0 2rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--brown);
}

.motto p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    line-height: 1.3;
}

.motto footer {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact {
    margin-top: 4rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
}

.contact h2 {
    margin-top: 0;
    color: var(--blue);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.25rem 2rem;
    margin: 0;
}

.contact-grid dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.contact-grid dd {
    margin: 0.2rem 0 0;
}

.contact-grid address {
    font-style: normal;
}

.contact-grid a {
    overflow-wrap: anywhere;
}

/* Rechtstexte */
.legal {
    overflow-wrap: break-word;
}

.legal .stand {
    margin-top: 2.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Trenner im Stil des Logos */
.divider {
    display: block;
    overflow: hidden;
}

/* Footer */
.site-footer {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.copyright {
    margin: 0;
}

@media (max-width: 36rem) {
    .site-header {
        padding: 1rem 0;
    }

    .brand {
        gap: 0.75rem;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

    .site-main {
        padding: 2rem 0 3rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .contact {
        padding: 1.25rem;
    }
}

@media print {
    .site-header {
        border: 0;
    }

    .skip-link,
    .footer-nav {
        display: none;
    }
}
