/* Project photography and interface captures. Shared by the dark site and /IMMO. */
.project-screen { margin: 0; min-width: 0; }
.project-screen__link {
  display: block;
  position: relative;
  border: 1px solid var(--border, #d7dce4);
  background: #f4f5f7;
  overflow: hidden;
  cursor: zoom-in;
}
.project-screen img { display: block; width: 100%; height: auto; }
.project-screen__link::after {
  content: 'Vergrössern ↗';
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: #060a12;
  color: #fff;
  font: 11px/1.4 var(--font-ui, sans-serif);
  border: 1px solid #697181;
  opacity: 0;
  transition: opacity .18s;
}
.project-screen__link:hover::after,
.project-screen__link:focus-visible::after { opacity: 1; }
.project-screen figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 0 0;
  color: var(--text-muted, #586475);
  font-size: 12px;
  line-height: 1.6;
}
.project-screen figcaption strong { color: var(--text, #152333); font-weight: 500; }
.project-screen figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.product-preview { padding: 0 0 clamp(40px, 6vw, 80px); }
.product-catalog { padding-top: clamp(36px, 4vw, 64px); }
.product-catalog .section__header { margin-bottom: 28px; }
.product-preview__intro { margin-bottom: 24px; max-width: 750px; }
.product-preview__intro h2 { font-size: clamp(21px, 3vw, 30px); letter-spacing: -.03em; }
.product-preview__intro p { color: var(--text-muted, #586475); font-size: 14px; margin-top: 8px; }
.screen-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.screen-grid--details { margin-top: 32px; }
.hero-previews { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
.hero-previews a { display: block; min-width: 0; }
.hero-previews img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid var(--border); }
.hero-previews span { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-top: 12px; }
.hero-previews small { color: var(--text-muted); font-size: 11px; font-weight: 400; }
.card--visual { padding: 0; gap: 0; overflow: hidden; }
.card--visual .card__screen { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); background: #f4f5f7; }
.card__content { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.card--visual .card__arrow { opacity: 1; transform: none; padding-top: 10px; }
.group-projects { display: grid; grid-template-columns: 1fr; gap: 34px 28px; }
#marken { scroll-margin-top: 100px; }
.group-projects .project-screen__link { aspect-ratio: 16 / 9; }
.group-projects img { height: 100%; object-fit: cover; object-position: top; }
.group-projects figcaption { display: block; }
.group-projects figcaption strong { display: block; font-size: 18px; margin-bottom: 4px; }
.group-projects figcaption a { display: inline-block; margin-top: 8px; }
.screen-dialog {
  position: fixed;
  inset: 0;
  width: min(1500px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 16px;
  border: 1px solid #596375;
  border-radius: 0;
  background: #0d1420;
  color: #e4e9f0;
  box-shadow: 0 20px 80px #0008;
}
.screen-dialog::backdrop { background: #030711e8; }
.screen-dialog__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 0 12px; }
.screen-dialog__title { font: 500 14px/1.6 var(--font-ui, sans-serif); margin: 0; }
.screen-dialog__close { flex: none; min-width: 44px; min-height: 44px; border: 1px solid #596375; border-radius: 0; padding: 8px 14px; background: transparent; color: #fff; cursor: pointer; font: 13px/1.5 var(--font-ui, sans-serif); }
.screen-dialog__image { display: block; max-height: calc(100dvh - 160px); max-width: 100%; width: auto; height: auto; margin: auto; object-fit: contain; background: #f4f5f7; }
.screen-dialog__close:focus-visible, .project-screen__link:focus-visible { outline: 3px solid #00b8dd; outline-offset: 4px; }
@media (min-width: 640px) {
  .hero-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen-grid, .group-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) { .screen-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (hover: none) { .project-screen__link::after { opacity: 1; } }
@media (max-width: 639px) {
  .hero-previews { gap: 24px; }
  .hero-previews a:not(:first-child) { display: none; }
  .screen-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 10px; }
  .screen-dialog__image { max-height: calc(100dvh - 130px); }
  .screen-dialog__title { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .project-screen__link::after { transition: none; } }
