/* =========================================================
   Manrope — Self-hosted variable font
   latin-ext covers Western European characters (umlauts etc.)
   ========================================================= */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   BAUBEN GMBH — Minimal, clean, responsive
   Farbschema aus dem Logo abgeleitet (Petrol/Blau).
   ========================================================= */

:root {
    /* Brand */
    --c-brand: #186B91;
    /* Logo-Petrolblau */
    --c-brand-deep: #0F4D6A;
    /* Hover / dunklere Variante */
    --c-brand-soft: #E6EEF3;
    /* sehr helle Tönung */
    --c-brand-tint: #C5D8E2;
    /* Trennlinien-Akzent */

    /* Neutrals (warm) */
    --c-bg: #F7F5F0;
    --c-bg-alt: #FFFFFF;
    --c-bg-dark: #0F2A38;
    --c-ink: #15202B;
    --c-ink-2: #3B4956;
    --c-muted: #6C7986;
    --c-line: #E3DED4;

    /* Type */
    --ff: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Sizing */
    --maxw: 1200px;
    --gutter: clamp(20px, 4vw, 56px);
    --radius: 4px;
    --header-h: 76px;
}

/* =========================================================
   Reset
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--ff);
    color: var(--c-ink);
    background: var(--c-bg);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--c-brand);
    text-decoration: none;
}

a:hover {
    color: var(--c-brand-deep);
}

h1,
h2,
h3 {
    margin: 0 0 .4em;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-wrap: balance;
}

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

h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 245, 240, 0.85);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--c-line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-ink);
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--c-brand);
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--c-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.site-nav a {
    display: inline-block;
    color: var(--c-ink-2);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}

.site-nav a:hover {
    background: var(--c-brand-soft);
    color: var(--c-brand-deep);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: relative;
}

.nav-toggle-label span {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    background: var(--c-ink);
    transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.nav-toggle-label span:nth-child(1) {
    top: 11px;
}

.nav-toggle-label span:nth-child(2) {
    top: 17px;
}

.nav-toggle-label span:nth-child(3) {
    top: 23px;
}

.nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}

.nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.btn-primary {
    background: var(--c-brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--c-brand-deep);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-ink);
}

.btn-ghost:hover {
    background: var(--c-ink);
    color: var(--c-bg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 140px);
    border-bottom: 1px solid var(--c-line);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--c-brand);
    opacity: .9;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-brand);
    font-weight: 600;
}

.hero h1 {
    color: var(--c-ink);
}

.lede {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--c-ink-2);
    max-width: 56ch;
    margin-top: 1.2em;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hero card */
.hero-card {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-line);
    border-top: 4px solid var(--c-brand);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 30px 60px -40px rgba(15, 77, 106, 0.35);
}

.hero-card-kicker {
    margin: 0 0 18px;
    font-style: italic;
    color: var(--c-brand);
    font-weight: 600;
    font-size: 1.05rem;
}

.pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pillars li {
    padding: 14px 0;
    border-top: 1px solid var(--c-line);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--c-ink);
}

.pillars li:last-child {
    border-bottom: 1px solid var(--c-line);
}

.pillars li::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--c-brand);
    border-radius: 50%;
    flex: none;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
    padding: clamp(64px, 9vw, 120px) 0;
    border-bottom: 1px solid var(--c-line);
}

.section-light {
    background: var(--c-bg-alt);
}

.section-dark {
    background: var(--c-bg-dark);
    color: #DDE6EC;
    border-bottom-color: transparent;
}

.section-dark h2,
.section-dark strong {
    color: #fff;
}

.section-dark a {
    color: #9FC9DC;
}

.section-grid {
    display: grid;
    gap: clamp(36px, 6vw, 72px);
}

.section-head {
    max-width: 760px;
}

.section-tag {
    margin: 0 0 16px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-brand);
}

.section-tag.light {
    color: #7FB6CE;
}

.section-intro {
    margin-top: 1em;
    font-size: 1.1rem;
    color: var(--c-ink-2);
    max-width: 64ch;
}

.section-dark .section-intro {
    color: #B7C7CF;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 56px);
}

.two-col p {
    color: var(--c-ink-2);
}

.section-dark .two-col p {
    color: #B7C7CF;
}

/* Stats */
.stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}

