:root {
    --bg: #fbf6f2;
    /* cremig */
    --surface: #fff;
    /* Karten */
    --muted: #ede5e0;
    /* zarte Flächen */
    --text: #1a1a1a;
    /* Primärtext */
    --subtext: #5b544e;
    /* Sekundärtext */
    --brand: #6b0f14;
    /* Bordeaux */
    --brand-2: #a12b2f;
    /* helleres Bordeaux */
    --ring: rgba(107, 15, 20, .18);
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --primary: 0 70% 35%;
    --secondary: 40 15% 92%;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    /*background: var(--bg);*/
    color: var(--text);
    background-color: #F7F6F4;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}


/* Header */

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    /* <— vorher war rgba(...) */
    border-bottom: 1px solid transparent;
    /* unsichtbar am Anfang   */
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
    backdrop-filter: saturate(180%) blur(10px);
}

.nav-wrap.scrolled {
    background: rgba(251, 246, 242, .92);
    /* var(--bg) mit Transparenz */
    border-bottom-color: #f0e9e4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}


/* Nach Scroll: cremig-weiß + feine Linie + kleiner Schatten */

.nav-wrap.scrolled {
    background: rgba(251, 246, 242, .92);
    /* var(--bg) mit Transparenz */
    border-bottom-color: #f0e9e4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}


/* Falls das mobile Menü offen ist, wollen wir immer einen Hintergrund */

@media (max-width:860px) {
    .nav-wrap.menu-open {
        background: rgba(251, 246, 242, .98);
        border-bottom-color: #f0e9e4;
    }
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px
}

.brand {
    font-weight: 800;
    font-size: 20px
}

.brand span {
    color: var(--brand)
}

.menu {
    display: flex;
    gap: 22px;
    align-items: center
}

.cta {
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(107, 15, 20, .25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
    transform: scale(1.05);
    /* leicht größer beim Hover */
    box-shadow: 0 0 20px rgba(107, 15, 20, 0.3);
    /* dezenter Glow */
}

.hamburger {
    display: none;
    border: 0;
    background: transparent;
    font-size: 24px
}


/* Hero */

.hero {
    position: relative;
    min-height: 90vh;
    display: grid;
    place-items: center;
    padding: 70px 20px;
    background: linear-gradient(to bottom, rgb(251 246 242 / 0%), rgba(251, 246, 242, .9)), url(assets/hero-construction.jpg);
    background-size: cover;
    background-position: center
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 26px;
    text-align: center
}

.pill {
    display: inline-block;
    color: #6a5d57;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
    backdrop-filter: blur(4px);
    background: rgba(107, 15, 20, 0.15);
    color: #582322;
    border: 1px solid #582322;
    font-weight: 500
}

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    margin: .2rem 0 .2rem
}

.hero h1 .accent {
    color: var(--brand)
}

.lead {
    color: var(--subtext);
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto
}

.actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: 12px 19px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    /* Übergang */
}

.btn.secondary {
    background: #fff;
    color: #1f1b1a;
    border: 1px solid #efe7e1
}

.btn:hover {
    transform: scale(1.05);
    /* leicht vergrößern */
}


/* Sections */

section {
    padding: 80px 20px
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.section-head {
    text-align: center;
    margin-bottom: 26px
}

.section-kicker {
    display: inline-block;
    color: #6a5d57;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
    backdrop-filter: blur(4px);
    background: rgba(107, 15, 20, 0.15);
    color: #582322;
    border: 1px solid #582322;
    font-weight: 500;
}

.section-title {
    font-size: 40px;
    margin: 0 0 8px
}

.section-sub {
    color: var(--subtext);
    max-width: 800px;
    margin: 0 auto
}


/* Cards grid */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

@media (max-width:980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:640px) {
    .grid {
        grid-template-columns: 1fr
    }
}

.card {
    /*background: var(--surface);*/
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid;
    border-width: 1px;
    border-color: #80808033;
    background-color: #EEECE8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px 6px rgba(107, 15, 20, 0.18);
    /* heller roter Schatten */
}

.icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f6eeea;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 24px;
    border: 1px solid #f0e7e2
}

.card h3 {
    /*margin: 4px 0 8px;*/
    margin-top: 2rem;
}

.card p {
    color: var(--subtext);
    margin: 0;
    line-height: 1.625;
    margin-top: 2rem;
    margin-bottom: 2rem;
}


/* Referenzen Cards (Bild oben) */

.ref-card {
    overflow: hidden;
    padding: 0;
}

.ref-img {
    aspect-ratio: 16/10;
    background: #ddd;
    /* Bild wird zugeschnitten statt gestreckt */
    overflow: hidden;
}

.ref-body {
    padding: 18px
}

.ref-sub {
    color: #7a706a;
    font-size: 14px;
    margin-top: -4px
}


/* Über uns */

.about {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 40px;
    align-items: center
}

@media (max-width:980px) {
    .about {
        grid-template-columns: 1fr;
    }
}

.about img {
    border-radius: 24px;
    box-shadow: var(--shadow)
}

.list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0px;
    margin-bottom: 50px;
}

.list li {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.list i {
    color: #6B0F14;
    /*background: #e9f7ee;*/
    /*border: 1px solid #d6f0e0;*/
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-top: 2px
}


/* Kontakt */

.contact-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 24px 0 36px
}

@media (max-width:980px) {
    .contact-top {
        grid-template-columns: 1fr
    }
}

.contact-card {
    background: var(--surface);
    border: 1px solid #efe7e1;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.25s ease;
}

.contact-card:hover {
    box-shadow: 0 0 30px 6px rgba(107, 15, 20, 0.18);
    /* gleichmäßiger Schatten in alle Richtungen */
}

.contact-card .icon {
    margin: 0 auto 12px
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px
}

@media (max-width:980px) {
    .contact-layout {
        grid-template-columns: 1fr
    }
}

form {
    background: var(--surface);
    border: 1px solid #efe7e1;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px
}

label {
    font-weight: 700;
    font-size: 14px
}

.input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e8dfda;
    border-radius: 12px;
    margin: 8px 0 14px;
    outline: none
}

.input:focus {
    box-shadow: 0 0 0 6px var(--ring);
    border-color: #e0d6d0
}

textarea.input {
    min-height: 130px;
    resize: vertical
}

.submit {
    background: var(--brand);
    color: #fff;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer
}

.map {
    height: 420px;
    border: 1px solid #efe7e1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}


/* Footer */

footer {
    background: #f9f2ee;
    border-top: 1px solid #efe7e1
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 26px
}

@media (max-width:980px) {
    .footer-grid {
        grid-template-columns: 1fr;
                
    }
}

.foot-muted {
    color: #7a706a
}

.copyright {
    border-top: 1px solid #efe7e1;
    margin-top: 24px;
    padding-top: 18px;
    color: #8a817b;
    font-size: 14px
}


/* Mobile menu */

@media (max-width:860px) {
    .menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
    }
    .menu.open {
        display: grid;
        gap: 12px
    }
    .hamburger {
        display: block
    }
}