/* RW Immobau GmbH, statische Seite
   Farben aus dem Logo: Rot #770500, Grau #555554
   Schrift: Rockwell wie im Logo, ohne externe Webfonts (keine Datenübertragung an Dritte) */

:root {
  --rw-rot: #770500;
  --rw-rot-dunkel: #5a0400;
  --rw-grau: #555554;
  --text: #2a2a29;
  --text-leise: #5f5f5d;
  --linie: #e3e1dd;
  --flaeche: #ffffff;
  --flaeche-hell: #f5f4f1;
  --auf-grau: #ffffff;
  --auf-grau-leise: #dcdcdb;

  --slab: "Rockwell", "Rockwell Nova", "Roboto Slab", "Museo Slab", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rand: clamp(1rem, 5vw, 4rem);
  --breite: 72rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

.nobr { white-space: nowrap; }

a { color: var(--rw-rot); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--rw-rot); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--rw-rot); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* Kopf */
.kopf { padding-block: clamp(1.5rem, 4vw, 2.75rem) 0; }
.kopf a { display: inline-block; }
.kopf img { width: clamp(150px, 22vw, 230px); }

/* Startseite: Einstieg */
.intro {
  padding-block: clamp(3rem, 10vh, 7rem) clamp(2.5rem, 7vh, 4.5rem);
}

.dachzeile {
  margin: 0 0 1.25rem;
  font-family: var(--slab);
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.intro h1 {
  margin: 0;
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.015em;
  color: var(--rw-rot);
}

.intro .lead {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-leise);
}

/* Kontakt: grauer Balken wie im Logo, läuft nach rechts aus */
.kontakt-band {
  position: relative;
  margin-left: max(var(--rand), calc((100vw - var(--breite)) / 2));
  background: var(--rw-grau);
  color: var(--auf-grau);
  padding: clamp(2rem, 5vw, 3.5rem) var(--rand) clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
}

.kontakt-band h2 {
  margin: 0 0 1.75rem;
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kontakt-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.75rem 2.5rem;
  margin: 0;
  max-width: calc(var(--breite) - 3.5rem);
}

.kontakt-liste dt {
  margin-bottom: .35rem;
  font-family: var(--slab);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--auf-grau-leise);
}

.kontakt-liste dd {
  margin: 0;
  font-family: var(--slab);
  font-size: 1.2rem;
  line-height: 1.45;
}

.kontakt-band a { color: var(--auf-grau); }
.kontakt-band a:focus-visible { outline-color: #fff; }

.kontakt-liste .gross {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  overflow-wrap: anywhere;
}

.route {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--sans);
  font-size: .9rem;
}

.kontakt-hinweis {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  max-width: 40rem;
  font-size: .95rem;
  color: var(--auf-grau-leise);
}

/* Fuß */
.fuss {
  padding-block: 1.5rem 2rem;
  font-size: .875rem;
  color: var(--text-leise);
}

.fuss .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
}

.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--rw-rot); }
.fuss a[aria-current="page"] { color: var(--rw-rot); }

/* Rechtstexte */
.rechtstext {
  padding-block: clamp(2.5rem, 7vh, 4.5rem) clamp(3rem, 8vh, 5rem);
}

.rechtstext .zurueck {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: .9rem;
}

.rechtstext h1 {
  margin: 0 0 2.25rem;
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  color: var(--rw-rot);
}

.rechtstext .spalte { max-width: 44rem; }

.rechtstext h2 {
  margin: 2.5rem 0 .6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.rechtstext h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.rechtstext h3 {
  margin: 1.5rem 0 .4rem;
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.02rem;
}

.rechtstext p,
.rechtstext ul { margin: 0 0 1rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .3rem; }

.rechtstext .stand { margin-top: 2.5rem; font-size: .9rem; color: var(--text-leise); }

/* Markiert Angaben, die vor dem Livegang ergänzt werden müssen */
.platzhalter {
  background: #fff3c4;
  padding: 0 .25em;
  border-radius: 2px;
}

@media (min-width: 75rem) {
  .kontakt-liste {
    grid-template-columns: repeat(2, max-content);
    column-gap: clamp(3rem, 5vw, 5.5rem);
  }
}

@media (max-width: 40rem) {
  .kontakt-band {
    margin-left: 0;
    padding-inline: var(--rand);
  }
  .kontakt-liste { grid-template-columns: 1fr; gap: 1.4rem; }
  .fuss .wrap { flex-direction: column-reverse; }
}

@media print {
  .kontakt-band { background: none; color: var(--text); border-left: 6px solid var(--rw-grau); }
  .kontakt-band a, .kontakt-liste dt, .kontakt-hinweis { color: var(--text); }
  .platzhalter { background: none; }
}
