/* Demo Bauunternehmen. Gründe für Farben, Schrift und Form in DESIGN.md. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../schriften/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../schriften/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../schriften/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../schriften/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../schriften/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --himmel: #cfe6f4;
  --himmel-oben: #b6d4ea;
  --orange: #f26a1b;
  --tinte: #1c1914;
  --beton: #ece9e3;
  --grau: #57524a;
  --grau-hell: #bdb6aa;
  --weiss: #ffffff;
  --linie: rgba(28, 25, 20, 0.22);

  --schrift-schmal: "Barlow Condensed", "Arial Narrow", sans-serif;
  --schrift: "Barlow", Arial, sans-serif;

  --rand: clamp(1rem, 4vw, 3rem);
  --abschnitt: clamp(4rem, 9vw, 8rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--schrift-schmal);
  font-weight: 700;
  line-height: 0.95;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.05;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 3px;
}

.breite {
  width: min(100% - 2 * var(--rand), 82rem);
  margin-inline: auto;
}

.sprungmarke {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--tinte);
  color: var(--weiss);
}

.sprungmarke:focus {
  top: 1rem;
}

.demo-hinweis {
  padding: 0.6rem var(--rand);
  background: var(--tinte);
  color: var(--weiss);
  font-size: 0.875rem;
  text-align: center;
}

/* Vorzeile mit Maßkette: eine Linie mit zwei Endstrichen wie auf einem
   Bauplan. Das wiederkehrende Motiv der Seite. */
.vorzeile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--schrift-schmal);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.masskette {
  flex: 0 0 4.5rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right center / 2px 100% no-repeat;
}

/* Knöpfe: eckig wie die Vorlage. Orange ist nur Fläche, die Schrift darauf
   bleibt dunkel (5,7 : 1). */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--tinte);
  font-family: var(--schrift-schmal);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.knopf--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--tinte);
}

.knopf--orange:hover {
  background: var(--tinte);
  border-color: var(--tinte);
  color: var(--weiss);
}

.knopf--rahmen {
  background: transparent;
  color: var(--tinte);
}

.knopf--rahmen:hover {
  background: var(--tinte);
  color: var(--weiss);
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--schrift-schmal);
  font-size: 1.1875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.textlink:hover {
  text-decoration-color: var(--orange);
}

/* Kopf */

.himmel {
  background: linear-gradient(180deg, var(--himmel-oben) 0%, var(--himmel) 60%);
}

.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--linie);
}

.marke {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--schrift-schmal);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.marke__bau {
  margin-left: 0.3rem;
  padding: 0.1rem 0.35rem;
  background: var(--orange);
  color: var(--tinte);
}

.menue-knopf {
  display: none;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--tinte);
  background: transparent;
  color: var(--tinte);
  font-family: var(--schrift-schmal);
  font-size: 1.1875rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.navigation ul {
  display: flex;
  gap: clamp(0.5rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation ul a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-family: var(--schrift-schmal);
  font-size: 1.1875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.navigation ul a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* Einstieg: Das Foto steht rechts und läuft nach links in den Himmel aus.
   Es reicht bis unter die Karten, die darüber liegen. */

main {
  position: relative;
}

.einstieg__foto {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.einstieg__text {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
}

.einstieg h1 {
  font-size: clamp(3.5rem, 7.2vw, 7.5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.einstieg__einleitung {
  max-width: 30rem;
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  font-weight: 500;
}

.einstieg__aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

/* Karten am Fuß des Einstiegs. Der Schatten zeigt, dass sie über dem Foto
   liegen; sonst hat nichts auf der Seite einen Schatten. */

.karten {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 33rem) minmax(0, 1fr) minmax(0, 22rem);
  align-items: end;
  gap: 1.5rem;
  margin-top: -6rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.karte {
  background: var(--weiss);
  box-shadow: 0 18px 40px -18px rgba(28, 25, 20, 0.45);
}

.karte--quer {
  display: grid;
  grid-template-columns: 2fr 3fr;
}

.karte--quer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.karte--hoch {
  grid-column: 3;
}

.karte--hoch img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 15%;
}

.karte__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem 1rem;
}

.karte__titel {
  font-size: 1.75rem;
  text-transform: uppercase;
}

.karte__text p {
  color: var(--grau);
  font-size: 1rem;
  line-height: 1.5;
}

/* Kopfzeile der Abschnitte: Überschrift links, Einleitung rechts unten. */

.kopfzeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.kopfzeile__text {
  color: var(--grau);
}

.kopfzeile--dunkel .kopfzeile__text {
  color: var(--grau-hell);
}

/* Leistungen: Neubau als Hauptgeschäft groß, die drei anderen kleiner. */

.leistungen {
  padding-block: var(--abschnitt);
  background: var(--beton);
}

.nummer {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--orange);
  color: var(--tinte);
  font-family: var(--schrift-schmal);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.leistung-gross {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--weiss);
}

.leistung-gross img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.leistung-gross__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.leistung-gross h3 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  text-transform: uppercase;
}

.leistung-gross__text > p:not(.nummer) {
  color: var(--grau);
}

.liste {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.liste li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
}

.liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.75rem;
  height: 2px;
  background: var(--tinte);
}

