/* Customer corrections — loaded by every public page. */
:root { scroll-behavior: smooth; }

/* Keep the public site German-only. Legacy English/Turkish URLs are redirected. */
#menu .mgrp:has(.mlang),
footer .fg > div:has(a[href$="locksmith.html"]),
footer .fg > div:has(a[href$="cilingir.html"]) { display: none !important; }

/* The quality seals are intentionally more prominent. */
.slide .meds img { height: clamp(182px, 25vw, 340px) !important; }

/* A shorter, calmer footer that keeps its contact information legible. */
footer { padding: 32px 0 22px !important; }
.flogo { margin-bottom: 18px !important; }
.flogo img { width: min(172px, 52vw) !important; padding: 8px 12px !important; }
.fg { gap: 18px !important; margin-bottom: 18px !important; }
.fg [href^="tel:"] { font-size: 15px !important; }
.fg [href^="tel:"] svg { width: 15px !important; height: 15px !important; }

/* Keep both floating actions on the right, stacked with enough room for the
   mobile call bar. */
.wafab {
  left: auto !important; right: 20px !important; bottom: 22px !important;
  width: 56px !important; height: 56px !important;
}

/* September voice-note corrections. */
.hero .herocall .callxl {
  background: linear-gradient(135deg, #fff4a6, #f1bd18) !important;
  border-color: #c58a00 !important;
  color: #2b2300 !important;
  box-shadow: 0 10px 28px rgba(192, 132, 0, .28) !important;
}
.hero .herocall .callxl .ph { background: rgba(255, 255, 255, .62) !important; color: #2b2300 !important; }

.fg-mail { margin-top: 12px !important; }
.fg-mail a {
  display: inline-flex !important; align-items: center; min-height: 40px;
  padding: 8px 11px !important; margin: 0 !important;
  border: 1px solid rgba(241, 189, 24, .62); border-radius: 7px;
  background: rgba(241, 189, 24, .12); color: #ffe27a !important;
  font-size: 16px !important; font-weight: 900 !important;
  line-height: 1.2; letter-spacing: .01em; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.fg-mail a:hover { background: #f1bd18; color: #201900 !important; }

.ortsteile-band { padding: 54px 0 !important; background: #f5f5f2; }
.ortsteile-band .ortsteile-head { max-width: 820px; margin-bottom: 22px; }
.ortsteile-band .ortsteile-head .k {
  display: block; margin-bottom: 7px; color: #9a6900;
  font-weight: 900; font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
}
.ortsteile-band h2 { margin: 0 0 9px; color: #064f60; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; }
.ortsteile-band p { margin: 0; color: #40575d; font-size: 16px; line-height: 1.55; }
.ortsteile-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.ortsteil-card {
  display: block; text-decoration: none; cursor: pointer;
  position: relative; min-height: 174px; padding: 21px 18px 18px 56px;
  border: 1px solid rgba(7, 106, 125, .2); border-radius: 10px;
  background: #fff; box-shadow: 0 7px 19px rgba(9, 55, 58, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ortsteil-card:hover,
.ortsteil-card:focus-visible {
  transform: translateY(-2px); border-color: #bd8500;
  box-shadow: 0 11px 26px rgba(9, 55, 58, .13); outline: none;
}
.ortsteil-card::after {
  content: "→"; position: absolute; right: 16px; bottom: 14px;
  color: #bd8500; font-weight: 900; font-size: 18px;
}
.ortsteil-number {
  position: absolute; left: 17px; top: 22px; color: #bd8500;
  font: 900 13px/1 var(--sans, sans-serif); letter-spacing: .08em;
}
.ortsteil-card h3 {
  margin: 0 0 8px; color: #064f60; font-size: 18px; line-height: 1.18;
}
.ortsteil-card p { margin: 0; color: #40575d; font-size: 14px; line-height: 1.5; }

@media (min-width: 700px) {
  .slide.awards .meds img { height: clamp(220px, 27vw, 360px) !important; }
}

@media (max-width: 699px) {
  /* The same two messages remain visible before and after scrolling. */
  body.gescrollt .topbar .tlogo { display: flex !important; }
  body.gescrollt .topbar .wrap > span { display: inline-flex !important; }

  /* The large duplicate phone plaque was covering faces and the helicopter.
     The full-width sunshine call button sits directly below the movie. */
  .stage .stagecall { display: none !important; }
  .slide .tag {
    max-width: 76% !important; padding: 4px 8px !important;
    font-size: 8.5px !important; line-height: 1.25 !important;
    letter-spacing: .08em !important; white-space: normal !important;
  }
  .slide .in { bottom: 15px !important; }
  .slide .in p { max-width: 96% !important; }
  .slide[data-s="2"] .bgi img { object-position: 30% 50% !important; }
  .hero .herocall .callxl { min-height: 52px !important; }
  .ortsteile-band { padding: 42px 0 !important; }
  .ortsteile-band h2 { font-size: 25px; }
  .ortsteile-band p { font-size: 14px; }
  .ortsteile-grid { grid-template-columns: 1fr; gap: 9px; }
  .ortsteil-card { min-height: 0; padding: 17px 15px 17px 49px; }
  .ortsteil-number { left: 14px; top: 19px; }
  .ortsteil-card h3 { font-size: 17px; }
  .ortsteil-card p { font-size: 13.5px; }
  .fg-mail a { max-width: 100%; font-size: 15px !important; }
}

@media (max-width: 360px) {
  /* The logo already contains the company name. Hiding the repeated text at
     the narrowest width keeps the phone and menu controls on one clean row. */
  header .brand .txt { display: none !important; }
  header .brand .key { width: 78px !important; }
}
#toTop {
  position: fixed; right: 20px; bottom: 22px; z-index: 650;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #1a1a1a; color: #fff; box-shadow: 0 6px 22px #0004;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#toTop:hover { background: #f1bd18; color: #111; }

/* The generated pages already have one back-to-top control. */
.nachoben {
  right: 25px !important; bottom: 90px !important;
  width: 46px !important; height: 46px !important; border-radius: 50% !important;
}

/* The first movie frame must explain the Kabel-1 result immediately. */
.slide.titel.on .bgi img {
  animation: fahrt var(--sdur, 9s) linear both !important;
  filter: brightness(.72) saturate(.95) !important;
}
.slide.titel.on .tag,
.slide.titel.on h2 .w,
.slide.titel.on p {
  animation-duration: .55s !important;
  animation-delay: 0s !important;
}

/* The award shot uses its own neutral backdrop instead of repeating the
   Schlossmontagen photo from the following shot. */
.slide.awards .bgi {
  background:
    radial-gradient(circle at 50% 42%, rgba(241, 189, 24, .34), transparent 34%),
    linear-gradient(145deg, #15262b, #061013 72%);
}

/* The customer's Berlin aerial/helicopter shot is very wide. Showing it as
   a contained cinematic frame keeps Falke and the full skyline visible. */
.slide.helicoptershot .bgi { background: #07191d; isolation: isolate; }
.slide.helicoptershot .bgi::before {
  content: ""; position: absolute; inset: -26px; z-index: -1;
  background: url("bilder/boden.jpg") center / cover no-repeat;
  filter: blur(18px) brightness(.58) saturate(.78);
  transform: scale(1.08);
}
.slide.helicoptershot .bgi img {
  object-fit: contain !important; object-position: 50% 50% !important;
  animation: none !important; transform: none !important;
  filter: brightness(1.08) saturate(1.02) contrast(1.03) !important;
}
.slide.helicoptershot .grade { opacity: 0; }
.slide.helicoptershot .vig { opacity: 0; }
.slide.helicoptershot .band {
  top: 0; bottom: 0; height: auto;
  background: linear-gradient(90deg, transparent 0 52%, rgba(1, 13, 14, .14) 66%, rgba(1, 13, 14, .78) 100%);
}
.slide.helicoptershot .in { left: 43%; max-width: none; text-align: right; }

/* The closing film frame must preserve the complete storefront, van, Falke
   and the street-name line exactly as requested in the customer's voice note. */
.slide.shopfinal .bgi {
  background: #07191d;
  isolation: isolate;
}
.slide.shopfinal .bgi::before {
  content: ""; position: absolute; inset: -26px; z-index: -1;
  background: url("bilder/wagen-laden.webp") center / cover no-repeat;
  filter: blur(18px) brightness(.52) saturate(.78);
  transform: scale(1.08);
}
.slide.shopfinal .bgi img {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  animation: none !important;
  transform: none !important;
  filter: brightness(.98) saturate(.98) contrast(1.02) !important;
}
.slide.shopfinal .grade { opacity: .06; }
.slide.shopfinal .vig { opacity: .08; }
.slide.shopfinal .band {
  top: 0; bottom: 0; height: auto;
  background:
    linear-gradient(0deg, rgba(1, 13, 14, .86), rgba(1, 13, 14, .28) 40%, transparent 68%),
    linear-gradient(90deg, rgba(1, 13, 14, .45), transparent 47%);
}
.slide.shopfinal .in p strong {
  display: inline-block; margin-bottom: 5px; padding: 4px 8px; border-radius: 4px;
  background: #f1bd18; color: #201900; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* The customer explicitly asked for the workshop panorama as the sixth film
   frame, directly after the storefront. Keep the entire panorama visible on
   desktop and mobile; a softened copy fills the unused stage area. */
.slide.workshopfinal .bgi {
  background: #07191d;
  isolation: isolate;
}
.slide.workshopfinal .bgi::before {
  content: ""; position: absolute; inset: -26px; z-index: -1;
  background: url("bilder/werkstatt-panorama-september-2026.webp") center / cover no-repeat;
  filter: blur(18px) brightness(.46) saturate(.8);
  transform: scale(1.08);
}
.slide.workshopfinal .bgi img {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  animation: none !important;
  transform: none !important;
  filter: brightness(.94) saturate(.98) contrast(1.03) !important;
}
.slide.workshopfinal .grade { opacity: .05; }
.slide.workshopfinal .vig { opacity: .08; }
.slide.workshopfinal .band {
  top: 0; bottom: 0; height: auto;
  background: linear-gradient(0deg, rgba(1, 13, 14, .9), rgba(1, 13, 14, .18) 44%, transparent 68%);
}

/* The client will supply dedicated emergency-opening photos. Until then the
   Türöffnung page uses a calm neutral hero and shows no unrelated imagery. */
.phero .pimg.tueroeffnung-neutral {
  background:
    radial-gradient(circle at 76% 34%, rgba(241, 189, 24, .18), transparent 29%),
    linear-gradient(135deg, #064f60 0%, #07343e 44%, #07191d 100%) !important;
}

/* The fifth service belongs to the same homepage group and gets a deliberate
   full row instead of looking like an unfinished odd grid item. */
.home-stangenschloss-card { grid-column: 1 / -1; }

/* The client only wants the landline in this block. Its sunshine colour
   distinguishes it without changing the general page palette. */
.zwei-nr { display: grid !important; grid-template-columns: minmax(240px, 620px) !important; }
.zwei-nr > a {
  justify-content: center !important;
  background: linear-gradient(135deg, #fff3a6, #f4c61f) !important;
  border-color: #c78c00 !important;
  box-shadow: 0 9px 24px rgba(180, 123, 0, .2) !important;
  color: #2b2300 !important;
}
.zwei-nr > a b { color: #2b2300 !important; }

/* The first 360-degree shop view is intentionally draggable. */
.pano360 {
  position: relative; overflow-x: auto !important; overflow-y: hidden !important;
  aspect-ratio: 16 / 10; cursor: grab; overscroll-behavior-inline: contain;
  scrollbar-width: none; touch-action: pan-y pinch-zoom;
}
.pano360::-webkit-scrollbar { display: none; }
.pano360 picture { display: block; width: 200%; height: 100%; }
.pano360 img {
  display: block; width: 100%; height: 100%; object-fit: cover !important;
  max-width: none !important; user-select: none; -webkit-user-drag: none;
}
.pano360.dragging { cursor: grabbing; user-select: none; }
.pano-hint {
  position: sticky; left: 12px; top: calc(100% - 50px); display: inline-flex; z-index: 4;
  width: max-content; align-items: center; gap: 8px; margin: 0 0 -44px 0;
  padding: 5px; border-radius: 999px; background: rgba(6, 27, 31, .9);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  pointer-events: auto; backdrop-filter: blur(5px); box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
}
.pano-hint span { padding: 0 2px; white-space: nowrap; pointer-events: none; }
.pano-hint button {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: #f1bd18; color: #1f1b0b; font: 900 19px/1 var(--sans, sans-serif);
  touch-action: manipulation;
}
.pano-hint button:hover { background: #ffe26b; }
.pano-hint button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Equirectangular panoramas remain wide and uncropped in galleries. */
.imgs .panorama-card { grid-column: 1 / -1; aspect-ratio: 2 / 1 !important; }
.imgs .panorama-card img { object-fit: contain !important; background: #07191d; }

/* Genuine door-opening sequences supplied by the customer.  Every sequence
   is shown in the requested order: closed first, open second. */
.tueroeffnung-gallery { padding-top: 18px !important; }
.tuer-sequences { display: grid; gap: 24px; margin-top: 26px; }
.tuer-sequence {
  padding: 18px; border: 1px solid rgba(7,106,125,.18); border-radius: 12px;
  background: #fff; box-shadow: 0 9px 24px rgba(9,55,58,.07);
}
.tuer-sequence > h3 { margin: 0 0 14px; color: #064f60; font-size: 20px; }
.tuer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tuer-pair figure {
  position: relative; margin: 0; overflow: hidden; min-height: 0;
  aspect-ratio: 3 / 4; border-radius: 8px; background: #eef1ef;
}
.tuer-pair img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tuer-pair figcaption {
  position: absolute; left: 9px; bottom: 9px; padding: 6px 9px;
  border-radius: 5px; background: rgba(5,31,36,.9); color: #fff;
  font-size: 13px; font-weight: 900; box-shadow: 0 3px 12px rgba(0,0,0,.22);
}
.tueroeffnung-foto img { object-fit: contain !important; background: #07343e; }

/* Standalone Ortsteil pages returned by the Cloudflare Pages worker. */
.ortsteil-page {
  margin: 0; background: #fff; color: #18363c;
  font-family: Arial, Helvetica, sans-serif; line-height: 1.5;
}
.ortsteil-page * { box-sizing: border-box; }
.ortsteil-page a { color: inherit; }
.ortsteil-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.ortsteil-top { background: #062f38; color: #fff; font-size: 13px; font-weight: 800; }
.ortsteil-top .ortsteil-wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ortsteil-top a { color: #ffe27a; font-size: 16px; font-weight: 900; text-decoration: none; }
.ortsteil-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.97); border-bottom: 1px solid #dce6e5; box-shadow: 0 3px 14px rgba(4,46,53,.06); }
.ortsteil-header .ortsteil-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ortsteil-brand { display: inline-flex; align-items: center; gap: 11px; color: #064f60 !important; font-weight: 900; line-height: 1.05; text-decoration: none; }
.ortsteil-brand img { width: 94px; height: 50px; object-fit: contain; }
.ortsteil-brand small { display: block; margin-top: 4px; color: #687c80; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ortsteil-header nav { display: flex; align-items: center; gap: 21px; }
.ortsteil-header nav a { color: #164850; font-size: 14px; font-weight: 800; text-decoration: none; }
.ortsteil-header nav a:hover { color: #a56f00; }
.ortsteil-hero { padding: clamp(66px, 9vw, 116px) 0; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(241,189,24,.24), transparent 26%), linear-gradient(135deg,#064f60,#071b1f 78%); }
.ortsteil-crumb { margin: 0 0 36px; color: #b8d0d2; font-size: 13px; }
.ortsteil-crumb a { color: #fff; }
.ortsteil-kicker { display: block; margin-bottom: 9px; color: #d49a09; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ortsteil-hero .ortsteil-kicker { color: #ffe16e; }
.ortsteil-hero h1 { margin: 0; max-width: 900px; font-size: clamp(39px, 7vw, 78px); line-height: .98; letter-spacing: -.04em; }
.ortsteil-hero h1 em { color: #f1bd18; font-style: normal; }
.ortsteil-lead { max-width: 780px; margin: 22px 0 0; color: #d8e6e7; font-size: clamp(17px, 2.2vw, 21px); }
.ortsteil-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ortsteil-actions a { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 7px; font-weight: 900; text-decoration: none; }
.ortsteil-call { background: #f1bd18; color: #241d00 !important; }
.ortsteil-price { border: 1px solid rgba(255,255,255,.45); color: #fff !important; }
.ortsteil-main, .ortsteil-nearby { padding: 72px 0; }
.ortsteil-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: start; }
.ortsteil-page h2 { margin: 0 0 22px; color: #064f60; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
.ortsteil-services { display: grid; gap: 11px; }
.ortsteil-services a { display: grid; gap: 4px; padding: 17px; border: 1px solid #d7e3e2; border-radius: 8px; text-decoration: none; }
.ortsteil-services a:hover { border-color: #c58a00; background: #fffaf0; }
.ortsteil-services b { color: #064f60; font-size: 18px; }
.ortsteil-services span { color: #506469; font-size: 14px; }
.ortsteil-columns figure { margin: 0; overflow: hidden; border-radius: 10px; background: #e9efee; box-shadow: 0 12px 30px rgba(6,53,61,.14); }
.ortsteil-columns figure img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ortsteil-columns figcaption { padding: 12px 15px; color: #40575d; font-size: 13px; }
.ortsteil-nearby { background: #f4f6f4; }
.ortsteil-nearby-links { display: flex; flex-wrap: wrap; gap: 9px; }
.ortsteil-nearby-links a { padding: 9px 12px; border: 1px solid #bad0ce; border-radius: 999px; background: #fff; color: #064f60; font-weight: 800; text-decoration: none; }
.ortsteil-nearby-links a:hover { border-color: #c58a00; }
.ortsteil-parent { display: inline-block; margin-top: 18px; color: #8a5e00 !important; font-weight: 900; }
.ortsteil-final { padding: 64px 0; text-align: center; background: #f1bd18; color: #2a2200; }
.ortsteil-final h2 { color: #2a2200; }
.ortsteil-final > .ortsteil-wrap > a { display: block; margin: 9px 0; color: #2a2200; font-size: clamp(30px,5vw,54px); font-weight: 900; text-decoration: none; }
.ortsteil-footer { padding: 26px 0; background: #061b1f; color: #b9c9cb; font-size: 13px; }
.ortsteil-footer .ortsteil-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 13px 24px; }
.ortsteil-footer a { color: #fff; }

@media (max-width: 760px) {
  .tuer-sequence { padding: 11px; }
  .tuer-pair { gap: 7px; }
  .tuer-pair figcaption { left: 6px; bottom: 6px; padding: 5px 7px; font-size: 11px; }
  .ortsteil-wrap { width: min(100% - 26px, 1120px); }
  .ortsteil-top .ortsteil-wrap { min-height: 42px; }
  .ortsteil-top span { max-width: 58%; line-height: 1.2; }
  .ortsteil-header .ortsteil-wrap { min-height: 66px; }
  .ortsteil-brand img { width: 77px; height: 43px; }
  .ortsteil-brand span { font-size: 13px; }
  .ortsteil-header nav a { display: none; }
  .ortsteil-header nav a[href="/einsatzgebiete.html"] { display: inline-flex; }
  .ortsteil-hero { padding: 48px 0 61px; }
  .ortsteil-crumb { margin-bottom: 27px; }
  .ortsteil-actions { display: grid; }
  .ortsteil-columns { grid-template-columns: 1fr; gap: 28px; }
  .ortsteil-main, .ortsteil-nearby { padding: 50px 0; }
  .ortsteil-footer .ortsteil-wrap { display: grid; }
}

/* The September customer photos document complete reinforced doors. Portrait
   frames are shown uncropped; the sign and JUWEL detail retain their width. */
.stahlprojekt-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px;
}
.stahlprojekt-grid figure {
  margin: 0; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(7, 106, 125, .16); border-radius: 10px;
  background: #fff; box-shadow: 0 8px 22px rgba(9, 55, 58, .08); cursor: zoom-in;
}
.stahlprojekt-grid figure.stahl-feature,
.stahlprojekt-grid figure.stahl-wide { grid-column: span 2; }
.stahlprojekt-grid picture { display: block; background: #e9eeec; }
.stahlprojekt-grid img {
  display: block; width: 100%; aspect-ratio: 9 / 14; object-fit: contain;
  object-position: 50% 50%; background: #e9eeec;
}
.stahlprojekt-grid .stahl-feature img { aspect-ratio: 3 / 4; }
.stahlprojekt-grid .stahl-wide img { aspect-ratio: 16 / 9; }
.stahlprojekt-grid figcaption {
  min-height: 66px; padding: 11px 13px 12px; color: #50676c;
  font-size: 13px; line-height: 1.35;
}
.stahlprojekt-grid figcaption b {
  display: block; margin-bottom: 2px; color: #064f60; font-size: 14px;
}

/* The urgent contact action is now a compact, useful callout. */
.kf .eilig {
  width: min(100%, 560px) !important; margin: 0 auto 18px !important;
  padding: 10px 12px !important; display: grid !important;
  grid-template-columns: 36px 1fr auto !important; gap: 2px 10px !important;
  align-items: center !important; border: 1px solid rgba(7, 106, 125, .22) !important;
  border-radius: 8px !important; background: #fff9d8 !important;
  box-shadow: 0 6px 18px rgba(9, 55, 58, .08) !important;
}
.kf .eilig-icon {
  grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 7px;
  display: grid; place-items: center; background: #f1bd18; color: #17242a;
  font-size: 18px; font-weight: 900;
}
.kf .eilig b { font-size: 14px !important; line-height: 1.2 !important; }
.kf .eilig a { font-size: 17px !important; line-height: 1.2 !important; white-space: nowrap; }
.kf .eilig > span:last-child { grid-column: 2 / -1; font-size: 12px !important; line-height: 1.25 !important; }

@media (max-width: 700px) {
  .slide.helicoptershot .bgi img { object-position: 50% 50% !important; }
  .slide.helicoptershot .band {
    top: auto; height: 66%;
    background: linear-gradient(180deg, transparent, rgba(1, 13, 14, .88));
  }
  .slide.helicoptershot .in { left: 16px !important; right: 16px !important; text-align: left; }
  .slide.shopfinal .band {
    top: auto; height: 68%;
    background: linear-gradient(180deg, transparent, rgba(1, 13, 14, .88));
  }
  .slide.shopfinal .bgi img { object-fit: contain !important; }
  .slide.shopfinal .in p strong { padding: 3px 6px; font-size: 11px; }
  .slide.workshopfinal .band {
    top: auto; height: 66%;
    background: linear-gradient(180deg, transparent, rgba(1, 13, 14, .9));
  }
  .slide.workshopfinal .bgi img { object-fit: contain !important; }
  .imgs .panorama-card { aspect-ratio: 16 / 10 !important; }
  .stahlprojekt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stahlprojekt-grid figure.stahl-feature,
  .stahlprojekt-grid figure.stahl-wide { grid-column: 1 / -1; }
  .stahlprojekt-grid .stahl-feature img { aspect-ratio: 9 / 13; }
  .stahlprojekt-grid .stahl-wide img { aspect-ratio: 16 / 10; }
  .stahlprojekt-grid figcaption { min-height: 61px; padding: 9px 10px 10px; font-size: 11.5px; }
  .stahlprojekt-grid figcaption b { font-size: 12.5px; }
  .kf .eilig { grid-template-columns: 36px 1fr !important; }
  .kf .eilig a { grid-column: 2; }
  .kf .eilig > span:last-child { grid-column: 2; }
}

/* Shop/address photos must show the complete storefront and street name. */
figure[data-zoom$="wagen-laden.webp"] img,
figure[data-zoom$="laden-aussen.webp"] img { object-fit: contain !important; background: #eef1ef; }

/* These are the customer's own documentary photos. Several are portrait
   shots, so gallery cards must show the whole person, lock and damaged door
   instead of cropping them to fill a landscape card. */
figure[data-zoom$="einbruchschaden-tuer.jpg"] img,
figure[data-zoom$="kastenschloss-abus.jpg"] img,
figure[data-zoom$="autooeffnung-einsatz.jpg"] img,
figure[data-zoom$="panzerriegel-official.jpg"] img,
figure[data-zoom$="stangenschloss-official.jpg"] img {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: #eef1ef;
}

/* Customer Drive photos marked as documentary/full-frame must not lose a
   person's head, the complete door or the service vehicle at card edges. */
.imgs figure.drive-full img {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: #eef1ef;
}

/* Several district hero photos are portrait originals. Keep the complete
   subject visible instead of stretching a crop across the wide hero. */
.phero .pimg img[src*="tueroeffnung-altbau"],
.phero .pimg img[src*="tueroeffnung-weissetuer"],
.phero .pimg img[src*="panzerriegel-werkzeug"],
.phero .pimg img[src*="gewerbetuer-rot"],
.phero .pimg img[src*="gewerbetuer-blau"],
.phero .pimg img[src*="einsatzwagen-falke-2026"],
.phero .pimg img[src*="berlin-west-einsatz"],
.phero .pimg img[src*="tuermontage-falke-2024"],
.phero .pimg img[src*="stahltuer-montage-falke"] {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: #07191d;
}

/* Keep the video poster visible until the first real frame is playing. */
.vidbox.an:not(.video-ready) img.pv { opacity: 1 !important; pointer-events: none !important; }

/* Vertical swipes over gallery cards remain normal page scrolling. */
[data-zoom] { touch-action: pan-y pinch-zoom !important; }

/* A deliberate tap opens the image; dragging keeps normal page scrolling. */
#zoom.on { pointer-events: auto !important; cursor: zoom-out; }

/* The three service-area photos live on the Türöffnung page, not in a hero movie. */
.reach-triplet { padding: 76px 0; background: #f5f5f2; }
.reach-triplet .dkreihe {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3.5vw, 52px); align-items: start; max-width: 1020px; margin: 34px auto 0;
}
.reach-triplet .dk { margin: 0; text-align: center; background: transparent; }
.reach-triplet .ring {
  display: block; width: min(100%, 260px); aspect-ratio: 1; margin: 0 auto 15px;
  border: 6px solid #f1bd18; border-radius: 50%; overflow: hidden; background: #1a1a1a;
  box-shadow: 0 9px 25px #0002;
}
.reach-triplet .ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reach-triplet h3 { margin: 0 0 6px; color: #064f60 !important; font-size: clamp(18px, 2vw, 25px); }
.reach-triplet p { margin: 0; color: #40575d !important; font-size: 15px; }

/* Customer-supplied priority order for Berlin districts and subdistricts.
   Each locality link now opens its own useful service page. */
.area-ranking {
  list-style: none; counter-reset: area-rank; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.area-ranking li {
  counter-increment: area-rank; position: relative; min-width: 0;
  padding: 20px 20px 18px 66px; border: 1px solid rgba(7, 106, 125, .16);
  border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(9, 55, 58, .06);
}
.area-ranking li::before {
  content: counter(area-rank, decimal-leading-zero); position: absolute; left: 20px; top: 18px;
  color: #b47b00; font: 900 18px/1.2 var(--mega, sans-serif); letter-spacing: .04em;
}
.area-ranking h3 { margin: 0 0 7px; color: #064f60; font-size: 19px; line-height: 1.2; }
.area-ranking p { margin: 0; color: #40575d; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.area-ranking a { color: inherit; text-decoration-color: rgba(180, 123, 0, .55); text-underline-offset: 3px; }
.area-ranking a:hover { color: #9a6900; }

/* The customer supplied an explicit 1–12 district ranking. The overview
   cards use the same order and keep the combined borough names readable. */
.dg[aria-label*="festgelegten Reihenfolge"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dg[aria-label*="festgelegten Reihenfolge"] .dt {
  min-height: 126px; display: flex; align-items: center; overflow-wrap: anywhere;
}
.dg[aria-label*="festgelegten Reihenfolge"] .rank-no {
  display: block; width: fit-content; margin: 0 0 9px;
  color: #f5c84b; font: 900 13px/1 var(--sans, sans-serif);
  letter-spacing: .16em;
}
.dg[aria-label*="festgelegten Reihenfolge"] small {
  letter-spacing: .07em; line-height: 1.45;
}

@media (max-width: 900px) {
  .dg[aria-label*="festgelegten Reihenfolge"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  /* Both bars stay visible and touch each other while scrolling. The old
     generated rules collapsed the gold bar to 6px and left a 20–43px gap. */
  .topbar,
  body.gescrollt .topbar {
    height: 54px !important; min-height: 54px !important;
    padding: 3px 0 !important; overflow: hidden !important;
  }
  .topbar .wrap { height: 48px !important; flex-wrap: wrap !important; align-content: center !important; }
  body.gescrollt .topbar .wrap > span:nth-of-type(1) { display: inline-flex !important; }
  header,
  body.gescrollt header { top: 54px !important; }
  .topbar .wrap { justify-content: center !important; }
  .topbar .tlogo {
    display: flex !important; flex: 0 0 100% !important; justify-content: center !important;
    height: 22px !important; padding: 0 !important; margin: 0 !important;
  }
  .topbar .tlogo em { font-size: 10.5px !important; line-height: 22px !important; }
  .topbar .wrap > span:last-child,
  .topbar .wrap > span:nth-of-type(1) {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    height: 20px !important; color: #2b260c !important; font-size: 9.5px !important; line-height: 20px !important;
  }
  .topbar .wrap > span:nth-of-type(1) b { color: #183915 !important; }
  .topbar .wrap > span:nth-of-type(1) .dot {
    display: inline-block !important; width: 8px !important; height: 8px !important;
    background: #16813d !important; box-shadow: 0 0 8px #16813d !important; margin-right: 6px !important;
  }
  .slide .meds { gap: 10px !important; }
  .slide .meds img { height: clamp(130px, 38vw, 190px) !important; }
  .hero { padding-bottom: 18px !important; }
  .hero {
    height: auto !important; min-height: 0 !important; display: block !important;
  }
  .hero .wrap { height: auto !important; padding-bottom: 0 !important; }
  .herocall { margin-top: 12px !important; }
  .pricebig { margin: 0 !important; }
  .wafab {
    left: auto !important; right: 14px !important; bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    width: 58px !important; height: 58px !important;
  }
  .nachoben,
  #toTop { right: 20px !important; bottom: calc(148px + env(safe-area-inset-bottom)) !important; }
  /* The previous 2.2:1 mobile cards cut away heads, shop signs and doors. */
  .imgs figure { aspect-ratio: 4 / 3 !important; }
  /* These customer-selected documentary images must remain large enough to
     understand on a phone.  They keep their full frame and span both columns. */
  .imgs figure[data-zoom$="stangenschloss-kunde-2024.jpg"],
  .imgs figure[data-zoom$="einbruchschutz-tuer-vorher.jpg"],
  .imgs figure[data-zoom$="einbruchschutz-stahlplatte-einbau.jpg"],
  .imgs figure[data-zoom$="stahltuer-montage-falke.jpg"] {
    grid-column: 1 / -1;
  }
  .reach-triplet { padding: 54px 0; }
  .reach-triplet .dkreihe { gap: 10px; margin-top: 25px; }
  .reach-triplet .ring {
    display: block !important; width: min(29vw, 116px) !important;
    height: auto !important; aspect-ratio: 1 / 1 !important;
    border-width: 4px; margin-bottom: 10px;
  }
  .reach-triplet h3 { font-size: 15px; line-height: 1.12; }
  .reach-triplet p { font-size: 12px; line-height: 1.35; }
  .area-ranking { grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .area-ranking li { padding: 16px 15px 15px 54px; }
  .area-ranking li::before { left: 15px; top: 15px; font-size: 16px; }
  .area-ranking h3 { font-size: 17px; }
  .area-ranking p { font-size: 14px; }
  .dg[aria-label*="festgelegten Reihenfolge"] { grid-template-columns: 1fr; }
  .dg[aria-label*="festgelegten Reihenfolge"] .dt { min-height: 0; padding: 19px 17px; }
  /* Keep the complete 1–12 ranking, but avoid the oversized single-column
     footer called out in the voice note. DOM order remains exactly 01–12. */
  footer .fg > div:nth-child(3) { grid-column: 1 / -1; }
  footer .fg > div:nth-child(3) ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px; row-gap: 2px;
  }
  footer .fg > div:nth-child(3) li { margin-bottom: 3px !important; }
}

/* October customer review: make the primary navigation react reliably to a
   single mouse/touch action. The native anchors remain the source of truth. */
#nl { position: relative; z-index: 30; }
#nl a,
.mlink {
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(241, 189, 24, .24);
}
#nl a:focus-visible,
.mlink:focus-visible {
  outline: 3px solid #d69800;
  outline-offset: 5px;
}

/* Stronger, consistent text contrast on light, dark and photographic areas.
   These overrides preserve the established colours while keeping secondary
   copy, captions and footer information clearly distinguishable. */
.sh .k { color: #765000 !important; }
.dk .sh .k { color: #ffdf70 !important; }
.sh h2 em {
  background: none !important;
  color: #815300 !important;
  -webkit-text-fill-color: #815300 !important;
  animation: none !important;
}
.dk .sh h2 em {
  color: #ffe17a !important;
  -webkit-text-fill-color: #ffe17a !important;
}
.dk .sh p { color: #d9edef !important; }
.phero .lead { color: #e8f5f6 !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .65); }
.district-hero .pimg img { opacity: .58 !important; object-position: 45% 50% !important; }
.dt small,
.dg[aria-label*="festgelegten Reihenfolge"] .rank-no { color: #ffe17a !important; }
.imgs figcaption {
  background: linear-gradient(180deg, transparent 0%, rgba(3, 23, 24, .76) 36%, rgba(2, 18, 19, .98) 100%) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9) !important;
}
.imgs figcaption b { color: #ffe17a !important; text-shadow: 0 1px 7px rgba(0, 0, 0, .85) !important; }
.final p { color: #d8eef0 !important; }
footer { color: #e5f4f5 !important; }
.callbtn,
.mcall,
#sticky { background: #0f7a37 !important; color: #fff !important; }
.fbot { border-top-color: rgba(255, 255, 255, .24) !important; }
.fg a:focus-visible,
.ortsteil-card:focus-visible,
.area-ranking a:focus-visible,
.dt:focus-visible {
  outline: 3px solid #ffe17a;
  outline-offset: 3px;
}

@media (max-width: 699px) {
  /* Keep the Brandenburg Gate and the technician visible on the narrow crop,
     so the district photo still reads as Berlin rather than a generic van. */
  .district-hero .pimg img { object-position: 38% 50% !important; }
}
