/* Angebotsportal Musterbusiness Klimatechnik.
   Designsystem: Tannengrün, Stein und Abendlicht; Schrift Manrope,
   lokal eingebunden (kein CDN-Aufruf beim Besucher). */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/static/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;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/static/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;
}

:root {
    --fir: #24302B;        /* Primärfarbe, Buttons, Footer */
    --fir-dark: #1A231F;   /* Hover auf Primärflächen */
    --ink: #1F2623;        /* Fliesstext, Überschriften */
    --grey: #5E6862;       /* Sekundärtext */
    --stone: #EDEEEA;      /* Helle Flächen */
    --line: #D5D8D2;       /* Trennlinien */
    --dusk: #C2873A;       /* Akzent, sparsam */
    --white: #FFFFFF;
    --danger: #9B3024;
    --maxw: 1240px;
    --section: 128px;
}

* { box-sizing: border-box; }

/* hidden-Attribut gewinnt immer, auch gegen display: grid/flex. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

html, body { margin: 0; min-height: 100%; }

body {
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--ink);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--fir); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--dusk); }

h1, h2, h3 {
    color: var(--ink);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 300; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 300; line-height: 1.15; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 16px; }
.lead { font-size: 21px; color: var(--grey); font-weight: 300; }
.muted { color: var(--grey); }

/* Markenlinie über Überschriften */
.eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--dusk);
    width: fit-content;
    min-width: 64px;
}

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section) 0; }
.section-tight { padding: 72px 0; }
.section-stone { background: var(--stone); }
@media (max-width: 760px) {
    :root { --section: 72px; }
}

/* Kopfleiste */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
    color: var(--grey);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--dusk); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 20px;
        display: none;
    }
    .nav-open .nav { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Inhalt */
.site-main { flex: 1; }

/* Hero mit Angebot */
.offer-hero { padding: 64px 0 var(--section); }
.offer-hero h1 { margin-bottom: 8px; }
.offer-hero .intro { max-width: 720px; }

.offer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    margin-top: 48px;
}
@media (max-width: 980px) {
    .offer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Positionstabelle */
.positions { width: 100%; border-collapse: collapse; }
.positions caption {
    text-align: left;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--grey);
    padding-bottom: 12px;
}
.positions th {
    text-align: left;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--grey);
    font-weight: 600;
    padding: 0 0 10px 24px;
    border-bottom: 1px solid var(--line);
}
.positions th:first-child, .positions td:first-child { padding-left: 0; }
.positions td { padding: 18px 0 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.positions .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
    .positions th:nth-child(3), .positions td:nth-child(3) { display: none; }
}
.positions .pos-name { font-weight: 600; }
.positions .pos-desc { color: var(--grey); font-size: 15px; margin: 4px 0 0; }
.totals { margin-top: 20px; }
.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-variant-numeric: tabular-nums;
}
.totals-row.total {
    border-top: 2px solid var(--ink);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 24px;
    font-weight: 700;
}

/* Aktionskarte */
.sticky-card { position: sticky; top: 104px; }
@media (max-width: 980px) { .sticky-card { position: static; } }

.panel {
    background: var(--stone);
    border-radius: 4px;
    padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel-dark { background: var(--fir); color: var(--stone); }
.panel-dark h3 { color: var(--white); }

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.meta-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.meta-value { font-weight: 700; font-size: 18px; }

.price-big {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin: 0;
}
.price-note { font-size: 14px; color: var(--grey); margin: 4px 0 20px; }

.validity {
    font-size: 15px;
    padding: 12px 16px;
    background: var(--white);
    border-left: 3px solid var(--dusk);
    margin-bottom: 20px;
}
.validity-warn { border-left-color: var(--dusk); background: #FBF4E9; }
.validity-expired { border-left-color: var(--danger); background: #F9ECEA; color: var(--danger); }

/* Betreuerin */
.advisor { display: flex; gap: 16px; align-items: flex-start; }
.advisor-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    filter: grayscale(12%);
}
.advisor-name { font-weight: 600; margin: 0; }
.advisor-role { color: var(--grey); font-size: 14px; margin: 0 0 8px; }
.advisor-text { font-size: 15px; margin: 0; }
.panel-dark .advisor-text, .panel-dark .advisor-role { color: #C6CEC8; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid var(--fir);
    border-radius: 2px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--fir); color: var(--white); }
.btn-primary:hover { background: var(--fir-dark); border-color: var(--fir-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--fir); }
.btn-secondary:hover { background: var(--fir); color: var(--white); }
.btn-ghost { background: transparent; color: var(--grey); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--grey); color: var(--ink); background: transparent; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--dusk); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Werte-Streifen */
.values { background: var(--fir); color: var(--stone); }
.values-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
@media (max-width: 860px) { .values-inner { grid-template-columns: 1fr; gap: 32px; } }
.values h2 { color: var(--white); font-size: clamp(34px, 5vw, 58px); }
.values-lead { color: #C6CEC8; }
.values hr { border: 0; border-top: 1px solid rgba(255,255,255,.22); margin: 24px 0; }
.values h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.values p { color: #C6CEC8; }

/* Zahlenzeile */
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.fact { border-top: 1px solid var(--line); padding-top: 16px; }
.fact-number { font-size: 40px; font-weight: 300; line-height: 1.1; display: block; }
.fact-label { color: var(--grey); font-size: 15px; }

/* Zweispaltige Textblöcke */
.cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 64px;
    margin-top: 40px;
}
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 32px; } }
.col-item h3 { margin-bottom: 8px; }
.col-item p { color: var(--grey); margin: 0; }

