:root {
    --green: #355947;
    --green-dark: #2e4f3e;
    --green-light: #e5ebe7;
    --text: #27332d;
    --muted: #65706a;
    --white: #ffffff;
    --border: #d9dfdb;
    --max-width: 1180px;
    --radius: 4px;
    --shadow: 0 5px 18px rgba(35, 55, 45, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.imprint-contact-links a {
    color: var(--green);
}

.imprint-contact-links a:hover {
    color: var(--green-dark);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 80px), var(--max-width));
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */


.site-header {
    background: var(--green);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.header-inner {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .9);
    display: grid;
    place-items: center;
    font-size: 21px;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    letter-spacing: .08em;
}

.logo-text strong {
    font-size: 14px;
    font-weight: 500;
}

.logo-text small {
    font-size: 8px;
    letter-spacing: .24em;
    margin-top: 3px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 180px;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 30px);
    font-size: 13px;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    padding: 7px 0;
    white-space: nowrap;
    opacity: .95;
    transition: opacity .2s ease, color .2s ease;
}

.main-nav a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    transition: right .2s ease;
}

.main-nav a:not(.nav-contact):hover::after {
    right: 0;
}

.main-nav a:hover {
    opacity: 1;
}

.nav-contact {
    padding: 6px 13px !important;
    border-radius: 3px;
    background: var(--white);
    color: var(--green);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-contact:hover {
    background: #dfe7e2;
    transform: translateY(-1px);
}

.menu-toggle {
    position: relative;
    z-index: 110;
    display: none;
    width: 42px;
    height: 40px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
    transition: transform .2s ease, opacity .2s ease;
}

/* =========================
   BUTTONS
========================= */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--green);
    color: var(--white);
}

.btn-dark:hover {
    background: #223f30;
}

.btn-light {
    background: #223f30;
    color: #fff;
}

.btn-light:hover {
    background: #223f30b5;
}

#weg .btn-light,
#weg .btn-light:hover {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
}

.reasons .btn-light,
.reasons .btn-light:hover {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: #223f30;
    border-color: #223f30;
}

#kontakt .btn-light,
#kontakt .btn-light:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

#kontakt .btn-outline-light,
#kontakt .btn-outline-light:hover {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--white);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    background-color: #edf3ee;
    background-image: url("../images/header.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 470px;
    display: grid;
    grid-template-columns: .9fr 1.35fr;
    align-items: center;
    gap: 45px;
    padding-block: 55px 35px;
}

.hero-content {
    max-width: 550px;
}


.eyebrow,
.section-kicker {
    margin: 0 0 4px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--green);
}

.hero-lead {
    margin: 5px 0 18px;
    color: var(--green);
    font-size: 17px;
    font-weight: 600;
}

.hero-content>p:not(.eyebrow):not(.hero-lead) {
    font-size: 13px;
    max-width: 570px;
    margin: 10px 0;
}


.hero-image {
    min-height: 370px;
}

.trust-bar {
    background: var(--green-light);
}

.trust-grid {
    min-height: 54px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 10px;
    color: var(--green);
}

.trust-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.trust-item span {
    margin-right: 5px;
    font-size: 14px;
}



/* =========================
   SECTIONS
========================= */

.section {
    padding: 85px 0;
}

.section-white {
    background: var(--white);
}

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

.section-accent {
    background: #eef1ef;
}

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

.verwaltungswechsel-page .section-accent {
    background: var(--white);
}

.verwaltungswechsel-page .section-accent .section-heading h2 {
    color: var(--green);
}

.section-light .section-copy h2,
.section-light .feature-content h2 {
    color: var(--green);
}

#mietverwaltung h2,
#mietverwaltung .feature-content h2 {
    color: var(--green);
}

.section-dark {
    background: var(--green);
    color: var(--white);
}

.section-dark .section-kicker {
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.reasons .section-heading h2 {
    color: var(--white);
}

.section.section-white h2 {
    color: var(--green);
}

.section-dark .section-copy p:not(.section-kicker) {
    color: rgba(255, 255, 255, .88);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading.centered {
    text-align: center;
    margin-inline: auto;
}

.section-heading h2 {
    margin: 0;
    color: var(--green);
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.2;
}

.section-heading>p:last-child {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.section-copy {
    align-self: center;
}

.section-copy h2,
.feature-content h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(23px, 2.4vw, 31px);
    line-height: 1.2;
}

.section-copy p:not(.section-kicker) {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0;
}

.services-background {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.services-background::before {
    content: "";
    position: absolute;
    top: 52%;
    right: -120px;
    transform: translateY(-50%);

    width: 520px;
    height: 520px;

    background-image: url("../images/icon-background-haus.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.services-background>.container {
    position: relative;
    z-index: 1;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: clamp(45px, 7vw, 90px);
    align-items: center;
}

.two-column.reverse {
    grid-template-columns: .95fr 1fr;
}

.two-column.reverse > :first-child {
    order: 1;
}

.two-column.reverse > :last-child {
    order: 2;
}

.content-image {
    min-height: 360px;
}

.portrait-image {
    min-height: 380px;
    max-width: 430px;
    width: 100%;
    margin-left: auto;
}

/* =========================
   SERVICES
========================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    justify-items: center;
}

.service-card {
    background: var(--white);
    border-radius: 4px;
    padding: 24px 18px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    width: 100%;
    max-width: 340px;
}

.service-icon {
    width: 52px;
    height: 52px;
    color: var(--green);
    font-size: 25px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
}

.service-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.service-card h3 {
    color: var(--green);
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.25;
}

.service-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

/* =========================
   LARGE CARDS
========================= */

.card-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-image {
    min-height: 260px;
}

.feature-content {
    padding: 25px;
}

.feature-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-content p:not(.section-kicker) {
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   REASONS
========================= */

.reasons .section-heading {
    margin-bottom: 45px;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

.reason-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.reason-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    right: -14px;
    width: 1px;
    height: 80%;
    background: rgba(255, 255, 255, 0.25);
}

.reason-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 14px;
    border: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
    font-size: 19px;
}

.reason-item h3 {
    margin: 0 0 7px;
    font-size: 14px;
}

.reason-item p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    line-height: 1.6;
}

.center-button {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

/* =========================
   FINAL CTA
========================= */

.final-cta {
    padding-bottom: 70px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.1fr .7fr;
    gap: 80px;
    align-items: center;
}

.final-cta h2 {
    color: white;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
    margin: 0 0 18px;
}

.final-cta p:not(.section-kicker) {
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    max-width: 650px;
}

.footer-logo-placeholder {
    min-height: 270px;
    border: 0;
    color: rgba(255, 255, 255, .85);
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 700;
    letter-spacing: .12em;
}

#kontakt-footer {
    background: var(--white);
    color: var(--green);
}

#kontakt-footer .section-kicker,
#kontakt-footer h2,
#kontakt-footer .contact-list li,
#kontakt-footer .contact-list a {
    color: var(--green);
}

#kontakt-footer .contact-list li span {
    color: var(--muted);
}

#kontakt-footer .contact-list a:hover {
    color: var(--green-dark);
}

