* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 17px/1.65 system-ui, sans-serif;
    color: #24352a;
    background: #fafbf7
}

a {
    color: inherit
}

header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 3;
    border-bottom: 1px solid #e0e7da
}

.top {
    background: #244a30;
    color: white;
    text-align: center;
    padding: 7px;
    font-size: 13px
}

.nav {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    gap: 20px
}

.logo {
    font-size: 30px;
    font-weight: 850;
    text-decoration: none;
    color: #4b8039;
    letter-spacing: -1.5px
}

.logo span {
    color: #76a11f
}

nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap
}

nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px
}

nav a:hover {
    color: #4b8039
}

.hero {
    background: linear-gradient(100deg, #173c29ed, #315b36aa), url('assets/hintergrund.jpg') center/cover, #315b36;
    color: white;
    padding: 100px 24px
}

.wrap {
    max-width: 1120px;
    margin: auto
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    max-width: 800px;
    margin: 18px 0
}

.hero p {
    max-width: 580px;
    font-size: 21px
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 750
}

.btn,
button {
    display: inline-block;
    background: #4b8039;
    color: white;
    border: 0;
    border-radius: 6px;
    padding: 13px 22px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

.hero .btn {
    background: #d7e8ae;
    color: #173c29
}

.section {
    padding: 65px 24px
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin: 10px 0 20px
}

h3 {
    line-height: 1.3
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 20px
}

.tile {
    background: white;
    border: 1px solid #dce5d7;
    border-radius: 12px;
    padding: 25px
}

.tile .symbol {
    font-size: 34px;
    color: #4b8039
}

.soft {
    background: #eaf0e3
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px
}

.photo {
    aspect-ratio: 4/3;
    background: #dce8d4;
    display: grid;
    place-items: center;
    border-radius: 10px;
    overflow: hidden;
    color: #35533b
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 35px
}

form {
    display: grid;
    gap: 12px
}

label {
    display: grid;
    gap: 5px;
    font-weight: 600
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #a9b9a4;
    border-radius: 5px;
    background: white;
    font: inherit
}

textarea {
    min-height: 130px
}

small {
    font-size: 13px
}

footer {
    background: #173c29;
    color: white;
    padding: 35px 24px
}

footer a {
    margin-right: 15px
}

section {
    scroll-margin-top: 125px
}

.skip {
    position: absolute;
    left: -9999px
}

.skip:focus {
    left: 10px;
    background: white;
    z-index: 9
}

@media(max-width:700px) {
    .nav {
        display: block
    }

    .nav nav {
        gap: 12px;
        margin-top: 8px
    }

    .hero {
        padding: 65px 20px
    }

    .contact {
        grid-template-columns: 1fr
    }

    .section {
        padding: 42px 20px
    }

    .top {
        font-size: 12px
    }
}

/* Schriftgrößen und Bilder */
.top {
    font-size: 18px;
    padding: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere
}

.top a {
    display: inline-block;
    padding: 3px 6px
}

nav a {
    font-size: 19px;
    padding: 8px 5px
}

.btn,
button {
    font-size: 20px;
    padding: 16px 26px
}

.tile a {
    font-size: 18px;
    font-weight: 650
}

.logo .logo-fallback {
    color: #4b8039
}

.logo img {
    max-width: 220px;
    max-height: 85px;
    object-fit: contain
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    max-width: 850px
}

.portrait {
    aspect-ratio: 4/5
}

.photo [hidden],
.logo [hidden] {
    display: none !important
}

section {
    scroll-margin-top: 180px
}

@media(max-width:700px) {
    .top {
        font-size: 16px
    }

    .nav nav {
        gap: 6px 12px
    }

    nav a {
        font-size: 17px;
        padding: 6px 0
    }

    .btn,
    button {
        font-size: 18px;
        padding: 14px 18px
    }

    .logo img {
        max-height: 60px
    }

    section {
        scroll-margin-top: 250px
    }
}

/* Individuelle Schriftgroessen */
:root {
    --firmenname: 55px;
    --kontakt: 25px;
    --navigation: 21px;
    --schaltflaechen: 23px;
    --logo-breite: 280px;
}

.logo {
    font-size: var(--firmenname)
}

.logo img {
    width: var(--logo-breite);
    max-width: 100%;
    max-height: 100px
}

.top {
    font-size: var(--kontakt)
}

nav a {
    font-size: var(--navigation)
}

.btn,
button {
    font-size: var(--schaltflaechen)
}

.nav {
    flex-wrap: wrap
}

section {
    scroll-margin-top: 240px
}

@media(max-width:700px) {
    .logo {
        font-size: min(var(--firmenname), 36px)
    }

    .top {
        font-size: min(var(--kontakt), 18px)
    }

    nav a {
        font-size: min(var(--navigation), 18px)
    }

    .btn,
    button {
        font-size: min(var(--schaltflaechen), 20px)
    }

    .logo img {
        max-height: 75px
    }

    section {
        scroll-margin-top: 300px
    }
}

/* Social Media – Größen hier einstellen */
:root {
    --social-oben: 34px;
    --social-unten: 28px;
    --whatsapp-button: 62px
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 8px 24px
}

.social-links a,
.whatsapp-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .18s ease, color .18s ease;
    min-width: 75px;
    min-height: 75px;
    margin: 0
}

.social-links svg,
.whatsapp-float svg {
    fill: currentColor;
    width: var(--social-oben);
    height: var(--social-oben)
}

.social-header {
    color: #111;
    background: white;
    border-top: 1px solid #e0e7da
}

.social-footer {
    color: white;
    justify-content: flex-start;
    max-width: 1120px;
    margin: auto;
    padding: 12px 0
}

.social-footer svg {
    width: var(--social-unten);
    height: var(--social-unten)
}

.social-links a:hover,
.whatsapp-float:hover {
    transform: translateY(-3px);
    color: #76a11f
}

.social-links a:focus-visible,
.whatsapp-float:focus-visible {
    outline: 3px solid #76a11f;
    outline-offset: 4px
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    background: #168447;
    color: white;
    border-radius: 50%;
    width: var(--whatsapp-button);
    height: var(--whatsapp-button);
    box-shadow: 0 4px 16px #0003
}

.whatsapp-float svg {
    width: 58%;
    height: 58%
}

.whatsapp-float:hover {
    color: white;
    background: #116b38
}

footer {
    padding-bottom: 90px
}

section {
    scroll-margin-top: 300px
}

@media(max-width:700px) {
    header {
        position: static
    }

    .social-header {
        padding: 3px 12px
    }

    .social-header svg {
        width: min(var(--social-oben), 28px);
        height: min(var(--social-oben), 28px)
    }

    section {
        scroll-margin-top: 12px
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: min(var(--whatsapp-button), 56px);
        height: min(var(--whatsapp-button), 56px)
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .social-links a,
    .whatsapp-float {
        transition: none
    }
}

/* V5: Social Media neben der Hauptnavigation */
.nav {
    max-width: 1600px;
    width: 100%;
    padding-inline: clamp(20px, 3vw, 48px);
    gap: clamp(16px, 2vw, 32px);
    flex-wrap: nowrap
}

.nav .logo {
    flex-shrink: 0
}

.nav nav {
    margin-left: auto;
    gap: clamp(10px, 1.4vw, 22px);
    justify-content: flex-end
}

.nav .social-header {
    border: 0;
    padding: 0;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0
}

.nav .social-header a {
    min-width: 44px;
    min-height: 44px
}

section {
    scroll-margin-top: 220px
}

@media(max-width:1100px) {
    .nav {
        flex-wrap: wrap;
        justify-content: space-between
    }

    .nav nav {
        order: 3;
        width: 100%;
        margin: 0;
        justify-content: center
    }

    .nav .social-header {
        margin-left: auto
    }

    section {
        scroll-margin-top: 280px
    }
}

@media(max-width:700px) {
    .nav {
        display: flex;
        gap: 8px;
        padding: 12px 16px
    }

    .nav .logo {
        flex-shrink: 1;
        min-width: 0
    }

    .nav .logo img {
        max-width: min(var(--logo-breite), 42vw)
    }

    .nav .social-header {
        gap: 2px
    }

    .nav .social-header a {
        min-width: 36px;
        min-height: 44px
    }

    .nav nav {
        margin-top: 0;
        gap: 6px 12px
    }

    section {
        scroll-margin-top: 12px
    }
}

/* Kontaktleiste */
.top a {
    font-weight: 700;
    text-decoration: none
}

.top a:hover {
    color: #d7e8ae
}

.top a:focus-visible {
    outline: 2px solid #d7e8ae;
    outline-offset: 3px
}

.nav {
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 0;
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    transform: none;
}

.logo-fallback {
    font-size: 48px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.nav nav a+a {
    position: relative;
}

.nav nav a+a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 25px;
    background-color: #222222;
}

#leistungen .symbol svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #4b8039;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

#start {
    background: linear-gradient(rgba(20, 55, 30, 0.7),
            rgba(20, 55, 30, 0.7)), url("assets/hintergrund.jpg");
    background-size: cover;
    background-position: top;
    min-height: 650px;
    display: flex;
    align-items: center;
}

#start .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 10%;
    padding-right: 5%;
    box-sizing: border-box;
    text-align: left;
}

