:root {
    --bg: #f5f3ef;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #4b5563;
    --navy: #0b1f3a;
    --line: rgba(17, 24, 39, .12);
    --gold: #b08d57;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(17, 24, 39, .10);
    --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif
}

a {
    color: inherit
}

.sans {
    font-family: var(--font-sans)
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px
}

.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .10)
}

.topbar .row {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0
}

.topbar a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25)
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(245, 243, 239, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none
}

.mark {
    width: 120px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center
}

.mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block
}

.brand .name {
    font-weight: 700;
    letter-spacing: .01em;
    font-size: 22px
}

.brand .sub {
    font-size: 14px;
    color: var(--muted);
    margin-top: 5px
}

.lang-switcher-wrap {
    display: flex;
    align-items: center;
    gap: 8px
}

.lang-label {
    font-size: 13px;
    color: var(--muted)
}

.lang-switcher {
    min-width: 78px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    cursor: pointer
}

.hero {
    padding: 46px 0 18px
}

.hero-bg {
    position: relative;
    width: 100%;
    background-image: url("bilder/hero-haus-riss.jpg");
    background-size: cover;
    background-position: center right;
    overflow: hidden;
    padding: 56px 0 26px
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245, 243, 239, .96) 0%, rgba(245, 243, 239, .88) 42%, rgba(245, 243, 239, .60) 70%, rgba(245, 243, 239, .28) 100%);
    z-index: 0
}

.hero-bg .wrap {
    position: relative;
    z-index: 1
}

.paper {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.pad {
    padding: 24px
}

.box {
    padding: 22px
}

.hero-split {
    display: grid;
    grid-template-columns: 1.7fr .8fr;
    gap: 18px;
    align-items: start
}

.hero-photo-card img {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .18))
}

.kicker {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px
}

.kicker:before {
    content: "";
    width: 44px;
    height: 1px;
    background: var(--gold);
    display: inline-block
}

.kicker a {
    text-decoration: none;
    border-bottom: 1px solid rgba(75, 85, 99, .35)
}

h1 {
    margin: 12px 0 10px;
    font-size: 42px;
    line-height: 1.07;
    letter-spacing: -.01em
}

.lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
    font-family: var(--font-sans)
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}

.hero-meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--muted)
}

.hero-meta b {
    color: var(--ink)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--line);
    font-family: var(--font-sans);
    font-size: 14px
}

.btn.primary {
    background: var(--navy);
    color: #fff;
    border-color: transparent
}

.btn.light {
    background: #fff
}

.btn.small {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 11px
}

.btn.ghost {
    background: transparent
}

.section {
    padding: 18px 0
}

.section h2 {
    font-size: 26px;
    margin: 0 0 8px;
    letter-spacing: -.01em
}

.sublead {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    font-family: var(--font-sans)
}

.services-inline-links {
    line-height: 1.9;
    margin: 0 0 18px;
    color: var(--muted)
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    font-family: var(--font-sans)
}

.service {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    background: #fff
}

.service b {
    display: block;
    margin-bottom: 6px
}

.service p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px
}

.service-actions {
    margin-top: 14px
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.info,
.info-panel {
    margin-top: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfbfb;
    font-family: var(--font-sans)
}

.info div {
    margin: 6px 0
}

.info a,
.content-card a,
.services-inline-links a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 31, 58, .25)
}

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
    font-family: var(--font-sans)
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    outline: none;
    background: #fff;
    font-family: var(--font-sans);
    font-size: 14px
}

.form textarea {
    min-height: 120px;
    resize: vertical
}

.form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.form label span {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--muted)
}

.form-privacy {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    font-family: var(--font-sans);
    margin-top: 12px
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 14px
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center
}

.footer-links {
    display: flex;
    gap: 12px
}

.footer-links a {
    text-decoration: none;
    border-bottom: 1px solid rgba(75, 85, 99, .35)
}

.float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-family: var(--font-sans);
    box-shadow: 0 18px 45px rgba(11, 31, 58, .28)
}

.filterbar {
    position: sticky;
    top: 126px;
    z-index: 70;
    margin: 0 0 18px;
    padding-top: 8px;
    background: transparent
}

