/* ============================================================
   Petrovic Dach-Holz-Bau — Redesign 2026
   ============================================================ */

:root {
    --ink: #16191e;
    --body: #414852;
    --muted: #7d8694;
    --line: #e5e1db;
    --soft: #f7f5f1;
    --red: #b01218;
    --red-dark: #8b0d12;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(18, 22, 28, .10);
    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
    padding: 12px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.05em; }

.kicker {
    display: inline-block;
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
}
.kicker-light { color: #ffb4b8; }
.hero .kicker { color: #ffb4b8; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; }

.link-arrow { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link-arrow:hover { text-decoration: none; color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 650;
    font-size: .95rem;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(176, 18, 24, .28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f2f2f2; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-text { color: var(--red); font-weight: 600; font-size: .9rem; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--ink);
    color: #cfd4dc;
    font-size: .82rem;
    letter-spacing: .01em;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #e8ebf0; }
.topbar a:hover { color: #fff; }
.topbar .dot { margin: 0 8px; color: #6b7280; }
.topbar-hours { color: #9aa3b1; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--red);
    border-bottom: 1px solid rgba(0,0,0,.12);
    transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(16, 20, 26, .08); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 94px; }

.brand { display: flex; align-items: center; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 208px; height: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: 10px 11px; border-radius: 8px; white-space: nowrap;
    color: #fbe9ea; font-size: .93rem; font-weight: 550;
}
.main-nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; color: #fff; }
.main-nav .current > a { color: #fff; box-shadow: inset 0 -2px 0 #fff; border-radius: 8px 8px 0 0; }
.header-cta { flex: 0 0 auto; }
.site-header .btn-primary { background: #fff; color: var(--red); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.site-header .btn-primary:hover { background: #ffecec; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px;
    background: transparent; cursor: pointer; padding: 12px 10px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #12151a; color: #fff; }
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 60%;
    transform: scale(1.02);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 75% 95% at 50% 42%, rgba(9,11,15,.45) 0%, rgba(9,11,15,.84) 100%), linear-gradient(0deg, rgba(9,11,15,.5), rgba(9,11,15,.02) 60%);
}
.hero-inner { position: relative; padding: 110px 24px 120px; max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-lead { color: #d7dbe2; font-size: 1.12rem; max-width: 620px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; justify-content: center; }

/* ---------- USP ---------- */
.usp-strip { background: var(--soft); border-bottom: 1px solid var(--line); }
.usp-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--line);
}
.usp { background: var(--soft); padding: 26px 22px; display: flex; flex-direction: column; gap: 4px; }
.usp strong { color: var(--ink); font-size: .98rem; font-weight: 700; }
.usp span { color: var(--muted); font-size: .85rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-more { margin: 30px 0 0; }

/* ---------- Home intro ---------- */
.intro-grid { display: block; }
.intro-text { max-width: 980px; }
.home-content > p:first-of-type { font-size: 1.12rem; color: var(--ink); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; color: var(--body); transition: .18s ease;
}
.service-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { display: inline-flex; color: var(--red); margin-bottom: 16px; }
.service-icon svg { display: block; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; margin: 0 0 22px; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 10px; height: 10px; border-radius: 3px; background: var(--red);
}

/* ---------- Jobs band ---------- */
.jobs-band { background: var(--ink); color: #dfe3e9; padding: 64px 0; }
.jobs-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.jobs-band h2 { color: #fff; margin-bottom: 8px; }
.jobs-band p { color: #aab2bf; margin: 0; max-width: 560px; }

/* ---------- CTA ---------- */
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 9px; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.cta-phone .ico-phone { width: 19px; height: 19px; color: var(--red); }
.topbar-link { display: inline-flex; align-items: center; gap: 7px; }
.topbar-link .ico-phone { width: 13px; height: 13px; opacity: .8; }
.footer-phone { display: inline-flex; align-items: center; gap: 7px; }
.footer-phone .ico-phone { width: 13px; height: 13px; opacity: .8; }

/* ---------- Page head ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head .kicker { margin-bottom: 10px; }
.page-head h1 { margin: 0; }

/* ---------- Content ---------- */
.content-wrap { max-width: 900px; }
.entry-content { font-size: 1rem; }
.entry-content h2 {
    margin: 2em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid var(--line);
    font-size: 1.5rem;
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { clear: both; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content img { border-radius: 10px; }
.entry-content img.alignleft, .entry-content img.home-image { float: left; margin: 6px 28px 16px 0; }
.entry-content h2.stellenangebot { color: var(--red); border-bottom: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.home-content img.home-image { width: 46%; max-height: 430px; object-fit: cover; }
.home-content::after { content: ""; display: block; clear: both; }
.home-content h2 { border-bottom: 0; }

.banner-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 28px; }
.banner-split img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); }
.page-banner img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }

ul.chronik { list-style: none; padding: 0; margin: 0 0 1.6em; }
ul.chronik li { display: flex; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.chronik .year { flex: 0 0 62px; font-weight: 700; color: var(--red); }
ul.chronik .what { color: var(--body); }
p.job { margin: 0 0 6px; padding-left: 18px; position: relative; font-weight: 600; color: var(--ink); }
p.job::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- Leistungen ---------- */
.leistungen-intro { margin-bottom: 34px; }
.speciality-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.speciality-item { display: flex; }
.speciality-icon {
    width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 22px 24px; text-align: left; display: flex; flex-direction: column;
    transition: .18s ease;
}
.speciality-item:hover .speciality-icon { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.speciality-icon img { height: 58px; width: auto; margin-bottom: 18px; object-fit: contain; }
.speciality-icon h3 { font-size: 1.02rem; margin-bottom: 6px; }
.speciality-icon .btn-text { margin-top: auto; }

.speciality-modal {
    position: fixed; inset: 0; z-index: 900; background: rgba(10,12,16,.66);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    backdrop-filter: blur(3px);
}
.speciality-modal[hidden] { display: none; }
.modal-inner {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 720px;
    max-height: 86vh; overflow: auto; padding: 36px 38px; position: relative; box-shadow: var(--shadow);
}
.modal-inner h3 { font-size: 1.5rem; margin-bottom: 14px; }
.modal-inner .modal-text p { font-size: .98rem; }
.modal-image img { border-radius: 10px; max-width: 360px; margin: 16px 0 0; }
.modal-close {
    position: absolute; top: 10px; right: 14px; background: none; border: 0;
    font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }

/* ---------- Partner ---------- */
.partner-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.partner-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 18px; text-align: center; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px; min-height: 150px;
    transition: .18s ease;
}
.partner-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-item img { max-height: 74px; width: auto; }
.partner-item .part-link { font-size: .78rem; color: var(--muted); }

/* ---------- Referenzen ---------- */
.referenzen-brand { border-bottom: 1px solid var(--line); }
.referenzen-brand summary {
    list-style: none; cursor: pointer; padding: 18px 4px; font-size: 1.05rem;
    font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 12px;
}
.referenzen-brand summary::-webkit-details-marker { display: none; }
.referenzen-brand summary::before {
    content: "+"; width: 26px; height: 26px; border-radius: 50%;
    background: var(--soft); color: var(--red); display: inline-flex;
    align-items: center; justify-content: center; font-weight: 700; flex: 0 0 26px;
}
.referenzen-brand[open] summary::before { content: "–"; }
.referenzen-brand .brand-body { padding: 0 0 26px 38px; }
.referenzen-product { margin-bottom: 20px; }
.referenzen-product h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.referenzen-product ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 30px; }
.referenzen-product li { font-size: .92rem; padding: 3px 0; break-inside: avoid; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { margin-top: 0; }
.contact-form-wrap {
    background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 34px 30px;
}
.contact-form-wrap h2 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form-wrap .muted { font-size: .9rem; margin-bottom: 22px; }

.kontakt-form fieldset { border: 0; margin: 0; padding: 0; }
.kontakt-form .field { margin: 0 0 16px; }
.kontakt-form label.form-label, .kontakt-form label.left {
    display: block; float: none; width: auto; margin: 0 0 6px;
    font-size: .82rem; font-weight: 600; color: var(--ink);
}
.kontakt-form .middleColumn { margin: 0 !important; width: 100%; }
.kontakt-form input.text, .kontakt-form input.email, .kontakt-form select, .kontakt-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #d8d4cd; border-radius: 10px;
    background: #fff; font-family: inherit; font-size: .95rem; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.kontakt-form input:focus, .kontakt-form select:focus, .kontakt-form textarea:focus {
    outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(176,18,24,.12);
}
.kontakt-form textarea { min-height: 120px; resize: vertical; }
.kontakt-form .btn, .kontakt-form input[type=submit] { width: 100%; margin-top: 6px; }
.kontakt-form .message.good { background: #eef7ee; border: 1px solid #bfdcbf; border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.kontakt-form .message.bad { background: #fdeeee; border: 1px solid #e6bcbc; border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.kontakt-form .form-error { color: var(--red); font-size: .82rem; }

/* ---------- Footer ---------- */
.site-footer { background: #101318; color: #9aa3b0; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .9fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: .9rem; color: #8d96a3; max-width: 300px; margin-top: 18px; }
.footer-logo { width: 190px; opacity: .95; }
.footer-col h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col p { font-size: .9rem; margin: 0 0 10px; }
.footer-col a { color: #c9d0da; }
.footer-col a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid #222831; }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 18px 0; font-size: .8rem; color: #77808d; }
.footer-legal a { color: #9aa3b0; margin-left: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .speciality-wrap { grid-template-columns: repeat(2, 1fr); }
    .partner-wrap { grid-template-columns: repeat(3, 1fr); }
    .about-grid { gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .topbar-hours { display: none; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px; display: none; box-shadow: 0 20px 30px rgba(10,12,16,.08);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 12px 10px; font-size: 1rem; color: var(--ink); }
    .main-nav a:hover { background: var(--soft); color: var(--red); }
    .main-nav .current > a { color: var(--red); box-shadow: none; }
    .nav-toggle { display: block; }
    .header-cta { display: none; }
    .header-inner { position: relative; min-height: 80px; }
    .brand-logo { width: 190px; }
    .hero-inner { padding: 72px 24px 80px; }
    .usp-grid { grid-template-columns: 1fr 1fr; }
    .cta-grid, .jobs-inner { flex-direction: column; align-items: flex-start; }
    .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-grid { grid-template-columns: 1fr; }
    .referenzen-product ul { columns: 2; }
}

@media (max-width: 620px) {
    .section { padding: 52px 0; }
    .service-grid, .speciality-wrap, .partner-wrap { grid-template-columns: 1fr; }
    .banner-split { grid-template-columns: 1fr; }
    .banner-split img { height: 220px; }
    .home-content img.home-image { float: none; width: 100%; margin: 0 0 20px; }
    .entry-content img.alignleft { float: none; margin: 0 0 18px; }
    .usp-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; }
    .footer-legal a { margin: 0 16px 0 0; }
    .contact-form-wrap { padding: 24px 20px; }
    .modal-inner { padding: 26px 22px; }
    ul.chronik li { flex-direction: column; gap: 2px; }
    .referenzen-product ul { columns: 1; }
    .hero-actions .btn { width: 100%; }
}