/* Mobile V6 – Desktop unverändert */
.menu-toggle {
    display: none;
}

.photo-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.photo-link[hidden] {
    display: none !important;
}

.photo-link img {
    display: block;
}

@media(max-width: 760px) {
    .top {
        font-size: 14px;
        padding: 6px 10px;
    }

    .top a {
        display: block;
        padding: 1px 0;
    }

    .top {
        font-size: 0;
    }

    .top a {
        font-size: 14px;
    }

    header {
        position: static;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 8px;
    }

    .nav .logo {
        font-size: 30px;
        gap: 7px;
        flex: 1;
    }

    .nav .logo img {
        width: 44px;
        height: 44px;
    }

    .logo-fallback {
        font-size: 30px;
    }

    .menu-toggle:not([hidden]) {
        display: block;
        font-size: 15px;
        padding: 10px 12px;
        margin-left: auto;
    }

    .nav .social-header {
        order: 4;
        width: 100%;
        justify-content: center;
        margin: 0;
        gap: 14px;
    }

    .nav nav {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .menu-toggle:not([hidden])+nav:not(.is-open) {
        display: none;
    }

    .nav nav a {
        padding: 10px 4px;
        border-bottom: 1px solid #e0e7da;
    }

    .nav nav a+a::before {
        display: none;
    }

    #start {
        min-height: 440px;
        padding: 50px 20px;
        background-position: center;
    }

    #start .wrap {
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(34px, 8.5vw, 54px);
        overflow-wrap: anywhere;
    }

    .hero p {
        font-size: 18px;
    }

    .hero .btn {
        font-size: 17px;
        max-width: 100%;
    }

    .section {
        padding: 40px 18px;
    }

    .grid,
    .gallery,
    .team-grid,
    .contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact>*,
    .tile {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        min-width: 0;
    }

    section {
        scroll-margin-top: 12px;
    }

    footer {
        overflow-wrap: anywhere;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: 54px;
        height: 54px;
    }
}

