/* Portfolio and location discovery for the main rendering page. */
body[data-rendering-hub] .btn-secondary[data-rendering-cta="aerofrohne_quote"] {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(110deg, #2558ee 0%, #61abff 40%, #20bfae 70%, #2558ee 100%) border-box;
}

body[data-rendering-hub] .btn-secondary[data-rendering-cta="aerofrohne_quote"]:hover {
  background:
    linear-gradient(#f0f5fa, #f0f5fa) padding-box,
    linear-gradient(110deg, #2558ee 0%, #61abff 40%, #20bfae 70%, #2558ee 100%) border-box;
}

@media (forced-colors: active) {
  body[data-rendering-hub] .btn-secondary[data-rendering-cta="aerofrohne_quote"],
  body[data-rendering-hub] .btn-secondary[data-rendering-cta="aerofrohne_quote"]:hover {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
}

body[data-rendering-hub] .gallery-section {
  padding-block: 20px 88px;
}

body[data-rendering-hub] .gallery-sub {
  margin-top: 18px;
  max-width: 66ch;
  font-size: .94rem;
}

body[data-rendering-hub] .gallery-search {
  max-width: 520px;
  margin-block: 30px 22px;
}

body[data-rendering-hub] .gallery-search label {
  display: block;
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 650;
  color: var(--cyan);
}

body[data-rendering-hub] #gallerySearch {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #b8c6d6;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
}

body[data-rendering-hub] #gallerySearch::placeholder {
  color: #617180;
  opacity: 1;
}

body[data-rendering-hub] #gallerySearch:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

body[data-rendering-hub] .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

body[data-rendering-hub] .tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 51, 86, .05);
}

body[data-rendering-hub] .tile[hidden] {
  display: none;
}

body[data-rendering-hub] .tile-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--cyan);
  font: inherit;
  text-align: left;
}

body[data-rendering-hub] .tile-btn:focus-visible {
  outline-offset: -4px;
}

body[data-rendering-hub] .tile-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex-shrink: 0;
}

body[data-rendering-hub] .tile-caption {
  display: block;
  flex: 1;
  padding: 18px 20px;
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.5;
}

body[data-rendering-hub] .tile-btn:hover .tile-caption {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-rendering-hub] #galleryStatus {
  min-height: 1.6em;
  margin-block: 0 22px;
  font-size: .85rem;
}

body[data-rendering-hub] .gallery-more {
  display: flex;
  justify-content: center;
}

body[data-rendering-hub] #galleryMore {
  margin-top: 28px;
}

body[data-rendering-hub] #galleryMore[hidden] {
  display: none;
}

body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] {
  width: min(var(--max), calc(100% - 64px)) !important;
  margin: 0 auto 88px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] > p {
  margin-block: 20px 28px !important;
  opacity: 1 !important;
  font-size: .9rem;
}

body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] ul {
  gap: 20px !important;
}

body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] li a {
  padding: 22px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 51, 86, .05);
}

body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] li a:hover {
  border-color: #9ab6e1 !important;
}

body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] strong {
  color: var(--cyan) !important;
  font-size: .86rem;
  line-height: 1.5;
}

body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] li span {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: .79rem;
  opacity: 1 !important;
}

body[data-rendering-hub] #renderPreview {
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(27, 51, 86, .25);
}

body[data-rendering-hub] #renderPreview::backdrop {
  background: rgba(20, 32, 42, .4);
}

body[data-rendering-hub] .preview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  background: #fff;
}

body[data-rendering-hub] .preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body[data-rendering-hub] .preview-media {
  min-width: 0;
}

body[data-rendering-hub] #previewTitle {
  align-self: center;
  min-width: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.3;
}

body[data-rendering-hub] #previewClose,
body[data-rendering-hub] .preview-controls button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #9badbf;
  border-radius: 7px;
  background: #fff;
  color: var(--cyan);
  font: inherit;
  font-size: .85rem;
  font-weight: 650;
}

body[data-rendering-hub] #previewClose:hover,
body[data-rendering-hub] .preview-controls button:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(37, 88, 238, .12);
}

body[data-rendering-hub] #previewImage {
  grid-column: 1 / -1;
  width: 100%;
  height: min(65vh, 720px);
  height: min(65dvh, 720px);
  object-fit: contain;
  background: #fff;
  touch-action: pan-y;
}

body[data-rendering-hub] .preview-controls {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

body[data-rendering-hub] .preview-controls button:disabled {
  cursor: default;
  opacity: .45;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  body[data-rendering-hub] .gallery-search label,
  body[data-rendering-hub] .tile-caption,
  body[data-rendering-hub] #previewTitle,
  body[data-rendering-hub] #previewClose,
  body[data-rendering-hub] .preview-controls button,
  body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] strong {
    background-image: linear-gradient(110deg, #2558ee 0%, #61abff 40%, #20bfae 70%, #2558ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
  }
}

@media (max-width: 900px) {
  body[data-rendering-hub] .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body[data-rendering-hub] .gallery-section {
    padding-bottom: 64px;
  }

  body[data-rendering-hub] .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] {
    width: calc(100% - 40px) !important;
    margin-bottom: 64px !important;
  }

  body[data-rendering-hub] #renderPreview {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  body[data-rendering-hub] .preview-panel {
    gap: 16px;
    padding: 16px;
  }

  body[data-rendering-hub] #previewClose {
    padding-inline: 12px;
  }

  body[data-rendering-hub] #previewImage {
    height: 56vh;
    height: 56dvh;
  }
}

@media (forced-colors: active) {
  body[data-rendering-hub] .gallery-search label,
  body[data-rendering-hub] .tile-caption,
  body[data-rendering-hub] #previewTitle,
  body[data-rendering-hub] #previewClose,
  body[data-rendering-hub] .preview-controls button,
  body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] strong {
    background-image: none;
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText;
  }

  body[data-rendering-hub] #renderPreview,
  body[data-rendering-hub] .preview-panel,
  body[data-rendering-hub] #previewImage,
  body[data-rendering-hub] .tile,
  body[data-rendering-hub] .tile-btn,
  body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"],
  body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] li a {
    background: Canvas !important;
    color: CanvasText;
    box-shadow: none;
  }

  body[data-rendering-hub] #gallerySearch,
  body[data-rendering-hub] #previewClose,
  body[data-rendering-hub] .preview-controls button,
  body[data-rendering-hub] #renderPreview,
  body[data-rendering-hub] .tile,
  body[data-rendering-hub] section[aria-labelledby="service-location-title-3d-rendering"] li a {
    border-color: ButtonText !important;
  }
}
