/* prografie static (HTML5 + CSS, OFFLINE assets) */

html, body {
  background: #F2F2F2; height: 100%; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #111111; background: #f2f2f2; }

#page { min-height: 100%; position: relative; }

/* ---- Navigation im Stil der alten prografie-Startseite ---- */
#nav {
  position: fixed;
  top: 58px;
  left: 58px;
  right: 58px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  pointer-events: none;
}

#nav .brand,
#nav a {
  pointer-events: auto;
}

#nav .brand {
  width: 104px;
  height: 104px;
  display: block;
  text-decoration: none;
  line-height: 0;
}

#nav .brand img {
  width: 100%;
  height: 100%;
  display: block;
}

#nav ul {
  list-style: none;
  margin: 17px 0 0 0;
  padding: 0;
}

#nav .nav-main {
  display: flex;
  gap: 24px;
  align-items: center;
}

#nav .nav-main a {
  min-width: 164px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  box-sizing: border-box;
  border: 2px solid rgba(17,17,17,0.55);
  background: rgba(255,255,255,0.08);
  color: #111111;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.08em;
  font-weight: 400;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

#nav .nav-main a:hover,
#nav .nav-main a:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(17,17,17,0.9);
  outline: none;
}

body.home #nav .nav-main a {
  border-color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.04);
  color: #ffffff;
}

body.home #nav .nav-main a:hover,
body.home #nav .nav-main a:focus {
  background: rgba(255,255,255,0.13);
  border-color: #ffffff;
}

#content { padding: 158px 40px 90px 40px; max-width: 1100px; }

#footer {
  position: fixed;
  bottom: 18px;
  left: 24px;
  right: 24px;
  z-index: 10;
  font-size: 12px;
  opacity: 0.75;
}

#footer a {
  color: inherit;
  text-decoration: none;
  margin-left: 14px;
}

#footer a:hover,
#footer a:focus {
  text-decoration: underline;
}

body.home #footer {
  color: #ffffff;
}

@media (max-width: 760px) {
  #nav {
    top: 22px;
    left: 20px;
    right: 20px;
    align-items: flex-start;
  }

  #nav .brand {
    width: 74px;
    height: 74px;
    font-size: 16px;
    padding-bottom: 10px;
  }

  #nav .nav-main {
    flex-direction: column;
    gap: 10px;
  }

  #nav ul {
    margin-top: 0;
  }

  #nav .nav-main a {
    min-width: 140px;
    height: 42px;
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  #content {
    padding: 130px 20px 90px 20px;
  }
}

/* ---- Index hero ---- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #111111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: brightness(1);
  transform: scale(1.02);
  transition: opacity 2400ms ease-in-out, transform 9000ms ease-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.28));
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }
}

.hero-content {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; text-align: center; padding: 24px;
}
.hero-card { max-width: 720px; }
body.home .hero-card {
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 12px rgba(0,0,0,0.32), 0 1px 2px rgba(0,0,0,0.28);
}
body.home .hero-card svg,
body.home .hero-card img {
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.30));
}
.hero-card h1 { font-size: 44px; margin: 0 0 8px 0; font-weight: 600; }
.hero-card p { margin: 0; font-size: 18px; opacity: 0.92; }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.figure {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}
.figure img { width: 100%; height: auto; display: block; }
.figure .cap { padding: 10px 12px; font-size: 13px; line-height: 1.35; opacity: 0.95; }

.h1 { font-size: 28px; font-weight: 600; margin: 0 0 16px 0; }
.p { max-width: 820px; font-size: 15px; line-height: 1.6; opacity: 0.92; }

.kontakt-box {
  max-width: 700px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 18px 18px;
}
.kontakt-box .phone { font-size: 20px; margin: 10px 0 0 0; }

#content a { color: #111111; }

/* ---- Before/After Slider ---- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1100px;
}

.ba-block {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px;
}

.ba-header {
  margin-bottom: 12px;
}

.ba-title {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
}

.ba-sub {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

.ba-sep {
  opacity: 0.5;
  padding: 0 6px;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}

.ba-img {
  position: absolute;
  inset: 0;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-img--after {
  clip-path: inset(0 50% 0 0);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.9);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.ba-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}

/* ---- Slider polish ---- */
.ba-slider {
  touch-action: pan-y; /* allow vertical scroll, keep horizontal drag for range */
}

.ba-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 10px 0 0 0;
}

.ba-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
  color: #111111;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.9;
}

.ba-btn:hover, .ba-btn:focus {
  opacity: 1.0;
  outline: none;
  border-color: rgba(255,255,255,0.42);
}

.ba-btn:active {
  transform: translateY(1px);
}

.ba-range {
  /* keep invisible but enlarge interaction */
  opacity: 0;
}

.ba-slider::after {
  /* bigger, invisible hit zone for mobile around the handle */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 70px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 700px) {
  .ba-title { font-size: 16px; }
  .ba-sub { font-size: 12px; }
  .ba-handle::before { width: 42px; height: 42px; }
  .ba-handle::after { font-size: 16px; }
  .ba-controls { justify-content: space-between; }
  .ba-btn { padding: 10px 12px; font-size: 13px; }
}

/* ---- Responsive Feinabstimmung nach Referenz-Screenshots ---- */
@media (min-width: 761px) {
  body.home #nav {
    top: clamp(44px, 6.5vw, 72px);
    left: clamp(54px, 6.3vw, 88px);
    right: clamp(44px, 5.2vw, 70px);
  }

  body.home #nav .brand {
    width: clamp(104px, 8.6vw, 146px);
    height: clamp(104px, 8.6vw, 146px);
  }

  body.home #nav ul {
    margin-top: clamp(18px, 1.8vw, 28px);
  }

  body.home #nav .nav-main {
    gap: clamp(11px, 0.95vw, 17px);
  }

  body.home #nav .nav-main a {
    min-width: clamp(96px, 7.2vw, 130px);
    height: clamp(34px, 2.9vw, 46px);
    font-size: clamp(10px, 0.75vw, 14px);
    letter-spacing: 0.08em;
    border-width: 1px;
    padding: 0 14px;
  }

  body.home .hero-card h1 {
    font-size: clamp(48px, 4.3vw, 72px);
    font-weight: 300;
    letter-spacing: 0.015em;
  }

  body.home .hero-card p {
    font-size: clamp(17px, 1.35vw, 22px);
    letter-spacing: 0.04em;
  }
}

@media (max-width: 760px) {
  body.home #nav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
  }

  body.home #nav .brand {
    width: clamp(87px, 23.8vw, 106px);
    height: clamp(87px, 23.8vw, 106px);
  }

  body.home #nav ul {
    margin: 0;
  }

  body.home #nav .nav-main {
    position: fixed;
    left: max(78px, 22vw);
    right: max(78px, 22vw);
    bottom: calc(92px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  body.home #nav .nav-main a {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: clamp(15px, 3.8vw, 20px);
    letter-spacing: 0.08em;
    border-width: 1px;
    background: rgba(255,255,255,0.02);
  }

  body.home .hero-content {
    align-items: center;
    justify-content: center;
    padding: 0 24px 25vh 24px;
  }

  body.home .hero-card h1 {
    font-size: clamp(25px, 7.1vw, 34px);
    line-height: 1.14;
    font-weight: 300;
    letter-spacing: 0.015em;
    margin-bottom: 8px;
  }

  body.home .hero-card p {
    font-size: clamp(13px, 3.5vw, 18px);
    letter-spacing: 0.04em;
  }

  body.home #footer {
    display: none;
  }

  body.home .hero-slide {
    background-position: center center;
  }
}

@media (max-width: 380px) {
  body.home #nav {
    top: 38px;
  }

  body.home #nav .nav-main {
    left: 68px;
    right: 68px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  body.home #nav .nav-main a {
    height: 38px;
  }
}

/* Mobile: Footer-Links zusätzlich als Navigationsbuttons */
#nav .nav-mobile-extra {
  display: none;
}

@media (max-width: 760px) {
  #nav .nav-mobile-extra {
    display: list-item;
  }

  #nav .nav-mobile-extra a {
    height: 42px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  body.home #nav .nav-main {
    gap: 8px;
  }

  body.home #nav .nav-mobile-extra a {
    height: 30px;
    font-size: clamp(10px, 2.8vw, 12px);
    letter-spacing: 0.08em;
  }

  body.home #nav .nav-main li:not(.nav-mobile-extra) a {
    height: 40px;
    font-size: clamp(14px, 3.6vw, 18px);
  }
}

@media (max-width: 380px) {
  body.home #nav .nav-main {
    gap: 8px;
  }

  body.home #nav .nav-main li:not(.nav-mobile-extra) a {
    height: 36px;
  }

  body.home #nav .nav-mobile-extra a {
    height: 26px;
    font-size: 10px;
  }
}


/* ---- Fotografie/Unterseiten im Stil der alten prografie-Galerie ---- */
@media (min-width: 761px) {
  body:not(.home) #nav {
    top: 70px;
    left: 72px;
    right: auto;
    width: 132px;
    display: block;
    pointer-events: none;
    z-index: 1;
  }

  body:not(.home) #nav .brand {
    width: 104px;
    height: 104px;
    margin: 0 0 32px 0;
  }

  body:not(.home) #nav ul,
  body:not(.home) #nav .nav-main {
    display: block;
    margin: 0;
    padding: 0;
  }

  body:not(.home) #nav .nav-main li {
    display: block;
    margin: 0 0 16px 0;
  }

  body:not(.home) #nav .nav-main a {
    display: inline;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #003f73;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: lowercase;
  }

  body:not(.home) #nav .nav-main a:hover,
  body:not(.home) #nav .nav-main a:focus {
    background: transparent;
    color: #5aa5d6;
    text-decoration: none;
  }

  body:not(.home) #nav .nav-main a.is-active {
    color: #5aa5d6;
  }

  body:not(.home) #content {
    max-width: none;
    padding: 70px 70px 90px 300px;
  }

  body:not(.home) #footer {
    position: fixed;
    left: 72px;
    right: auto;
    bottom: 28px;
    width: 132px;
    font-size: 12px;
    line-height: 1.6;
  }

  body:not(.home) #footer span,
  body:not(.home) #footer a {
    display: none;
  }

  body.photography-page #content {
    padding-top: 70px;
  }

  body.photography-page .gallery {
    max-width: 1150px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  body.photography-page .figure {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  body.photography-page .figure img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    object-fit: cover;
  }

  body.photography-page .figure .cap {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body.photography-page .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body:not(.home) #content {
    padding-left: 240px;
    padding-right: 36px;
  }

  body.photography-page .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.photography-page .h1,
  body.photography-page .p {
    display: none;
  }

  body.photography-page .gallery {
    gap: 8px;
  }

  body.photography-page .figure {
    border-radius: 0;
    border: 0;
    background: transparent;
  }

  body.photography-page .figure .cap {
    display: none;
  }
}