/* Technik-Liste */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li {
    padding: 16px 0 16px 34px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    width: 18px;
    height: 2px;
    background: var(--dusk);
}

/* Zeitplan */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: step; }
.timeline li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline li::before {
    content: counter(step, decimal-leading-zero);
    font-size: 15px;
    font-weight: 600;
    color: var(--dusk);
    font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: 19px; margin-bottom: 4px; }
.timeline p { color: var(--grey); margin: 0; }
.timeline .when { color: var(--ink); font-weight: 600; }

/* Kundenstimmen */
.quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 64px;
    margin-top: 40px;
}
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote { padding: 28px 0; border-top: 1px solid var(--line); margin: 0; }
.quote blockquote { margin: 0; }
.quote-mark { color: var(--dusk); font-size: 32px; line-height: 1; display: block; margin-bottom: 6px; }
.quote p { margin: 0 0 16px; }
.quote-author { font-weight: 600; font-size: 15px; }
.quote-role { color: var(--grey); font-size: 14px; }

/* Annahme-Block */
.decision { background: var(--fir); color: var(--stone); }
.decision h2 { color: var(--white); }
.decision-lead { color: #C6CEC8; max-width: 620px; }
.decision-card {
    background: var(--white);
    color: var(--ink);
    border-radius: 4px;
    padding: 36px;
    max-width: 560px;
    margin-top: 40px;
}
.decision .price-big { color: var(--ink); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    background: var(--white);
    color: var(--ink);
}
.input:focus-visible { outline: 3px solid var(--dusk); outline-offset: 1px; border-color: var(--grey); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-bottom: 20px; }
.checkbox input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--fir); }
.form-error { color: var(--danger); font-size: 15px; margin-top: 12px; }
.form-hint { color: var(--grey); font-size: 14px; margin-top: 16px; }

.result {
    background: var(--stone);
    border-left: 3px solid var(--dusk);
    padding: 20px 24px;
    font-size: 16px;
}

/* Richtangebot: Vorbehalt des Aufmaßes */
.estimate-note { font-size: 14px; color: var(--grey); margin: -8px 0 16px; }
.estimate-box {
    background: #FBF4E9;
    border-left: 3px solid var(--dusk);
    padding: 16px 20px;
    font-size: 15px;
    margin-bottom: 20px;
}
.estimate-box strong { display: block; margin-bottom: 4px; color: var(--ink); }
.result strong { display: block; margin-bottom: 6px; }

/* PLZ-Gate */
.gate { min-height: 68vh; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.gate-card { max-width: 480px; width: 100%; text-align: center; }
.gate-card .advisor-photo { width: 84px; height: 84px; margin: 0 auto 20px; }
.gate-card h1 { font-size: clamp(30px, 4vw, 40px); }
.gate-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.gate-form .input { text-align: center; font-size: 20px; letter-spacing: .1em; }

/* Startseite */
.home { min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 24px; }
.home-logo { max-width: 460px; width: 76%; height: auto; }
.home p { color: var(--grey); margin-top: 20px; font-size: 19px; }

/* Rechtstexte */
.legal { max-width: 800px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.legal-meta { color: var(--grey); font-size: 15px; }
.legal-address, .legal-formbox {
    background: var(--stone);
    padding: 24px;
    border-radius: 4px;
    margin: 20px 0;
}
.legal-formbox p:last-child { margin-bottom: 0; }

/* Statusseiten */
.notice { max-width: 620px; padding: 64px 0; }

/* Fußzeile */
.site-footer { background: var(--fir); color: #A9B3AD; font-size: 15px; margin-top: auto; }
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { height: 40px; width: auto; margin-bottom: 20px; opacity: .92; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--dusk); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-bottom {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: 14px;
}