.filterbar-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, .08)
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chip {
    all: unset;
    cursor: pointer;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    color: #111827
}

.chip[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
    border-color: transparent
}

.searchwrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px
}

.searchwrap input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none
}

.count {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
    font-family: var(--font-sans)
}

.cert {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06)
}

.certTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(245, 243, 239, .55), rgba(255, 255, 255, 1))
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy)
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
    display: inline-block
}

.certMedia {
    padding: 12px;
    background: #fff
}

.zoomBtn {
    all: unset;
    cursor: zoom-in;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff
}

.zoomBtn img {
    width: 100%;
    height: auto;
    display: block;
    background: #fff
}

.certBody {
    padding: 12px 14px 14px
}

.certText {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55
}

.metaLine {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted)
}

.certActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px
}

.lightbox.open {
    display: flex
}

.lightbox-inner {
    max-width: min(1100px, 96vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55)
}

.lightbox-stage {
    position: relative
}

.lightbox-inner img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center top;
    transition: transform .15s ease
}

.lightbox-inner.zoomed img {
    transform: scale(1.8)
}

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f8f8;
    border-top: 1px solid rgba(0, 0, 0, .10);
    font-family: var(--font-sans);
    font-size: 13px;
    color: #374151
}

.lightbox-close,
.lb-btn {
    all: unset;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    font-weight: 900;
    font-family: var(--font-sans);
    font-size: 13px
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    cursor: pointer
}

.lb-prev {
    left: 10px
}

.lb-next {
    right: 10px
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(17, 24, 39, .14);
    box-shadow: 0 18px 45px rgba(17, 24, 39, .18);
    border-radius: 14px;
    padding: 14px 14px 12px;
    display: none
}

.cookie-banner.open {
    display: block
}

.cookie-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap
}

.cookie-text {
    flex: 1 1 520px;
    font-family: var(--font-sans);
    color: #374151;
    font-size: 14px;
    line-height: 1.55
}

.cookie-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.cookie-btn {
    all: unset;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, .14);
    background: #fff;
    font-weight: 800;
    font-family: var(--font-sans);
    font-size: 14px
}

.cookie-btn.primary {
    background: #0b1f3a;
    color: #fff;
    border-color: transparent
}

.cookie-more {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 24, 39, .10);
    display: none;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    color: #374151;
    font-size: 14px
}

.cookie-more.open {
    display: flex
}

.cookie-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(17, 24, 39, .10);
    background: #fbfbfb;
    border-radius: 12px;
    padding: 10px 12px
}

.content-card {
    font-family: var(--font-sans)
}

.section-block {
    margin-bottom: 22px
}

.section-block h3 {
    margin: 0 0 8px
}

@media (max-width:900px) {
    .wrap {
        padding: 0 14px
    }

    .topbar .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px
    }

    .nav {
        padding: 12px 0
    }

    .mark {
        width: 96px;
        height: 64px
    }

    .brand .name {
        font-size: 18px
    }

    .brand .sub {
        font-size: 13px;
        margin-top: 3px
    }

    .hero {
        padding: 22px 0 14px
    }

    .hero-bg {
        padding: 30px 0 18px;
        background-position: center
    }

    .hero-split,
    .grid2,
    .services,
    .cert-grid,
    .form .row {
        grid-template-columns: 1fr
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 10px
    }

    h1 {
        font-size: 30px;
        line-height: 1.1
    }

    .lead {
        font-size: 15px
    }

    .hero-actions .btn,
    .cookie-actions .cookie-btn {
        width: 100%;
        justify-content: center
    }

    .float {
        right: 12px;
        bottom: 12px;
        padding: 12px 14px
    }

    .lang-switcher-wrap {
        margin-left: auto
    }

    .lang-label {
        display: none
    }

    .filterbar {
        top: 86px;
        padding-top: 6px
    }

    .filterbar-inner {
        flex-direction: column;
        align-items: stretch
    }

    .searchwrap {
        min-width: 0;
        width: 100%
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 12px 10px
    }
}