/* ---- Fotografie Architektur: Breakpoints nach Original-Screenshots ---- */
@media (min-width: 761px) {
  body.photography-page #nav {
    top: 70px;
    left: 72px;
    width: 136px;
  }

  body.photography-page #nav .brand {
    width: 104px;
    height: 104px;
    margin-bottom: 34px;
  }

  body.photography-page #nav .nav-main li {
    margin-bottom: 16px;
  }

  body.photography-page #nav .nav-main a {
    font-size: 16px;
    line-height: 1.25;
  }

  body.photography-page #nav .nav-main li:nth-child(n+3) a {
    font-size: 12px;
  }

  body.photography-page #content {
    padding-top: 70px;
    padding-left: 300px;
    padding-right: 70px;
    padding-bottom: 90px;
  }

  body.photography-page .gallery {
    width: 100%;
    max-width: 1168px;
    display: grid;
    gap: 8px;
  }

  body.photography-page .figure,
  body.photography-page .figure img {
    border-radius: 0;
  }

  body.photography-page .figure img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  body.photography-page .figure .cap {
    display: none;
  }
}

@media (min-width: 1641px) {
  body.photography-page .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1441px) and (max-width: 1640px) {
  body.photography-page .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1120px; }
}

@media (min-width: 1241px) and (max-width: 1440px) {
  body.photography-page #content { padding-left: 290px; padding-right: 58px; }
  body.photography-page .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
}

@media (min-width: 1041px) and (max-width: 1240px) {
  body.photography-page #content { padding-left: 310px; padding-right: 58px; }
  body.photography-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }
}

@media (min-width: 761px) and (max-width: 1040px) {
  body.photography-page #nav { left: 58px; top: 72px; }
  body.photography-page #nav .brand { width: 96px; height: 96px; }
  body.photography-page #content { padding-left: 360px; padding-right: 48px; padding-top: 72px; }
  body.photography-page .gallery { grid-template-columns: 1fr; max-width: 620px; }
  body.photography-page .figure img { aspect-ratio: auto; height: auto; object-fit: contain; }
}

@media (max-width: 760px) {
  body.photography-page #nav {
    position: absolute;
    top: 34px;
    left: 34px;
    right: 34px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: auto;
  }

  body.photography-page #nav .brand {
    width: 80px;
    height: 80px;
  }

  body.photography-page #nav .nav-main {
    display: block;
    margin: 0;
    padding: 0;
  }

  body.photography-page #nav .nav-main li {
    display: none;
  }

  body.photography-page #nav .nav-main::before {
    content: "menu";
    display: block;
    color: #5aa5d6;
    font-size: 14px;
    line-height: 1;
    padding-top: 2px;
  }

  body.photography-page #content {
    padding: 178px 34px 54px 34px;
    max-width: none;
  }

  body.photography-page .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.photography-page .figure img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  body.photography-page .figure .cap {
    display: block;
    padding: 8px 0 0 0;
    color: #111111;
    font-size: 16px;
    line-height: 1.3;
    opacity: 1;
  }

  body.photography-page .figure .cap div:not(:first-child) {
    font-size: 13px;
    font-weight: 400;
    margin-top: 2px;
  }

  body.photography-page #footer {
    display: none;
  }
}

@media (max-width: 420px) {
  body.photography-page #nav { left: 28px; right: 28px; top: 30px; }
  body.photography-page #nav .brand { width: 74px; height: 74px; }
  body.photography-page #content { padding: 162px 28px 48px 28px; }
  body.photography-page .gallery { gap: 22px; }
  body.photography-page .figure .cap { font-size: 15px; }
}

/* ---- Fotografie Architektur: kontrollierte Content-Breite Desktop ---- */
@media (min-width: 1241px) {
  body.photography-page #content {
    padding-left: clamp(220px, 19vw, 360px);
  }
}


/* ---- Fotografie Architektur: Kacheln über volle Content-Breite ---- */
@media (min-width: 761px) {
  body.photography-page .gallery {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 1441px) and (max-width: 1640px) {
  body.photography-page .gallery { max-width: none; }
}

@media (min-width: 1241px) and (max-width: 1440px) {
  body.photography-page .gallery { max-width: none; }
}

@media (min-width: 1041px) and (max-width: 1240px) {
  body.photography-page .gallery { max-width: none; }
}


/* ---- Retusche Architektur: Layout im Stil der Fotografie-Seite ---- */
body.retouch-page .h1,
body.retouch-page .p {
  display: none;
}

@media (min-width: 761px) {
  body.retouch-page #nav {
    top: 70px;
    left: 72px;
    width: 136px;
  }

  body.retouch-page #nav .brand {
    width: 104px;
    height: 104px;
    margin-bottom: 34px;
  }

  body.retouch-page #nav .nav-main li {
    margin-bottom: 16px;
  }

  body.retouch-page #nav .nav-main a {
    font-size: 16px;
    line-height: 1.25;
  }

  body.retouch-page #nav .nav-main li:nth-child(n+3) a {
    font-size: 12px;
  }

  body.retouch-page #content {
    padding-top: 70px;
    padding-left: clamp(220px, 19vw, 360px);
    padding-right: 70px;
    padding-bottom: 90px;
    max-width: none;
  }

  body.retouch-page .ba-grid {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 8px;
  }

  body.retouch-page .ba-block {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
  }

  body.retouch-page .ba-header {
    margin: 0 0 8px 0;
  }

  body.retouch-page .ba-title {
    margin: 0;
    color: #111111;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
  }

  body.retouch-page .ba-sub {
    display: none;
  }

  body.retouch-page .ba-slider {
    border: 0;
    border-radius: 0;
    background: transparent;
    aspect-ratio: 1 / 1;
  }

  body.retouch-page .ba-img img {
    object-fit: cover;
  }

  body.retouch-page .ba-controls {
    margin-top: 6px;
    justify-content: flex-start;
    gap: 6px;
  }

  body.retouch-page .ba-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #003f73;
    padding: 0;
    font-size: 11px;
    line-height: 1.4;
  }

  body.retouch-page .ba-btn + .ba-btn::before {
    content: "|";
    color: rgba(0,63,115,0.35);
    padding: 0 6px 0 0;
  }
}

@media (min-width: 1641px) {
  body.retouch-page .ba-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1441px) and (max-width: 1640px) {
  body.retouch-page .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1241px) and (max-width: 1440px) {
  body.retouch-page #content { padding-right: 58px; }
  body.retouch-page .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1041px) and (max-width: 1240px) {
  body.retouch-page #content { padding-left: 310px; padding-right: 58px; }
  body.retouch-page .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 1040px) {
  body.retouch-page #nav { left: 58px; top: 72px; }
  body.retouch-page #nav .brand { width: 96px; height: 96px; }
  body.retouch-page #content { padding-left: 360px; padding-right: 48px; padding-top: 72px; }
  body.retouch-page .ba-grid { grid-template-columns: 1fr; }
  body.retouch-page .ba-slider { aspect-ratio: 16 / 10; }
  body.retouch-page .ba-img img { object-fit: cover; }
}

@media (max-width: 760px) {
  body.retouch-page #nav {
    position: absolute;
    top: 34px;
    left: 34px;
    right: 34px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: auto;
  }

  body.retouch-page #nav .brand {
    width: 80px;
    height: 80px;
  }

  body.retouch-page #nav .nav-main {
    display: block;
    margin: 0;
    padding: 0;
  }

  body.retouch-page #nav .nav-main li {
    display: none;
  }

  body.retouch-page #nav .nav-main::before {
    content: "menu";
    display: block;
    color: #5aa5d6;
    font-size: 14px;
    line-height: 1;
    padding-top: 2px;
  }

  body.retouch-page #content {
    padding: 178px 34px 54px 34px;
    max-width: none;
  }

  body.retouch-page .ba-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: none;
  }

  body.retouch-page .ba-block {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  body.retouch-page .ba-header {
    margin: 0 0 8px 0;
  }

  body.retouch-page .ba-title {
    color: #111111;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
  }

  body.retouch-page .ba-sub {
    display: none;
  }

  body.retouch-page .ba-slider {
    border: 0;
    border-radius: 0;
    background: transparent;
    aspect-ratio: auto;
  }

  body.retouch-page .ba-slider::before {
    content: "";
    display: block;
    padding-top: 62.5%;
  }

  body.retouch-page .ba-img,
  body.retouch-page .ba-range,
  body.retouch-page .ba-handle {
    position: absolute;
  }

  body.retouch-page .ba-img img {
    object-fit: cover;
  }

  body.retouch-page .ba-controls {
    justify-content: flex-start;
    margin-top: 8px;
    gap: 8px;
  }

  body.retouch-page .ba-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #003f73;
    padding: 0;
    font-size: 13px;
  }

  body.retouch-page #footer {
    display: none;
  }
}

@media (max-width: 420px) {
  body.retouch-page #nav { left: 28px; right: 28px; top: 30px; }
  body.retouch-page #nav .brand { width: 74px; height: 74px; }
  body.retouch-page #content { padding: 162px 28px 48px 28px; }
  body.retouch-page .ba-grid { gap: 24px; }
  body.retouch-page .ba-title { font-size: 15px; }
}

