/* Zahnarztpraxis Achi Durlach – Übergangsseite */

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

:root {
  --blau: #005a7f;
  --grau: #68838e;
  --text: #2a2a28;
  --flaeche: #edeff4;
  --linie: #c8d2d7;
  --weiss: #ffffff;
  --spalte: 40rem;
  --rand: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: "Barlow Semi Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  font-weight: 400;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1.1em;
}

.spalte {
  max-width: calc(var(--spalte) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* ---------- Kopfbereich mit A-Linien (sehr dezent) ---------- */

.kopf {
  position: relative;
  overflow: hidden;
  padding: 2.75rem var(--rand) 3rem;
  text-align: center;
}

.a-linien {
  position: absolute;
  top: 0;
  height: 100%;
  width: 10rem;
  pointer-events: none;
  stroke: var(--blau);
  stroke-width: 1;
  opacity: 0.05;
}
.a-linien--rechts { right: 0; }
.a-linien--links { left: 0; transform: scaleX(-1); }

.kopf > *:not(.a-linien) {
  position: relative;
}

.logo {
  width: 15.5rem;
  margin: 0 auto 2.75rem;
}

h1 {
  margin: 0 auto;
  max-width: 20ch;
  color: var(--blau);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h1 span {
  display: block;
}

/* ---------- Foto ---------- */

/* Foto randlos über die volle Breite */
.foto {
  margin: 0;
  background: var(--flaeche);
}
.foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 40%;
}
.foto figcaption {
  display: grid;
  max-width: 60rem;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  padding: 1.4rem 0 1.75rem;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--grau);
}
.foto figcaption span {
  padding: 0 1rem;
  text-align: right;
}
.foto figcaption span + span {
  text-align: left;
  border-left: 1px solid var(--grau);
}
.foto figcaption strong {
  display: block;
  color: var(--blau);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Einleitung ---------- */

.einleitung {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.anrede {
  color: var(--blau);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.hervorhebung {
  margin: 1.75rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--blau);
  color: var(--blau);
  font-weight: 600;
}

/* ---------- Kapitel ---------- */

.kapitel {
  padding: 1rem 0 1.5rem;
}
.kapitel-inhalt {
  position: relative;
  max-width: calc(var(--spalte) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}
.schlusssatz {
  margin-top: 2rem;
  color: var(--blau);
  font-weight: 500;
}
.kapitel-text p:last-child {
  margin-bottom: 0;
}

.kapitel h2 {
  margin: 1.5rem 0 0.9rem;
  color: var(--blau);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- Sprechzeiten ---------- */

.sprechzeiten {
  width: 100%;
  margin: 0.25rem 0 0.5rem;
  border-collapse: collapse;
}
.sprechzeiten th,
.sprechzeiten td {
  padding: 1rem 0;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  vertical-align: baseline;
}
.sprechzeiten th {
  padding-right: 1rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
}
.sprechzeiten td {
  color: var(--blau);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Abschluss ---------- */

.abschluss {
  padding: 3.5rem var(--rand) 3.75rem;
  text-align: center;
}
.abschluss p {
  margin: 0;
  color: var(--blau);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.15;
}
.abschluss .zusatz {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 22rem;
  margin: 0.9rem auto 0;
  color: var(--grau);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.abschluss .zusatz::before,
.abschluss .zusatz::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grau);
  opacity: 0.6;
}

/* ---------- Footer ---------- */

.fuss {
  background: var(--blau);
  color: var(--weiss);
  padding: 3rem 0 2rem;
  font-size: 1.15rem;
  line-height: 1.55;
}
.fuss-inhalt {
  max-width: calc(var(--spalte) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}
.fuss h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.fuss p {
  margin: 0 0 0.2rem;
}
.fuss a {
  color: var(--weiss);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.fuss a:hover,
.fuss a:focus-visible {
  border-bottom-color: var(--weiss);
}
.fuss .rechtliches {
  margin: 2.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
}
.rechtliches a {
  margin-right: 1.5rem;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Unterseiten ---------- */

.unterseite .kopf {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--linie);
}
.unterseite .logo {
  margin-bottom: 0;
}
.rechtstext {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}
.rechtstext h1 {
  margin: 0 0 1.5rem;
  max-width: none;
  font-size: 2.2rem;
}
.rechtstext h2 {
  margin: 2rem 0 0.5rem;
  color: var(--blau);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.zurueck {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--blau);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--blau);
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 48em) {
  :root {
    --rand: 2.5rem;
  }
  body {
    font-size: 1.25rem;
  }
  .kopf {
    padding-top: 3.5rem;
    padding-bottom: 3.75rem;
  }
  .logo {
    width: 21rem;
    margin-bottom: 3.5rem;
  }
  .a-linien {
    width: 20rem;
  }
  h1 {
    font-size: 4rem;
  }
  .abschluss {
    padding: 5rem var(--rand) 5.25rem;
  }
  .abschluss p {
    font-size: 2.6rem;
  }
  .abschluss .zusatz {
    font-size: 1.35rem;
    max-width: 28rem;
  }
  .einleitung {
    padding-top: 4.5rem;
    padding-bottom: 1rem;
  }
  .anrede {
    font-size: 1.85rem;
  }
  .kapitel {
    padding-bottom: 2rem;
  }
  .kapitel h2 {
    font-size: 1.85rem;
    margin-top: 2.25rem;
  }
  .sprechzeiten td {
    font-size: 1.6rem;
  }

  .fuss {
    padding-top: 3.75rem;
    font-size: 1.3rem;
  }
  .fuss h2 {
    font-size: 1.6rem;
  }

  .foto img {
    aspect-ratio: 21 / 9;
    max-height: 44rem;
    object-position: 50% 32%;
  }
  .foto figcaption {
    padding: 1.9rem 0 2.5rem;
    font-size: 1.35rem;
  }
  .foto figcaption span {
    padding: 0 1.5rem;
  }
  .foto figcaption strong {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }
}

.rechtstext a:not(.zurueck) {
  color: var(--blau);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.rechtstext h1 + h2 {
  margin-top: 0;
}