.leistungen__weitere {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.leistung {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.leistung img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.leistung .nummer {
  margin-top: -1.9rem;
  margin-left: 1rem;
  position: relative;
}

.leistung p:not(.nummer) {
  color: var(--grau);
}

/* Festpreis: breites Foto, eine weiße Karte darauf. */

.festpreis {
  position: relative;
  background: var(--beton);
}

.festpreis__foto {
  width: 100%;
  height: clamp(26rem, 48vw, 44rem);
  object-fit: cover;
  object-position: 50% 60%;
}

.festpreis__karte {
  position: absolute;
  left: max(var(--rand), (100% - 82rem) / 2);
  bottom: clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--weiss);
}

.festpreis__karte .vorzeile {
  margin-bottom: 0;
}

.festpreis__karte h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
}

.festpreis__karte > p:last-child {
  color: var(--grau);
}

/* Ablauf: dunkle Fläche, die Schritte hängen an einer durchgehenden
   Maßkette. */

.ablauf {
  padding-block: var(--abschnitt);
  background: var(--tinte);
  color: var(--weiss);
}

.ablauf .vorzeile {
  color: var(--orange);
}

.ablauf :focus-visible {
  outline-color: var(--orange);
}

.schritte {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.schritte li {
  position: relative;
  padding: 2.25rem 1.5rem 0 0;
  border-top: 2px solid var(--grau-hell);
}

.schritte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.6rem;
  width: 2px;
  height: 1.1rem;
  background: var(--grau-hell);
}

.schritte li:last-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: -0.6rem;
  width: 2px;
  height: 1.1rem;
  background: var(--grau-hell);
}

.schritte__nummer {
  display: block;
  margin-bottom: 1rem;
  color: var(--orange);
  font-family: var(--schrift-schmal);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.9;
}

.schritte h3 {
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.schritte p {
  color: var(--grau-hell);
  font-size: 1rem;
  line-height: 1.55;
}

/* Kontakt */

.kontakt {
  padding-block: var(--abschnitt);
  background: var(--himmel);
}

.kontakt__inhalt {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.kontakt__info > p:not(.vorzeile) {
  max-width: 30rem;
  margin-top: 1.5rem;
}

.angaben {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--linie);
}

.angaben div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
}

.angaben dt {
  font-family: var(--schrift-schmal);
  font-size: 1.1875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.angaben dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.angaben a {
  display: inline-block;
  min-height: 1.75rem;
  font-weight: 500;
}

.kontakt__formular {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--weiss);
}

.anfrage {
  display: grid;
  gap: 1.25rem;
}

.anfrage[hidden] {
  display: none;
}

.feld-paar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feld {
  display: grid;
  gap: 0.4rem;
}

.feld label {
  font-weight: 600;
}

.feld__frei {
  color: var(--grau);
  font-weight: 400;
}

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--grau);
  border-radius: 0;
  background: var(--weiss);
  color: var(--tinte);
  font: inherit;
}

.feld textarea {
  resize: vertical;
}

.feld input:focus-visible,
.feld select:focus-visible,
.feld textarea:focus-visible {
  border-color: var(--tinte);
  outline-offset: 1px;
}

.feld [aria-invalid="true"] {
  border-color: #b3261e;
  border-width: 3px;
}

.feld__fehler {
  color: #b3261e;
  font-size: 0.9375rem;
  font-weight: 600;
}

