/* Compeer Haustechnik – Farbwelt angelehnt an compeer-gmbh.de (Navy #1f2e55, Akzent Rot #d83030) */
:root {
  --navy: #1f2e55;
  --navy-dark: #152040;
  --navy-deep: #0f1830;
  --petrol: #032e42;
  --red: #c62828;      /* etwas dunkler als #d83030 für Textkontrast auf Weiß */
  --red-bright: #d83030;
  --water: #2f7fb5;
  --text: #252628;
  --muted: #55595f;
  --line: #dfe3ea;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --radius: 10px;
  --max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* Kopfzeile */
.topbar { background: var(--navy); color: #fff; font-size: .875rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: flex-end; padding-top: .4rem; padding-bottom: .4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand img { width: 170px; height: auto; display: block; }
.brand-sub { margin-top: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--red); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-weight: 600; color: var(--navy); font-size: .95rem; }
.nav a:hover { color: var(--red); }
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-header { position: static; }
  .nav ul { justify-content: flex-start; }
  .brand img { width: 150px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--petrol) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: clamp(3.5rem, 10vw, 7rem); padding-bottom: clamp(3.5rem, 10vw, 7rem); }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #ffd2d2; margin-bottom: 1rem; }
.hero .claim { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 600; color: #e6ebf5; margin-bottom: 1.2rem; }
.hero .claim span { color: var(--red-bright); padding: 0 .25em; }
.hero p.lead { max-width: 40rem; color: #d5dceb; }
.hero-art { position: absolute; right: -60px; bottom: -40px; width: min(560px, 80vw); opacity: .18; z-index: 0; pointer-events: none; }
@media (min-width: 900px) { .hero-art { opacity: .32; right: 0; } }

.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #a91f1f; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Sektionen */
section { scroll-margin-top: 90px; }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--navy); }
.card:hover { border-top-color: var(--red); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; display: block; margin-bottom: 1rem; color: var(--navy); }
.icon .accent { color: var(--red-bright); }

/* Synergie */
.synergy { background: var(--navy); color: #e6ebf5; }
.synergy h2 { color: #fff; }
.synergy .kicker { color: #ffb3b3; }
.synergy .split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .synergy .split { grid-template-columns: 1.2fr 1fr; } }
.synergy ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.synergy li { margin-bottom: .4rem; }
.synergy a:not(.btn) { color: #fff; }
.synergy-art { max-width: 420px; width: 100%; margin: 0 auto; display: block; }

/* Ablauf */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.25rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1.25rem; top: 1.35rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* Kontakt */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-item h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-item a, .contact-item address { font-style: normal; font-size: 1.1rem; font-weight: 600; color: var(--navy); word-break: break-word; }
.contact-item .small { font-size: .9rem; font-weight: 400; color: var(--muted); margin-top: .5rem; }

/* Rechtstexte */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .1rem 1.5rem; margin: 0 0 1rem; }
.legal dt { font-weight: 700; color: var(--navy); }
.legal dd { margin: 0 0 .6rem; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 15rem 1fr; } .legal dd { margin: 0; } }
.legal address { font-style: normal; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3cbdc; font-size: .95rem; }
.site-footer .container { padding-top: 2.5rem; padding-bottom: 2rem; display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer .container { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer img { width: 150px; height: auto; display: block; margin-bottom: .5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3b3; }
.site-footer h2 { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1rem; padding-bottom: 1rem; font-size: .85rem; }
.footer-sub { color: #ffb3b3; font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