.contact-footer-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

#kontakt-footer .contact-footer-grid > .dsa-secure-plugin {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(20, 35, 25, 0.08);
}

.contact-footer-details {
    display: grid;
    gap: 18px;
}

.contact-footer-details h2 {
    margin: 0;
    font-size: clamp(24px, 2.8vw, 36px);
    line-height: 1.15;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.contact-list li {
    display: grid;
    gap: 4px;
    color: var(--green);
    font-size: 14px;
}

.contact-list li span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-list a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-list a:hover {
    color: var(--green-dark);
}

.maps {
    display: none;
}

.dsa-secure-plugin {
    height: 300px !important;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: #294938;
    color: rgba(255, 255, 255, .8);
    font-size: 10px;
}

.footer-inner {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner div {
    display: flex;
    gap: 20px;
}

.footer-inner a {
    font-size: 13px;
    color: var(--white);
}

.footer-inner a:hover {
    color: white;
}

/* ===========UNTERSEITEN=================*/

.house-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.house-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.house-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-image: url("../images/list-haus.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.accordion {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.accordion-item {
    background: rgba(53, 89, 71, 0.08);
    border: 1px solid rgba(53, 89, 71, 0.18);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    background: rgba(53, 89, 71, 0.04);
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: "+";
    font-size: 28px;
    line-height: 1;
    color: var(--green);
    flex-shrink: 0;
}

.accordion-item[open] summary::after {
    content: "−";
}

.accordion-item p {
    margin: 0;
    padding: 0 22px 18px;
    color: var(--green);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1023px) {
    .container {
        width: min(calc(100% - 50px), var(--max-width));
    }

    #kontakt-footer .contact-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #kontakt-footer .contact-footer-grid > .dsa-secure-plugin {
        grid-column: auto;
        grid-row: auto;
    }

    #kontakt .cta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .main-nav {
        gap: 16px;
        font-size: 10px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .hero-image {
        min-height: 330px;
    }

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

    .reason-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 35px;
    }

    .two-column {
        gap: 35px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .trust-grid {
        padding-inline: clamp(24px, 4vw, 40px);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .hero::before {
        background: rgba(255, 255, 255, .85);
    }
}

@media (max-width: 724px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #kontakt-footer .contact-footer-grid > .dsa-secure-plugin {
        grid-column: auto;
        grid-row: auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
    body {
        font-size: 14px;
    }

    .container {
        width: min(calc(100% - 34px), var(--max-width));
    }

    .header-inner {
        min-height: 65px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 30;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 17px 17px;
        background: var(--green);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 12px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .main-nav .nav-contact {
        margin-top: 8px;
        text-align: center;
        border-bottom: 0;
    }

    .hero-grid,
    .two-column,
    .card-grid-large,
    .cta-grid,
    .contact-footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding-block: 48px 30px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        min-height: 270px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-content>p:not(.eyebrow):not(.hero-lead) {
        font-size: 12px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        padding-block: 10px;
        gap: 10px;
    }

    .trust-item {
        font-size: 9px;
        padding: 5px 0;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .two-column {
        gap: 30px;
    }

    .content-image,
    .portrait-image {
        min-height: 270px;
        max-width: none;
        margin-left: 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        display:block
    }

    .service-card {
        min-height: auto;
        display:block
    }

    .card-grid-large {
        gap: 20px;
    }

    .card-image {
        min-height: 220px;
    }

    .feature-content {
        padding: 22px;
    }

    .reason-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 18px;
    }

    .reason-item:last-child {
        grid-column: 1 / -1;
        max-width: 220px;
        margin-inline: auto;
    }

    .cta-grid {
        gap: 35px;
    }

    .footer-logo-placeholder {
        min-height: 210px;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        padding-block: 14px;
    }
}

@media (max-width: 400px) {
    .container {
        width: min(calc(100% - 26px), var(--max-width));
        display:block
    }

    .header-inner {
        display: flex;
    }

    #kontakt-footer .contact-footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .reason-grid {
        grid-template-columns: 1fr;
    }

    .reason-item:last-child {
        grid-column: auto;
    }

    .logo-text strong {
        font-size: 12px;
    }
}