.feld__fehler::before {
  content: "Fehler: ";
}

.anfrage__datenschutz {
  color: var(--grau);
  font-size: 0.9375rem;
}

.anfrage .knopf {
  justify-self: start;
}

.anfrage-erfolg {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.anfrage-erfolg[hidden] {
  display: none;
}

.anfrage-erfolg__titel {
  font-family: var(--schrift-schmal);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* Fuß */

.fuss {
  padding-block: 2.5rem;
  background: var(--tinte);
  color: var(--weiss);
}

.fuss :focus-visible {
  outline-color: var(--orange);
}

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.fuss__innen > p {
  color: var(--grau-hell);
}

.fuss__links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Rechtstexte */

.rechtstext {
  padding-block: clamp(3rem, 6vw, 5rem);
  max-width: 46rem;
}

.rechtstext h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5rem);
  text-transform: uppercase;
}

.rechtstext h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 2rem;
}

.rechtstext p + p {
  margin-top: 1rem;
}

/* Bis 1100 px: Karten stapeln sich und liegen nur noch mit dem oberen Rand
   auf dem Foto. */

@media (max-width: 1100px) {
  .karten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .karte--quer,
  .karte--hoch {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-column: auto;
  }

  .karte--quer img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .schritte {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 3rem;
  }

  .schritte li:nth-child(3)::after {
    content: "";
    position: absolute;
    right: 0;
    top: -0.6rem;
    width: 2px;
    height: 1.1rem;
    background: var(--grau-hell);
  }
}

/* Bis 960 px: Menü klappt ein, das Foto rückt unter den Text. */

@media (max-width: 960px) {
  .menue-knopf {
    display: inline-flex;
    align-items: center;
  }

  .navigation {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .navigation ul a {
    width: 100%;
    min-height: 3rem;
    border-bottom: 1px solid var(--linie);
    font-size: 1.375rem;
  }

  .kopf[data-menue="zu"] .navigation {
    display: none;
  }

  .einstieg__text {
    padding-bottom: 2rem;
  }

  .einstieg__foto {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }

  .einstieg {
    display: flex;
    flex-direction: column-reverse;
  }

  .karten {
    margin-top: -5rem;
  }

  .kopfzeile {
    grid-template-columns: minmax(0, 1fr);
  }

  .leistung-gross {
    grid-template-columns: minmax(0, 1fr);
  }

  .leistung-gross img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .leistungen__weitere {
    grid-template-columns: minmax(0, 1fr);
  }

  .leistung {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 1.5rem;
    align-items: start;
  }

  .leistung img {
    grid-row: 1 / span 4;
  }

  .leistung .nummer {
    margin: 0;
    justify-self: start;
  }

  .festpreis__karte {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100% - 2 * var(--rand), 40rem);
    max-width: none;
    margin: -5rem auto 0;
  }

  .festpreis {
    padding-bottom: 1px;
  }

  .kontakt__inhalt {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bis 640 px: alles einspaltig, die Schritte hängen an einer senkrechten
   Maßkette. */

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .marke {
    font-size: 1.5rem;
  }

  .masskette {
    flex-basis: 2.5rem;
  }

  .karten {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -3rem;
  }

  .karte--quer img,
  .karte--hoch img {
    aspect-ratio: 16 / 9;
  }

  .leistung {
    display: flex;
  }

  .leistung .nummer {
    margin-top: -1.9rem;
    margin-left: 1rem;
  }

  .festpreis__foto {
    height: 18rem;
  }

  .festpreis__karte {
    margin-top: -3rem;
  }

  .schritte {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--grau-hell);
  }

  .schritte li {
    padding: 0 0 2.5rem;
    border-top: 0;
  }

  .schritte li::before,
  .schritte li:last-child::after,
  .schritte li:nth-child(3)::after {
    content: "";
    left: calc(-1.5rem - 0.55rem);
    right: auto;
    top: 0.2rem;
    width: 1.1rem;
    height: 2px;
  }

  .schritte li:last-child {
    padding-bottom: 0;
  }

  .schritte li:last-child::after {
    top: auto;
    bottom: 0;
  }

  .schritte__nummer {
    font-size: 2.75rem;
  }

  .feld-paar {
    grid-template-columns: minmax(0, 1fr);
  }

  .angaben div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knopf {
    transition: none;
  }
}