@media (min-width: 761px) {
    #main-nav {
        gap: 0;
    }

    #main-nav>a {
        padding: 0 15px;
        border-left: 1px solid #222222;
    }

    #main-nav>a:first-child {
        border-left: none;
    }

    #main-nav>a::before {
        display: none !important;
    }
}

.gallery-social {
    text-align: center;
    margin-top: 35px;
}

.gallery-social h3 {
    font-size: 24px;
    color: #23472e;
    margin-bottom: 10px;
}

.gallery-social p {
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.gallery-social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-social-buttons a {
    background: #23472e;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.gallery-social-buttons a:hover {
    background: #4b8039;
}

.gallery-social-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-social-buttons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.gallery-social-text {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.gallery-social-text h3 {
    font-size: 24px;
    color: #23472e;
    margin-bottom: 10px;
}

.gallery-social-text p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-social-text,
.gallery-social-buttons {
    grid-column: 1 / -1;
    width: 100%;
}

.gallery-social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.gallery-social-buttons a {
    height: auto;
    padding: 12px 25px;
}

footer {
    padding: 20px 24px !important;
}

footer p {
    margin: 8px 0;
}

footer .social-footer {
    margin-top: 15px;
    margin-bottom: 0;
}

/* Website auf Desktop verkleinern */
@media (min-width: 1024px) {
    body {
        zoom: 0.9;
    }
}

@media (min-width: 1024px) {
    .logo {
        position: relative;
        left: 0;
    }
}
/* V3: responsive alignment and compact controls */
.gallery-social-text { margin: 0 0 20px; }
.gallery-social-buttons { width: auto; }
.whatsapp-float { min-width: 0; min-height: 0; width: 75px; height: 75px; }
.whatsapp-float svg { width: 38px; height: 38px; }
.social-footer a { min-width: 44px; min-height: 44px; }
footer { padding-bottom: 32px !important; }
section { scroll-margin-top: 145px; }
@media (min-width: 1024px) { .nav .logo { left: clamp(-90px, calc((1600px - 100vw) / 2), 0px); } }
@media (min-width: 761px) and (max-width: 1300px) { .nav { flex-wrap: wrap; } .nav nav { order: 3; width: 100%; justify-content: center; margin: 0; } section { scroll-margin-top: 220px; } }
@media (max-width: 760px) { .nav .logo { gap: 6px; } .logo-fallback { font-size: clamp(22px, 7vw, 30px); } .nav .logo img { flex: 0 0 40px; width: 40px; height: 40px; } .menu-toggle:not([hidden]) { padding: 8px; } .whatsapp-float { width: 54px; height: 54px; } .whatsapp-float svg { width: 30px; height: 30px; } section { scroll-margin-top: 12px; } footer { padding-bottom: 76px !important; } .gallery-social-buttons a { padding: 10px 18px; } }