/* ---- Einheitliche Unterseiten-Navigation ---- */
@media (min-width: 761px) {
  body:not(.home) #nav .nav-main li,
  body.photography-page #nav .nav-main li,
  body.retouch-page #nav .nav-main li {
    display: block;
    margin: 0 0 16px 0;
  }

  body:not(.home) #nav .nav-main a,
  body.photography-page #nav .nav-main a,
  body.retouch-page #nav .nav-main a,
  body.photography-page #nav .nav-main li:nth-child(n+3) a,
  body.retouch-page #nav .nav-main li:nth-child(n+3) a {
    display: inline;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #003f73;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 400;
  }

  body:not(.home) #nav .nav-main a:hover,
  body:not(.home) #nav .nav-main a:focus,
  body.photography-page #nav .nav-main a:hover,
  body.photography-page #nav .nav-main a:focus,
  body.retouch-page #nav .nav-main a:hover,
  body.retouch-page #nav .nav-main a:focus,
  body:not(.home) #nav .nav-main a.is-active,
  body.photography-page #nav .nav-main a.is-active,
  body.retouch-page #nav .nav-main a.is-active {
    background: transparent;
    color: #5aa5d6;
    text-decoration: none;
  }
}

/* ---- Feinkorrektur: exakt gleiche vertikale Navigation auf allen Unterseiten ---- */
@media (min-width: 761px) {
  body:not(.home) #nav,
  body.photography-page #nav,
  body.retouch-page #nav {
    top: 70px;
    left: 72px;
    width: 132px;
  }

  body:not(.home) #nav .brand,
  body.photography-page #nav .brand,
  body.retouch-page #nav .brand {
    width: 104px;
    height: 104px;
    margin: 0 0 32px 0;
  }

  body:not(.home) #nav .nav-main li,
  body.photography-page #nav .nav-main li,
  body.retouch-page #nav .nav-main li {
    margin: 0 0 16px 0;
  }
}


/* ---- Retusche-Unterseiten: Subnavigation und Kachel-Galerie ---- */
@media (min-width: 761px) {
  body.retouch-page #nav .nav-main .nav-sub {
    margin: -6px 0 12px 22px;
  }

  body.retouch-page #nav .nav-main .nav-sub a {
    font-size: 16px;
    line-height: 1.25;
  }

  body.retouch-page #nav .nav-main .nav-after-sub {
    margin-bottom: 36px;
  }

  body.retouch-gallery-page #content {
    padding-top: 70px;
    padding-left: clamp(220px, 19vw, 360px);
    padding-right: 70px;
    padding-bottom: 90px;
    max-width: none;
  }

  body.retouch-gallery-page .gallery {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  body.retouch-gallery-page .figure {
    aspect-ratio: 1 / 1;
    background: transparent;
    overflow: hidden;
  }

  body.retouch-gallery-page .figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.retouch-gallery-page .figure .cap {
    display: none;
  }
}

@media (min-width: 1441px) and (max-width: 1640px) {
  body.retouch-gallery-page .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1241px) and (max-width: 1440px) {
  body.retouch-gallery-page #content { padding-right: 58px; }
  body.retouch-gallery-page .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1041px) and (max-width: 1240px) {
  body.retouch-gallery-page #content { padding-left: 310px; padding-right: 58px; }
  body.retouch-gallery-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 1040px) {
  body.retouch-gallery-page #nav { left: 58px; top: 72px; }
  body.retouch-gallery-page #nav .brand { width: 96px; height: 96px; }
  body.retouch-gallery-page #content { padding-left: 360px; padding-right: 48px; padding-top: 72px; }
  body.retouch-gallery-page .gallery { grid-template-columns: 1fr; }
  body.retouch-gallery-page .figure { aspect-ratio: auto; }
  body.retouch-gallery-page .figure img { height: auto; object-fit: contain; }
}

@media (max-width: 760px) {
  body.retouch-page #nav .nav-main .nav-sub {
    display: none;
  }

  body.retouch-gallery-page #content {
    padding: 178px 34px 54px 34px;
    max-width: none;
  }

  body.retouch-gallery-page .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: none;
  }

  body.retouch-gallery-page .figure {
    aspect-ratio: auto;
    background: transparent;
  }

  body.retouch-gallery-page .figure img {
    width: 100%;
    height: auto;
    display: block;
  }

  body.retouch-gallery-page .figure .cap {
    display: block;
    margin-top: 8px;
    color: #111111;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 400;
  }

  body.retouch-gallery-page .figure .cap strong {
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  body.retouch-gallery-page #nav { left: 28px; right: 28px; top: 30px; }
  body.retouch-gallery-page #nav .brand { width: 74px; height: 74px; }
  body.retouch-gallery-page #content { padding: 162px 28px 48px 28px; }
  body.retouch-gallery-page .gallery { gap: 24px; }
}

/* ---- Fotografie: Kachelradius wie auf den Retusche-Seiten ---- */
body.photography-page .figure,
body.photography-page .figure img {
  border-radius: 10px;
}

body.photography-page .figure {
  overflow: hidden;
}

/* Retusche-Test: eine Kachel pro Vorher/Nachher-Paar mit vertikaler Trennung */
body.retouch-gallery-page .figure.compare-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
}

body.retouch-gallery-page .figure.compare-tile .compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.retouch-gallery-page .figure.compare-tile .compare-before {
  clip-path: inset(0 50% 0 0);
}

body.retouch-gallery-page .figure.compare-tile .compare-after {
  clip-path: inset(0 0 0 50%);
}

body.retouch-gallery-page .figure.compare-tile .compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
  pointer-events: none;
}

body.retouch-gallery-page .figure.compare-tile .cap {
  position: static;
}

@media (min-width: 761px) {
  body.retouch-gallery-page .figure.compare-tile .cap {
    display: none;
  }
}

@media (max-width: 760px) {
  body.retouch-gallery-page .figure.compare-tile {
    aspect-ratio: 1 / 1;
  }

  body.retouch-gallery-page .figure.compare-tile .cap {
    display: block;
    margin-top: calc(100% + 8px);
  }
}

/* ---- Navigation: Nebenlinks wieder kleiner und abgerückt ---- */
@media (min-width: 761px) {
  body:not(.home) #nav .nav-main li.nav-mobile-extra,
  body.photography-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-page #nav .nav-main li.nav-mobile-extra {
    margin-bottom: 10px;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.photography-page #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.retouch-page #nav .nav-main li.nav-mobile-extra:first-of-type {
    margin-top: 28px;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra a,
  body.photography-page #nav .nav-main li.nav-mobile-extra a,
  body.retouch-page #nav .nav-main li.nav-mobile-extra a {
    font-size: 12px;
    line-height: 1.35;
  }
}

/* ---- Feinkorrektur: Linkliste optisch an Logo-Kante ausrichten ---- */
@media (min-width: 761px) {
  body:not(.home) #nav .nav-main,
  body.photography-page #nav .nav-main,
  body.retouch-page #nav .nav-main {
    margin-left: 4px;
  }
}


/* Fotografie: klickbare Kacheln und vollformatige Einzelseiten */
body.photography-page .figure-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

body.photography-page .figure-link:focus-visible {
  outline: 1px solid rgba(0, 174, 239, 0.85);
  outline-offset: 4px;
}

body.photography-page .figure-link .figure {
  height: 100%;
}

body.photo-detail-page .photo-detail {
  width: 100%;
  min-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.photo-detail-page .photo-detail-frame {
  width: 100%;
  max-width: none;
}

body.photo-detail-page .photo-detail-frame img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

body.photo-detail-page .photo-detail-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  color: #111111;
  font-size: 13px;
  line-height: 1.45;
}

body.photo-detail-page .photo-detail-meta h1 {
  margin: 0 0 3px 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

body.photo-detail-page .photo-detail-client {
  opacity: 0.82;
}

body.photo-detail-page .photo-detail-nav {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  font-size: 13px;
}

body.photo-detail-page .photo-detail-nav a {
  color: #111111;
  text-decoration: none;
  opacity: 0.72;
}

body.photo-detail-page .photo-detail-nav a:hover,
body.photo-detail-page .photo-detail-nav a:focus {
  opacity: 1;
  color: #00aeef;
}

@media (max-width: 760px) {
  body.photo-detail-page .photo-detail {
    min-height: auto;
    justify-content: flex-start;
  }

  body.photo-detail-page .photo-detail-frame img {
    max-height: none;
    width: 100%;
    height: auto;
  }

  body.photo-detail-page .photo-detail-meta {
    display: block;
    margin-top: 12px;
    font-size: 15px;
  }

  body.photo-detail-page .photo-detail-meta h1 {
    font-size: 16px;
  }

  body.photo-detail-page .photo-detail-nav {
    margin-top: 18px;
    gap: 20px;
    font-size: 15px;
  }
}


/* ---- Fotografie-Einzelseiten: Detailansicht nach Original-Screenshot ---- */
@media (min-width: 761px) {
  body.photo-detail-page #content {
    padding-top: 70px;
    padding-left: clamp(220px, 19vw, 360px);
    padding-right: 70px;
    padding-bottom: 48px;
    max-width: none;
    min-height: 100vh;
  }

  body.photo-detail-page .photo-detail {
    width: 100%;
    min-height: auto;
    display: block;
  }

  body.photo-detail-page .photo-detail-frame {
    width: 100%;
    max-width: none;
  }

  body.photo-detail-page .photo-detail-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 118px);
    object-fit: contain;
    object-position: top center;
    border-radius: 10px;
  }

  body.photo-detail-page .photo-detail-meta {
    display: none;
  }

  body.photo-detail-page #nav .photo-side-meta {
    margin-left: 4px;
    margin-top: 250px;
    color: #111111;
    font-size: 11px;
    line-height: 1.35;
  }

  body.photo-detail-page #nav .photo-side-meta h1 {
    margin: 0 0 52px 0;
    color: #003f73;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
  }

  body.photo-detail-page #nav .photo-detail-client {
    margin-top: 3px;
    color: #111111;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
  }

  body.photo-detail-page #nav .photo-detail-nav {
    display: block;
    margin: 0 0 66px 0;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.photo-detail-page #nav .photo-detail-nav a,
  body.photo-detail-page #nav .photo-detail-overview {
    color: #111111;
    text-decoration: none;
    opacity: 0.88;
  }

  body.photo-detail-page #nav .photo-detail-nav a:hover,
  body.photo-detail-page #nav .photo-detail-nav a:focus,
  body.photo-detail-page #nav .photo-detail-overview:hover,
  body.photo-detail-page #nav .photo-detail-overview:focus {
    color: #5aa5d6;
    opacity: 1;
  }

  body.photo-detail-page #nav .photo-detail-overview {
    display: inline-block;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
}

