/* Illustrated place cards on the Orte entdecken page. */
body.discover-page main #orte .place-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 24px;
}

body.discover-page main #orte .place-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffefa, #f8f5ee);
  box-shadow: 0 12px 34px rgba(16, 44, 60, .09), 0 2px 5px rgba(16, 44, 60, .04);
  transition: transform .22s ease, box-shadow .22s ease;
}

body.discover-page main #orte .place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 44, 60, .14), 0 3px 8px rgba(16, 44, 60, .06);
}

body.discover-page main #orte .place-illustration {
  display: grid;
  place-items: center;
  height: 208px;
  padding: 12px 22px 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 82%, rgba(255, 255, 255, .94) 0, rgba(255, 255, 255, .46) 39%, transparent 72%),
    linear-gradient(145deg, #dce9e4 0%, #e8e9df 53%, #f1e7d7 100%);
}

body.discover-page main #orte .place-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 9px rgba(28, 52, 55, .12));
}

body.discover-page main #orte .place-copy {
  flex: 1 0 auto;
  padding: 22px 25px 0;
}

body.discover-page main #orte .place-number {
  display: inline-block;
  color: #9c5d4a;
  font-size: .68rem;
  line-height: 1.4;
  letter-spacing: .13em;
}

body.discover-page main #orte .place-card h2[data-heading-level="3"] {
  margin: 8px 0 11px;
  color: #183849;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 650;
}

body.discover-page main #orte .place-card p {
  margin: 0;
  color: #435a62;
  font-size: .94rem;
  line-height: 1.72;
}

body.discover-page main #orte .place-source {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 8px;
  color: #547a78;
  font-size: .76rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(84, 122, 120, .4);
  text-underline-offset: 3px;
}

body.discover-page main #orte .place-source:hover,
body.discover-page main #orte .place-source:focus-visible {
  color: #9c5d4a;
}

body.discover-page main #orte .place-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: stretch;
  gap: 9px;
  margin: 4px 25px 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(32, 66, 76, .11);
}

body.discover-page main #orte .place-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid rgba(39, 111, 117, .16);
  border-radius: 12px;
  color: #276f75;
  background: rgba(255, 255, 255, .78);
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.discover-page main #orte .place-links a:hover,
body.discover-page main #orte .place-links a:focus-visible {
  border-color: rgba(39, 111, 117, .36);
  color: #183849;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 44, 60, .07);
}

body.discover-page main #orte .place-links a:first-child,
body.discover-page main #orte .place-links a:last-child {
  grid-column: 1 / -1;
}

body.discover-page main #orte .place-card#cap-de-formentor .place-illustration img {
  width: 108%;
  max-width: 590px;
}

@media (max-width: 820px) {
  body.discover-page main #orte .place-grid { gap: 18px; }
  body.discover-page main #orte .place-illustration { height: 185px; }
  body.discover-page main #orte .place-copy { padding-inline: 20px; }
  body.discover-page main #orte .place-links { margin-inline: 20px; }
}

@media (max-width: 600px) {
  body.discover-page main #orte .place-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; }
  body.discover-page main #orte .place-card { border-radius: 18px; }
  body.discover-page main #orte .place-illustration { height: 205px; padding-inline: 18px; }
  body.discover-page main #orte .place-copy { padding: 20px 20px 0; }
  body.discover-page main #orte .place-card h2[data-heading-level="3"] { font-size: 1.45rem; }
  body.discover-page main #orte .place-card p { font-size: .92rem; }
  body.discover-page main #orte .place-links { grid-template-columns: minmax(0, 1fr); margin: 4px 20px 20px; }
  body.discover-page main #orte .place-links a:first-child,
  body.discover-page main #orte .place-links a:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body.discover-page main #orte .place-card { transition: none; }
  body.discover-page main #orte .place-card:hover { transform: none; }
}

body.discover-page main #orte .place-grid[data-place-collection="excursion"] { grid-template-columns: minmax(0,1fr) !important; margin-top:24px; }
