.managed-gallery-grid { margin-bottom: clamp(28px, 5vw, 60px); }
.managed-news-grid { margin-bottom: clamp(28px, 5vw, 56px); }

.managed-lightbox {
  width: min(94vw, 1100px);
  max-width: 1100px;
  height: min(90vh, 850px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #0f2a22;
  color: #fff;
}
.managed-lightbox::backdrop { background: rgba(6, 18, 14, .88); backdrop-filter: blur(4px); }
.managed-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.managed-lightbox p { position: absolute; right: 70px; bottom: 16px; left: 70px; margin: 0; color: #fff; text-align: center; }
.managed-lightbox-close, .managed-lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .9);
  color: #17382e;
  font-size: 1.4rem;
}
.managed-lightbox-close { top: 15px; right: 15px; font-size: 2rem; }
.managed-lightbox-arrow { top: 50%; transform: translateY(-50%); }
.managed-lightbox-arrow.previous { left: 15px; }
.managed-lightbox-arrow.next { right: 15px; }

.managed-availability {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(34px, 6vw, 74px);
  margin-bottom: clamp(34px, 6vw, 74px);
  padding: clamp(28px, 5vw, 58px);
  border-radius: 28px;
  background: #17382e;
  color: #fff;
}
.managed-availability h2 { margin: 0; color: #f7f1e7; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.8rem); font-weight: 500; line-height: 1.02; }
.managed-availability > div > p:last-child { max-width: 560px; color: rgba(255, 255, 255, .8); line-height: 1.6; }
.managed-date-list { display: grid; gap: 10px; }
.managed-date-list > div { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .07); }
.managed-date-list strong, .managed-date-list span, .managed-date-list small { display: block; }
.managed-date-list strong { color: #dbc39e; }
.managed-date-list span { font-weight: 700; }
.managed-date-list small { color: rgba(255, 255, 255, .68); }
.managed-availability .button { white-space: nowrap; }

@media (max-width: 920px) {
  .managed-availability { grid-template-columns: 1fr; }
  .managed-availability .button { justify-self: start; }
}

@media (max-width: 620px) {
  .managed-lightbox { width: 96vw; height: 82vh; border-radius: 14px; }
  .managed-lightbox-arrow { top: auto; bottom: 14px; transform: none; }
  .managed-lightbox p { bottom: 74px; }
  .managed-availability { border-radius: 20px; }
}

/* Öffentlicher Kalender */
.managed-calendar-section {
  background: #fffdf8;
  color: #17382e;
}
.managed-calendar-heading {
  max-width: 820px;
  margin-bottom: clamp(26px, 5vw, 52px);
}
.managed-calendar-heading h2,
.managed-media-heading h2 {
  margin: 0;
  color: #17382e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  font-weight: 500;
  line-height: 1.02;
}
.managed-calendar-heading > p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: #66736d;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}
.managed-calendar-panel {
  max-width: 980px;
  padding: clamp(16px, 3.5vw, 34px);
  border: 1px solid rgba(23, 56, 46, .14);
  border-radius: 26px;
  background: #f8f5ee;
  box-shadow: 0 16px 44px rgba(15, 42, 34, .08);
}
.managed-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.managed-calendar-toolbar h3 {
  margin: 0;
  color: #17382e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 500;
  text-align: center;
}
.managed-calendar-toolbar button {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(23, 56, 46, .2);
  border-radius: 50%;
  cursor: pointer;
  background: #fffdf8;
  color: #17382e;
  font: inherit;
  font-size: 1.25rem;
}
.managed-calendar-toolbar button:disabled { cursor: not-allowed; opacity: .35; }
.managed-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.managed-calendar-weekday {
  padding: 5px 0 8px;
  color: #66736d;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}
.managed-calendar-day {
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(23, 56, 46, .1);
  border-radius: 12px;
  background: #ece9e3;
  color: #6c746f;
  text-align: left;
}
button.managed-calendar-day {
  cursor: pointer;
  font: inherit;
}
.managed-calendar-day.available {
  border-color: rgba(50, 100, 70, .28);
  background: #dce9dd;
  color: #17382e;
}
.managed-calendar-day.available:hover,
.managed-calendar-day.available:focus-visible {
  outline: 3px solid rgba(23, 56, 46, .16);
  background: #cfe1d2;
  transform: translateY(-1px);
}
.managed-calendar-day.booked {
  border-color: rgba(142, 76, 55, .22);
  background: #ead4cb;
  color: #713e32;
}
.managed-calendar-day.outside { opacity: .28; }
.managed-calendar-day.today { box-shadow: inset 0 0 0 2px #dbc39e; }
.managed-calendar-number { font-weight: 800; }
.managed-calendar-day small {
  overflow: hidden;
  font-size: .72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.managed-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 20px;
  color: #66736d;
  font-size: .85rem;
}
.managed-calendar-legend span { display: flex; align-items: center; gap: 8px; }
.managed-calendar-legend i {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(23, 56, 46, .12);
  border-radius: 4px;
  background: #ece9e3;
}
.managed-calendar-legend i.available { background: #dce9dd; }
.managed-calendar-legend i.booked { background: #ead4cb; }

/* Zusätzliche Bilder bei Tieren und Angeboten */
.managed-media-section { background: #f8f5ee; }
.managed-media-heading { max-width: 900px; margin-bottom: clamp(28px, 5vw, 52px); }
.managed-media-group + .managed-media-group { margin-top: clamp(38px, 7vw, 76px); }
.managed-media-group > h3 {
  margin: 0 0 20px;
  color: #17382e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3.3rem);
  font-weight: 500;
}
.managed-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 28px);
}
.managed-media-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #17382e;
  color: #fff;
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 34px rgba(15, 42, 34, .11);
}
.managed-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}
.managed-media-card:hover img,
.managed-media-card:focus-visible img { transform: scale(1.025); }
.managed-media-card:focus-visible { outline: 3px solid #dbc39e; outline-offset: 3px; }
.managed-media-card > span { display: grid; gap: 5px; padding: 16px 18px 18px; }
.managed-media-card strong { font-size: 1rem; }
.managed-media-card small { color: rgba(255, 255, 255, .74); line-height: 1.45; }

@media (max-width: 780px) {
  .managed-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .managed-calendar-day { min-height: 70px; padding: 8px; }
}

@media (max-width: 560px) {
  .managed-calendar-panel { padding-inline: 9px; border-radius: 18px; }
  .managed-calendar-grid { gap: 4px; }
  .managed-calendar-day { min-height: 56px; padding: 6px; border-radius: 8px; }
  .managed-calendar-day small { font-size: .62rem; }
  .managed-calendar-toolbar button { flex-basis: 40px; width: 40px; height: 40px; }
  .managed-media-grid { grid-template-columns: 1fr; }
}
