:root {
    --accent-rust: #B07A4A;
    --text-main: #2E3236;
    --text-dark: #333333;
    --accent-blue: #4A6FA5;
    --text-blue: #2F4A6D;
    --text-light: #F5F7F8;
    --bg-gray: #D1D5D8;
    --bg-light: #F5F7F8;
    --bg-hero: #202833;
    --max-width: 1300px;
    --text-muted: #6E747A;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Heiti SC Light", "Heiti SC", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

/* in-page anchors to land nicely under the fixed header */
section[id] {
    scroll-margin-top: 96px;
}

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

body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.95rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    letter-spacing: 0.04em;
    color: var(--accent-rust);
    text-transform: uppercase;
}

.logo img,
.logo svg {
    height: 64px; /* slightly tighter so header height feels balanced */
    width: auto;
}

.logo span.small {
    font-size: 0.75rem;
    display: block;
    color: #7b7b7b;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
}

/* Language switch */
.lang-switch {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777777;
    white-space: nowrap;
}

.lang-switch span.active {
    color: var(--accent-rust);
    font-weight: 600;
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}

/* Desktop: no hamburger */
.hamburger {
    display: none;
}

/* Desktop: menu inline */
.modal-menu {
    position: static;
    inset: auto;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: none;
    transition: none;
}

.modal-menu ul {
    position: static;
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;

    display: flex;
    flex-direction: row;
    gap: 22px;
    align-items: center;

    background: transparent;
    box-shadow: none;

    transform: none;
    transition: none;
}

.menu-close {
    display: none;
}

/* Nav links */
nav a {
    color: #555555;
    font-size: 0.98rem;
    padding: 8px 2px;
}

nav a:hover {
    color: var(--accent-rust);
}

nav a.active {
    color: var(--accent-rust);
    font-weight: 600;
}

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

.hero {
    width: 100%;
    margin-top: 92px;
    color: var(--text-light);
}

.hero-image {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;

    min-height: 520px;
    max-height: 800px;

    background-image: url("ap.jpg");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}

.hero h2 {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.hero h2 span {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.hero h2 .s1 {
    animation-delay: 0.5s;
}

.hero h2 .s2 {
    animation-delay: 1.5s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ====== MAIN INTRO SECTION ====== */

.section {
    padding: 48px 20px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.section h2 {
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    color: var(--text-dark);
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    padding-bottom: 1rem;
}

.section p.lead {
    max-width: 750px;
    margin: 0 auto 10px;
    font-size: 0.96rem;
    color: var(--text-main);
}

.section-cta {
    padding-top: 2rem;

}

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

.btn-primary {
    display: inline-block;
    border: none;
    background: var(--accent-blue);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 2px;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--accent-rust);
}

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

.services-strip {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 64px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.services-strip > header {
    margin: 0 auto 28px;
    text-align: center;
    max-width: var(--max-width);
}

.services-strip > header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    letter-spacing: -0.02em;
    color: var(--text-dark);
    font-weight: 600;
}

.services-strip > header p {
    margin: 0 auto;
    max-width: 72ch;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.services-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.service-box {
    padding: 26px 26px 18px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* make this box span the full grid width */
.service-box.service-plane {
    grid-column: 1 / -1;
}

/* keep text readable */
.service-box.service-plane {
    padding: 26px;
    display: block;
    min-height: auto;
}

.service-box.service-plane p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    max-width: 75ch;
}

.services-strip.legal .services-inner {
    display: block;
}

.services-strip.legal .service-box {
    width: 100%;
    min-height: auto;
}

.services-strip.legal .service-text {
    max-width: none;
    width: 100%;
}

.service-box:nth-of-type(2),
.service-box:nth-of-type(3) {
    border-left: 1px solid rgba(0,0,0,0.06);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-bottom: 12px;
    background: var(--bg-light);
}

.service-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.service-title {
    margin: 0 0 20px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.service-text {
    margin: 0 0 10px;
    color: var(--text-main);
    line-height: 1.65;
    font-size: 0.95rem;
    max-width: 56ch;
}


/* ===== HOW WE WORK ===== */

section#vorgehen {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    overflow-x: hidden; /* safety net against accidental horizontal overflow */

}

section#vorgehen > header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

section#vorgehen > header h2 {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

section#vorgehen > header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

section#vorgehen ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2.25rem;
    margin: 0 auto 2rem;
    padding: 0;
}

section#vorgehen ol > li {
    background: #ffffff;
    border: 1px solid var(--bg-gray);
    border-radius: 6px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 10px 18px rgba(32, 40, 51, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

section#vorgehen ol > li:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(32, 40, 51, 0.16);
}

section#vorgehen h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

section#vorgehen li > p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

section#vorgehen ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

section#vorgehen ul li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

section#vorgehen ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent-rust);
}

section#vorgehen > div {
    display: flex;
    justify-content: center;
    text-align: center;
}

section#vorgehen > div p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== WHY US ===== */

section#warum-wir {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 64px 24px;
    max-width: var(--max-width);
    margin: 0 auto;

}

