:root {
  --rot: #e2231a;
  --rot-dunkel: #b3170f;
  --rot-tint: #fdf0ef;
  --anthrazit: #1f2328;
  --grau: #5c6570;
  --grau-hell: #646d78;
  --linie: #e6e8eb;
  --flaeche: #f6f7f8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--anthrazit);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: 5px;
  background: var(--rot);
}

/* ---------- Fußzeile (alle Seiten) ---------- */

footer {
  border-top: 1px solid var(--linie);
  padding: 22px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--grau-hell);
}

footer a {
  color: var(--grau);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible { color: var(--rot-dunkel); }

/* ---------- Startseite / Baustellenseite ---------- */

main.start {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}

.inner {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto 40px;
  display: block;
}

.dachlinie {
  display: block;
  width: 140px;
  height: 14px;
  margin: 0 auto 32px;
}

.dachlinie polyline {
  fill: none;
  stroke: var(--rot);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  display: inline-block;
  background: var(--rot-tint);
  color: var(--rot-dunkel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.inner h1 {
  font-size: clamp(25px, 4.6vw, 34px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.lead {
  color: var(--grau);
  font-size: 17px;
  max-width: 470px;
  margin: 0 auto 40px;
}

.leistungen {
  font-size: 14px;
  font-weight: 500;
  color: var(--grau);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 2;
}

.leistungen span { white-space: nowrap; }

.leistungen b {
  color: var(--rot);
  font-weight: 700;
  margin: 0 5px;
}

.kontakt {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 8px 4px;
  text-align: left;
}

.kontakt a,
.kontakt .zeile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--anthrazit);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.kontakt a + a,
.kontakt a + .zeile { box-shadow: 0 -1px 0 0 var(--linie); }

.kontakt a:hover,
.kontakt a:focus-visible {
  background: #fff;
  color: var(--rot-dunkel);
}

.kontakt a:focus-visible {
  outline: 2px solid var(--rot);
  outline-offset: -2px;
}

.kontakt .zeile {
  font-weight: 400;
  color: var(--grau);
  font-size: 15px;
}

.ikon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rot-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ikon svg {
  width: 17px;
  height: 17px;
  stroke: var(--rot);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--grau-hell);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.kopf {
  border-bottom: 1px solid var(--linie);
  padding: 22px 24px;
}

.kopf-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.zurueck {
  font-size: 14px;
  font-weight: 500;
  color: var(--grau);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.zurueck:hover,
.zurueck:focus-visible { color: var(--rot-dunkel); }

.zurueck svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main.recht {
  flex: 1;
  padding: 56px 24px 72px;
}

article {
  max-width: 760px;
  margin: 0 auto;
}

article h1 {
  font-size: clamp(27px, 4.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 12px;
}

article .h1-linie {
  width: 56px;
  height: 3px;
  background: var(--rot);
  border-radius: 2px;
  margin-bottom: 44px;
}

article h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--rot);
}

article h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--grau-hell);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 32px 0 10px;
}

article p {
  font-size: 16px;
  color: var(--grau);
  margin-bottom: 16px;
}

article ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

article ul li {
  font-size: 16px;
  color: var(--grau);
  padding-left: 22px;
  margin-bottom: 9px;
  position: relative;
}

article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rot);
}

article a {
  color: var(--rot-dunkel);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

article a:hover { text-decoration: none; }

.datenblock {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.datenblock p { margin-bottom: 4px; }
.datenblock p:last-child { margin-bottom: 0; }
.datenblock strong { color: var(--anthrazit); font-weight: 600; }

.hinweis {
  font-size: 14px;
  color: var(--grau-hell);
  border-top: 1px solid var(--linie);
  margin-top: 48px;
  padding-top: 20px;
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 560px) {
  main.start { padding: 40px 18px; }
  .logo { max-width: 250px; margin-bottom: 32px; }
  .lead { font-size: 16px; }
  .kontakt a, .kontakt .zeile { padding: 14px 16px; gap: 12px; }

  main.recht { padding: 40px 18px 56px; }
  .kopf { padding: 16px 18px; }
  .kopf img { max-width: 150px; }
  .kopf-inner { gap: 12px; }
  .datenblock { padding: 18px 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .inner > * { animation: auf 0.5s ease both; }
  .inner > *:nth-child(2) { animation-delay: 0.06s; }
  .inner > *:nth-child(3) { animation-delay: 0.10s; }
  .inner > *:nth-child(4) { animation-delay: 0.14s; }
  .inner > *:nth-child(5) { animation-delay: 0.18s; }
  .inner > *:nth-child(6) { animation-delay: 0.22s; }
  .inner > *:nth-child(7) { animation-delay: 0.26s; }
  @keyframes auf {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
