/* Gras: statische Wiese im Hintergrund, einzelne Halme bewegen sich im Vordergrund */
.gras {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 5.55 / 1;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background-image: url("../images/gras-hintergrund.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
}
.gras::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/gras-vordergrund.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .gras::before { animation: none; }
  .gras::before { background-image: url("../images/gras-vordergrund-statisch.svg"); }
}


/* V1.6.4 – gezielte Layoutkorrekturen */
.top_page + .gras {
  /* Die obere Grasleiste ist ungefähr halb so hoch wie bisher. */
  aspect-ratio: auto;
  height: clamp(54px, 9vw, 108px);
  max-width: 1200px;
}

.home-grass-gap {
  height: 10px;
  margin-top: 0;
}

.gras.home-grass {
  /* Die Wiese rückt näher an den Text und darf leicht hineinragen. */
  margin-top: -22px;
  z-index: 1;
}

.links-main .therapist-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 24px;
}

.links-main .therapist-card {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(120px, .8fr) minmax(170px, 1fr);
  align-items: center;
  gap: 12px 20px;
  padding: 14px 18px;
  border: 1px solid #d9e3d1;
  border-left: 4px solid #589026;
  border-radius: 7px;
  background: #f7faf5;
  color: #333;
  font-size: 10pt;
}

.links-main .therapist-person a {
  color: #276b20;
  font-weight: 700;
  text-decoration: none;
}

.links-main .therapist-person a:hover,
.links-main .links-extra a:hover {
  text-decoration: underline;
}

.links-main .therapist-location,
.links-main .therapist-note {
  color: #666;
}

.links-main .therapist-phone {
  justify-self: start;
  color: #276b20;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.links-main .therapist-phone:hover {
  text-decoration: underline;
}

.links-main .links-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border-top: 1px solid #d9e3d1;
  color: #666;
}

.links-main .links-extra a {
  color: #276b20;
  font-weight: 700;
}

@media (max-width: 640px) {
  .top_page + .gras {
    height: 56px;
  }
  .gras.home-grass {
    margin-top: -12px;
  }
  .links-main .therapist-card {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 14px;
  }
}


/* V1.6.5 – Gras über die gesamte Fensterbreite und kompaktere obere Leiste */
.gras {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: 0;
  box-sizing: border-box;
}
.top_page + .gras {
  height: clamp(34px, 5.4vw, 65px);
  aspect-ratio: auto;
}
.gras.home-grass {
  width: 100vw;
  max-width: none;
  left: 50%;
  margin-left: -50vw;
  margin-top: -22px;
}

/* Alle Einträge der regionalen Ergotherapie-Übersicht im gleichen grünen Kartenstil */
.links-main .therapist-card {
  grid-template-columns: minmax(190px, 1.2fr) minmax(115px, .7fr) minmax(170px, 1fr) minmax(150px, 1fr);
  align-items: center;
}
.links-main .therapist-web {
  color: #276b20;
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.links-main .therapist-note {
  font-size: 9pt;
}
@media (max-width: 760px) {
  .top_page + .gras { height: 38px; }
  .links-main .therapist-card { grid-template-columns: 1fr; }
}

/* V1.6.6 – Kopfbereich proportional verkleinern, Gras höher und unverzerrt */
.top_page .top_wrapper img.logo {
  display: block;
  width: 50%;
  max-width: 630px;
  height: auto;
}

.top_page + .gras {
  width: 100vw;
  max-width: none;
  height: clamp(90px, 9vw, 125px);
  aspect-ratio: auto;
  left: 50%;
  margin-left: -50vw;
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.top_page + .gras::before {
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left bottom;
}

@media (max-width: 760px) {
  .top_page + .gras {
    height: 72px;
  }
}


/* V1.6.7 – Kopfbereich enger, einheitliche Wiese oben und unten */
.top_page {
  padding: 0;
  margin: 0;
}
.top_page .top_wrapper {
  padding: 0;
  margin: 0 auto;
  line-height: 0;
}
.top_page .top_wrapper img.logo {
  display: block;
  width: min(50vw, 630px) !important;
  max-width: 50%;
  height: auto !important;
  margin: 0 auto;
}
.gras,
.top_page + .gras,
.gras.home-grass {
  width: 100vw;
  max-width: none;
  height: clamp(90px, 9vw, 125px);
  min-height: 0;
  aspect-ratio: auto;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-image: url("../images/gras-hintergrund.png");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left bottom;
}
.gras::before,
.top_page + .gras::before,
.gras.home-grass::before {
  background-image: url("../images/gras-vordergrund.svg");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left bottom;
}
.gras.home-grass {
  margin-top: -22px;
}
.links-main .therapist-card {
  color: #000080;
}
.links-main .therapist-person,
.links-main .therapist-location,
.links-main .therapist-note {
  color: #000080;
}
.links-main .therapist-card a {
  color: #276b20;
}
.links-main .surgeon-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 24px;
}
.links-main .surgeon-card {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(170px, 1fr);
  align-items: center;
  gap: 12px 20px;
  padding: 14px 18px;
  border: 1px solid #d9e3d1;
  border-left: 4px solid #589026;
  border-radius: 7px;
  background: #f7faf5;
  color: #000080;
}
.links-main .surgeon-card a {
  color: #276b20;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .top_page .top_wrapper img.logo {
    width: 50vw !important;
    max-width: 50%;
  }
  .gras,
  .top_page + .gras,
  .gras.home-grass {
    height: 72px;
  }
  .links-main .surgeon-card {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Schwarze Fließtexte auf das vorhandene Dunkelblau umstellen */
html, body { color: #000080; }
p.bodytext,
.main ul li,
.main ul li a,
.main ul li a:link,
.main ul li a:visited,
.main ul li a:hover,
h4, h5, h6,
h2.align-center {
  color: #000080;
}
