:root {
    --ink: #10202b;
    --muted: #5c6b76;
    --line: #d8e1e7;
    --surface: #ffffff;
    --soft: #eef5f6;
    --blue: #1167a8;
    --blue-dark: #0a4777;
    --teal: #0f8c8c;
    --amber: #f3b23b;
    --danger: #cf3d2e;
    --shadow: 0 24px 60px rgba(10, 36, 54, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #f7fafb;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(216, 225, 231, 0.8);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.brand-logo {
    display: block;
    width: 148px;
    height: auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(17, 103, 168, 0.18);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--muted);
    font-size: 15px;
}

nav a:hover {
    color: var(--blue-dark);
}

.header-call {
    display: inline-flex;
    justify-content: center;
    padding: 11px 16px;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    background: var(--danger);
    border-radius: 8px;
}

.hero {
    min-height: 720px;
    display: flex;
    align-items: stretch;
    background:
        linear-gradient(90deg, rgba(7, 27, 42, 0.88) 0%, rgba(8, 43, 62, 0.78) 46%, rgba(8, 43, 62, 0.24) 100%),
        url("assets/hero-brandsanierung.webp") center right / cover;
}

.hero-inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 84px 0 54px;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(280px, 360px);
    align-items: end;
    gap: 36px;
}

.hero-copy {
    color: #fff;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.2;
}

.lead {
    max-width: 650px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.hero-actions,
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    color: #fff;
    background: var(--danger);
    box-shadow: 0 14px 30px rgba(207, 61, 46, 0.28);
}

.button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.trust-row {
    margin: 28px 0 0;
}

.trust-row div {
    min-width: 150px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.trust-row dt {
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    text-transform: uppercase;
}

.trust-row dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.emergency-card {
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.emergency-card strong {
    display: block;
    margin: 10px 0;
    font-size: 24px;
}

.emergency-card p {
    color: var(--muted);
}

.emergency-card a,
.phone-large {
    display: inline-flex;
    color: var(--danger);
    font-size: 28px;
    font-weight: 900;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #2abf6f;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(42, 191, 111, 0.14);
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 78px 0;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.intro p:last-child {
    color: var(--muted);
    font-size: 20px;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 0;
}

.services article {
    min-height: 260px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #d8e1e7;
}

.service-body {
    padding: 22px 24px 26px;
}

.services span {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--teal);
    font-weight: 900;
}

.services p,
.local-panel p,
.faq p {
    color: var(--muted);
}

.service-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--blue-dark);
    font-weight: 900;
}

.subhero {
    padding: 74px max(18px, calc((100vw - 1180px) / 2));
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 27, 42, 0.9) 0%, rgba(8, 43, 62, 0.74) 60%, rgba(8, 43, 62, 0.38) 100%),
        url("assets/hero-brandsanierung.webp") center right / cover;
}

.subhero-inner {
    max-width: 820px;
}

.subhero h1 {
    margin-bottom: 16px;
}

.subhero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 42px;
    align-items: start;
}

.content-grid p,
.content-grid li {
    color: var(--muted);
}

.content-grid ul {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding-left: 20px;
}

.info-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(14, 46, 67, 0.08);
}

.info-panel img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 22px;
    border-radius: 8px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.related-links a {
    padding: 10px 13px;
    color: var(--blue-dark);
    font-weight: 900;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 38px;
    align-items: stretch;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding: 18px 20px;
    background: #fff;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
}

.local-panel {
    padding: 32px;
    color: #fff;
    background:
        linear-gradient(150deg, rgba(17, 103, 168, 0.96), rgba(15, 140, 140, 0.9)),
        radial-gradient(circle at 80% 10%, rgba(243, 178, 59, 0.35), transparent 36%);
    border-radius: 8px;
}

.local-panel p {
    color: rgba(255, 255, 255, 0.84);
}

.local-panel a {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 16px;
    color: var(--ink);
    font-weight: 900;
    background: #fff;
    border-radius: 8px;
}

.insurance {
    width: 100%;
    max-width: none;
    padding: 74px max(18px, calc((100vw - 1180px) / 2));
    background: #fff;
}

.insurance-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 42px;
    align-items: center;
}

.insurance-card {
    padding: 28px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.insurance-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.insurance-list li {
    padding: 14px 16px;
    background: #fff;
    border-left: 4px solid var(--teal);
    border-radius: 8px;
}

.contact-band {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 44px;
    align-items: start;
    width: 100%;
    max-width: none;
    padding: 76px max(18px, calc((100vw - 1180px) / 2));
    background: var(--soft);
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(14, 46, 67, 0.08);
}

.lead-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.lead-form label:nth-of-type(5),
.lead-form label:nth-of-type(6),
.lead-form button,
.privacy-note,
.form-success,
.form-error {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    border: 1px solid #cfdbe2;
    border-radius: 8px;
    background: #fff;
}

textarea {
    resize: vertical;
}

.form-success,
.form-error {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.form-success {
    color: #115833;
    background: #dff4e8;
}

.form-error {
    color: #84251c;
    background: #f8dfdc;
}

.privacy-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.privacy-note a {
    color: var(--blue-dark);
    font-weight: 800;
}

.faq {
    max-width: 900px;
}

.legal-page {
    max-width: 920px;
}

.legal-page h1 {
    color: var(--ink);
    font-size: clamp(38px, 5vw, 62px);
}

.legal-page h2 {
    margin-top: 34px;
    font-size: 24px;
}

.legal-page p {
    color: var(--muted);
}

.legal-page a {
    color: var(--blue-dark);
    font-weight: 800;
}

details {
    margin-top: 12px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

summary {
    font-weight: 900;
    cursor: pointer;
}

details p {
    margin: 12px 0 0;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 34px clamp(18px, 4vw, 56px);
    color: rgba(255, 255, 255, 0.78);
    background: #0d1d27;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    text-align: right;
}

.site-footer strong,
.site-footer span,
.site-footer a,
.site-footer small {
    display: block;
}

.site-footer a {
    font-weight: 800;
}

.site-footer small {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .header-call {
        width: 100%;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner,
    .intro,
    .split,
    .content-grid,
    .insurance-inner,
    .contact-band,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding-top: 58px;
    }

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

    .site-footer a {
        text-align: left;
    }

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

@media (max-width: 620px) {
    h1 {
        font-size: 40px;
    }

    .services,
    .lead-form {
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .header-call {
        width: 100%;
    }

    .phone-large,
    .emergency-card a {
        font-size: 24px;
    }
}
