/* UWC Cottbus – Web-Visitenkarte
   Farben stammen aus dem Logo: Nebelgrau (Fläche), Fenster-Cyan (UWC, Fenster der Häuser).
   Schrift: Jost, Copyright 2020 The Jost Project Authors, SIL Open Font License 1.1
   (Lizenztext: fonts/OFL.txt). Alle Dateien liegen auf dem eigenen Server. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* Erweitertes Latein (z. B. das ś in „Chóśebuz“); wird nur geladen, wenn eine Seite es braucht */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --nebel: #b7c3c8;    /* Logofläche */
  --fenster: #37edf8;  /* Logo-Cyan */
  --tinte: #14252b;    /* Text */
  --petrol: #0b5c69;   /* Links */
  --leise: #4a5c63;    /* Nebentext */
  --wand: #fff;
  --putz: #eef2f3;
  --linie: #cfd8dc;
  --rand: clamp(1.25rem, 5vw, 4rem);
  --breite: 72rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--wand);
  color: var(--tinte);
  font-family: "Jost", Futura, "Century Gothic", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.55;
}

a {
  color: var(--petrol);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  margin: 0;
}

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

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--tinte);
  color: #fff;
}

.sprung:focus {
  top: 1rem;
}

/* Kopf: das Logo auf seiner eigenen Fläche */

.himmel {
  background: var(--nebel);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.himmel .rahmen {
  padding-block: clamp(1.5rem, 4.2vw, 2.75rem);
}

.logo {
  display: block;
  width: min(100%, 23rem);
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 44rem) {
  .logo {
    width: 100%;
  }
}

/* Startseite */

.wand {
  display: grid;
  gap: 2.75rem;
  padding-block: clamp(2.25rem, 6vw, 4.25rem) clamp(3rem, 7vw, 4.5rem);
}

.auftakt h1 {
  max-width: 13em;
  margin-bottom: 0.42em;
  font-size: clamp(2.125rem, 1.2rem + 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.vorspann {
  max-width: 33em;
  margin: 0;
  font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  line-height: 1.42;
}

/* Kontakt */

.kontakt h2 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.angaben {
  margin: 0;
  border-top: 2px solid var(--tinte);
}

.angaben div {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: baseline;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--linie);
}

.angaben dt {
  color: var(--leise);
}

.nb,
a[href^="tel:"] {
  white-space: nowrap;
}

/* Firmenname: sauberer Text ohne eingefügte Trennzeichen, Silbentrennung übernimmt der Browser */
.firma {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 23.99rem) {
  .angaben div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.angaben dd {
  margin: 0;
}

.angaben .ruf {
  font-size: clamp(1.75rem, 1.45rem + 1vw, 2.125rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.angaben .ruf a {
  color: inherit;
  text-decoration: none;
}

.angaben .ruf a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

.karte {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
}

/* Leistungen: ein Fenster mit vier Scheiben */

.fenster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fenster li {
  padding: 1.25rem 1.4rem 1.5rem;
  background: var(--fenster);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.fenster h3 {
  margin-bottom: 0.4em;
  font-size: 1.5rem;
  line-height: 1.15;
  hyphens: manual;
}

.fenster p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.45;
}

@media (min-width: 36rem) {
  .fenster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fenster li {
    min-height: 9rem;
  }
}

@media (min-width: 70rem) {
  .wand {
    grid-template-columns: minmax(0, 1fr) 27.5rem;
    column-gap: clamp(3rem, 6vw, 5.5rem);
    row-gap: 3.25rem;
    align-items: start;
  }

  .auftakt {
    grid-column: 1;
    grid-row: 1;
  }

  .kontakt {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0.5rem;
  }

  .leistungen {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .fenster li {
    min-height: 11.5rem;
  }
}

/* Fuß */

.fuss {
  border-top: 1px solid var(--linie);
}

.fuss .rahmen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 2.5rem;
  padding-block: 1.15rem 1.75rem;
  font-size: 1rem;
}

.fuss p {
  margin: 0;
  color: var(--leise);
}

.fuss ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss a {
  display: inline-block;
  padding-block: 0.3rem;
}

/* Impressum, Datenschutz, Fehlerseite */

.text {
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3rem, 7vw, 4.5rem);
}

.text > * {
  max-width: 41rem;
}

.zurueck {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
}

.text h1 {
  margin-bottom: 0.55em;
  font-size: clamp(2.25rem, 1.75rem + 2.3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.text h2 {
  margin: 2.1em 0 0.45em;
  font-size: 1.5rem;
  line-height: 1.2;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

.text h3 {
  margin: 1.5em 0 0.3em;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.text p,
.text ul,
.text address {
  margin: 0 0 0.95em;
}

.text address {
  font-style: normal;
}

.text address strong {
  font-weight: 500;
}

.text ul {
  padding-left: 1.15em;
}

.text li {
  margin-bottom: 0.3em;
}

.kasten {
  margin-block: 1.6rem;
  padding: 1.15rem 1.4rem 0.4rem;
  background: var(--putz);
}

.kasten h2,
.kasten h3 {
  margin-top: 0;
}

.kasten--recht {
  border: 2px solid var(--tinte);
  background: none;
}

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

@media print {
  .sprung,
  .karte,
  .zurueck {
    display: none;
  }

  .logo {
    width: 100%;
    max-width: 30rem;
  }

  body {
    display: block;
    font-size: 11pt;
  }

  a {
    color: inherit;
  }
}
