/* EndBau – Ingenieurgesellschaft mbH | Tiefbau
   Schlankes, professionelles Stylesheet. Eine Schriftfamilie (System),
   schwarze Buttons mit harten Kanten, Akzent Anthrazit/Stahlblau,
   nur dezente Hover-Übergänge. */

:root {
    --ink: #14181d;       /* Fast-Schwarz: Buttons, Header-Text */
    --steel: #34495e;     /* Anthrazit/Stahlblau: Akzent, Hero, Hover */
    --steel-dark: #283848;
    --bg: #ffffff;
    --surface: #f4f6f8;   /* helle Section-Bänder */
    --muted: #5b6570;     /* sekundärer Fließtext */
    --line: #e2e6ea;      /* Rahmen */
    --maxw: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

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

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

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

/* ---------- Buttons: schwarz, harte Kanten ---------- */
.btn {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: 0;
    padding: 13px 26px;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.btn:hover {
    background: var(--steel);
    border-color: var(--steel);
    color: #fff;
    text-decoration: none;
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}
.btn--ghost:hover {
    background: var(--ink);
    color: #fff;
}
.btn--light {
    background: #fff;
    color: var(--ink);
    border: 2px solid #fff;
}
.btn--light:hover {
    background: var(--steel-dark);
    border-color: var(--steel-dark);
    color: #fff;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand { display: flex; align-items: center; }
.brand img { width: 200px; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.main-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    border-bottom: 3px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover { color: var(--steel); text-decoration: none; }
.main-nav a.active {
    border-bottom-color: var(--steel);
    color: var(--steel);
}

/* ---------- Hero ---------- */
.hero {
    background: var(--steel);
    color: #fff;
}
.hero .container {
    padding-top: 72px;
    padding-bottom: 72px;
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 14px;
}
.hero h1 {
    font-size: 2.4rem;
    max-width: 18ch;
    margin-bottom: .4em;
}
.hero p {
    font-size: 1.15rem;
    max-width: 60ch;
    color: rgba(255, 255, 255, .9);
}
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.surface { background: var(--surface); }
.section-head { max-width: 70ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.lead { font-size: 1.15rem; }

/* ---------- Grids / Karten ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 26px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { font-weight: 600; }

/* Leistungsliste */
.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.service-list li {
    border-bottom: 1px solid var(--line);
    padding: 14px 8px 14px 22px;
    position: relative;
    font-weight: 600;
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 22px;
    width: 8px;
    height: 8px;
    background: var(--steel);
}

/* Stichpunktliste mit Häkchen-Quadrat */
.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    background: var(--steel);
}

/* ---------- Kontaktblock ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table th,
.info-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.info-table th {
    width: 130px;
    font-weight: 700;
    color: var(--muted);
}

/* ---------- Impressum ---------- */
.legal { max-width: 75ch; }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }
.legal h2:first-of-type { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .8);
    padding: 48px 0 28px;
    font-size: .95rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: 32px;
    padding-top: 18px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}
.footer-bottom a { color: rgba(255, 255, 255, .8); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero h1 { font-size: 1.9rem; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .service-list { grid-template-columns: 1fr; }
    .site-header .container { justify-content: center; }
    .brand img { width: 170px; }
    .main-nav ul { justify-content: center; }
    .hero .container { padding-top: 52px; padding-bottom: 52px; }
}
