/* UL-SERVICE – Jochen Ritter
   Farben aus dem bestehenden Logo abgenommen: Blau #143E57, Papier #F3F3EF */

:root {
  --blau: #143e57;
  --blau-hell: #2b6286;
  --papier: #f3f3ef;
  --weiss: #fbfbf9;
  --text: #22272b;
  --grau: #5d6670;
  --linie: #d9dad3;
  --breite: 62rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--blau-hell); }
a:hover { color: var(--blau); }

/* ---------- Kopf ---------- */

header {
  background: var(--blau);
  color: var(--weiss);
  padding: 2rem 0 0;
}

.kopfzeile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.logo-grafik {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: auto;
  margin-bottom: 0.75rem;
}

.wortmarke {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
  color: var(--weiss);
}

.wortmarke span { font-weight: 300; }

.inhaber {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero { padding: 3.5rem 0 4rem; }

.hero h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1.25rem;
  max-width: 34ch;
  color: var(--weiss);
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

/* ---------- Abschnitte ---------- */

main { padding: 0 0 1rem; }

section { padding: 3.5rem 0; border-bottom: 1px solid var(--linie); }
section:last-of-type { border-bottom: 0; }

h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blau);
  margin: 0 0 1.75rem;
}

.leistungen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem 2.5rem;
}

.leistung h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--blau);
}

.leistung p { margin: 0; color: var(--grau); font-size: 0.97rem; }

/* ---------- Galerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.75rem 1.5rem;
}

.galerie figure { margin: 0; }

/* Breite Dokumente über die volle Rasterbreite, ohne Beschnitt */
.galerie figure.breit { grid-column: 1 / -1; }
.galerie figure.breit a { background: #fff; }
.galerie figure.breit img { aspect-ratio: auto; object-fit: contain; }

.galerie a {
  display: block;
  overflow: hidden;
  background: #e4e5df;
  border: 1px solid var(--linie);
}

.galerie img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.galerie a:hover img { transform: scale(1.04); }

.galerie figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--grau);
}

/* ---------- Produktabschnitt ---------- */

section.hervorgehoben {
  background: var(--weiss);
  border-top: 1px solid var(--linie);
}

.produkt {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: start;
}

.produkt-marke img {
  display: block;
  width: 100%;
  height: auto;
}

.produkt-text h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blau);
  margin: 0 0 0.75rem;
}

.produkt-text p { margin: 0 0 0.9rem; color: var(--grau); }
.produkt-text p:last-child { margin-bottom: 0; }

.zweispaltig {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
}

.zweispaltig p:first-child { margin-top: 0; }

ul.referenzen { list-style: none; margin: 0; padding: 0; }

ul.referenzen li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--linie);
  font-size: 0.97rem;
}

ul.referenzen li:last-child { border-bottom: 1px solid var(--linie); }

ul.referenzen strong { color: var(--blau); font-weight: 600; }

/* ---------- Kontakt ---------- */

.kontakt-karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  padding: 2rem;
}

.kontakt-karte dl { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem 1rem; }
.kontakt-karte dt { color: var(--grau); font-size: 0.9rem; }
.kontakt-karte dd { margin: 0; }

/* ---------- Fuß ---------- */

footer {
  background: var(--blau);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

footer a { color: rgba(255, 255, 255, 0.92); text-decoration: none; }
footer a:hover { text-decoration: underline; color: #fff; }

.fusszeile { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: space-between; }

/* ---------- Rechtstexte ---------- */

.rechtstext { padding: 3rem 0 4rem; max-width: 46rem; }
.rechtstext h1 { font-size: 1.8rem; color: var(--blau); margin: 0 0 2rem; }
.rechtstext h2 { font-size: 1.15rem; color: var(--blau); margin: 2.25rem 0 0.6rem; }
.rechtstext p, .rechtstext li { font-size: 0.97rem; }
.rechtstext address { font-style: normal; }
.zurueck { display: inline-block; margin-bottom: 2rem; font-size: 0.9rem; }

@media (max-width: 42rem) {
  .zweispaltig { grid-template-columns: 1fr; }
  .produkt { grid-template-columns: 1fr; gap: 1.5rem; }
  .produkt-marke img { max-width: 15rem; }
  .logo-grafik { max-width: 15rem; }
  .kontakt-karte dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .kontakt-karte dd { margin-bottom: 0.8rem; }
  section { padding: 2.75rem 0; }
}
