/* ==========================================================================
   Lehnebach Raumausstattung – Styles
   Farben & Typografie laut Styleguide (Lehnebach_Raumausstattung_Styleguide.pdf)
   ========================================================================== */

:root {
    --braun: #553317;
    --tan: #d6a476;
    --beige: #efd7c4;
    --offwhite: #fbf6f1;
    --blau: #76a7bf;
    --blau-dunkel: #5f8fa6;
    --text: #26221e;
    --text-soft: #4d453d;
    --weiss: #ffffff;

    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: "Times New Roman", Times, serif;

    --container: 1180px;
    --radius: 10px;
    --header-h: 88px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--weiss);
    -webkit-font-smoothing: antialiased;
}

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

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
    font-size: 1.375rem;
}

p {
    color: var(--text-soft);
}

.accent {
    color: var(--braun);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
}

.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
}

.eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Layout-Helfer
   -------------------------------------------------------------------------- */

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

section {
    scroll-margin-top: var(--header-h);
}

.section {
    padding: 96px 0;
}

.section--beige {
    background: var(--offwhite);
}

/* Abwechselnde Bild/Text-Splits */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.split__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(85, 51, 23, 0.12);
}

.split--media-right .split__media {
    order: 2;
}

.split__text > p {
    margin-bottom: 1.1em;
}

.split__text .btn {
    margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}

.btn--primary {
    background: var(--blau);
    color: var(--weiss);
}

.btn--primary:hover {
    background: var(--blau-dunkel);
}

.btn--outline {
    background: transparent;
    color: var(--braun);
    border: 2px solid var(--braun);
    padding: 12px 30px;
}

.btn--outline:hover {
    background: var(--braun);
    color: var(--weiss);
}

.btn:active {
    transform: scale(0.98);
}

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

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--weiss);
    border-bottom: 1px solid rgba(85, 51, 23, 0.08);
}

.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__logo img {
    width: auto;
    height: 52px;
}

.site-nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.site-nav a:hover {
    color: var(--braun);
    border-bottom-color: var(--tan);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle__bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--braun);
    border-radius: 2px;
    margin: 5px 0;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    padding: 72px 0 96px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 span {
    display: block;
}

.hero__intro {
    max-width: 34em;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Leistungen (Karten)
   -------------------------------------------------------------------------- */

.section__head {
    text-align: center;
    max-width: 46em;
    margin: 0 auto 64px;
}

.section__head h2 {
    margin-bottom: 1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    text-align: center;
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(85, 51, 23, 0.1);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.35rem;
}

.card p {
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Ansprechpartner
   -------------------------------------------------------------------------- */

.person {
    display: grid;
    grid-template-columns: 1.2fr auto 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.person__photo img {
    height: 380px;
    width: auto;
    margin: 0 auto;
}

.person__card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.person__role {
    font-size: 0.9375rem;
    color: var(--braun);
    margin-bottom: 1rem;
}

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

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.contact h2 {
    margin-bottom: 0.5rem;
}

.contact__address {
    margin: 1.25rem 0 0;
    font-style: normal;
    line-height: 1.9;
}

.contact__address a {
    color: var(--braun);
}

/* Zwei-Klick-Karte (DSGVO) */
.map-consent {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--beige);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.map-consent__note {
    max-width: 32em;
}

.map-consent__note p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.map-consent__note a {
    color: var(--braun);
}

.map-consent iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Formular */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--weiss);
    border: 1px solid rgba(85, 51, 23, 0.35);
    border-radius: 6px;
    padding: 12px 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--blau);
    outline-offset: 0;
    border-color: transparent;
}

.form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    flex: none;
}

.form-check a {
    color: var(--braun);
}

.form-status {
    margin-top: 1rem;
    font-weight: 500;
}

.form-status--ok {
    color: #2e6b3f;
}

.form-status--error {
    color: #a33c2f;
}

/* Honeypot – für Menschen unsichtbar */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--braun);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 0 32px;
    font-size: 0.9375rem;
}

.site-footer__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.site-footer__logo {
    height: 44px;
    width: auto;
    background: var(--weiss);
    padding: 6px 10px;
    border-radius: 6px;
}

.site-footer p {
    color: inherit;
}

.site-footer address {
    font-style: normal;
    line-height: 1.9;
}

.site-footer a {
    color: var(--weiss);
}

.site-footer nav ul {
    list-style: none;
    line-height: 2.1;
}

.site-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Unterseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */

.legal-page {
    padding: 72px 0 96px;
    max-width: 760px;
}

.legal-page h1 {
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.375rem;
    margin: 2.25rem 0 0.75rem;
}

.legal-page h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.5rem;
}

.legal-page p,
.legal-page ul {
    margin-bottom: 1em;
}

.legal-page ul {
    padding-left: 1.4em;
}

.legal-page a {
    color: var(--braun);
}

.todo {
    background: #fff3cd;
    border-radius: 4px;
    padding: 0 4px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 40px 0 64px;
    }

    .split,
    .contact {
        grid-template-columns: 1fr;
    }

    /* Auf Mobil immer Bild oben, Text darunter */
    .split--media-right .split__media {
        order: 0;
    }

    .cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .person {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .person__photo img {
        height: 320px;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--weiss);
        border-bottom: 1px solid rgba(85, 51, 23, 0.1);
        display: none;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    }

    .site-nav.is-open {
        display: block;
    }

    /* Unterseiten ohne Hamburger: Nav bleibt sichtbar in der Kopfzeile */
    .site-nav--static {
        position: static;
        display: block;
        border-bottom: none;
        box-shadow: none;
    }

    .site-nav--static ul {
        flex-direction: row;
        gap: 20px;
        padding: 0;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 16px;
    }

    .site-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: none;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    .site-header__logo img {
        height: 42px;
    }

    :root {
        --header-h: 72px;
    }
}

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

    * {
        transition: none !important;
    }
}