@media (min-width: 1441px) and (max-width: 1640px) {
  body.photo-detail-page #content { padding-right: 58px; }
}

@media (min-width: 1241px) and (max-width: 1440px) {
  body.photo-detail-page #content { padding-right: 58px; }
}

@media (min-width: 1041px) and (max-width: 1240px) {
  body.photo-detail-page #content { padding-left: 310px; padding-right: 58px; }
  body.photo-detail-page .photo-detail-frame img { max-height: none; }
}

@media (min-width: 761px) and (max-width: 1040px) {
  body.photo-detail-page #nav { left: 58px; top: 72px; }
  body.photo-detail-page #nav .brand { width: 96px; height: 96px; }
  body.photo-detail-page #content { padding-left: 300px; padding-right: 48px; padding-top: 72px; }
  body.photo-detail-page .photo-detail-frame img { max-height: none; }
  body.photo-detail-page #nav .photo-side-meta { margin-top: 210px; }
}

@media (max-width: 760px) {
  body.photo-detail-page #nav .photo-side-meta {
    display: none;
  }

  body.photo-detail-page .photo-detail-meta {
    display: block;
  }
}

/* Safari-sichere Rundung fuer grosse Fotografie-Detailbilder */
body.photo-detail-page .photo-detail-frame {
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

body.photo-detail-page .photo-detail-frame img {
  border-radius: 0;
}

/* Korrektur: Rundung der Fotografie-Detailbilder wirklich auf die sichtbare Bildflaeche anwenden */
body.photo-detail-page .photo-detail-frame {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  clip-path: inset(0 round 10px);
  -webkit-clip-path: inset(0 round 10px);
}

body.photo-detail-page .photo-detail-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

@media (min-width: 761px) {
  body.photo-detail-page .photo-detail-frame img {
    max-height: calc(100vh - 118px);
  }
}

@media (max-width: 760px) {
  body.photo-detail-page .photo-detail-frame {
    width: 100%;
  }

  body.photo-detail-page .photo-detail-frame img {
    width: 100%;
    max-height: none;
  }
}


/* Fotografie-Detailseiten: Caption-/Navigation-Block optisch an der Unterkante des Detailbildes ausrichten */
@media (min-width: 761px) {
  body.photo-detail-page #nav .photo-side-meta {
    position: absolute;
    left: 4px;
    top: var(--photo-side-meta-top, 250px);
    width: 132px;
    margin-left: 0;
    margin-top: 0;
  }
}

/* Fotografie-Detailseiten: Navigationslinks im linken Infoblock auf fixer Hoehe halten.
   Zusatzzeilen in der Caption wachsen nach oben und verschieben ZURUECK/WEITER nicht mehr. */
@media (min-width: 761px) {
  body.photo-detail-page #nav .photo-side-meta {
    height: 220px;
  }

  body.photo-detail-page #nav .photo-side-meta h1 {
    position: absolute;
    left: 0;
    bottom: 146px;
    width: 132px;
    margin: 0;
  }

  body.photo-detail-page #nav .photo-detail-nav {
    position: absolute;
    left: 0;
    bottom: 66px;
    margin: 0;
  }

  body.photo-detail-page #nav .photo-detail-overview {
    position: absolute;
    left: 0;
    bottom: 0;
  }
}

/* Fotografie-Detailseiten: Bildflaeche ist auch per Mausklick navigierbar */
body.photo-detail-page .photo-detail-frame {
  cursor: pointer;
}

/* ---- Kontaktformular ---- */
.contact-page-content {
  max-width: 820px;
}

.contact-form {
  max-width: 620px;
  margin: 28px 0 24px 0;
}

.contact-form .form-row {
  margin: 0 0 18px 0;
}

.contact-form label {
  display: block;
  margin: 0 0 7px 0;
  color: #111111;
  font-size: 13px;
  line-height: 1.35;
}

.contact-form .form-row:not(.form-row--check):not(.form-row--hp):focus-within > label {
  color: #5aa5d6;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17,17,17,0.34);
  border-radius: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  padding: 10px 11px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5aa5d6;
}

.contact-form .form-row--check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  max-width: 620px;
}

.contact-form .form-row--check input {
  margin: 2px 0 0 0;
}

.contact-form .form-row--check label {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.contact-form .form-row--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  appearance: none;
  border: 1px solid rgba(17,17,17,0.55);
  background: transparent;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 12px 18px;
  min-width: 180px;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-submit:hover,
.contact-submit:focus {
  border-color: rgba(17,17,17,0.9);
  background: rgba(255,255,255,0.28);
  outline: none;
}

.contact-fallback {
  margin-top: 26px;
}

@media (max-width: 760px) {
  .contact-form {
    max-width: none;
    margin-top: 24px;
  }

  .contact-submit {
    width: 100%;
  }
}

/* ---- Kontaktseite: zweispaltiger Contentbereich ---- */
.contact-page-content {
  max-width: none;
}

.contact-layout {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.contact-primary .p {
  max-width: 620px;
}

.contact-page-content .contact-form {
  width: 100%;
  max-width: none;
}

.contact-secondary {
  padding-top: 47px;
  color: #111111;
  font-size: 13px;
  line-height: 1.55;
}

.contact-secondary h3 {
  margin: 0 0 15px 0;
  color: #111111;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.contact-secondary h3:not(:first-child) {
  margin-top: 34px;
}

.contact-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-link-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 13px 0;
}

.contact-link-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 2px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.contact-secondary a {
  color: #111111;
  text-decoration: none;
}

.contact-secondary a:hover,
.contact-secondary a:focus {
  color: #5aa5d6;
  text-decoration: none;
}

@media (min-width: 761px) and (max-width: 1040px) {
  .contact-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
    gap: 10px;
  }

  .contact-secondary {
    padding-top: 16px;
  }
}

@media (max-width: 760px) {
  .contact-layout {
    display: block;
    max-width: none;
  }

  .contact-secondary {
    padding-top: 32px;
  }

  .contact-secondary h3:not(:first-child) {
    margin-top: 28px;
  }
}


/* Retusche: klickbare Vergleichskacheln und Detailseiten mit Vorher/Nachher-Slider */
body.retouch-gallery-page .retouch-figure-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

body.retouch-gallery-page .retouch-figure-link:focus-visible {
  outline: 1px solid rgba(0, 174, 239, 0.85);
  outline-offset: 4px;
}

body.retouch-gallery-page .retouch-figure-link .figure {
  height: 100%;
}

body.retouch-detail-page .retouch-detail-frame {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  clip-path: inset(0 round 10px);
  -webkit-clip-path: inset(0 round 10px);
  cursor: ew-resize;
  user-select: none;
}

body.retouch-detail-page .retouch-detail-frame .retouch-before {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 118px);
  border-radius: 0;
}

body.retouch-detail-page .retouch-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

body.retouch-detail-page .retouch-after-wrap .retouch-after {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  border-radius: 0;
}

body.retouch-detail-page .retouch-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  pointer-events: none;
}

body.retouch-detail-page .retouch-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
}

@media (min-width: 761px) {
  body.retouch-detail-page #content {
    padding-top: 70px;
    padding-left: clamp(220px, 19vw, 360px);
    padding-right: 70px;
    padding-bottom: 48px;
    max-width: none;
    min-height: 100vh;
  }

  body.retouch-detail-page .photo-detail {
    width: 100%;
    min-height: auto;
    display: block;
  }
}

@media (max-width: 760px) {
  body.retouch-detail-page .retouch-detail-frame {
    width: 100%;
  }

  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    width: 100%;
    max-height: none;
  }
}


/* ---- Neuer Hauptmenüpunkt: Virtuelle Touren ---- */
@media (min-width: 761px) {
  body:not(.home) #nav .nav-main li.nav-service a,
  body.photography-page #nav .nav-main li.nav-service a,
  body.retouch-page #nav .nav-main li.nav-service a,
  body.virtual-tours-page #nav .nav-main li.nav-service a,
  body.profile-page #nav .nav-main li.nav-service a {
    font-size: 16px;
    line-height: 1.25;
  }

  body:not(.home) #nav .nav-main li.nav-utility a,
  body.photography-page #nav .nav-main li.nav-utility a,
  body.retouch-page #nav .nav-main li.nav-utility a,
  body.virtual-tours-page #nav .nav-main li.nav-utility a,
  body.profile-page #nav .nav-main li.nav-utility a {
    font-size: 12px;
    line-height: 1.35;
  }

  body.retouch-page #nav .nav-main li.nav-virtual {
    margin-top: 0;
  }
}

.virtual-page-content .text-block {
  max-width: 680px;
}


/* ---- Profilseite ---- */
.profile-page-content .text-block {
  max-width: 760px;
}

.profile-text .p {
  max-width: 760px;
}

/* Mobile Startseite: kleiner Abstand zwischen Profil und Kontakt */
@media (max-width: 760px) {
  body.home #nav .nav-main li.nav-service + li.nav-mobile-extra {
    margin-top: 24px;
  }
}

@media (max-width: 380px) {
  body.home #nav .nav-main li.nav-service + li.nav-mobile-extra {
    margin-top: 24px;
  }
}

/* ---- Mobiles Burger-Menü für alle Unterseiten ---- */
#nav .nav-toggle-check {
  display: none;
}

