/*
 * Gemeinsame Vorschau-Ergaenzungen fuer die inhaltlichen Unterseiten.
 * Die Live-Dateien bleiben unveraendert.
 */

.subpage-preview,
.preview-page {
  --preview-ink: #171719;
  --preview-muted: #66666d;
  --preview-line: #d9d9dc;
  --preview-paper: #f6f6f4;
  --preview-yellow: #ffd000;
}

.subpage-preview .site-header {
  border-bottom-color: rgba(23, 23, 25, 0.12);
}

.subpage-preview .detail-hero,
.subpage-preview .page-hero,
.subpage-preview .enterprise-hero {
  overflow: hidden;
}

.subpage-preview .detail-hero > img,
.subpage-preview .service-gallery img,
.subpage-preview .visual-card img,
.subpage-preview .service-card img {
  transition: transform 500ms ease, filter 500ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .subpage-preview .detail-hero:hover > img,
  .subpage-preview .visual-card:hover img,
  .subpage-preview .service-card:hover img {
    transform: scale(1.025);
  }
}

.preview-visual-section {
  display: grid;
  gap: 28px;
}

.preview-visual-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  gap: 36px;
  align-items: end;
}

.preview-visual-heading h2 {
  max-width: 780px;
  margin: 10px 0 0;
}

.preview-visual-heading > p {
  margin: 0;
  color: var(--preview-muted);
}

.preview-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.preview-image-slot {
  position: relative;
  min-width: 0;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(150deg, rgba(17, 17, 19, 0.82), rgba(17, 17, 19, 0.42)),
    repeating-linear-gradient(135deg, rgba(255, 208, 0, 0.11) 0 1px, transparent 1px 14px),
    #2a2a2e;
  border: 1px solid rgba(23, 23, 25, 0.14);
  border-radius: 6px;
  isolation: isolate;
}

.preview-image-slot::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.preview-image-slot::after {
  content: "+";
  position: absolute;
  top: 26px;
  right: 28px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--preview-ink);
  background: var(--preview-yellow, #ffd000);
  font: 700 27px/1 Arial, sans-serif;
}

.preview-image-slot.secondary {
  min-height: 350px;
  color: var(--preview-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 236, 232, 0.84)),
    repeating-linear-gradient(135deg, rgba(23, 23, 25, 0.05) 0 1px, transparent 1px 13px),
    #ecece8;
}

.preview-image-slot.secondary::before {
  border-color: rgba(23, 23, 25, 0.15);
}

.preview-slot-label {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 8px;
  color: var(--preview-ink);
  background: var(--preview-yellow);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-image-slot strong {
  max-width: 520px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.preview-image-slot small {
  max-width: 520px;
  margin-top: 10px;
  color: inherit;
  font-size: 0.93rem;
  line-height: 1.55;
  opacity: 0.8;
}

.preview-image-slot.wide {
  min-height: 420px;
}

.preview-image-slot.compact {
  min-height: 250px;
}

.preview-photo-slot {
  position: relative;
  min-width: 0;
  min-height: 350px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 25, 0.14);
  border-radius: 6px;
  background: #27272a;
  isolation: isolate;
}

.preview-photo-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.preview-photo-slot.wide {
  min-height: 420px;
}

.preview-photo-slot.compact {
  min-height: 285px;
}

.preview-photo-slot.square-image {
  border-radius: 0;
}

.preview-photo-slot picture,
.preview-photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.preview-photo-slot img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.preview-photo-slot::after {
  position: absolute;
  inset: 35% 0 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 19, 0.9));
  content: "";
  pointer-events: none;
}

.preview-photo-slot figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: #fff;
}