.stats li {
    padding: 28px 24px;
    border-right: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats li:last-child {
    border-right: none;
}

.stat-num {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    color: var(--c-brand);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
}

/* =========================================================
   Cards (Leistungen)
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--c-line);
    background: var(--c-bg-alt);
}

.card {
    padding: 36px 28px;
    border-right: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background .2s ease;
}

.card:last-child {
    border-right: none;
}

.card:hover {
    background: var(--c-brand-soft);
}

.card-num {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--c-brand);
    font-weight: 600;
}

.card h3 {
    margin: 4px 0 6px;
    color: var(--c-ink);
}

.card p {
    margin: 0;
    color: var(--c-ink-2);
    font-size: 0.97rem;
}

.pull-quote {
    margin: 0;
    padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 56px);
    border-left: 3px solid var(--c-brand);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 500;
    font-style: italic;
    color: var(--c-ink);
    line-height: 1.35;
    letter-spacing: -0.01em;
    max-width: 56ch;
}

.pull-quote::before {
    content: "„";
    color: var(--c-brand);
    margin-right: 4px;
}

.pull-quote::after {
    content: "\"";
    color: var(--c-brand);
}

/* =========================================================
   Contact (Objektankauf block + Kontakt)
   ========================================================= */
.contact-block {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #DDE6EC;
    transition: color .2s ease, padding-left .2s ease;
}

.contact-line:hover {
    color: #fff;
    padding-left: 6px;
}

.contact-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7FB6CE;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.info-list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--c-line);
}

.info-list>div {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-line);
}

.info-list dt {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-muted);
    font-weight: 600;
}

.info-list dd {
    margin: 0;
    color: var(--c-ink);
    font-weight: 500;
}

.info-list-wide {
    max-width: 720px;
}

/* Spalten-Titel (Kontakt / Impressum) */
.contact-col,
.impressum-card {
    display: flex;
    flex-direction: column;
}

.col-title {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-brand);
}

.col-sub {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: var(--c-muted);
}

/* Impressum-Karte (rechts neben Kontakt) */
.impressum-card {
    padding: clamp(28px, 4vw, 40px);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-line);
    border-top: 4px solid var(--c-brand);
    border-radius: var(--radius);
}

.impressum-card .info-list {
    border-top: 1px solid var(--c-line);
}

.impressum-card .info-list>div {
    padding: 12px 0;
}

.impressum-card .info-list dt {
    font-size: 0.72rem;
}

.impressum-card .info-list dd {
    font-size: 0.95rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--c-bg-dark);
    color: #B7C7CF;
    padding: 56px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.92);
}

.footer-brand p {
    margin: 0;
    color: #B7C7CF;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: flex-start;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.footer-nav a {
    color: #B7C7CF;
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-legal {
    grid-column: 1 / -1;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #7C8B95;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

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

    .stats li:nth-child(2) {
        border-right: none;
    }

    .stats li:nth-child(1),
    .stats li:nth-child(2) {
        border-bottom: 1px solid var(--c-line);
    }

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

    .cards .card:nth-child(2) {
        border-right: none;
    }

    .cards .card:nth-child(1),
    .cards .card:nth-child(2) {
        border-bottom: 1px solid var(--c-line);
    }

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

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    :root {
        --header-h: 68px;
    }

    body {
        font-size: 16px;
    }

    .nav-toggle-label {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-line);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .nav-toggle:checked~.site-nav {
        max-height: 360px;
    }

    .site-nav ul {
        flex-direction: column;
        padding: 12px var(--gutter);
        gap: 2px;
    }

    .site-nav a {
        display: block;
        padding: 12px 14px;
        border-radius: var(--radius);
    }

    .brand-sub {
        display: none;
    }

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

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

    .cards .card {
        border-right: none;
        border-bottom: 1px solid var(--c-line);
    }

    .cards .card:last-child {
        border-bottom: none;
    }

    .info-list>div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }
}

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

    .stats li {
        border-right: none !important;
        border-bottom: 1px solid var(--c-line);
    }

    .stats li:last-child {
        border-bottom: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
   Legal / Datenschutz
   ========================================================= */
.legal {
    font-size: 1rem;
    color: var(--c-ink);
}

.legal h2 {
    margin: 56px 0 16px;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    scroll-margin-top: var(--header-h);
}

.legal h2:first-child {
    margin-top: 0;
}

.legal h3 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
    color: var(--c-brand-deep);
    font-weight: 600;
}

.legal p {
    color: var(--c-ink-2);
    line-height: 1.7;
}

.legal ul {
    margin: 0 0 1em;
    padding: 0 0 0 1.2em;
    color: var(--c-ink-2);
}

.legal ul li {
    padding: 4px 0;
}

.legal code {
    background: var(--c-brand-soft);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.92em;
    color: var(--c-brand-deep);
}

.legal-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--c-line);
}