#nav .nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  body:not(.home) #nav {
    z-index: 80;
  }



  body:not(.home) #nav .nav-toggle-check {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 62px;
    height: 62px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
  }

  body:not(.home) #nav .nav-toggle-check:focus + .nav-toggle,
  body:not(.home) #nav .nav-toggle-check:focus-visible + .nav-toggle {
    outline: none;
  }

  body:not(.home) #nav .nav-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
  }

  body:not(.home) #nav .nav-toggle span {
    display: block;
    width: 39px;
    height: 3px;
    background: #5aa5d6;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(1),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(2),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(3),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  body:not(.home) #nav .nav-main::before,
  body.photography-page #nav .nav-main::before,
  body.retouch-page #nav .nav-main::before {
    content: none !important;
    display: none !important;
  }

  body:not(.home) #nav .nav-main,
  body.photography-page #nav .nav-main,
  body.retouch-page #nav .nav-main {
    display: none !important;
    position: absolute;
    top: 70px;
    right: 0;
    left: auto;
    min-width: 285px;
    margin: 0 !important;
    padding: 15px 0 18px 0;
    background: rgba(242,242,242,0.97);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
    text-align: right;
  }

  body:not(.home) #nav.is-open .nav-main,
  body.photography-page #nav.is-open .nav-main,
  body.retouch-page #nav.is-open .nav-main,
  body:not(.home) #nav .nav-toggle-check:checked ~ .nav-main,
  body.photography-page #nav .nav-toggle-check:checked ~ .nav-main,
  body.retouch-page #nav .nav-toggle-check:checked ~ .nav-main {
    display: block !important;
  }

  body:not(.home) #nav .nav-main li,
  body.photography-page #nav .nav-main li,
  body.retouch-page #nav .nav-main li,
  body:not(.home) #nav .nav-main li.nav-mobile-extra,
  body.photography-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-page #nav .nav-main .nav-sub {
    display: block !important;
    margin: 0 !important;
  }

  body:not(.home) #nav .nav-main a,
  body.photography-page #nav .nav-main a,
  body.retouch-page #nav .nav-main a,
  body.retouch-page #nav .nav-main .nav-sub a {
    display: block !important;
    min-width: 0;
    height: auto;
    padding: 12px 27px 12px 36px;
    border: 0;
    background: transparent;
    color: #003f73;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: lowercase;
  }

  body:not(.home) #nav .nav-main a:hover,
  body:not(.home) #nav .nav-main a:focus,
  body:not(.home) #nav .nav-main a.is-active,
  body.photography-page #nav .nav-main a:hover,
  body.photography-page #nav .nav-main a:focus,
  body.photography-page #nav .nav-main a.is-active,
  body.retouch-page #nav .nav-main a:hover,
  body.retouch-page #nav .nav-main a:focus,
  body.retouch-page #nav .nav-main a.is-active {
    color: #5aa5d6;
    outline: none;
  }

  body.retouch-page #nav .nav-main .nav-sub a {
    font-size: 20px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.photography-page #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.retouch-page #nav .nav-main li.nav-mobile-extra:first-of-type {
    margin-top: 18px !important;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra a,
  body.photography-page #nav .nav-main li.nav-mobile-extra a,
  body.retouch-page #nav .nav-main li.nav-mobile-extra a {
    font-size: 20px;
  }
}

/* Mobile Unterseiten: Footer ausblenden, da Navigation über Burger-Menü erfolgt */
@media (max-width: 760px) {
  body:not(.home) #footer {
    display: none !important;
  }
}

/* Mobile Detailseiten: Bilder maximal gross / ohne seitlichen Seitenabstand */
@media (max-width: 760px) {
  body.photo-detail-page #content,
  body.retouch-detail-page #content {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    width: 100%;
    max-width: 100%;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    width: 100%;
    max-width: 100%;
  }

  body.photo-detail-page .photo-detail-meta,
  body.retouch-detail-page .photo-detail-meta {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}

/* Mobile Detailseiten: Bildradius entfernen, Kachelradien auf Übersichtsseiten bleiben erhalten */
@media (max-width: 760px) {
  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before,
  body.retouch-detail-page .retouch-after-wrap .retouch-after {
    border-radius: 0 !important;
  }
}

/* Mobile Detailseiten: Bildnavigation rechts positionieren; Caption/Client bleiben links */
@media (max-width: 760px) {
  body.photo-detail-page .photo-detail-nav {
    justify-content: flex-end;
    text-align: right;
  }
}

/* Fix: Retusche-Compare-Kacheln im Tablet/Desktop-Zwischenbereich behalten ihre Höhe */
@media (min-width: 761px) and (max-width: 1040px) {
  body.retouch-gallery-page .figure.compare-tile {
    aspect-ratio: 1 / 1;
  }
}

/* Desktop: aktive Retusche-Unterseite sichtbar halten (architektur/werbung) */
@media (min-width: 761px) {
  body.retouch-page #nav .nav-main li.nav-sub > a.is-active {
    color: #5aa5d6 !important;
  }
}

/* Vorläufig ausgeblendet: virtuelle Touren */
#nav .nav-virtual,
#footer a[href$="virtuelle_touren.html"] {
  display: none !important;
}

/* iPhone/Smartphone Querformat: Unterseiten wie mobile Ansicht behandeln.
   Safari iPhone XR meldet im Querformat ca. 896px Breite und fiel daher bisher in den Desktop-Breakpoint. Die Höhenbedingung wurde entfernt, da Safari im Querformat je nach Toolbar-Höhe anders meldet. */
@media (max-width: 950px) and (orientation: landscape) {
  body:not(.home) #nav {
    position: fixed;
    top: 28px;
    left: 38px;
    right: 38px;
    width: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    pointer-events: none;
    z-index: 80;
  }

  body:not(.home) #nav .brand {
    width: 76px;
    height: 76px;
    margin: 0;
  }

  body:not(.home) #nav .nav-toggle-check {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 62px;
    height: 62px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
  }

  body:not(.home) #nav .nav-toggle-check:focus + .nav-toggle,
  body:not(.home) #nav .nav-toggle-check:focus-visible + .nav-toggle {
    outline: none;
  }

  body:not(.home) #nav .nav-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
  }

  body:not(.home) #nav .nav-toggle span {
    display: block;
    width: 39px;
    height: 3px;
    background: #5aa5d6;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(1),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(2),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(3),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  body:not(.home) #nav .nav-main,
  body.photography-page #nav .nav-main,
  body.retouch-page #nav .nav-main {
    display: none !important;
    position: absolute;
    top: 70px;
    right: 0;
    left: auto;
    min-width: 285px;
    width: auto;
    margin: 0 !important;
    padding: 15px 0 18px 0;
    background: rgba(242,242,242,0.97);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
    text-align: right;
  }

  body:not(.home) #nav.is-open .nav-main,
  body.photography-page #nav.is-open .nav-main,
  body.retouch-page #nav.is-open .nav-main,
  body:not(.home) #nav .nav-toggle-check:checked ~ .nav-main,
  body.photography-page #nav .nav-toggle-check:checked ~ .nav-main,
  body.retouch-page #nav .nav-toggle-check:checked ~ .nav-main {
    display: block !important;
  }

  body:not(.home) #nav .nav-main li,
  body.photography-page #nav .nav-main li,
  body.retouch-page #nav .nav-main li,
  body:not(.home) #nav .nav-main li.nav-mobile-extra,
  body.photography-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-page #nav .nav-main .nav-sub {
    display: block !important;
    margin: 0 !important;
  }

  body:not(.home) #nav .nav-main a,
  body.photography-page #nav .nav-main a,
  body.retouch-page #nav .nav-main a,
  body.retouch-page #nav .nav-main .nav-sub a {
    display: block !important;
    min-width: 0;
    height: auto;
    padding: 12px 27px 12px 36px;
    border: 0;
    background: transparent;
    color: #003f73;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: lowercase;
  }

  body:not(.home) #nav .nav-main a:hover,
  body:not(.home) #nav .nav-main a:focus,
  body:not(.home) #nav .nav-main a.is-active,
  body.photography-page #nav .nav-main a:hover,
  body.photography-page #nav .nav-main a:focus,
  body.photography-page #nav .nav-main a.is-active,
  body.retouch-page #nav .nav-main a:hover,
  body.retouch-page #nav .nav-main a:focus,
  body.retouch-page #nav .nav-main a.is-active,
  body.retouch-page #nav .nav-main li.nav-sub > a.is-active {
    color: #5aa5d6 !important;
    outline: none;
  }

  body.retouch-page #nav .nav-main .nav-sub a {
    font-size: 20px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.photography-page #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.retouch-page #nav .nav-main li.nav-mobile-extra:first-of-type {
    margin-top: 18px !important;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra a,
  body.photography-page #nav .nav-main li.nav-mobile-extra a,
  body.retouch-page #nav .nav-main li.nav-mobile-extra a {
    font-size: 20px;
  }

  body:not(.home) #footer {
    display: none !important;
  }

  body.photo-detail-page #nav .photo-side-meta,
  body.retouch-detail-page #nav .photo-side-meta {
    display: none !important;
  }

  body.photo-detail-page #content,
  body.retouch-detail-page #content {
    padding: 132px 0 48px 0;
    max-width: none;
    min-height: auto;
  }

  body.photo-detail-page .photo-detail,
  body.retouch-detail-page .photo-detail {
    width: 100%;
    min-height: auto;
    display: block;
  }

  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    width: 100%;
    max-width: 100%;
    max-height: none;
    border-radius: 0 !important;
  }

  body.retouch-detail-page .retouch-after-wrap .retouch-after {
    border-radius: 0 !important;
  }

  body.photo-detail-page .photo-detail-meta,
  body.retouch-detail-page .photo-detail-meta {
    display: block;
    padding: 12px 20px 0 20px;
    box-sizing: border-box;
    font-size: 15px;
  }

  body.photo-detail-page .photo-detail-meta h1,
  body.retouch-detail-page .photo-detail-meta h1 {
    font-size: 16px;
  }

  body.photo-detail-page .photo-detail-nav,
  body.retouch-detail-page .photo-detail-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 18px;
    font-size: 15px;
    text-align: right;
  }
}

/* Smartphone/Touch-Querformat: eigene mobile Layout-Regeln für echte Touch-Geräte.
   Ziel: iPhone/Smartphone im Querformat nicht als Desktop behandeln. */
