/* Lokale Verfeinerung nach der verbindlichen Master-Referenz. */
body:has(#site-view), html:has(> .legal-page) {
  background: radial-gradient(ellipse at 50% 15%, #172c40, #0b1825 58%, #070f18);
}
#site-view {
  position: relative;
  width: min(100%, var(--site-max-width));
  margin-inline: auto;
  container: mst-site / inline-size;
  --disclosure-height: clamp(44px, 5.2cqw, 56px);
}
:root {
  --site-max-width: 1440px;
  --layout-width: min(100vw, var(--site-max-width));
  --request-button-width: clamp(120px, calc(45cqw - 6px), 136px);
  --request-button-height: 64px;
  --request-button-gap: 10px;
  --service-photo-gap: clamp(16px, 1.3vw, 18.72px);
}
.site-header{background:none}
.hero-shade{display:none;background:none}
.hero-picture{inset:0;mask-image:none}
.hero-picture::after {
  content: "";
  position: absolute;
  inset: 20% 0 0;
  background: linear-gradient(45deg, rgb(13 32 48 / .52), rgb(13 32 48 / .4) 45%, transparent 78%);
  mask-image: linear-gradient(to right, #000 26%, transparent 61%),
              linear-gradient(to top, #000 38%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.hero-picture img{object-fit:cover;object-position:50% 45%;filter:contrast(.96)}
.hero{background:#142c40}
.hero h1,.hero-copy>p,.section-rail{text-shadow:0 2px 12px #07182790}
.hero h1,.hero-copy>p{text-shadow:0 1px 3px #071827d9,0 3px 15px #07182760}
.hero h1{text-shadow:0 2px 8px #09293d80}
.film-control{text-shadow:0 1px 3px #071827e0}
.hero-copy{top:36%}
#hero-title + p { margin-block-start: 6px; }
.brand,.footer-brand{background:#f0ede4;border-color:#e8e3d599}
.section-rail a{position:relative;transition:color .3s,border-color .3s,transform .3s}
.section-rail a:first-child{color:inherit;border-color:#fff6}
.section-rail a[aria-current="location"]{color:var(--orange);border-color:var(--orange);transform:translateX(-3px)}
.section-rail a:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:currentColor;left:-2.5px;top:50%;opacity:0;transition:opacity .3s}
.section-rail a[aria-current="location"]:after{opacity:1}

/* Die leere Halle trägt nur das Material. Ring, Karten und ihre Spiegelungen bewegen sich separat. */
:root {
  --section-heading-space: clamp(14px, 1.15cqw, 30px);
  --services-card-growth: clamp(5px, .55cqw, 15px);
  --service-card-height: calc(clamp(160px, 24.5cqw, 460px) + var(--services-card-growth));
  --service-stage-height: clamp(330px, 28.5cqw, 520px);
  --services-title-to-stage: calc(1.3 * var(--section-heading-space));
  /* Die vordere Leistungskarte steht senkrecht mittig in der Bühne. */
  --title-to-card-gap: calc(var(--services-title-to-stage) + (var(--service-stage-height) - var(--service-card-height)) / 2);
}
.services {
  background: #172531 url('../assets/images/services/halle-2000.webp') center / cover no-repeat;
  padding-bottom: 18px;
}
.services::before, .services::after { content: none; }
.services .center-heading, .carousel-controls, .drag-hint, .asset-note { position: relative; z-index: 1; }
.services .center-heading { margin-block-end: var(--services-title-to-stage); }
.services .center-heading .eyebrow { margin-block-end: var(--section-heading-space); }
.carousel-stage {
  height: var(--service-stage-height);
  min-height: 0;
  max-height: none;
  margin-inline: auto;
  max-width: 1920px;
}
.service-card {
  width: clamp(190px, 29cqw, 560px);
  height: var(--service-card-height);
  border: 1px solid #b2bdc29c;
  box-shadow: 0 8px 14px #0810196b;
}
.service-card.active {
  border: 2px solid #ffcb94;
  box-shadow: 0 0 3px #fff0cb99, 0 0 12px #ff942c88, 0 0 28px #e0792d38, 0 12px 20px #040c1073;
}
.service-card::after { background: linear-gradient(0deg, #0c1929f5, #132236b3 17%, transparent 46%); }
.service-card .card-title {
  left: 6%; right: 6%; bottom: 7%;
  overflow-wrap: normal; hyphens: none; white-space: nowrap;
}
.service-card:not(.active) .card-title {
  font-size: clamp(15px, 1.8cqw, 28px);
  max-width: none;
}
.service-card:not(.active) .card-title::after { display: none; }
.service-card[data-side] .card-title {
  text-align: center;
  transform: translateX(var(--caption-shift, 0%));
}
.service-card.active .card-title::after {
  width: clamp(22px, 2.15cqw, 62px);
  height: clamp(2px, .12cqw, 4px);
  margin: .33em auto 0;
}
.floor-ring {
  left: 4.5%; width: 91%; bottom: 0; height: 28%;
  border: 1px solid #ffb569;
  box-shadow: 0 0 2px #fff0c2, 0 0 7px #ff8d39ba, inset 0 0 5px #f8752442, 0 5px 14px #ff8b412b;
}
.floor-ring::after {
  content: ""; position: absolute; inset: 3px 0 -5px; border: 2px solid #ff994c61;
  border-radius: inherit; filter: blur(4px); pointer-events: none;
}
.carousel-controls { gap: 12px; align-items: center; }
.carousel-controls p { min-width: 6ch; font-variant-numeric: tabular-nums; letter-spacing: .12em; font-size: 13px; }
.services .carousel-controls button {
  border: 0; border-radius: 50%; min-width: 44px; min-height: 44px; padding: 0;
  color: var(--orange); font-size: 23px; line-height: 1; text-shadow: 0 0 7px #ee8b4970;
}
.carousel-controls button:hover { background: #15263499; }
@media (max-width: 900px) {
  .services { background-image: url('../assets/images/services/halle-900.webp'); }
}

.facade {
  margin: 0;
  border-inline-start: 1px solid var(--orange);
}
.facade > img {
  position: absolute;
  inset: 0;
  object-position: center;
  filter: none;
}
.facade-caption{background:#e6e0d5e8;font-size:12px;pointer-events:none}

.projects {
  --gallery-bottom-inset: 0px;
  position: relative;
  background: radial-gradient(ellipse at 75% 100%,#42525a38,transparent 65%), repeating-linear-gradient(90deg,transparent 0 calc(33.333% - 1px),#a5b5c515 calc(33.333% - 1px) 33.333%), linear-gradient(135deg,#101f2b,#20323e 65%,#0d1e29);
}
:root { --section-inset: 5cqw; }
.process-body {
  --process-copy-end: clamp(12px, 1.3cqw, 24px);
  grid-template-columns: minmax(calc(var(--section-inset) + 336px + var(--process-copy-end)), 39%) minmax(0, 1fr);
}
.process-copy { padding-inline: var(--section-inset) var(--process-copy-end); }
.process-copy h2 { font-size: clamp(25px, 2.75cqw, 47px); text-wrap: balance; }
@media (min-width: 641px) {
  .process-copy { padding-block-start: clamp(22px, 1.55cqw, 44px); }
  .facade > img { object-position: center top; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .process-body { grid-template-columns: minmax(0, 45%) minmax(0, 1fr); }
  .process-copy h2 { font-size: clamp(22px, 3.45cqw, 31px); }
}
@container mst-site (max-width: 880px) {
  .process-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .facade { min-height: 0; height: auto; border-inline-start: 0; border-block-start: 1px solid var(--orange); }
  .facade > img { position: static; height: auto; }
}
@media (max-width: 520px) {
  .process-copy h2 { font-size: clamp(25px, 7.5cqw, 36px); }
}
.project-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label label" "title controls";
  align-items: center;
  column-gap: clamp(12px, 1.6cqw, 54px);
  row-gap: var(--section-heading-space);
  padding-bottom: var(--title-to-card-gap);
  padding-inline: var(--section-inset);
}
.project-heading .eyebrow { grid-area: label; margin: 0; white-space: nowrap; }
.project-heading h2 { grid-area: title; align-self: start; font-size: clamp(29px, 3.25cqw, 51px); }

.project-card{box-shadow:0 3px 8px #0c111752}
.project-architecture{opacity:.8;background:repeating-linear-gradient(90deg,transparent 0 56px,#9fb2bd44 56px 57px),repeating-linear-gradient(0deg,#ffffff02 0 46px,#a5bdca38 46px 47px);mask-image:linear-gradient(transparent,#000)}
.architecture-four{transform:skewY(-7deg) scale(1.2);background-size:45px 45px;background-color:#40525a44}
.project-label::after, .contact::before { content: none; }
.reference-index {
  --reference-index-inset: clamp(10px, 1.2cqw, 32px);
  --reference-summary-lines: 1;
  margin-inline: var(--section-inset);
  padding: var(--reference-index-inset) 0;
  border-bottom: 1px solid #a8bbc12b;
  font-size: 14px;
}
.reference-index[open] {
  padding-block-end: calc(var(--reference-index-inset) + max(32px, var(--reference-summary-lines) * 1lh + 10px) + var(--gallery-bottom-inset));
}
:is(.company, .reference-index, .contact-verification) > summary {
  width: fit-content;
  cursor: pointer;
  min-block-size: var(--disclosure-height);
  padding: max(8px, calc((var(--disclosure-height) - 1lh) / 2)) 0;
  font: 400 14px/1.58 var(--font-ui);
  letter-spacing: normal;
  color: var(--orange);
  text-shadow: none;
}
:is(.company, .reference-index, .contact-verification) > summary::marker { color: currentColor; }
:is(.company, .reference-index, .contact-verification) > summary:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.reference-content {
  --reference-column-padding: clamp(16px, 1.6cqw, 40px);
  --reference-logo-gap: clamp(7px, .7cqw, 14px);
  --reference-logo-height: clamp(76px, 6.6cqw, 138px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr);
  align-items: start;
  gap: 1.5em clamp(18px, 2cqw, 48px);
  padding-block: clamp(22px, 1.7cqw, 40px);
}
.reference-content h3 { font-size: clamp(20px, 1.45cqw, 34px); }
.reference-content > :not(:first-child) {
  border-inline-start: 1px solid #a8bbc142;
  padding-inline-start: var(--reference-column-padding);
}
.reference-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--reference-logo-gap);
  list-style: none;
  margin: .8em 0 0;
  padding: 0;
}
@media (min-width: 720px) {
  .reference-content { row-gap: .8em; }
  .reference-brands {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
  .reference-logos { margin-block-start: 0; }
  .reference-brands:first-child .reference-logos {
    margin-inline-end: calc(var(--reference-column-padding) + 1px);
  }
}
:is(.reference-logos, .detail-partner) a {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: var(--reference-logo-height, 76px);
  padding: 6px 8px;
  border: 1px solid #bbc6c445;
  border-radius: 4px;
  overflow: hidden;
}
:is(.reference-logos, .detail-partner) a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(var(--reference-logo-tint, 255, 255, 255), var(--reference-logo-alpha, .15));
  backdrop-filter: blur(3px) brightness(var(--reference-logo-glass, 1.8));
  pointer-events: none;
}
.reference-logo--dh { --reference-logo-tint: 0, 0, 0; --reference-logo-alpha: .2; }
.reference-logo--adler { --reference-logo-tint: 50, 95, 96; --reference-logo-alpha: .25; }
.reference-logo--roma { --reference-logo-tint: 223, 121, 21; --reference-logo-alpha: .3; }
a:is(.reference-logo--dh, .reference-logo--adler, .reference-logo--roma) {
  --reference-logo-glass: 1;
}
:is(.reference-logos, .detail-partner) a:is(:hover, :focus-visible) { border-color: var(--orange); }
.reference-logos a:focus-visible, .detail-partner a { --reference-logo-alpha: 1; }
@media (hover: hover) {
  .reference-logos a:hover { --reference-logo-alpha: 1; }
}
:is(.reference-logos, .detail-partner) img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.reference-logo--red img { filter: saturate(.91); }
.reference-logo--hilzinger24 img { filter: saturate(.85); }
.reference-publication-content {
  --publication-preview-height: clamp(55px, 5.25cqw, 102px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--publication-preview-height);
  gap: var(--reference-logo-gap);
  margin-block-start: .8em;
}
.reference-publication-feature {
  display: grid;
  grid-template-columns: minmax(80px, min(36%, 150px)) minmax(0, 1fr);
  align-items: start;
  gap: 1em;
}
.reference-publication-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 5px 15px #050b1280;
}
.reference-publication-cover { min-height: 0; height: 100%; }
.reference-publication-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.reference-publication-preview span { position: relative; overflow: hidden; border-radius: 2px; }
.reference-publication-preview img {
  position: absolute;
  top: 0;
  width: max(263%, calc(var(--publication-preview-height) * 3.95));
  max-width: none;
  height: auto;
}
.reference-publication-preview span:nth-child(odd) img { left: 0; }
.reference-publication-preview span:nth-child(even) img { right: 0; }
.reference-publication p { color: #c2ced5; margin: 0 0 .55em; }
.reference-publication-feature div a, .contact-email { border-bottom: 1px solid var(--orange); }
@media (min-width: 961px) {
  .reference-publication {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
  .reference-publication-content {
    height: calc(3 * var(--reference-logo-height) + 2 * var(--reference-logo-gap));
    margin-block-start: 0;
  }
  .reference-publication-cover img { width: auto; max-width: 100%; max-height: 100%; }
}
.contact-email{border-bottom:1px solid var(--orange)}
.contact-email{display:inline-block;width:fit-content;margin-top:8px}
.outline.orange, .contact-actions .outline {
  border-radius: 4px;
  corner-shape: bevel;
}
.contact-actions .outline {
  flex: none;
  inline-size: var(--request-button-width);
  min-block-size: var(--request-button-height);
}
.contact-actions {
  flex-wrap: wrap;
  gap: var(--request-button-gap);
}
.contact-actions .outline {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
}
.contact {
  --contact-bottom-padding: 18px;
  padding-inline: var(--section-inset);
  padding-block-end: var(--contact-bottom-padding);
}
.contact:has(> .contact-verification[open]) {
  padding-block-end: calc(2 * var(--contact-bottom-padding));
}
@media (max-width: 520px) {
  .contact { --contact-bottom-padding: 30px; }
}
.contact-verification { font-size: clamp(16px, 1.12cqw, 25px); }
.process-copy > p:last-child, .contact > p {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.05cqw, 18px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .018em;
}
.contact > p { border-inline-start-color: var(--orange); }
@media (min-width: 651px) {
  .contact {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: clamp(14px, 1.4cqw, 22px);
    align-items: center;
  }
  .contact h2 { font-size: clamp(30px, 2.8cqw, 41px); }
  .contact > p {
    margin: 0;
    padding-inline-start: 16px;
  }
  .contact-actions { grid-column: 1 / -1; }
}
@media (min-width: 1150px) {
  .contact { grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .contact-actions { grid-column: auto; }
}
@media (min-width: 521px) and (max-width: 650px) {
  .contact { grid-template-columns: 1fr; }
  .contact > p { padding: 0; border: 0; }
}
.contact-verification {
  padding-block-start: clamp(14px, 1.5cqw, 30px);
  border-block-start: 1px solid rgb(255 255 255 / .44);
}
.contact-verification address {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 11em) minmax(0, 1fr);
  gap: clamp(14px, 2cqw, 32px);
  margin-block: 1em .4em;
  font-style: normal;
}
.contact-identity, .contact-postal { display: grid; align-content: start; gap: .12em; }
.contact-identity strong { color: var(--white); font-weight: 600; }
.contact-postal, .contact-channels {
  padding-inline-start: clamp(12px, 1.7cqw, 25px);
  border-inline-start: 1px solid #ed761d73;
}
.contact-channels {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-content: start;
  gap: .4em .9em;
  margin: 0;
}
.contact-channels dd { margin: 0; overflow-wrap: anywhere; }
.contact-verification .contact-email { display: inline; margin: 0; font-size: 1em; }
@media (max-width: 680px) {
  .contact-verification address {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    font-size: 14px;
  }
  .contact-identity, .contact-postal { overflow-wrap: anywhere; }
  .contact-channels {
    grid-column: 1 / -1;
    padding: .55em 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid #ed761d45;
  }
}
@media (min-width: 901px) {
  .process-actions {
    --process-action-height: var(--disclosure-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding-inline: var(--section-inset);
    border-top: 1px solid #58667130;
  }
  .process-actions .company {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0;
    border: 0;
  }
  .process-actions .company > summary {
    max-width: 54%;
  }
  .process-actions .process-steps {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    align-items: center;
    min-height: var(--process-action-height);
    border: 0;
    padding: 0;
  }
}
@media (max-width: 900px) {
  .process-actions .company { padding-inline: var(--section-inset); }
}
.process-steps a { display: inline-flex; align-items: baseline; gap: .5em; padding-block: .3em; }
.process-steps a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .24em; }
.company-content .company-steps { list-style: none; margin: 0; padding: 0; }
.company-steps > li { display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: .85em; align-items: baseline; scroll-margin-top: 1.5rem; }
.company-steps > li + li { margin-top: .95em; }
.company-steps > li > p:last-child { grid-column: 2; margin: 0; }
.process .process-number { color: #a34711; }
.company-steps > li.is-current-step .process-number { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 380px) {
  .process-steps { justify-content: space-between; gap: .4em; }
  .process-steps a { flex-direction: column; gap: .15em; }
}

/* Der Bildstreifen folgt dem Schnittwinkel der drei Architekturansichten im Master. */
.project-strip {
  /* Außerhalb des beschnittenen Scrollbereichs bleibt der Schatten sichtbar. */
  filter: drop-shadow(0 4px 4px rgb(5 12 17 / .48));
}
.project-gallery {
  position: relative;
  gap: 4px;
  padding-inline: 5.8%;
  padding-block-end: var(--gallery-bottom-inset);
  scroll-padding-inline: 5.8%;
  scrollbar-width: none;
  user-select: none;
}
.project-gallery::-webkit-scrollbar { display: none; }
.project-gallery.is-dragging { scroll-snap-type: none; }
.project-gallery.is-dragging, .project-gallery.is-dragging .project-card { cursor: grabbing; }
.project-card,
.project-card:focus-visible {
  --edge-opacity: 0;
  --project-caption-height: max(25%, 58px);
  flex: 0 0 calc((100% - 8px) / 3);
  height: 20cqw;
  margin: 0;
  overflow: hidden;
  clip-path: none;
  transform: skewX(-20deg);
  scroll-snap-align: start;
  isolation: isolate;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--project-caption-height);
  border-top: 1px solid #fff4;
  backdrop-filter: blur(4px) brightness(.59);
  opacity: .95;
  pointer-events: none;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: clamp(2px, .13cqw, 4px);
  background: var(--orange);
  box-shadow: 0 -1px 5px rgb(237 118 29 / .65);
  opacity: var(--edge-opacity);
  pointer-events: none;
}
.project-gallery:not(:has(.project-card:hover)) .project-card:focus-visible {
  --edge-opacity: 1;
  border-bottom-color: var(--orange);
}
@media (hover: hover) {
  .project-gallery:not(.is-dragging) .project-card:hover {
    --edge-opacity: 1;
    border-bottom-color: var(--orange);
  }
}
.project-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease-out;
}
.project-card:hover .project-illustration,
.project-card:focus-visible .project-illustration { transform: scale(1.025); }
.project-card .project-label {
  z-index: 1;
  inset: auto 5% 0 8%;
  height: var(--project-caption-height);
  display: grid;
  align-content: center;
  gap: .25em;
  padding-block: 4px;
  transform: skewX(20deg);
  transform-origin: left bottom;
  color: #fff;
  text-shadow: 0 1px 3px #071520, 0 1px 6px #071520bb;
}
.project-label::before { content: none; }
.project-client {
  font: 500 clamp(11px, .94cqw, 25px)/1.2 var(--font-ui);
}
.project-name {
  font: 400 clamp(13px, 1.4cqw, 46px)/1.15 var(--font-title);
}
.gallery-navigation { grid-area: controls; display: flex; align-items: center; gap: 14px; }
#gallery-count {
  min-width: 6.5ch;
  text-align: center;
  color: #eeeae2;
  font: 500 clamp(13px, .96cqw, 28px)/1.3 var(--font-ui);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gallery-navigation button {
  width: 42px;
  height: 42px;
  border: 1px solid #becbd3;
  border-radius: 50%;
  line-height: 1;
  font-size: 20px;
}
.gallery-navigation button:enabled:focus-visible {
  color: var(--orange);
  border-color: currentColor;
  background-color: rgb(237 118 29 / .1);
}
@media (hover: hover) {
  .gallery-navigation button:enabled:hover {
    color: var(--orange);
    border-color: currentColor;
    background-color: rgb(237 118 29 / .1);
  }
}
.gallery-navigation button:disabled { opacity: .4; }
.service-card.active .card-title { font-size: clamp(28px, 2.55cqw, 46px); }
@media (min-width: 801px) {
  .project-gallery {
    --panel-offset: clamp(43.68px, 3.64cqw, 63.7px);
    clip-path: polygon(
      calc(5.8% + var(--panel-offset)) 0,
      calc(94.2% + var(--panel-offset)) 0,
      calc(94.2% - var(--panel-offset)) 100%,
      calc(5.8% - var(--panel-offset)) 100%
    );
  }
  .services { padding: 1.9cqw 0 14px; }
  .services .eyebrow { margin-bottom: 6px; }
  .carousel-controls { gap: 14px; }
  .carousel-controls button { min-height: 36px; padding: 5px 12px; }
  .drag-hint { margin: 4px 0 0; }
}
@media (max-width: 800px) {
  .project-card, .project-card:focus-visible { flex-basis: 48%; height: 285px; }
}
@container mst-site (max-width: 1150px) {
  .project-heading { column-gap: 12px; }
  .project-heading h2 { font-size: clamp(22px, 3.05cqw, 34px); }
  .gallery-navigation { gap: 7px; }
  .gallery-navigation button { width: 38px; height: 38px; }
}
@media (max-width: 960px) {
  .reference-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-content > .reference-publication {
    grid-column: 1 / -1;
    padding: 1em 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid #a8bbc142;
  }
  .reference-publication-preview { max-width: 36rem; }
}
@media (max-width: 719px) {
  .project-heading h2 { font-size: clamp(24px, 4.6cqw, 32px); text-wrap: balance; }
  .reference-content { grid-template-columns: minmax(0, 1fr); }
  .reference-content > .reference-brands + .reference-brands {
    padding: 1em 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid #a8bbc142;
  }
}
@media (max-width: 460px) {
  .reference-index { --reference-summary-lines: 2; }
}
@media (max-width: 380px) {
  .project-card .project-label { inset-inline: 6% 2%; }
  .project-name { font-size: 12px; letter-spacing: 0; }
}
@media (max-width: 520px) {
  :root { --section-inset: 7cqw; }
  :root { --service-stage-height: 340px; }
  .projects { --gallery-bottom-inset: 10px; }
  .project-heading { padding-block-start: 18px; }
  .gallery-navigation { gap: 8px; }
  .gallery-navigation button { width: 38px; height: 38px; }
  .project-gallery { padding-inline: 9%; scroll-padding-inline: 9%; }
  .project-card, .project-card:focus-visible { flex-basis: 91%; height: 260px; min-height: 260px; transform: skewX(-13deg); }
  .project-card .project-label { transform: skewX(13deg); }
}
@media (prefers-reduced-motion: reduce) { .project-illustration { transition: none; } }

@media (min-width: 1081px) {
  #site-view .hero { height: max(580px, 53.7037cqw); }
  #site-view .hero-copy { top: 36%; }
  #site-view .hero h1 { font-size: clamp(40.32px, 3.744cqw, 64.8px); }
  #site-view .hero-copy > p { font-size: clamp(17px, 1.55cqw, 24px); }
  .services .center-heading h2 { font-size: clamp(32px, 3.55cqw, 55px); }
}
@media (min-width: 651px) and (max-width: 800px) {
  .hero-copy { top: 36%; }
  .hero-picture { left: 0; }
  .hero-picture img { object-position: 46% center; }
}
@media (max-width: 650px) {
  .hero {
    --mobile-hero-height: clamp(545px, 83svh, 740px);
    --mobile-crop-offset: clamp(0px, calc((390px - 100cqw) * .5), 35px);
    height: var(--mobile-hero-height);
    min-height: 0;
  }
  .hero-picture, .hero-video { inset: 0; height: 100%; }
  .window-hotspot {
    left: calc(73% - .38 * var(--mobile-hero-height) + var(--mobile-crop-offset));
    top: calc(.36 * var(--mobile-hero-height));
    width: calc(.145 * var(--mobile-hero-height));
    height: calc(.17 * var(--mobile-hero-height));
  }
  .hero-picture img, .hero-video { object-position: calc(73% + var(--mobile-crop-offset)) center; }
  .hero-picture::after {
    inset: 44% 0 0;
    background: linear-gradient(45deg, rgb(13 32 48 / .46), rgb(13 32 48 / .34) 38%, transparent 83%);
    mask-image: linear-gradient(to right, #000 32%, transparent 70%),
                linear-gradient(to top, #000 58%, transparent);
  }
  .hero-copy { top: auto; right: var(--hero-inset); bottom: clamp(20px, 4svh, 40px); padding: 0; }
  .hero h1 {
    font-size: clamp(29.52px, 7.776cqw, 36.72px);
    text-shadow: 0 1px 2px #071827, 0 0 6px #071827d9;
  }
  .hero-copy > p:not(.film-status) { font-size: clamp(16px, 4.2cqw, 18px); }
}
@media (max-width: 520px) {
  .project-heading:after { display: none; }
  .services:after { inset: 45% 0 0; }
  .contact-email { font-size: 13px; overflow-wrap: anywhere; }
}
@media(prefers-reduced-motion:reduce){.section-rail a,.section-rail a:after,.project-card{transition:none}.section-rail a[aria-current="location"]{transform:none}}


@media (min-width: 651px) and (max-width: 800px) {
  :root {
    --service-card-height: calc(28cqw + var(--services-card-growth));
    --service-stage-height: max(270px, 36cqw);
  }
  .service-card { width: 31cqw; }
  .service-card.active .card-title { font-size: clamp(20px, 3cqw, 25px); }
}
@media (max-width: 650px) {
  :root { --service-card-height: calc(clamp(216px, 64cqw, 287px) + var(--services-card-growth)); }
  .service-card { width: clamp(196px, 68cqw, 310px); }
  .service-card.active .card-title { font-size: clamp(21px, 6cqw, 28px); }
  .service-card:not(.active) .card-title { visibility: hidden; }
  .floor-ring { bottom: 1%; }
}
@media (min-width: 521px) and (max-width: 650px) {
  :root { --service-stage-height: 390px; }
}

/* Das Originalzeichen trägt seinen eigenen Alphakanal. Nur die Silhouette erhält Licht. */
.brand, .footer-brand {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}
.brand { width: clamp(174.9006px, 17.49006cqw, 301.1333px); }
.footer-brand { width: var(--footer-brand-width); }
.brand picture, .footer-brand picture, .brand img, .footer-brand img { display: block; width: 100%; height: auto; }
.hero-copy > p:not(.film-status) { text-shadow: 1px 1px 0 #000; }
.hero-copy > .film-status, .film-control { text-shadow: 0 1px 3px #071a29, 0 1px 6px #071a29c9; }
.brand picture, .footer-brand picture, .legal-title-logo, .service-page-logo {
  position: relative;
  isolation: isolate;
  --brand-art: url('../assets/brand/mst-frei-384.webp');
}
.brand picture { --brand-art: url('../assets/brand/mst-kopf-384.webp'); }
@media (min-width: 1098px) and (min-resolution: 2dppx),
       (min-width: 651px) and (min-resolution: 2.2dppx),
       (max-width: 650px) and (min-resolution: 3.21dppx) {
  .brand picture { --brand-art: url('../assets/brand/mst-kopf-1024.webp'); }
}
.brand picture::before, .footer-brand picture::before, .legal-title-logo::before, .service-page-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--brand-art) center / 100% 100% no-repeat;
  filter: brightness(0);
  opacity: .82;
  transform: translate(1px, 2px);
}
.footer-brand picture::before, .legal-title-logo::before, .service-page-logo::before { clip-path: inset(37% 0 13%); transform: translate(.25px, .35px); }

.brand picture::before {
  /* Der transparente Zwischenraum trennt MST von der Unterzeile. */
  clip-path: inset(0 0 13%);
  transform: translateY(1px);
  opacity: .55;
}
/* Die vorhandene Logokontur übernimmt das dunkle Blau des Seitenrands. */
@supports (mask-image: url("")) {
  .site-header .brand picture::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: #0b1825;
    mask: var(--brand-art) center / 100% 100% no-repeat;
  }
  .site-header .brand img { opacity: 0; }
}
.brand { -webkit-tap-highlight-color: transparent; }

footer {
  --footer-brand-width: 105px;
  --footer-panel-height: clamp(68px, 5.2cqw, 78px);
  --footer-divider: #f4ac6d8c;
  --footer-link-gap: clamp(16px, 2cqw, 40px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px clamp(24px, 4.2cqw, 96px);
  align-items: center;
  padding-block: clamp(18px, 2.1cqw, 40px) clamp(34px, 4cqw, 88px);
  background: #59656d url('../assets/images/projects/metallwand.webp') center 43% / cover no-repeat;
  background-blend-mode: luminosity;
  color: #edf0ed;
  box-shadow: inset 0 1px 0 #ffffff30, 0 -3px 12px #0c13183b;
}
footer .footer-links {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: var(--footer-link-gap);
  align-items: stretch;
  min-width: 0;
}
footer .footer-contact {
  display: grid;
  align-content: center;
  align-self: center;
  gap: .15em;
  min-width: 0;
  min-block-size: var(--footer-panel-height);
  padding-inline-start: clamp(12px, 1.2cqw, 30px);
  border-inline-start: 1px solid var(--footer-divider);
  font-size: clamp(16px, 1.5cqw, 21px);
  font-style: normal;
  line-height: 1.25;
}
:is(.footer-contact, #inquiry-direct-contact) a { margin: 0; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
:is(.footer-contact, #inquiry-direct-contact) a[href^="tel:"] {
  color: #fff; font-weight: 600;
  letter-spacing: .035em; font-variant-numeric: tabular-nums;
}
.footer-contact a[href^="tel:"] { font-size: clamp(17px, 5cqw, 28px); }
#inquiry-direct-contact a[href^="tel:"] { font-size: 1.23em; }
:is(.footer-contact, #inquiry-direct-contact) a:is(:hover, :focus-visible) { color: var(--orange); }
footer .footer-maintenance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(10px, 1.2cqw, 18px);
  padding-inline-start: var(--footer-link-gap);
  border-inline-start: 1px solid var(--footer-divider);
}
footer .footer-maintenance .maintenance-panel {
  inline-size: 100%;
  min-block-size: var(--footer-panel-height);
  font-size: clamp(14px, 1.2cqw, 17px);
  column-gap: clamp(6px, .7cqw, 10px);
}
.maintenance-panel {
  --maintenance-brand-background: linear-gradient(165deg, #f77d02, #e65901);
  --maintenance-panel-opacity: 85%;
  display: grid;
  flex: none;
  inline-size: var(--request-button-width);
  min-block-size: var(--request-button-height);
  grid-template-columns: auto minmax(0, max-content);
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid #ffffff66;
  border-radius: 4px;
  corner-shape: bevel;
  background-image: linear-gradient(165deg, rgb(119 66 40 / var(--maintenance-panel-opacity)), rgb(85 48 36 / var(--maintenance-panel-opacity)));
  color: #fff;
  box-shadow: 0 2px 4px #0008;
  font: 400 13px/1.16 var(--font-ui);
  text-align: left;
}
.maintenance-panel--service {
  --maintenance-brand-background: linear-gradient(165deg, #0065ab, #004e90);
  background-image: linear-gradient(165deg, rgb(38 84 114 / var(--maintenance-panel-opacity)), rgb(29 56 78 / var(--maintenance-panel-opacity)));
}
.footer-maintenance button:is(:hover, :focus-visible) {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 2px 4px #0008;
}
.footer-maintenance button:focus-visible { background: var(--maintenance-brand-background); }
@media (hover: hover) {
  .footer-maintenance button:hover { background: var(--maintenance-brand-background); }
}
.footer-maintenance-icon {
  /* Ausschnitt aus dem gelieferten Paneel. Schwarz blendet sich aus. */
  width: 24px;
  height: 20px;
  background: url('../assets/brand/wartung-instandsetzung.webp') -5px -1px / 104px auto no-repeat;
  filter: grayscale(1) brightness(.68) contrast(9);
  mix-blend-mode: screen;
}
.maintenance-panel--service .footer-maintenance-icon {
  background-image: url('../assets/brand/wartung-service.webp');
  background-position: -6px -1px;
  background-size: 88px auto;
}
.footer-maintenance-title { overflow-wrap: anywhere; }
.footer-maintenance-title span { display: block; }
.service-feature {
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.service-page .service-feature .service-photo { margin: 0; }
.maintenance-badges {
  position: absolute;
  z-index: 1;
  inset: 9px auto auto 9px;
  display: grid;
  gap: 4px;
  pointer-events: none;
}
.maintenance-badge {
  inline-size: 136px;
  justify-content: start;
  background: linear-gradient(165deg, #ab470d, #913603);
}
.maintenance-badge.maintenance-panel--service {
  background: linear-gradient(165deg, #075d9b, #064a80);
}
.service-card .maintenance-badge {
  inline-size: auto;
  min-block-size: 32px;
  padding: 4px 8px;
  gap: 7px;
}
.service-card--maintenance > img { object-position: 10% center; }
@media (max-width: 300px) {
  .service-card--maintenance > img { object-position: 15% center; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .service-card--maintenance > img { height: max(100%, 205px); object-position: 2% center; }
}
@media (max-width: 420px) {
  :is(.detail-photo-frame, .service-feature) > .maintenance-badges {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--request-button-gap);
    margin-block-end: 10px;
  }
}
.service-card:not(.active)[data-side="right"] .maintenance-badges { inset-inline: auto 9px; }
@container mst-site (max-width: 650px) {
  .service-card:not(.active) .maintenance-badges {
    --preview-badge-inset: calc(20% + clamp(0px, (370px - 100cqw) * .38, 36px));
    inset-inline: var(--preview-badge-inset) auto;
  }
  .service-card:not(.active)[data-side="right"] .maintenance-badges { inset-inline: auto var(--preview-badge-inset); }
  .service-card:not(.active) .maintenance-badge { min-block-size: 0; grid-template-columns: auto; padding: 4px; }
  .service-card:not(.active) .maintenance-badge .footer-maintenance-title { display: none; }
}
footer .footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  justify-self: end;
  gap: .45em;
  width: auto;
  font-size: clamp(14px, 1cqw, 22px);
}
footer .footer-note {
  grid-column: 1 / -1;
  margin-top: clamp(6px, 1cqw, 18px);
  padding-top: clamp(12px, 1.2cqw, 24px);
  border-top: 1px solid #ffffff28;
  text-align: center;
}
.footer-note small { display: block; margin-top: .35em; color: #d8dfe2; }
footer [data-legal] { display: inline-block; margin: 0; padding-block: .18em; }
@media (max-width: 1000px) {
  footer {
    column-gap: clamp(18px, 5cqw, 42px);
    justify-content: stretch;
    background-position: 18% 35%;
  }
  footer .footer-links { display: contents; }
  footer .footer-maintenance {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--footer-divider);
  }
  footer .footer-legal {
    grid-column: 1 / -1;
    justify-self: center;
    align-items: center;
  }
}
@media (max-width: 460px) {
  .footer-maintenance .maintenance-panel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 3px;
    padding-block: 3px;
    text-align: center;
  }
}
footer [data-legal] {
  position: relative;
  color: #fff;
  text-shadow: none;
  box-shadow: none;
  transition: color .16s ease;
}
footer [data-legal]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .16s ease;
}
footer [data-legal]:is(:focus-visible, :active) { color: var(--orange); }
footer [data-legal]:is(:focus-visible, :active)::after { transform: scaleX(1); }
@media (hover: hover) {
  footer [data-legal]:hover { color: var(--orange); }
  footer [data-legal]:hover::after { transform: scaleX(1); }
}

:root { --hero-inset: clamp(32px, 3.4cqw, 64px); }
.site-header { padding-inline: var(--hero-inset); padding-top: var(--hero-inset); pointer-events: none; }
.site-header .brand { pointer-events: auto; }
.hero .hero-copy { left: var(--hero-inset); }
@media (min-width: 651px) {
  .site-header { padding-top: calc((var(--hero-inset) - 10px) * 2 / 3); }
  .hero .hero-copy { margin-block-start: calc(var(--hero-inset) - var(--hero-copy-offset, 32px) - 10px); }
}
@media (min-width: 720px) {
  .hero { --hero-copy-offset: clamp(20px, 1.9cqw, 56px); }
}
@media (max-width: 650px) {
  :root {
    --hero-inset: max(12px, 3.3333%);
  }
  .site-header {
    padding-block: clamp(12px, 4cqw, 24px) 0;
  }
  .site-header .brand {
    width: clamp(98px, 29cqw, 120px);
    transform: translateY(-2px);
  }
}
.hero .section-rail {
  display: flex;
  align-items: stretch;
  right: clamp(4px, .65cqw, 24px);
  gap: clamp(6px, 1.4cqw, 34px);
  z-index: 3;
}
.section-rail a {
  display: grid;
  place-items: center;
  min-width: clamp(32px, 2.7cqw, 72px);
  min-height: 44px;
  padding: .35em;
  background: rgb(9 24 41 / .22);
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.section-rail a::before {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 5px);
  white-space: nowrap;
  background: #112639f2;
  padding: .5em .8em;
  color: #fff;
  font-size: .9em;
  opacity: 0;
  pointer-events: none;
}
.section-rail a:focus-visible::before { opacity: 1; }
@media (hover: hover) {
  .section-rail a:hover::before { opacity: 1; }
  .section-rail a:hover { color: var(--orange); }
}
@media (max-width: 650px) {
  .hero .section-rail { top: clamp(24px, 6cqw, 36px); gap: 2px; }
}
/* Die optische Schienenebene hat denselben Bildraum und Ausschnitt wie das Hallenfoto. */
.services::before {
  content: ""; position: absolute; inset: 0;
  background: url('../assets/images/services/schienenlicht.svg') center / cover no-repeat;
  pointer-events: none;
}
.floor-ring {
  --tube: clamp(1.8px, .16cqw, 4.2px);
  border: var(--tube) solid #ffe8bc;
  box-shadow: inset 0 0 1px 1px #ff902a, 0 0 1px 1px #ff963e,
              0 0 5px 1px #ff8b2ec2, 0 0 13px 3px #fe7c2c57;
}
.floor-ring::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  border: 1px solid #ff9939; box-shadow: inset 0 0 7px #f57b2547;
}
.floor-ring::after {
  inset: 1% -.4% -13%; border: clamp(3px, .35cqw, 8px) solid #ff993a80;
  box-shadow: 0 2px 9px 2px #ff9f4d54, inset 0 1px 9px #ff9d3e4a;
  filter: blur(4px);
  mask-image: linear-gradient(90deg, #000a, #000 23%, #000d 49.75%, #0002 50%, #000d 50.25%, #000 78%, #000a);
}
.service-card { -webkit-box-reflect: below 2px linear-gradient(transparent 80%, #fff1 92%, #fff3); }
.service-card.active {
  -webkit-box-reflect: below 2px linear-gradient(transparent 77%, #ffffff0d 87%, #ffffff3d);
  box-shadow: 0 0 3px #ffefd1cc, 0 0 11px #ff9b3d9c, 0 0 22px #e77d344a, 0 9px 16px #0b1018a6;
}
.projects {
  background: linear-gradient(#18252e66, #1d2c3538 52%, #15232e66),
              #172632 url('../assets/images/projects/metallwand.webp') center top / cover no-repeat;
  box-shadow: inset 0 -3px 10px #0b101632;
}
.project-photo {
  position: absolute; inset: 0 -18%; width: 136%; max-width: none; height: 100%; object-fit: cover;
  transform: skewX(20deg);
}
[hidden] { display: none !important; }
#detail-credit { font-size: .88em; color: #cbd7dc; }
#detail-credit a, .legal a { text-decoration: underline; text-underline-offset: .23em; }
.legal h2 { font-size: 1.6em; margin-top: 1.4em; }
.legal p { line-height: 1.65; max-width: 66ch; }
@media (max-width: 520px) {
  .brand { width: 164.6347px; }
  .floor-ring::after { filter: blur(3px); }
  footer { --footer-brand-width: 88px; }
  .project-photo { transform: skewX(13deg); }
}
@media (min-width: 1280px) and (min-resolution: 2dppx) {
  .services { background-image: url('../assets/images/services/halle-3840.webp'); }
}

/* Gemeinsame Metallfläche und Typografie für die lokalen Detailansichten. */
.metal-sheet, .legal-shell {
  --sheet-width: min(calc(var(--layout-width) - 20px), clamp(330px, 63dvh, 1040px));
  --sheet-top: max(env(safe-area-inset-top), clamp(24px, 6dvh, 120px));
  --sheet-height: calc(100dvh - var(--sheet-top) - max(8px, env(safe-area-inset-bottom)));
  --sheet-pad: clamp(16px, 2.7dvh, 48px);
  width: calc(var(--sheet-width) * .9);
  min-height: min(calc(var(--sheet-width) * 1.32 + 2px), var(--sheet-height));
  --sheet-type: 16px;
  --sheet-title: clamp(25px, 2.1vw, 30.24px);
  --photo-space: clamp(20px, 2.8dvh, 48px);
  --sheet-wall: linear-gradient(100deg, #0c182224, #101d2a48 54%, #101d294d), #25323b url('../assets/images/projects/metallwand.webp') center / 100% 100% no-repeat;
}
/* Die sichtbare Karte bestimmt die Dokumenthöhe. Das Motiv dahinter bleibt an Ort und Stelle. */
body.reading-card { height: var(--reading-height, 100svh); min-height: 100svh; }
.reading-card #site-view { position: fixed; inset-inline: 0; top: var(--site-offset); }
dialog.under-sheet { visibility: hidden; }
dialog.under-sheet::backdrop { background: transparent; backdrop-filter: none; }
dialog.metal-sheet {
  position: absolute;
  max-width: none;
  max-height: none;
  overflow: visible;
  inset-block: var(--sheet-top) auto;
  margin: 0 auto;
  padding: var(--sheet-pad);
  border: 1px solid #f6a364;
  border-radius: 8px;
  background: var(--sheet-wall);
  font-size: var(--sheet-type);
  color: #f6f3ec;
  box-shadow: 0 0 4px #ff9c4780, 0 0 17px #ec7c252e, 0 20px 55px #03090eb3;
}
dialog.service-detail {
  --photo-space: var(--service-photo-gap);
  --service-media-height: calc((var(--sheet-width) * .9 - 2 * var(--sheet-pad) - 2px) / 1.5);
}
#detail-dialog .detail-body {
  display: flex;
  flex-direction: column;
  min-height: min(calc(var(--sheet-width) * 1.32 - 2 * var(--sheet-pad)), calc(var(--sheet-height) - 2 * var(--sheet-pad) - 2px));
}
.metal-sheet .detail-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.metal-sheet .detail-bar .eyebrow { order: -1; font-size: clamp(11px, .75em, 14px); margin: 0; }
.metal-sheet .close {
  margin: 0 0 0 auto;
  padding: .35em .8em;
  border: 1px solid var(--orange);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: clamp(13px, .94em, 17px);
}
@media (hover: hover) {
  .metal-sheet .close:hover { color: var(--orange); }
}
.metal-sheet .close:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px #fff;
}
.service-pager { display: none; }
.service-detail .detail-bar .close { order: 1; margin-left: auto; }
.service-detail .service-pager {
  display: flex; align-items: center; justify-content: center; gap: .15em;
  margin-left: auto; color: #e9e5de;
}
.service-pager button {
  min-width: 32px; min-height: 34px; padding: 0; font-size: 1.15em;
}
.service-pager button:is(:hover, :focus-visible) { color: var(--orange); }
.service-current { color: var(--orange); }
.service-pager output { font-size: .82em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 540px), (max-height: 600px) {
  .service-detail .service-pager { order: 2; flex-basis: 100%; margin: 0; justify-content: flex-start; }
}
.metal-sheet h2, .legal-heading h1 {
  margin: clamp(18px, 2.2dvh, 36px) 0 .4em;
  font-size: var(--sheet-title);
  color: var(--orange);
  line-height: 1.09;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.detail-intro p { margin: 0; font-size: 1em; line-height: 1.5; }
.project-detail .detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(88px, 24%, 170px);
  align-items: start;
  column-gap: clamp(10px, 2vw, 24px);
  row-gap: .35em;
  margin-top: clamp(18px, 2.2dvh, 36px);
}
.project-detail .detail-intro > div:first-child { display: contents; }
.project-detail #detail-project-client { grid-area: 1 / 1; color: #dce5e9; font-size: .82em; }
.project-detail #detail-title { grid-area: 2 / 1; margin-block: 0 .2em; }
.project-detail #detail-copy { grid-area: 3 / 1; }
.detail-partner {
  grid-area: 2 / 2 / span 2;
  padding-inline-start: clamp(8px, 1.5vw, 20px);
  border-inline-start: 1px solid var(--orange);
}
.detail-partner a { height: clamp(56px, 7vw, 86px); padding: 5px 6px; }
@media (max-width: 520px) {
  .project-detail .detail-intro { column-gap: 10px; row-gap: 4px; }
  .project-detail #detail-copy { grid-column: 1 / -1; }
  .project-detail .detail-partner { grid-row: 2; }
}
.service-detail h2 { margin-block: clamp(30px, 3.8dvh, 56px) clamp(15px, 1.8dvh, 28px); }
.detail-photo, .inquiry-visual, .legal-banner {
  display: block;
  width: 100%;
  margin: var(--photo-space) auto;
  border: 1px solid #bbc6c448;
  border-radius: 3px;
  box-shadow: 0 2px 4px #0008;
}
.detail-photo { flex: none; }
.project-detail .detail-photo { border: 0; outline: 1px solid #bbc6c448; }
/* Einheitliche Medienhöhe, mit vollständigem Quer- oder Hochformat. */
.service-detail .detail-photo { border: 0; box-shadow: none; }
.detail-photo-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto 0;
}
.service-detail .detail-photo > img, .detail-photo-frame > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--service-media-height);
  object-fit: contain;
  margin-inline: auto 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px #bbc6c448, 0 2px 4px #0008;
}
.project-detail .detail-photo img { display: block; width: 100%; height: auto; border-radius: inherit; }
.detail-photo[hidden] { display: none; }
#detail-list { list-style: none; padding: 0; margin: 0; }
#detail-list li {
  display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: 1em;
  padding: .72em 0; border-top: 1px solid #e8e8d833; line-height: 1.45; color: #e0e6e7;
}
.detail-number, .field-name::before {
  font: 500 .85rem/1.5 var(--font-ui);
  letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--orange);
}
.metal-sheet .sheet-actions { margin-top: auto; }
.detail-body > .sheet-actions { padding-top: clamp(20px, 2.7dvh, 44px); }
@media (max-width: 520px) {
  .metal-sheet, .legal-shell { --sheet-pad: 14px; }
  .metal-sheet .detail-bar .eyebrow { letter-spacing: .16em; }
  .metal-sheet .detail-bar .eyebrow::before { width: 18px; margin-right: 8px; }
}
@media (max-height: 740px) {
  .metal-sheet, .legal-shell { --sheet-pad: 12px; }
}
@media (max-height: 600px) {
  .metal-sheet, .legal-shell { --sheet-width: min(calc(var(--layout-width) - 12px), 330px); --sheet-pad: 12px; }
}
@media (orientation: landscape) and (max-height: 460px) {
  .metal-sheet, .legal-shell { --sheet-width: min(calc(var(--layout-width) - 12px), 92dvh); }
}
/* Die untere Rückkehr bleibt auch beim Lesen langer Inhalte greifbar. */
.sheet-actions {
  position: sticky; bottom: max(6px, env(safe-area-inset-bottom)); z-index: 2;
  display: flex; flex-wrap: wrap; gap: .6em; align-items: center; justify-content: space-between;
}
.service-detail .sheet-actions { position: static; }
.sheet-back {
  flex: none; margin-left: auto;
  padding: .45em .85em; min-height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 .94em/1.3 var(--font-ui);
  background: #1b272eed; color: #f1ebe2; border: 1px solid #8991909e; border-radius: 3px;
}
.inquiry-send .outline:enabled:is(:hover, :focus-visible) { border-color: var(--orange); color: var(--orange); }
.sheet-back:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .22em;
}
.sheet-back:focus-visible {
  outline: none;
  text-decoration-thickness: 2px;
}
.project-detail #detail-credit { margin: .5em 0 0; }
#inquiry-dialog[open], #legal-dialog[open] {
  display: flex; flex-direction: column;
}
.inquiry-visual { height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 34%; }
.inquiry-visual-full { aspect-ratio: 1672 / 941; object-fit: contain; object-position: center; }
#inquiry-form { counter-reset: field; display: flex; flex-direction: column; gap: 1em; padding: 0; min-width: 0; }
#inquiry-form > :is(label, .inquiry-object-fields) { counter-increment: field; }
.field-name::before { content: counter(field, decimal-leading-zero); margin-right: .8em; }
#inquiry-form label { gap: .28em; font-size: 1em; }
#inquiry-form :is(input, textarea, select) {
  font: inherit; line-height: 1.4; padding: .55em .7em;
  color: #f5f2ec; background: #111d25cc; border: 1px solid #849095ab; border-radius: 3px;
}
#inquiry-maintenance-details {
  margin: .85em 0 0;
  padding: .65em .7em .75em;
  min-width: 0;
  border: 1px solid #ffffff33;
  border-radius: 4px;
}
#inquiry-maintenance-details legend { padding-inline: .3em; }
#inquiry-maintenance-details label + label { margin-top: .65em; }
#inquiry-direct-contact {
  display: grid;
  gap: .3em;
  margin-top: 1.25em;
  padding-inline-start: .8em;
  border-inline-start: 1px solid #f4ac6d8c;
  font-size: .95em;
  font-style: normal;
}
#inquiry-form textarea { min-height: 4.8em; overflow: hidden; resize: none; }
#inquiry-attachments { min-width: 0; }
#inquiry-file-note { font-size: .87em; color: #d8dfe2; }
.inquiry-send { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65em; }
.inquiry-send .outline {
  display: grid; place-items: center; padding: .6em .75em; text-align: center;
  border-radius: 4px; corner-shape: bevel; font-size: .94em; overflow-wrap: anywhere;
}
.inquiry-send .outline:disabled { opacity: .55; cursor: default; }
#inquiry-note { margin: 0; max-width: 55ch; font-size: .91em; line-height: 1.45; }
.metal-sheet .sheet-actions { pointer-events: none; }
.metal-sheet .sheet-actions > * { pointer-events: auto; }
.metal-sheet .sheet-actions .outline { background-color: #1b272ef7; font-size: .95em; }
#inquiry-dialog > .sheet-actions, #legal-dialog > .sheet-actions { padding-top: var(--photo-space); }
#inquiry-dialog > .sheet-actions { position: static; }
@media (max-width: 520px) {
  #inquiry-form :is(input, textarea, select) { font-size: 16px; }
}

/* Dasselbe Blatt erscheint im Dialog und beim Aufruf der eigenen Rechtsadresse. */
.legal-page { width: min(100%, var(--site-max-width)); margin-inline: auto; container-type: inline-size; display: flow-root; min-height: 100svh; background: #14212b; }
.legal-shell {
  display: flex; flex-direction: column;
  margin: var(--sheet-top) auto;
  padding: var(--sheet-pad); color: #eeeae2; background: var(--sheet-wall);
  border: 1px solid #f6a364; border-radius: 8px; font-size: var(--sheet-type);
}
.legal-shell nav { display: flex; align-items: center; justify-content: space-between; font-size: .94em; }
.legal-shell .sheet-actions { margin-top: auto; padding-top: 1em; bottom: .65em; }
.legal-sheet { color: #e6e9e7; }
.legal-heading h1 { font-weight: 400; }
.legal-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-block-start: clamp(18px, 2.2dvh, 36px);
}
.legal-title-row h1 { margin: 0; }
.legal-title-logo { flex: none; margin-inline-start: auto; width: clamp(58px, 14%, 105px); }
.legal-title-logo img { display: block; width: 100%; height: auto; }
:is(#legal-dialog, .legal-shell):has(.privacy-sheet) {
  --sheet-wall: linear-gradient(90deg, #0c1822aa, #111d2a70 35%, #101d294d 72%), #25323b url('../assets/images/projects/metallwand.webp') center / 100% 100% no-repeat;
}
.legal-banner { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 0; }
.legal-copy { padding: .2em 0 .8em; font-size: 1em; line-height: 1.52; }
.legal-copy section { padding-top: .9em; margin: 1em 0 0; border-top: 1px solid #cad4d440; }
.legal-copy section h2 { margin: 0 0 .4em; color: var(--orange); font: 400 1.24em/1.28 var(--font-title); }
.legal-copy p, .legal-copy ul { margin: .42em 0; font-size: inherit; line-height: inherit; }
.legal-copy p, .legal-copy ul { max-width: 68ch; }
.imprint-copy section + section { margin-top: 1.6em; padding-top: 1.35em; }
.imprint-address { display: grid; gap: .7em; margin-top: .8em; font-style: normal; line-height: 1.7; }
.imprint-address p { margin: 0; }
.legal-copy ul { padding-left: 1.25em; }
.legal-copy a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; overflow-wrap: anywhere; }

/* Bildvergleich im geöffneten Leistungsblatt 06. */
.defect-comparison {
  --split: 50%;
  position: relative;
  height: var(--service-media-height);
  isolation: isolate;
  border-radius: inherit;
  box-shadow: 0 0 0 1px #bbc6c448, 0 2px 4px #0008;
}
.defect-comparison img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: contain; border-radius: inherit;
}
.comparison-before { clip-path: inset(0 0 0 var(--split)); }
.comparison-divider {
  position: absolute; inset-block: 0; left: var(--split); width: 3px;
  transform: translateX(-50%); background: var(--orange); pointer-events: none;
}
.comparison-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid white; border-radius: 50%; background: var(--orange);
  color: white; font: 600 12px/1 var(--font-ui); white-space: pre;
}
.comparison-label {
  position: absolute; bottom: 5px; padding: 2px 5px; border-radius: 2px;
  color: white; background: #14212edb; font: 500 12px/1.45 var(--font-ui);
}
.comparison-label.after { left: 5px; }
.comparison-label.before { right: 5px; }
.defect-comparison input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; appearance: none;
}
.defect-comparison input::-webkit-slider-thumb { appearance: none; width: 0; height: 44px; }
.defect-comparison input::-moz-range-thumb { width: 0; height: 44px; border: 0; }
.defect-comparison:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }
.defect-comparison + figcaption { margin-top: .55em; color: #cbd7dc; font-size: .82em; line-height: 1.45; }

.service-image-note { margin: 4px 0 0; padding-inline: var(--section-inset); }
.asset-note a { text-decoration: underline; text-underline-offset: .18em; }

.inquiry-reply { margin-top: .65em; }
#inquiry-form .inquiry-privacy { margin: 0; font-size: .88em; line-height: 1.5; }
.inquiry-privacy a { text-decoration: underline; text-underline-offset: .2em; }
