/* Aufbau: weiße Kopfleiste mit Logo in Originalfarben, darunter die Verlaufsfläche
   (Bernstein → Rot) mit Einstieg, Leistungen als Karten, die in die Fläche ragen. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #fbfaf8;
  --flaeche: #ffffff;
  --linie: #ece8e3;
  --tinte: #17171a;
  --leise: #5f6370;
  --akzent: #b91c1c;
  --bernstein: #fbbf24;
  --rot: #dc2626;
  --verlauf: linear-gradient(120deg, #f59e0b 0%, #ea580c 38%, #c81e1e 100%);
  --fuss-grund: #17171a;
  --fuss-text: #b8bcc6;
  --logo-media: #b91c1c;
  --logo-zeile: 0.45;

  --schrift: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.fuss { margin-top: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: var(--akzent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--bernstein); outline-offset: 3px; border-radius: 4px; }

.innen {
  max-width: 72rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Kopfleiste */
.kopfleiste { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.logo { color: var(--tinte); line-height: 0; }
.logo svg { width: 14rem; height: auto; }
.kopf nav { display: flex; gap: 1.5rem; }
.kopf nav a { color: var(--leise); text-decoration: none; font-weight: 500; }
.kopf nav a:hover { color: var(--akzent); }

/* Verlaufsfläche mit Einstieg */
.band { background: var(--verlauf); color: #ffffff; position: relative; overflow: hidden; }
.band::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -4rem;
  width: 30rem;
  height: 30rem;
  background-image: radial-gradient(#ffffff38 22%, transparent 24%);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
  pointer-events: none;
}
.band .innen { position: relative; z-index: 1; }
.held { padding-block: 4rem 5.5rem; max-width: 44rem; }
.held h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
.held p { font-size: 1.25rem; margin-top: 1.25rem; max-width: 34rem; opacity: 0.92; }
.knopf {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--akzent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px #7f1d1d40;
}
.knopf:hover { background: #fff7ed; }

/* Leistungen */
.leistungen .innen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  padding-bottom: 4.5rem;
}
.leistung {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 10px 30px #1f12080f;
  min-width: 0;
}
.symbol {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bernstein), var(--rot));
  color: #ffffff;
}
.symbol svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leistung h2 { font-size: 1.3rem; font-weight: 700; }
.leistung p { color: var(--leise); }

/* Über uns und Kontakt */
.unten .innen { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; padding-block: 1rem 5rem; }
.unten .innen > div { min-width: 0; }
.unten h2 { font-size: 1.7rem; font-weight: 750; margin-bottom: 1rem; letter-spacing: -0.02em; }
.unten p { color: var(--leise); max-width: 36rem; }
.kontakt { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.5rem; }
.kontakt dt { color: var(--leise); }
.kontakt dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Rechtstexte */
.rechtstext .innen { max-width: 46rem; padding-block: 3.5rem 4.5rem; }
.rechtstext h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2rem; }
.rechtstext h2 { font-size: 1.2rem; font-weight: 700; margin: 2.25rem 0 0.6rem; }
.rechtstext p { margin: 0 0 1rem; }
.rechtstext address { font-style: normal; margin-bottom: 1rem; }

/* Fuß */
.fuss { background: var(--fuss-grund); color: var(--fuss-text); font-size: 0.9rem; }
.fuss .innen { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; }
.fuss nav { display: flex; gap: 1.25rem; }
.fuss a { color: #e5e7eb; }

@media (max-width: 52rem) {
  .leistungen .innen { grid-template-columns: minmax(0, 1fr); }
  .unten .innen { grid-template-columns: minmax(0, 1fr); }
}
