/* Haustechnik Robin Mundt – statische Vorschaltseite
   Keine externen Schriften/Dienste (DSGVO-schlank). */

:root {
  --rot: #e03a3e;
  --rot-dunkel: #c22f33;
  --blau: #1d4b68;
  --blau-dunkel: #163a51;
  --karte: rgba(214, 223, 230, 0.92);
  --text-hell: #ffffff;
  --text-blau: #2a5878;
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text-blau);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rot); }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero / Startseite ---------- */

.hero {
  min-height: 100vh;
  background-color: var(--blau);
  background-image:
    linear-gradient(90deg, rgba(29, 75, 104, 0.95) 0%, rgba(29, 75, 104, 0.6) 55%, rgba(29, 75, 104, 0) 100%),
    url("assets/hintergrund.jpg");
  background-size: cover;
  background-position: center right;
  padding: 48px 0 96px;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
}

.headline {
  margin: 72px 0 32px;
  color: var(--rot);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.intro {
  max-width: 860px;
  color: var(--text-hell);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  margin: 0 0 64px;
}

.karten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 32px;
}

.karte {
  background: var(--karte);
  border-top: 5px solid var(--rot);
  padding: 32px 30px 30px;
}

.karte svg {
  width: 42px;
  height: 42px;
  stroke: var(--rot);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.karte h2 {
  margin: 28px 0 12px;
  color: var(--rot);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1.2;
}

.karte p {
  margin: 0 0 24px;
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rot);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.05rem;
  padding: 10px 26px;
  transition: background 0.2s;
}

.button:hover,
.button:focus-visible { background: var(--rot-dunkel); }

.button svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  margin: 0;
}

/* ---------- Unterseiten ---------- */

.kopf {
  background: var(--blau);
  padding: 28px 0;
}

.kopf img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.inhalt {
  padding-top: 56px;
  padding-bottom: 80px;
}

.inhalt > * { max-width: 860px; }

.inhalt h1 {
  color: var(--rot);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin: 0 0 32px;
  hyphens: auto;
}

.inhalt h2 {
  color: var(--blau);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 40px 0 12px;
  hyphens: auto;
}

.inhalt h3 {
  color: var(--blau);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.inhalt h4 {
  color: var(--blau);
  font-weight: 600;
  font-size: 1rem;
  margin: 20px 0 6px;
}

.inhalt p, .inhalt li {
  color: #33424d;
  font-weight: 400;
}

/* ---------- Footer ---------- */

.fuss {
  background: #fff;
  padding: 36px 0;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 52px;
}

.fuss a {
  color: var(--text-blau);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.fuss a:hover,
.fuss a[aria-current="page"] { color: var(--rot); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .karten { grid-template-columns: 1fr; max-width: 460px; }
  .hero {
    background-image:
      linear-gradient(rgba(29, 75, 104, 0.88), rgba(29, 75, 104, 0.88)),
      url("assets/hintergrund.jpg");
  }
  .headline { margin-top: 48px; }
}