@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav {
    position: fixed !important;
    top: 28px !important;
    left: 38px !important;
    right: 38px !important;
    width: auto !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0 !important;
    pointer-events: none !important;
    z-index: 80 !important;
  }

  body:not(.home) #nav .brand {
    width: 76px !important;
    height: 76px !important;
    margin: 0 !important;
  }

  body:not(.home) #nav .nav-toggle-check {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    pointer-events: auto !important;
  }

  body:not(.home) #nav .nav-toggle-check:focus + .nav-toggle,
  body:not(.home) #nav .nav-toggle-check:focus-visible + .nav-toggle {
    outline: none !important;
  }

  body:not(.home) #nav .nav-toggle {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 62px !important;
    height: 62px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 8px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  body:not(.home) #nav .nav-toggle span {
    display: block !important;
    width: 39px !important;
    height: 3px !important;
    background: #5aa5d6 !important;
    transform-origin: center !important;
    transition: transform 160ms ease, opacity 160ms ease !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(1),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(11px) rotate(45deg) !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(2),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(2) {
    opacity: 0 !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(3),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg) !important;
  }

  body:not(.home) #nav .nav-main,
  body.photography-page #nav .nav-main,
  body.retouch-page #nav .nav-main {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    right: 76px !important;
    left: auto !important;
    min-width: 285px !important;
    width: auto !important;
    max-height: calc(100vh - 56px) !important;
    margin: 0 !important;
    padding: 15px 0 18px 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: rgba(242,242,242,0.97) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12) !important;
    text-align: right !important;
  }

  body:not(.home) #nav.is-open .nav-main,
  body.photography-page #nav.is-open .nav-main,
  body.retouch-page #nav.is-open .nav-main,
  body:not(.home) #nav .nav-toggle-check:checked ~ .nav-main,
  body.photography-page #nav .nav-toggle-check:checked ~ .nav-main,
  body.retouch-page #nav .nav-toggle-check:checked ~ .nav-main {
    display: block !important;
  }

  body:not(.home) #nav .nav-main li,
  body.photography-page #nav .nav-main li,
  body.retouch-page #nav .nav-main li,
  body:not(.home) #nav .nav-main li.nav-mobile-extra,
  body.photography-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-page #nav .nav-main .nav-sub {
    display: block !important;
    margin: 0 !important;
  }

  body:not(.home) #nav .nav-main a,
  body.photography-page #nav .nav-main a,
  body.retouch-page #nav .nav-main a,
  body.retouch-page #nav .nav-main .nav-sub a {
    display: block !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 12px 27px 12px 36px !important;
    border: 0 !important;
    background: transparent !important;
    color: #003f73 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: lowercase !important;
  }

  body:not(.home) #nav .nav-main a:hover,
  body:not(.home) #nav .nav-main a:focus,
  body:not(.home) #nav .nav-main a.is-active,
  body.photography-page #nav .nav-main a:hover,
  body.photography-page #nav .nav-main a:focus,
  body.photography-page #nav .nav-main a.is-active,
  body.retouch-page #nav .nav-main a:hover,
  body.retouch-page #nav .nav-main a:focus,
  body.retouch-page #nav .nav-main a.is-active,
  body.retouch-page #nav .nav-main li.nav-sub > a.is-active {
    color: #5aa5d6 !important;
    outline: none !important;
  }

  body.retouch-page #nav .nav-main .nav-sub a {
    font-size: 20px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.photography-page #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.retouch-page #nav .nav-main li.nav-mobile-extra:first-of-type {
    margin-top: 18px !important;
  }

  body:not(.home) #nav .nav-main li.nav-mobile-extra a,
  body.photography-page #nav .nav-main li.nav-mobile-extra a,
  body.retouch-page #nav .nav-main li.nav-mobile-extra a {
    font-size: 20px !important;
  }

  body:not(.home) #footer {
    display: none !important;
  }

  body.photo-detail-page #nav .photo-side-meta,
  body.retouch-detail-page #nav .photo-side-meta {
    display: none !important;
  }

  body.photo-detail-page #content,
  body.retouch-detail-page #content {
    padding: 132px 0 48px 0 !important;
    max-width: none !important;
    min-height: auto !important;
  }

  body.photo-detail-page .photo-detail,
  body.retouch-detail-page .photo-detail {
    width: 100% !important;
    min-height: auto !important;
    display: block !important;
  }

  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
  }

  body.retouch-detail-page .retouch-after-wrap .retouch-after {
    border-radius: 0 !important;
  }

  body.photo-detail-page .photo-detail-meta,
  body.retouch-detail-page .photo-detail-meta {
    display: block !important;
    padding: 12px 20px 0 20px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
  }

  body.photo-detail-page .photo-detail-meta h1,
  body.retouch-detail-page .photo-detail-meta h1 {
    font-size: 16px !important;
  }

  body.photo-detail-page .photo-detail-nav,
  body.retouch-detail-page .photo-detail-nav {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    text-align: right !important;
  }
}

/* Virtuelle Touren vorläufig komplett aus Navigation und Footer ausgeblendet */
#nav .nav-virtual,
#nav a[href$="virtuelle_touren.html"],
#footer a[href$="virtuelle_touren.html"] {
  display: none !important;
}

/* Mobile Unterseiten: Logo und Burger dauerhaft fixieren, nicht mitscrollen */
@media (max-width: 760px) {
  body:not(.home) #nav {
    position: fixed !important;
    top: 28px !important;
    left: 28px !important;
    right: 28px !important;
    width: auto !important;
  }
}

/* Touch-Querformat: Logo und Burger ebenfalls dauerhaft fixieren */
@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav {
    position: fixed !important;
  }
}

/* ---- Mobile Burger-Grafik zurück auf ursprüngliche Größe 44x44px ---- */
@media (max-width: 760px) {
  body:not(.home) #nav .nav-toggle-check {
    width: 44px !important;
    height: 44px !important;
  }

  body:not(.home) #nav .nav-toggle {
    width: 44px !important;
    height: 44px !important;
    gap: 6px !important;
  }

  body:not(.home) #nav .nav-toggle span {
    width: 28px !important;
    height: 2px !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(1),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(3),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }
}

@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav .nav-toggle-check {
    width: 44px !important;
    height: 44px !important;
  }

  body:not(.home) #nav .nav-toggle {
    width: 44px !important;
    height: 44px !important;
    gap: 6px !important;
  }

  body:not(.home) #nav .nav-toggle span {
    width: 28px !important;
    height: 2px !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(1),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span:nth-child(3),
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  body:not(.home) #nav .nav-main,
  body.photography-page #nav .nav-main,
  body.retouch-page #nav .nav-main {
    right: 58px !important;
  }
}

/* Mobile Burger-Grafik: heller Schatten in Hintergrundfarbe für bessere Sichtbarkeit */
@media (max-width: 760px) {
  body:not(.home) #nav .nav-toggle span {
    filter: drop-shadow(0 0 4px rgba(242, 242, 242, 0.85))
            drop-shadow(0 0 9px rgba(242, 242, 242, 0.65))
            drop-shadow(0 0 16px rgba(242, 242, 242, 0.45)) !important;
  }
}

@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav .nav-toggle span {
    filter: drop-shadow(0 0 4px rgba(242, 242, 242, 0.85))
            drop-shadow(0 0 9px rgba(242, 242, 242, 0.65))
            drop-shadow(0 0 16px rgba(242, 242, 242, 0.45)) !important;
  }
}

/* Mobile Galerie-Seiten: Logo und Burger wirklich fixieren (Fotografie/Retusche überschreiben) */
@media (max-width: 760px) {
  body.photography-page #nav,
  body.retouch-page #nav,
  body:not(.home) #nav {
    position: fixed !important;
    top: 28px !important;
    left: 28px !important;
    right: 28px !important;
    width: auto !important;
    z-index: 100 !important;
  }
}

/* Touch-Querformat ebenfalls fixiert halten */
@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body.photography-page #nav,
  body.retouch-page #nav,
  body:not(.home) #nav {
    position: fixed !important;
    top: 28px !important;
    left: 38px !important;
    right: 38px !important;
    width: auto !important;
    z-index: 100 !important;
  }
}

/* Mobile Burger-Grafik: Farbe auf nicht-aktive Linkfarbe setzen */
@media (max-width: 760px) {
  body:not(.home) #nav .nav-toggle span {
    background: #003f73 !important;
  }
}

@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav .nav-toggle span {
    background: #003f73 !important;
  }
}

/* Mobile Burger/X: geöffneter Zustand in Aktivfarbe, Schatten größer und kräftiger */
@media (max-width: 760px) {
  body:not(.home) #nav .nav-toggle span {
    filter: drop-shadow(0 0 8px rgba(242, 242, 242, 1))
            drop-shadow(0 0 18px rgba(242, 242, 242, 0.98))
            drop-shadow(0 0 32px rgba(242, 242, 242, 0.92)) !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span,
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span {
    background: #5aa5d6 !important;
  }
}

@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav .nav-toggle span {
    filter: drop-shadow(0 0 8px rgba(242, 242, 242, 1))
            drop-shadow(0 0 18px rgba(242, 242, 242, 0.98))
            drop-shadow(0 0 32px rgba(242, 242, 242, 0.92)) !important;
  }

  body:not(.home) #nav.is-open .nav-toggle span,
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span {
    background: #5aa5d6 !important;
  }
}


/* Mobile Burger/X: gemeinsamer weicher Hintergrundsschatten für das komplette Icon statt Einzelschatten pro Linie */
@media (max-width: 760px) {
  body:not(.home) #nav .nav-toggle {
    position: absolute;
    overflow: visible;
    isolation: isolate;
  }

  body:not(.home) #nav .nav-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.5);
    box-shadow: 0 0 16px rgba(242, 242, 242, 1),
                0 0 34px rgba(242, 242, 242, 0.92),
                0 0 62px rgba(242, 242, 242, 0.82);
    filter: blur(25px);
    pointer-events: none;
    z-index: 0;
  }

  body:not(.home) #nav .nav-toggle span {
    position: relative;
    z-index: 1;
    filter: none !important;
  }
}