.preview-photo-slot figcaption span {
  width: fit-content;
  padding: 5px 8px;
  color: var(--preview-ink);
  background: var(--preview-yellow);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-photo-slot figcaption strong {
  max-width: 560px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.preview-photo-slot figcaption small {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .preview-photo-slot:hover img {
    transform: scale(1.025);
  }
}

.preview-image-slot.no-photo-needed::after {
  content: "i";
  font-family: Georgia, serif;
}

.preview-page-note {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 9px 12px;
  color: #36363a;
  background: #fff8d2;
  border: 1px solid #e5cc4d;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.preview-page-note::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--preview-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.2);
}

.subpage-preview .calculator-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.subpage-preview .calculator-preview-layout .calculator {
  margin: 0;
}

.calculator-support {
  display: grid;
  align-content: end;
  min-height: 100%;
}

.contact-project-visual {
  margin-top: 18px;
}

.contact-project-visual .preview-image-slot {
  min-height: 285px;
}

.guide-visual-break {
  margin-top: 12px;
}

.guide-visual-break .preview-image-slot {
  min-height: 320px;
}

.subpage-preview .service-grid .service-card.preview-service-card .preview-image-slot {
  min-height: 260px;
  padding: 20px;
  border: 0;
  border-radius: 0;
}

.subpage-preview .service-grid .service-card.preview-service-card .preview-image-slot strong {
  color: inherit;
}

.subpage-preview .service-grid .service-card.preview-service-card .preview-image-slot small {
  color: inherit;
}

@media (max-width: 920px) {
  .preview-visual-heading,
  .preview-visual-grid,
  .subpage-preview .calculator-preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-visual-heading {
    gap: 14px;
  }

  .preview-image-slot,
  .preview-image-slot.secondary {
    min-height: 300px;
  }

  .preview-image-slot.wide {
    min-height: 340px;
  }

  .preview-photo-slot,
  .preview-photo-slot.wide {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .preview-visual-section {
    gap: 20px;
  }

  .preview-image-slot,
  .preview-image-slot.secondary,
  .preview-image-slot.wide {
    min-height: 260px;
    padding: 22px;
  }

  .preview-image-slot::before {
    inset: 12px;
  }

  .preview-image-slot::after {
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
  }

  .preview-image-slot strong {
    font-size: 1.35rem;
  }

  .preview-photo-slot,
  .preview-photo-slot.wide {
    min-height: 280px;
  }

  .preview-photo-slot figcaption {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .preview-photo-slot figcaption small {
    font-size: 0.82rem;
  }

  .preview-page-note {
    margin-inline: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-preview .detail-hero > img,
  .subpage-preview .service-gallery img,
  .subpage-preview .visual-card img,
  .subpage-preview .service-card img {
    transition: none;
  }

  .preview-photo-slot img {
    transition: none;
  }
}

/* Architekturpanorama: gemeinsamer Hero fuer redaktionelle Unterseiten */
.subpage-panorama {
  position: relative;
  display: grid;
  align-items: end;
  width: 100%;
  height: auto;
  min-height: 620px;
  margin: 0 0 64px;
  padding: 154px max(24px, calc((100vw - 1180px) / 2)) 70px;
  overflow: hidden;
  isolation: isolate;
  color: #17171a;
  background: #e8e8e4;
}

.subpage-panorama::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 247, 244, 0.98) 0%, rgba(247, 247, 244, 0.92) 42%, rgba(247, 247, 244, 0.5) 68%, rgba(247, 247, 244, 0.16) 100%),
    linear-gradient(0deg, rgba(247, 247, 244, 0.32), rgba(247, 247, 244, 0.08) 46%);
  content: "";
}

.subpage-panorama::after {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 9px;
  background: var(--preview-yellow, #ffd000);
  content: "";
}

.subpage-panorama-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
}

.subpage-panorama-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.subpage-panorama--maler .subpage-panorama-media img {
  object-fit: contain;
  object-position: right center;
}

.subpage-panorama-breadcrumb {
  position: absolute;
  z-index: 3;
  top: 124px;
  left: max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  width: auto;
  max-width: calc(100% - 48px);
  height: auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: #5b5b61;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  border: 0;
}

.subpage-panorama-breadcrumb a {
  color: #202024;
  text-decoration: underline;
  text-decoration-color: var(--preview-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.subpage-panorama-breadcrumb i {
  color: #8a8a90;
  font-style: normal;
}

.subpage-panorama-number {
  display: none;
}

.subpage-panorama-copy {
  position: relative;
  z-index: 2;
  width: min(920px, 78%);
  padding: 0;
}

.subpage-panorama-copy .eyebrow {
  margin-bottom: 14px;
  padding-inline: 10px;
  color: #17171a;
}

.subpage-panorama-copy h1 {
  max-width: 900px;
  margin: 0;
  color: #17171a;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(3rem, 5.4vw, 5.15rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subpage-panorama-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: #55555b;
  font-size: 1rem;
  line-height: 1.48;
}

.subpage-panorama-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.subpage-panorama-actions .button {
  min-height: 46px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.subpage-panorama .panorama-project-button {
  color: #17171a;
  border: 1px solid rgba(20, 20, 23, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(18, 18, 20, 0.08);
}

.subpage-panorama .panorama-project-button:hover {
  color: #17171a;
  background: #fff;
}

.subpage-panorama .panorama-whatsapp {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: #0b2616;
  border: 1px solid #149447;
  border-radius: var(--radius);
  background: #25d366;
  box-shadow: inset 0 -5px 0 rgba(11, 38, 22, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.subpage-panorama .panorama-whatsapp:hover {
  color: #071b0f;
  border-color: #107c3c;
  background: #20bd5b;
}

.subpage-panorama .panorama-whatsapp:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.42);
  outline-offset: 3px;
}

.subpage-panorama .panorama-whatsapp:active {
  box-shadow: inset 0 -2px 0 rgba(11, 38, 22, 0.18);
  transform: translateY(2px);
}

.subpage-panorama-facts {
  display: none;
}

.subpage-panorama-facts div {
  min-width: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--preview-yellow);
}

.subpage-panorama-facts dt {
  margin-bottom: 5px;
  color: #6d6d73;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.subpage-panorama-facts dd {
  margin: 0;
  color: #17171a;
  font-size: 0.82rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .preview-photo-slot.compact {
    min-height: 250px;
  }

  .subpage-panorama {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 420px;
    margin-bottom: 0;
    padding: 146px 20px 34px;
  }

  .subpage-panorama-breadcrumb {
    top: 122px;
    left: 20px;
    max-width: calc(100% - 40px);
  }

  .subpage-panorama::before {
    background: linear-gradient(180deg, rgba(247, 247, 244, 0.26) 0%, rgba(247, 247, 244, 0.72) 34%, rgba(247, 247, 244, 0.96) 58%, rgba(247, 247, 244, 0.99) 100%);
  }

  .subpage-panorama-media img { object-position: 58% center; }

  .subpage-panorama--maler .subpage-panorama-media img {
    object-position: center top;
  }

  .subpage-panorama-copy {
    width: 100%;
    padding: 0;
  }

  .subpage-panorama-copy .eyebrow { margin-bottom: 18px; }
  .subpage-panorama-copy h1 { font-size: clamp(2.65rem, 10.8vw, 3.65rem); }
  .subpage-panorama-lead { font-size: 0.98rem; }

  .subpage-panorama-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .subpage-panorama-actions .button,
  .subpage-panorama .panorama-whatsapp {
    width: 100%;
    text-align: center;
  }

}

@media (max-width: 420px) {
  .subpage-panorama {
    min-height: 420px;
    padding: 148px 16px 28px;
  }


  .subpage-panorama-breadcrumb {
    top: 122px;
    left: 16px;
    max-width: calc(100% - 32px);
    font-size: 0.72rem;
  }

  .subpage-panorama-copy h1 {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
    line-height: 0.94;
  }

}
