.ags-services,
.ags-gallery {
  --ags-gold: #e2b279;
  --ags-ink: #f3eadf;
  --ags-muted: #d3c7b9;
  --ags-line: #ffffff28;
  --ags-ease: cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
  color: var(--ags-ink);
}
.ags-services h2,
.ags-gallery h2 {
  margin: 0;
  padding: 0;
  color: var(--ags-ink);
  font-family: Baskerville, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.ags-services {
  padding: clamp(40px, 6vw, 76px) 5%;
  background: #191818;
  text-align: center;
}
.ags-services p,
.ags-gallery-head p {
  margin: 14px auto 0;
  padding: 0;
  max-width: 57ch;
  color: var(--ags-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.ags-services ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  width: min(950px, 100%);
  row-gap: 12px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ags-line);
}
.ags-services li {
  list-style: none;
  margin: 0;
  padding: 13px 10px 0;
  color: var(--ags-ink);
}
.ags-services li::marker,
.ags-gallery li::marker { content: ""; }
.ags-gallery {
  padding: clamp(45px, 7vw, 88px) 5%;
  background: #0d0b09;
}
.ags-gallery button,
.ags-gallery a {
  font: inherit;
  color: inherit;
}
.ags-gallery [hidden] { display: none !important; }
.ags-gallery :focus-visible { outline: 2px solid var(--ags-gold); outline-offset: 4px; }
.ags-gallery-head { text-align: center; margin-bottom: clamp(21px, 4vw, 34px); }
.ags-gallery-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 9px;
  border-top: 1px solid var(--ags-line);
}
.ags-filters { display: flex; flex-wrap: wrap; gap: 3px 4px; }
.ags-filters button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px 12px;
  border: 0;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  color: var(--ags-muted);
  font-size: .91rem;
  transition: color .2s, background-color .2s;
}
.ags-filters button::after {
  content: "";
  position: absolute;
  inset: auto 12px 5px;
  height: 1px;
  background: var(--ags-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .38s var(--ags-ease);
}
.ags-filters button[aria-pressed="true"] {
  background-color: #e2b27915;
  color: var(--ags-gold);
}
.ags-filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.ags-count { color: var(--ags-muted); font-size: .83rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ags-gallery .ags-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ags-photo-grid li { list-style: none; min-width: 0; margin: 0; padding: 0; }
.ags-photo {
  --ags-photo-inset: 12px;
  --ags-icon-size: 34px;
  overflow: hidden;
  position: relative;
  display: block;
  background: #211a15;
  aspect-ratio: 1;
  cursor: zoom-in;
}
.ags-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ags-ease);
}
.ags-photo:focus-visible img { transform: scale(1.055); }
.ags-photo-grid [data-ags-kind="ketten"] img { object-position: 50% 62%; }
.ags-photo-grid [data-ags-kind="ohrringe"] img { object-position: 50% 47%; }
.ags-photo::after {
  position: absolute;
  content: "";
  inset: 49% 0 0;
  background: linear-gradient(transparent, #14110dbd);
  pointer-events: none;
}
.ags-photo-kind,
.ags-zoom {
  position: absolute;
  z-index: 1;
  color: #fff;
}
.ags-photo-kind {
  display: flex;
  align-items: center;
  min-height: var(--ags-icon-size);
  bottom: var(--ags-photo-inset);
  left: var(--ags-photo-inset);
  font-size: .78rem;
}
.ags-zoom {
  right: var(--ags-photo-inset);
  bottom: var(--ags-photo-inset);
  width: var(--ags-icon-size);
  height: var(--ags-icon-size);
  box-sizing: border-box;
  background: #16120ee0;
  border: 1px solid #ffffff7d;
  border-radius: 50%;
  /* The legacy Plus sign stays hidden in cached markup. */
  font-size: 0;
  pointer-events: none;
  transition: background .2s, color .2s;
}
.ags-zoom::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor 0 0) top left / 5px 2px,
    linear-gradient(currentColor 0 0) top left / 2px 5px,
    linear-gradient(currentColor 0 0) top right / 5px 2px,
    linear-gradient(currentColor 0 0) top right / 2px 5px,
    linear-gradient(currentColor 0 0) bottom left / 5px 2px,
    linear-gradient(currentColor 0 0) bottom left / 2px 5px,
    linear-gradient(currentColor 0 0) bottom right / 5px 2px,
    linear-gradient(currentColor 0 0) bottom right / 2px 5px;
  background-repeat: no-repeat;
}
.ags-photo:focus-visible .ags-zoom { background: var(--ags-gold); color: #170f08; }
.ags-gallery .ags-more {
  display: block;
  padding: 9px 19px;
  margin: 26px auto 0;
  border: 1px solid #d5ab778f;
  background: transparent;
  cursor: pointer;
  transition: color .22s, background .22s;
}
.ags-gallery .ags-more:focus-visible { background: var(--ags-gold); color: #170f08; }
.ags-gallery .ags-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  color: var(--ags-ink);
}
.ags-lightbox[open] { display: grid; place-items: center; }
.ags-lightbox::backdrop { background: #0d0b09ee; animation: ags-fade-in .25s ease both; }
.ags-lightbox.ags-closing::backdrop { animation: ags-fade-out .19s ease both; }
@keyframes ags-fade-in { from { opacity: 0; } }
@keyframes ags-fade-out { to { opacity: 0; } }
body:has(.ags-lightbox[open]) { overflow: hidden; }
.ags-view {
  width: min(calc(100% - 24px), 1120px);
  display: grid;
  align-items: center;
  gap: clamp(5px, 1.3vw, 14px);
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}
.ags-view figure {
  margin: 0;
  text-align: center;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: min(77svh, 790px);
  gap: 8px;
}
.ags-view img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.ags-view figcaption { color: var(--ags-muted); font-size: .83rem; }
.ags-lightbox button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 0;
  padding: 0;
  border: 1px solid #ffffff60;
  background: #1b1612;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ags-lightbox button:focus-visible { border-color: var(--ags-gold); color: var(--ags-gold); }
.ags-lightbox button::before,
.ags-lightbox button::after { content: ""; position: absolute; }
.ags-lightbox button::before { width: 14px; height: 2px; background: currentColor; }
.ags-lightbox button::after {
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(2px) rotate(45deg);
}
.ags-lightbox .ags-prev::after { transform: translateX(-2px) rotate(-135deg); }
.ags-lightbox .ags-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.ags-lightbox .ags-close::before,
.ags-lightbox .ags-close::after {
  width: 14px;
  height: 2px;
  border: 0;
  background: currentColor;
  transform: rotate(45deg);
}
.ags-lightbox .ags-close::after { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .ags-filters button:not([aria-pressed="true"]):hover {
    background-color: #ffffff18;
    color: var(--ags-ink);
  }
  .ags-filters button[aria-pressed="true"]:hover { background-color: #e2b27929; }
  .ags-photo:hover img { transform: scale(1.055); }
  .ags-photo:hover .ags-zoom,
  .ags-gallery .ags-more:hover { background: var(--ags-gold); color: #170f08; }
  .ags-lightbox button:hover {
    background-color: var(--ags-gold);
    color: #170f08;
    border-color: var(--ags-gold);
  }
}
.ags-filters button:active { background-color: #e2b27936; }
@media (max-width: 800px) {
  .ags-gallery .ags-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 560px) {
  .ags-gallery-tools { flex-wrap: wrap; gap: 1px; }
  .ags-count { width: 100%; text-align: right; font-size: .72rem; }
  .ags-filters button { font-size: .79rem; padding-inline: 8px; }
  .ags-filters button::after { inset-inline: 8px; }
  .ags-gallery .ags-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ags-photo { --ags-photo-inset: 8px; --ags-icon-size: 28px; }
  .ags-services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 350px; font-size: .89rem; }
  .ags-view { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .ags-view button { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .ags-gallery *,
  .ags-gallery *::after,
  .ags-gallery .ags-lightbox::backdrop { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Only the Divi section that renders this shortcode is made full width. */
.et_pb_section:has(.ags-services),
.et_pb_row:has(.ags-services) {
  padding: 0 !important;
}
.et_pb_section:has(.ags-services) {
  background-color: #0d0b09 !important;
}
#main-content .et_pb_row:has(.ags-services) {
  width: 100% !important;
  max-width: none !important;
}
#serviceleistungen.ags-services {
  padding: clamp(35px, 5vw, 63px) 5% !important;
}
#serviceleistungen.ags-services ul {
  padding: 0 !important;
}
#serviceleistungen.ags-services li {
  padding: 13px 10px 0 !important;
}
.et_pb_column:has(.ags-services),
.et_pb_module:has(.ags-services) {
  margin-bottom: 0 !important;
}
.et_pb_text_inner > p:empty:has(+ .ags-services),
.et_pb_text_inner > .ags-gallery + p:empty {
  display: none;
}