@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav .nav-toggle {
    position: absolute;
    overflow: visible;
    isolation: isolate;
  }

  body:not(.home) #nav .nav-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.5);
    box-shadow: 0 0 16px rgba(242, 242, 242, 1),
                0 0 34px rgba(242, 242, 242, 0.92),
                0 0 62px rgba(242, 242, 242, 0.82);
    filter: blur(25px);
    pointer-events: none;
    z-index: 0;
  }

  body:not(.home) #nav .nav-toggle span {
    position: relative;
    z-index: 1;
    filter: none !important;
  }
}


/* Mobile Burger/X: zusätzlich kleine Einzelschatten je Balken über dem gemeinsamen Gesamtschatten */
@media (max-width: 760px) {
  body:not(.home) #nav .nav-toggle span {
    filter: drop-shadow(0 0 1px rgba(242, 242, 242, 1))
            drop-shadow(0 0 2px rgba(242, 242, 242, 0.95)) !important;
  }
}

@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav .nav-toggle span {
    filter: drop-shadow(0 0 1px rgba(242, 242, 242, 1))
            drop-shadow(0 0 2px rgba(242, 242, 242, 0.95)) !important;
  }
}

/* Mobile Burger/X: Einzelschatten nur im geschlossenen Burger-Zustand, nicht beim geöffneten X */
@media (max-width: 760px) {
  body:not(.home) #nav.is-open .nav-toggle span,
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span {
    filter: none !important;
  }
}

@media (max-width: 950px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  body:not(.home) #nav.is-open .nav-toggle span,
  body:not(.home) #nav .nav-toggle-check:checked + .nav-toggle span {
    filter: none !important;
  }
}

/* Galerie-Zwischenbereich >760px: weniger Leerraum zwischen Navigation und Content, größere einspaltige Bilder */
@media (min-width: 761px) and (max-width: 1040px) {
  body.photography-page #content,
  body.retouch-gallery-page #content {
    padding-left: 250px !important;
    padding-right: 42px !important;
    padding-top: 72px !important;
  }

  body.photography-page .gallery,
  body.retouch-gallery-page .gallery {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* Detailseiten-Zwischenbereich 761–1040px: Desktop-Seitennavigation behalten, Detailinhalt wie mobile Darstellung */
@media (min-width: 761px) and (max-width: 1040px) {
  body.photo-detail-page #nav,
  body.retouch-detail-page #nav {
    left: 58px !important;
    top: 72px !important;
  }

  body.photo-detail-page #nav .brand,
  body.retouch-detail-page #nav .brand {
    width: 96px !important;
    height: 96px !important;
  }

  body.photo-detail-page #nav .photo-side-meta,
  body.retouch-detail-page #nav .photo-side-meta {
    display: none !important;
  }

  body.photo-detail-page #content,
  body.retouch-detail-page #content {
    padding-left: 250px !important;
    padding-right: 42px !important;
    padding-top: 72px !important;
    padding-bottom: 48px !important;
    max-width: none !important;
    min-height: auto !important;
  }

  body.photo-detail-page .photo-detail,
  body.retouch-detail-page .photo-detail {
    width: 100% !important;
    min-height: auto !important;
    display: block !important;
    justify-content: flex-start !important;
  }

  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: top center !important;
  }

  body.retouch-detail-page .retouch-after-wrap .retouch-after {
    border-radius: 0 !important;
  }

  body.photo-detail-page .photo-detail-meta,
  body.retouch-detail-page .photo-detail-meta {
    display: block !important;
    padding: 12px 0 0 0 !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body.photo-detail-page .photo-detail-meta h1,
  body.retouch-detail-page .photo-detail-meta h1 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 0 3px 0 !important;
  }

  body.photo-detail-page .photo-detail-nav,
  body.retouch-detail-page .photo-detail-nav {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* Zwischenbereich 761–1040px: Detailseiten wie mobile Version darstellen */
@media (min-width: 761px) and (max-width: 1040px) {
  body.photo-detail-page #nav,
  body.retouch-detail-page #nav {
    position: fixed !important;
    top: 28px !important;
    left: 28px !important;
    right: 28px !important;
    width: auto !important;
    height: 96px !important;
    z-index: 100 !important;
    pointer-events: none !important;
  }

  body.photo-detail-page #nav .brand,
  body.retouch-detail-page #nav .brand {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 96px !important;
    height: 96px !important;
    pointer-events: auto !important;
  }

  body.photo-detail-page #nav .photo-side-meta,
  body.retouch-detail-page #nav .photo-side-meta {
    display: none !important;
  }

  body.photo-detail-page #nav .nav-toggle-check,
  body.retouch-detail-page #nav .nav-toggle-check {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    pointer-events: auto !important;
  }

  body.photo-detail-page #nav .nav-toggle,
  body.retouch-detail-page #nav .nav-toggle {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 6px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    overflow: visible !important;
    isolation: isolate !important;
  }

  body.photo-detail-page #nav .nav-toggle::before,
  body.retouch-detail-page #nav .nav-toggle::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 38px !important;
    height: 38px !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 999px !important;
    background: rgba(242, 242, 242, 0.5) !important;
    box-shadow: 0 0 16px rgba(242, 242, 242, 1),
                0 0 34px rgba(242, 242, 242, 0.92),
                0 0 62px rgba(242, 242, 242, 0.82) !important;
    filter: blur(25px) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  body.photo-detail-page #nav .nav-toggle span,
  body.retouch-detail-page #nav .nav-toggle span {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    width: 28px !important;
    height: 2px !important;
    background: #003f73 !important;
    transform-origin: center !important;
    transition: transform 160ms ease, opacity 160ms ease !important;
    filter: drop-shadow(0 0 1px rgba(242, 242, 242, 1))
            drop-shadow(0 0 2px rgba(242, 242, 242, 0.95)) !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span,
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span,
  body.retouch-detail-page #nav.is-open .nav-toggle span,
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span {
    background: #5aa5d6 !important;
    filter: none !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span:nth-child(1),
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1),
  body.retouch-detail-page #nav.is-open .nav-toggle span:nth-child(1),
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span:nth-child(2),
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(2),
  body.retouch-detail-page #nav.is-open .nav-toggle span:nth-child(2),
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(2) {
    opacity: 0 !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span:nth-child(3),
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3),
  body.retouch-detail-page #nav.is-open .nav-toggle span:nth-child(3),
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  body.photo-detail-page #nav .nav-main,
  body.retouch-detail-page #nav .nav-main {
    display: none !important;
    position: absolute !important;
    top: 70px !important;
    right: 0 !important;
    left: auto !important;
    min-width: 285px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 15px 0 18px 0 !important;
    background: rgba(242,242,242,0.97) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12) !important;
    text-align: right !important;
    pointer-events: auto !important;
  }

  body.photo-detail-page #nav.is-open .nav-main,
  body.photo-detail-page #nav .nav-toggle-check:checked ~ .nav-main,
  body.retouch-detail-page #nav.is-open .nav-main,
  body.retouch-detail-page #nav .nav-toggle-check:checked ~ .nav-main {
    display: block !important;
  }

  body.photo-detail-page #nav .nav-main li,
  body.photo-detail-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-detail-page #nav .nav-main li,
  body.retouch-detail-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-detail-page #nav .nav-main .nav-sub {
    display: block !important;
    margin: 0 !important;
  }

  body.photo-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main .nav-sub a {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.photo-detail-page #content,
  body.retouch-detail-page #content {
    padding: 132px 0 48px 0 !important;
    max-width: none !important;
    min-height: auto !important;
  }

  body.photo-detail-page .photo-detail,
  body.retouch-detail-page .photo-detail {
    width: 100% !important;
    min-height: auto !important;
    display: block !important;
  }

  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: top center !important;
  }

  body.retouch-detail-page .retouch-after-wrap .retouch-after {
    border-radius: 0 !important;
  }

  body.photo-detail-page .photo-detail-meta,
  body.retouch-detail-page .photo-detail-meta {
    display: block !important;
    padding: 12px 20px 0 20px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body.photo-detail-page .photo-detail-meta h1,
  body.retouch-detail-page .photo-detail-meta h1 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 0 3px 0 !important;
  }

  body.photo-detail-page .photo-detail-nav,
  body.retouch-detail-page .photo-detail-nav {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* Zwischenbereich 761–1040px: nur Burger-Menüblock der Detailseiten korrigieren; Bild-/Detail-Layout unverändert lassen */
@media (min-width: 761px) and (max-width: 1040px) {
  body.photo-detail-page #nav .nav-main,
  body.retouch-detail-page #nav .nav-main {
    top: 70px !important;
    right: 0 !important;
    left: auto !important;
    min-width: 285px !important;
    width: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 15px 0 18px 0 !important;
    background: rgba(242, 242, 242, 0.97) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12) !important;
    text-align: right !important;
  }

  body.photo-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main .nav-sub a {
    display: block !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 27px 12px 36px !important;
    border: 0 !important;
    background: transparent !important;
    color: #003f73 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: lowercase !important;
  }

  body.photo-detail-page #nav .nav-main a:hover,
  body.photo-detail-page #nav .nav-main a:focus,
  body.photo-detail-page #nav .nav-main a.is-active,
  body.retouch-detail-page #nav .nav-main a:hover,
  body.retouch-detail-page #nav .nav-main a:focus,
  body.retouch-detail-page #nav .nav-main a.is-active,
  body.retouch-detail-page #nav .nav-main li.nav-sub > a.is-active {
    color: #5aa5d6 !important;
    outline: none !important;
  }

  body.retouch-detail-page #nav .nav-main .nav-sub a {
    font-size: 20px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  body.photo-detail-page #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.retouch-detail-page #nav .nav-main li.nav-mobile-extra:first-of-type {
    margin-top: 18px !important;
  }

  body.photo-detail-page #nav .nav-main li.nav-mobile-extra a,
  body.retouch-detail-page #nav .nav-main li.nav-mobile-extra a {
    font-size: 20px !important;
  }
}


