@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Seb Neue";
  src: url("fonts/seb-neue-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Seb Neue";
  src: url("fonts/seb-neue-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Seb Neue";
  src: url("fonts/seb-neue-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --papier: #fefefd;
  --hundrot: #c62829;
  --hundrot-dunkel: #a01f20;
  --katzenorange: #e4781d;
  --titelorange: #cf6a14;
  --wiese-dunkel: #2f6b45;

  --schrift: "Seb Neue", "Atkinson", "Verdana", sans-serif;
  --titel: "Seb Neue", "Bricolage", "Verdana", sans-serif;

  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --breite: 68rem;
  --ecke: 0.5rem;
  --schwung: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--kopf-leise) var(--grund);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: clamp(1.2rem, 1.06rem + 0.4vw, 1.33rem);
  line-height: 1.6;
}

main { flex: 1; }

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

h1, h2, h3 {
  font-family: var(--titel);
  color: var(--titelorange);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); max-width: 18em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 38em; }

a { color: var(--tinte); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--hundrot-dunkel); }

:focus-visible {
  outline: 3px solid var(--katzenorange);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

::selection { background: var(--tinte); color: var(--papier); }

.innen {
  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: -4rem;
  padding: 0.6rem 1rem;
  background: var(--papier);
  color: var(--tinte);
  border-radius: var(--ecke);
  z-index: 10;
}
.sprung:focus { top: 1rem; }

.kopf {
  background: var(--kopf);
  color: var(--kopf-text);
}

.kopf__innen {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* White sign, because the red logo lacks contrast on a dark header. */
.kopf__logo {
  display: block;
  position: relative;
  z-index: 2;
  margin-bottom: -1.5rem;
  padding: 0.9rem 1.1rem 1rem;
  background: var(--papier);
  border-radius: 0 0 var(--ecke) var(--ecke);
  box-shadow: 0 0.4rem 1rem -0.4rem rgba(10, 20, 30, 0.45);
}
.kopf__logo img { width: clamp(9.5rem, 20vw, 11rem); }

.kopf__kontakt {
  align-self: center;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.25rem;
}

.kontakt {
  display: flex;
  flex-direction: column;
  text-align: right;
  text-decoration: none;
  line-height: 1.2;
  color: var(--kopf-text);
}
.kontakt:hover { color: var(--kopf-text); }
.kontakt:hover .kontakt__nummer { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.kontakt__was { font-size: 0.95rem; color: var(--kopf-leise); margin-bottom: 0.3rem; }
.kontakt__nummer {
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(1.25rem, 0.8rem + 1.9vw, 2.1rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}


.navi {
  background: var(--kopf-tief);
  border-top: 1px solid var(--kopf-kante);
}

.navi ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 clamp(1rem, 3vw, 2.25rem);
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.navi a {
  display: block;
  padding: 0.95rem 0 0.8rem;
  color: var(--kopf-leise);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s var(--schwung), border-color 0.2s var(--schwung);
}
.navi a:hover { color: var(--kopf-text); border-bottom-color: var(--kopf-leise); }
.navi a[aria-current="page"] { color: var(--kopf-text); border-bottom-color: var(--titelorange); }

@media (max-width: 40rem) {
  .kopf { --schild: clamp(8.25rem, 38vw, 9.75rem); }
  .kontakt__was { font-size: 0.8rem; }
  .kopf__kontakt { padding-block: 1rem 0.75rem; }
  .kopf__logo {
    flex: none;
    width: var(--schild);
    margin-bottom: -5.6rem;
    padding: 0.7rem 0.8rem 0.8rem;
  }
  .kopf__logo img { width: 100%; }
  .navi ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
    padding-left: calc(var(--schild) + 1.25rem);
    padding-block: 0.35rem 0.45rem;
  }
  .navi a { font-size: 0.95rem; padding: 0.6rem 0 0.5rem; justify-self: start; }
}

.start {
  display: grid;
  gap: 0 var(--rand);
  padding-block: clamp(3rem, 6vw, 4.5rem) 4.5rem;
}

@media (min-width: 60rem) {
  .start {
    grid-template-columns: minmax(0, 1fr) 27rem;
    column-gap: clamp(3rem, 6vw, 5.5rem);
  }
  .start__einstieg { grid-column: 1 / -1; }
}

.start__einstieg {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--linie);
}

.lage__status {
  font-size: clamp(1.3rem, 1.12rem + 0.7vw, 1.65rem);
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
}
.lage__status strong { font-weight: 700; }
.lage__zeit { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lage[data-zustand="offen"] .lage__zustand { color: var(--wiese-dunkel); }
.lage[data-zustand="pause"] .lage__zustand { color: var(--titelorange); }
.lage[data-zustand="zu"] .lage__zustand { color: var(--hundrot-dunkel); }
.lage__status a { color: inherit; white-space: nowrap; }

.gruss p { font-size: 1.1em; line-height: 1.65; }
.gruss h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }

.gruss__schluss {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}

.gruss .gruss__unterschrift {
  margin: 0 0 1.5rem;
  font-family: var(--titel);
  font-size: 1.35em;
  line-height: 1.3;
}
.gruss__unterschrift span {
  display: block;
  font-family: var(--schrift);
  font-size: 0.65em;
  color: var(--tinte-leise);
}

.gruss__bild { width: min(100%, 15rem); }

.seitenleiste {
  display: grid;
  gap: 2.5rem;
  align-content: start;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--linie);
}

@media (min-width: 60rem) {
  .seitenleiste { margin-top: 0; padding-top: 0; border-top: 0; }
}

.seitenleiste h2 { font-size: 1.5rem; }
.seitenleiste .zeiten__tabelle { font-size: 0.95em; }
.seitenleiste .zeiten__tabelle th { white-space: nowrap; }
.seitenleiste .zeiten__frei th { white-space: normal; }

.notfall {
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: var(--ecke);
  background: #fbefee;
  box-shadow: inset 0 0 0 1px #efcfcd;
  transition: background-color 0.3s var(--schwung);
}

.seitenleiste .notfall__titel {
  font-size: 1.2rem;
  color: var(--hundrot-dunkel);
  margin-bottom: 0.5rem;
}

.notfall p { font-size: 1rem; margin-bottom: 0.4rem; }
.notfall .notfall__rat { margin: 0.6rem 0 0; color: var(--tinte-leise); }

.notfall__nummer {
  display: inline-block;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--hundrot-dunkel);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.notfall__nummer:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }

/* So that the emergency number carries the weight once the practice is closed. */
.lage[data-zustand="zu"] .notfall { background: var(--hundrot); box-shadow: none; }
.lage[data-zustand="zu"] .notfall :is(.notfall__titel, .notfall__nummer, p) { color: var(--papier); }
.lage[data-zustand="zu"] .notfall__nummer:hover { color: var(--papier); }

.zeiten__tabelle {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.zeiten__tabelle th,
.zeiten__tabelle td {
  text-align: left;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.zeiten__tabelle tr:last-child th,
.zeiten__tabelle tr:last-child td { border-bottom: 0; }
.zeiten__tabelle th { font-weight: 700; padding-right: 1rem; }
.zeiten__tabelle td { white-space: nowrap; }
.zeiten__tabelle td.zeiten__zu { white-space: normal; }
.zeiten__zu, .zeiten__frei td { color: var(--tinte-leise); }

.zeiten__tabelle tr.ist-heute th,
.zeiten__tabelle tr.ist-heute td { background: var(--papier); }
.zeiten__tabelle tr.ist-heute th { padding-left: 0.75rem; }
.zeiten__tabelle tr.ist-heute td { font-weight: 700; }

.heute-marke {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.45rem;
  border-radius: 0.3rem;
  background: var(--tinte);
  color: var(--papier);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: 0.15em;
}

@media (max-width: 30rem) {
  .zeiten__tabelle tr { display: grid; grid-template-columns: 1fr 1fr; padding: 0.45rem 0; border-bottom: 1px solid var(--linie); }
  .zeiten__tabelle tr:last-child { border-bottom: 0; }
  .zeiten__tabelle th { grid-column: 1 / -1; padding-bottom: 0; }
  .zeiten__tabelle th, .zeiten__tabelle td { border-bottom: 0; }
  .zeiten__tabelle td[colspan] { grid-column: 1 / -1; }
  .zeiten__tabelle tr.ist-heute { background: var(--papier); padding-inline: 0.75rem; }
  .zeiten__tabelle tr.ist-heute th,
  .zeiten__tabelle tr.ist-heute td { background: none; padding-left: 0; }
}

.anfahrt__adresse {
  font-style: normal;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.anfahrt__vorteile { color: var(--tinte-leise); }

.anfahrt__karten { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.knopf {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: var(--ecke);
  font-weight: 700;
  text-decoration: none;
  color: var(--tinte);
  box-shadow: inset 0 0 0 2px var(--tinte);
  transition: background-color 0.2s var(--schwung), color 0.2s var(--schwung);
}
.knopf:hover { background: var(--tinte); color: var(--papier); }

.seite {
  padding-block: clamp(3.5rem, 7vw, 5rem) 4.5rem;
}

.seite__einstieg {
  display: grid;
  gap: 2rem var(--rand);
  align-items: end;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--linie);
}

@media (min-width: 56rem) {
  .seite__einstieg { grid-template-columns: 1fr minmax(0, 30rem); gap: 3rem; }
}

.leistungen__gruppen {
  display: grid;
  gap: 2.5rem 4rem;
}

@media (min-width: 48rem) {
  .leistungen__gruppen { grid-template-columns: 1fr 1fr; }
}

.gruppe__titel {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--tinte);
}
.gruppe ul { margin: 0; padding-left: 1.2rem; }
.gruppe li { margin-bottom: 0.45rem; }
.gruppe li::marker { color: var(--katzenorange); }

.anruf {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--linie);
}

.recht h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.recht address { font-style: normal; margin-bottom: 1em; }

.fuss {
  background: var(--kopf);
  color: var(--kopf-leise);
  font-size: 1rem;
}

.fuss__innen {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: 2.75rem 3rem;
}

@media (min-width: 48rem) {
  .fuss__innen { grid-template-columns: 1fr 1fr auto; }
}

.fuss strong { color: var(--kopf-text); }
.fuss address { font-style: normal; }
.fuss p { margin: 0; }
.fuss a { color: var(--kopf-text); display: inline-block; padding-block: 0.3rem; }
.fuss a:hover { color: var(--kopf-text); text-decoration-thickness: 0.15em; }
.fuss__links { display: flex; gap: 1.5rem; align-items: flex-start; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .kopf, .fuss { background: none; color: var(--tinte); }
  .anfahrt__karten, .sprung, .navi { display: none; }
}