section#warum-wir .warum-wir-inner {
    display: grid;
    grid-template-columns: 1.05fr 1.6fr;
    gap: 3rem;
    align-items: start;
}

/* Left lead */
section#warum-wir .warum-wir-lead {
    max-width: 520px;
    align-self: center;

}

section#warum-wir .warum-wir-kicker {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.10);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

section#warum-wir h2 {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.9rem;
}

section#warum-wir .warum-wir-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Right cards (2x2) */
section#warum-wir .warum-wir-cards {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1.25rem;
}

section#warum-wir .warum-wir-card {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: 0 10px 18px rgba(32, 40, 51, 0.08);
}

section#warum-wir .warum-wir-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 0.9rem;
}

section#warum-wir .warum-wir-icon img {
    width: 38px;
    height: 38px;
    opacity: 0.9;
}

section#warum-wir .warum-wir-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

section#warum-wir .warum-wir-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.65;
    padding-bottom: 1.1rem;
}

/* Responsive */
@media (max-width: 980px) {
    section#warum-wir .warum-wir-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section#warum-wir .warum-wir-lead {
        max-width: 760px;
    }
}

@media (max-width: 720px) {
    section#warum-wir .warum-wir-cards {
        grid-template-columns: 1fr;
    }
}


/* ===== CONTACT FORM ===== */


.section > header {
    max-width: 1120px;
    margin: 0 auto 28px;
    text-align: center;
}

.section > header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    letter-spacing: -0.02em;
    color: var(--text-dark);
    font-weight: 600;
}

.section > header p {
    margin: 0 auto;
    max-width: 72ch;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.65;
}

.services-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; /* separators handle spacing */
}

.obf-mail {
    color: var(--accent-rust);
    font-weight: 500;
    cursor: pointer;
}

.obf-mail:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 520px;
    margin: 28px auto 0;
    text-align: left;
    font-size: 0.95rem;
}

.contact-form .form-row {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 2px rgba(176, 122, 74, 0.18);
}

.form-status {
    display: flex;
    padding-top: 2rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border-radius: 6px;
    text-align: center;
}

.modal-content h2 {
    margin-top: 0;
}


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

footer {
    padding: 18px 20px 26px;
    font-size: 0.8rem;
    color: #999999;
    text-align: center;
    margin-top: 20rem;
}

footer a:hover {
    color: var(--accent-rust);
}

/* ====== RESPONSIVE ====== */

@media (max-width: 980px) {
    /* Warum wir collapses to one column */
    section#warum-wir > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* Services stack */
    .services-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-box {
        min-height: auto;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 10px 18px rgba(32, 40, 51, 0.08);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: grid;
        font-size: 38px;
        line-height: 1;
        place-items: flex-start;
        z-index: 2000;
    }

    /* Overlay */
    .modal-menu {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 250ms ease, visibility 0s linear 250ms;
        z-index: 2000;
    }

    .menu-backdrop {
        position: absolute;
        inset: 0;
        cursor: pointer;
    }

    .modal-menu a {
        font-size: 1.2rem;
        padding-left: 20px;
        text-align: left;
        width: 100%;
    }

    /* Right-side panel */
    .modal-menu ul {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: min(82vw, 420px);
        margin: 0;
        padding: 72px 22px 28px;
        background: var(--bg-light);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.25);
        z-index: 1;
        align-items: flex-start;

        display: flex;
        flex-direction: column;
        gap: 40px;

        transform: translateX(100%);
        transition: transform 300ms ease;
    }

    /* Open state */
    #menu-toggle:checked ~ .modal-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 250ms ease, visibility 0s;
    }

    #menu-toggle:checked ~ .modal-menu ul {
        transform: translateX(0);
    }

    /* Mobile: show X only when open */
    .menu-close {
        display: block;
        position: absolute;
        top: 16px;
        right: 16px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 200ms ease;
        font-size: 26px;
    }

    .menu-close label:hover {
        background: none;
        color: var(--accent-rust);
    }

    #menu-toggle:checked ~ .modal-menu .menu-close {
        opacity: 1;
        pointer-events: auto;
    }

    /* Vorgehen stacks */
    section#vorgehen ol {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    section#vorgehen {
        padding: 3rem 1.25rem 4rem;
    }

    section#vorgehen ol > li {
        padding: 1.5rem 1.25rem;
    }

    .header-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .section {
        padding: 36px 18px;
    }

    .services-strip {
        padding: 40px 18px 46px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-image {
        padding: 70px 16px;
    }
}
