/* ATC 07.08.2026 -- Aussehen der Filialgalerie und ihrer Lupe.
   Gehoert zu atc-galerie-0708.js, die Begruendung steht dort.

   Farben ausschliesslich ueber die Framer-Tokens der Seite -- kein einziger
   fester Farbwert. Die Tokens sind dieselben, die die Seite ohnehin benutzt:
     --token-88a75011-...  ATC-Rot
     --token-b9ee7c4a-...  Grundflaeche dunkel
     --token-3b72b124-...  Weiss
     --token-e57d271d-...  Fliesstext hell
     --token-9bd1e44e-...  Fliesstext gedaempft
   Die Rueckfallwerte in var(...) stehen nur da, weil ein Token theoretisch
   fehlen koennte -- sie sind aus der Seite uebernommen, nicht erfunden.
*/

/* ------------------------------------------------------- Beschriftung unten */

/* Die Beschriftung liegt an der Unterkante IM Bild, ueber einem Verlauf.
   Nicht darunter: die Galeriezeile hat im Framer-Export eine feste Hoehe von
   320 px, ein Knoten dahinter ragte heraus und wurde vom naechsten Abschnitt
   ueberdeckt. So wie hier macht es auch das Vorbild (superyacht-atelier).
   pointer-events:none, damit der Klick zum Bildkasten durchgeht. */
figcaption.atc-bu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 52px 18px 16px;
  text-align: left;
  pointer-events: none;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, .55) 46%, rgba(10, 10, 12, .92) 100%);
}
figcaption.atc-bu b {
  font-family: "Inter Tight Medium", "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.01em;
  color: var(--token-3b72b124-8f78-49b8-afbb-e8a7611d02ea, rgb(255, 255, 255));
}
figcaption.atc-bu span {
  font-family: "Inter Tight", sans-serif;
  font-size: 13.5px;
  line-height: 148%;
  color: var(--token-e57d271d-caef-4ba8-9c71-8d1a44f1c966, rgb(182, 182, 183));
}

/* Der Bildkasten wird zum Auslöser. Nur Zeigerhand, ein leichtes Anheben und
   ein Fokusring -- Groesse, Rundung und Raster bleiben, wie sie waren. */
[data-atc-lupe-bar] {
  position: relative;          /* Anker fuer die Beschriftung an der Unterkante */
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow .35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  [data-atc-lupe-bar]:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  }
}
[data-atc-lupe-bar]:focus-visible {
  outline: 2px solid var(--token-88a75011-b93e-4412-bcf9-cc6e52a422a8, rgb(255, 48, 26));
  outline-offset: 5px;
}

/* ---------------------------------------------------------------- Die Lupe */

html[data-atc-lupe-offen] { overflow: hidden; }

.atc-lupe {
  position: fixed;
  inset: 0;
  /* ueber allem, auch ueber der Mobil-Navigation (2147483000) und dem
     Chat-Widget -- der Dialog ist modal, es darf nichts davorliegen. */
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 54px);
  background: rgba(10, 10, 12, .94);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  opacity: 0;
  transition: opacity .28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.atc-lupe.da { opacity: 1; }
.atc-lupe[hidden] { display: none; }

.atc-lupe-buehne {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: scale(.975);
  transition: transform .34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.atc-lupe.da .atc-lupe-buehne { transform: scale(1); }

.atc-lupe-buehne img {
  max-width: 100%;
  max-height: calc(100dvh - 230px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .7);
}

.atc-lupe-buehne figcaption {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  max-width: 62ch;
}
.atc-lupe-buehne figcaption b {
  font-family: "Inter Tight Medium", "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--token-3b72b124-8f78-49b8-afbb-e8a7611d02ea, rgb(255, 255, 255));
}
.atc-lupe-buehne figcaption span {
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
  line-height: 160%;
  color: var(--token-e57d271d-caef-4ba8-9c71-8d1a44f1c966, rgb(182, 182, 183));
}
.atc-lupe-buehne figcaption i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-top: 3px;
  color: var(--token-88a75011-b93e-4412-bcf9-cc6e52a422a8, rgb(255, 48, 26));
}

/* Knoepfe */
.atc-lupe button {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: var(--token-3b72b124-8f78-49b8-afbb-e8a7611d02ea, rgb(255, 255, 255));
  cursor: pointer;
  transition: background .28s ease, border-color .28s ease, color .28s ease;
}
.atc-lupe button:hover {
  background: var(--token-88a75011-b93e-4412-bcf9-cc6e52a422a8, rgb(255, 48, 26));
  border-color: var(--token-88a75011-b93e-4412-bcf9-cc6e52a422a8, rgb(255, 48, 26));
}
.atc-lupe button:focus-visible {
  outline: 2px solid var(--token-88a75011-b93e-4412-bcf9-cc6e52a422a8, rgb(255, 48, 26));
  outline-offset: 3px;
}
.atc-lupe button[hidden] { display: none; }

.atc-lupe-zu    { top: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 30px); width: 48px; height: 48px; }
.atc-lupe-pfeil { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.atc-lupe-pfeil.atc-zurueck { left: clamp(10px, 2.4vw, 28px); }
.atc-lupe-pfeil.atc-vor     { right: clamp(10px, 2.4vw, 28px); }

/* Auf dem Telefon wird gewischt. Die Pfeile rutschen nach unten, damit sie
   nicht auf dem Bild liegen. */
@media (max-width: 760px) {
  .atc-lupe-buehne img { max-height: calc(100dvh - 270px); }
  .atc-lupe-pfeil { top: auto; bottom: 20px; transform: none; width: 46px; height: 46px; }
  .atc-lupe-pfeil.atc-zurueck { left: 26px; }
  .atc-lupe-pfeil.atc-vor     { right: 26px; }
  .atc-lupe-buehne figcaption { padding: 0 6px 70px; }
  figcaption.atc-bu { padding: 44px 14px 13px; }
  figcaption.atc-bu b { font-size: 15px; }
  figcaption.atc-bu span { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .atc-lupe, .atc-lupe-buehne, [data-atc-lupe-bar] { transition: none; }
  [data-atc-lupe-bar]:hover { transform: none; }
}