/* Zweispaltiger Galerie-Bereich: Detailseiten ebenfalls wie mobile Version darstellen */
/* Zweispaltiger Bereich 1041–1240px: Detailseiten wie mobile Version darstellen */
@media (min-width: 1041px) and (max-width: 1240px) {
  body.photo-detail-page #nav,
  body.retouch-detail-page #nav {
    position: fixed !important;
    top: 28px !important;
    left: 28px !important;
    right: 28px !important;
    width: auto !important;
    height: 96px !important;
    z-index: 100 !important;
    pointer-events: none !important;
  }

  body.photo-detail-page #nav .brand,
  body.retouch-detail-page #nav .brand {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 96px !important;
    height: 96px !important;
    pointer-events: auto !important;
  }

  body.photo-detail-page #nav .photo-side-meta,
  body.retouch-detail-page #nav .photo-side-meta {
    display: none !important;
  }

  body.photo-detail-page #nav .nav-toggle-check,
  body.retouch-detail-page #nav .nav-toggle-check {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    pointer-events: auto !important;
  }

  body.photo-detail-page #nav .nav-toggle,
  body.retouch-detail-page #nav .nav-toggle {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 6px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    overflow: visible !important;
    isolation: isolate !important;
  }

  body.photo-detail-page #nav .nav-toggle::before,
  body.retouch-detail-page #nav .nav-toggle::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 38px !important;
    height: 38px !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 999px !important;
    background: rgba(242, 242, 242, 0.5) !important;
    box-shadow: 0 0 16px rgba(242, 242, 242, 1),
                0 0 34px rgba(242, 242, 242, 0.92),
                0 0 62px rgba(242, 242, 242, 0.82) !important;
    filter: blur(25px) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  body.photo-detail-page #nav .nav-toggle span,
  body.retouch-detail-page #nav .nav-toggle span {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    width: 28px !important;
    height: 2px !important;
    background: #003f73 !important;
    transform-origin: center !important;
    transition: transform 160ms ease, opacity 160ms ease !important;
    filter: drop-shadow(0 0 1px rgba(242, 242, 242, 1))
            drop-shadow(0 0 2px rgba(242, 242, 242, 0.95)) !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span,
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span,
  body.retouch-detail-page #nav.is-open .nav-toggle span,
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span {
    background: #5aa5d6 !important;
    filter: none !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span:nth-child(1),
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1),
  body.retouch-detail-page #nav.is-open .nav-toggle span:nth-child(1),
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span:nth-child(2),
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(2),
  body.retouch-detail-page #nav.is-open .nav-toggle span:nth-child(2),
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(2) {
    opacity: 0 !important;
  }

  body.photo-detail-page #nav.is-open .nav-toggle span:nth-child(3),
  body.photo-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3),
  body.retouch-detail-page #nav.is-open .nav-toggle span:nth-child(3),
  body.retouch-detail-page #nav .nav-toggle-check:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  body.photo-detail-page #nav .nav-main,
  body.retouch-detail-page #nav .nav-main {
    display: none !important;
    position: absolute !important;
    top: 70px !important;
    right: 0 !important;
    left: auto !important;
    min-width: 285px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 15px 0 18px 0 !important;
    background: rgba(242,242,242,0.97) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12) !important;
    text-align: right !important;
    pointer-events: auto !important;
  }

  body.photo-detail-page #nav.is-open .nav-main,
  body.photo-detail-page #nav .nav-toggle-check:checked ~ .nav-main,
  body.retouch-detail-page #nav.is-open .nav-main,
  body.retouch-detail-page #nav .nav-toggle-check:checked ~ .nav-main {
    display: block !important;
  }

  body.photo-detail-page #nav .nav-main li,
  body.photo-detail-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-detail-page #nav .nav-main li,
  body.retouch-detail-page #nav .nav-main li.nav-mobile-extra,
  body.retouch-detail-page #nav .nav-main .nav-sub {
    display: block !important;
    margin: 0 !important;
  }

  body.photo-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main .nav-sub a {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.photo-detail-page #content,
  body.retouch-detail-page #content {
    padding: 132px 0 48px 0 !important;
    max-width: none !important;
    min-height: auto !important;
  }

  body.photo-detail-page .photo-detail,
  body.retouch-detail-page .photo-detail {
    width: 100% !important;
    min-height: auto !important;
    display: block !important;
  }

  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: top center !important;
  }

  body.retouch-detail-page .retouch-after-wrap .retouch-after {
    border-radius: 0 !important;
  }

  body.photo-detail-page .photo-detail-meta,
  body.retouch-detail-page .photo-detail-meta {
    display: block !important;
    padding: 12px 20px 0 20px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body.photo-detail-page .photo-detail-meta h1,
  body.retouch-detail-page .photo-detail-meta h1 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 0 3px 0 !important;
  }

  body.photo-detail-page .photo-detail-nav,
  body.retouch-detail-page .photo-detail-nav {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}


/* Zweispaltiger Bereich 1041–1240px: nur Burger-Menüblock der Detailseiten korrigieren; Bild-/Detail-Layout unverändert lassen */
@media (min-width: 1041px) and (max-width: 1240px) {
  body.photo-detail-page #nav .nav-main,
  body.retouch-detail-page #nav .nav-main {
    top: 70px !important;
    right: 0 !important;
    left: auto !important;
    min-width: 285px !important;
    width: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 15px 0 18px 0 !important;
    background: rgba(242, 242, 242, 0.97) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12) !important;
    text-align: right !important;
  }

  body.photo-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main a,
  body.retouch-detail-page #nav .nav-main .nav-sub a {
    display: block !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 27px 12px 36px !important;
    border: 0 !important;
    background: transparent !important;
    color: #003f73 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: lowercase !important;
  }

  body.photo-detail-page #nav .nav-main a:hover,
  body.photo-detail-page #nav .nav-main a:focus,
  body.photo-detail-page #nav .nav-main a.is-active,
  body.retouch-detail-page #nav .nav-main a:hover,
  body.retouch-detail-page #nav .nav-main a:focus,
  body.retouch-detail-page #nav .nav-main a.is-active,
  body.retouch-detail-page #nav .nav-main li.nav-sub > a.is-active {
    color: #5aa5d6 !important;
    outline: none !important;
  }

  body.retouch-detail-page #nav .nav-main .nav-sub a {
    font-size: 20px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  body.photo-detail-page #nav .nav-main li.nav-mobile-extra:first-of-type,
  body.retouch-detail-page #nav .nav-main li.nav-mobile-extra:first-of-type {
    margin-top: 18px !important;
  }

  body.photo-detail-page #nav .nav-main li.nav-mobile-extra a,
  body.retouch-detail-page #nav .nav-main li.nav-mobile-extra a {
    font-size: 20px !important;
  }
}

/* Startseite ab Desktop-Breakpoint: Text der drei Hauptbuttons oben rechts auf 150% */
@media (min-width: 761px) {
  body.home #nav .nav-main li.nav-service a {
    font-size: clamp(15px, 1.125vw, 21px) !important;
  }
}


/* iPad / breiter Tablet-Hochformatbereich: Übersichten bereits ab 980px zweispaltig darstellen */
@media (min-width: 980px) and (max-width: 1040px) {
  body.photography-page #content,
  body.retouch-gallery-page #content {
    padding-left: 250px !important;
    padding-right: 42px !important;
  }

  body.photography-page .gallery,
  body.retouch-gallery-page .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 800px !important;
    width: 100% !important;
  }

  body.retouch-gallery-page .figure.compare-tile {
    aspect-ratio: 1 / 1 !important;
  }
}

/* iPad/Tablet-Übersichten: Kacheln in zweispaltigen Bereichen wieder quadratisch halten */
@media (min-width: 980px) and (max-width: 1240px) {
  body.photography-page:not(.photo-detail-page) .figure,
  body.retouch-gallery-page:not(.retouch-detail-page) .figure,
  body.retouch-gallery-page:not(.retouch-detail-page) .figure.compare-tile {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
  }

  body.photography-page:not(.photo-detail-page) .figure img,
  body.retouch-gallery-page:not(.retouch-detail-page) .figure img,
  body.retouch-gallery-page:not(.retouch-detail-page) .figure.compare-tile .compare-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
  }
}

/* iPad/Tablet-Detailseiten: wirklich dasselbe Layout wie mobil nutzen, auch wenn das Body-Element Galerie-Klassen trägt */
@media (min-width: 761px) and (max-width: 1240px) {
  body.photo-detail-page #content,
  body.retouch-detail-page #content,
  body.photography-page.photo-detail-page #content,
  body.retouch-gallery-page.retouch-detail-page #content {
    padding: 132px 0 48px 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: auto !important;
  }

  body.photo-detail-page .photo-detail,
  body.retouch-detail-page .photo-detail {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    display: block !important;
  }

  body.photo-detail-page .photo-detail-frame,
  body.retouch-detail-page .retouch-detail-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  body.photo-detail-page .photo-detail-frame img,
  body.retouch-detail-page .retouch-detail-frame .retouch-before {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: top center !important;
  }

  body.retouch-detail-page .retouch-after-wrap .retouch-after {
    border-radius: 0 !important;
  }

  body.photo-detail-page .photo-detail-meta,
  body.retouch-detail-page .photo-detail-meta {
    display: block !important;
    padding: 12px 20px 0 20px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body.photo-detail-page .photo-detail-meta h1,
  body.retouch-detail-page .photo-detail-meta h1 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 0 3px 0 !important;
  }

  body.photo-detail-page .photo-detail-nav,
  body.retouch-detail-page .photo-detail-nav {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* Startseite: dezenter Schatten für Navigationsbuttons auf hellen Bildbereichen */
body.home #nav .nav-main a {
  text-shadow: 0 2px 12px rgba(0,0,0,0.32), 0 1px 2px rgba(0,0,0,0.28);
  box-shadow: 0 2px 12px rgba(0,0,0,0.16);
}

body.home #nav .nav-main a:hover,
body.home #nav .nav-main a:focus {
  box-shadow: 0 3px 16px rgba(0,0,0,0.20);
}


/* Startseite: Buttons ohne Standard-Hintergrund, Textschatten verstärkt */
body.home #nav .nav-main a {
  background: transparent !important;
  text-shadow: 0 3px 18px rgba(0,0,0,0.48),
               0 2px 6px rgba(0,0,0,0.40),
               0 1px 2px rgba(0,0,0,0.36) !important;
}

body.home #nav .nav-main a:hover,
body.home #nav .nav-main a:focus {
  background: rgba(255,255,255,0.13) !important;
}
