/* Dezente Weltennavigation – angelehnt an „Zurück zur Startseite“ */
.vm-world-heading {
  width: min(calc(100% - 32px), 1050px);
  margin: 26px auto 28px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 38px;
  align-items: center;
  column-gap: 12px;
}
.vm-world-heading h1 {
  margin: 0;
  text-align: center;
  color: #51483e;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400;
  letter-spacing: .055em;
  line-height: 1.12;
}
.vm-world-arrow, .vm-world-arrow-spacer {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.vm-world-arrow {
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #786453;
  text-decoration: none;
  opacity: .8;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
.vm-world-arrow svg { width: 19px; height: 19px; }
.vm-world-arrow:hover, .vm-world-arrow:focus-visible {
  color: #51483e;
  opacity: 1;
  transform: translateX(-3px);
}
.vm-world-arrow--right:hover, .vm-world-arrow--right:focus-visible { transform: translateX(3px); }
.vm-world-arrow:focus-visible { outline: 2px solid #786453; outline-offset: 2px; }
@media (max-width:600px) {
  .vm-world-heading { width: calc(100% - 20px); grid-template-columns: 30px minmax(0,1fr) 30px; column-gap: 4px; margin: 18px auto 22px; }
  .vm-world-heading h1 { font-size: clamp(20px, 5.4vw, 30px); letter-spacing: .02em; }
  .vm-world-arrow, .vm-world-arrow-spacer { width: 30px; height: 34px; }
  .vm-world-arrow svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion:reduce) { .vm-world-arrow { transition: none; } }

/* Schlichte Pfeil-Links mit Weltennamen */
.vm-world-heading { grid-template-columns: minmax(150px,1fr) minmax(0,2fr) minmax(150px,1fr); }
.vm-world-arrow, .vm-world-arrow-spacer { width: auto; min-width: 0; height: auto; }
.vm-world-arrow { display: inline-flex; gap: 9px; align-items: center; font-family: 'Lato',sans-serif; font-size: 12px; letter-spacing: .075em; font-weight: 400; white-space: nowrap; }
.vm-world-arrow--left { justify-self: start; }
.vm-world-arrow--right { justify-self: end; }
.vm-world-arrow svg { flex: 0 0 19px; }
@media (max-width: 800px) {
  .vm-world-heading { grid-template-columns: minmax(90px,1fr) minmax(0,2fr) minmax(90px,1fr); gap: 8px; }
  .vm-world-arrow { font-size: 10px; letter-spacing: .02em; gap: 5px; white-space: normal; }
}
@media (max-width: 520px) {
  .vm-world-heading { grid-template-columns: minmax(64px,1fr) minmax(0,1.8fr) minmax(64px,1fr); }
  .vm-world-arrow { font-size: 9px; line-height: 1.25; }
  .vm-world-arrow svg { width: 14px; flex-basis: 14px; }
  .vm-world-heading h1 { font-size: clamp(18px, 5vw, 26px); }
}


/* Korrektur: Titel stets einzeilig, Weltwechsel auf Höhe der Galerie-Umschalter */
.vm-world-heading {
  display: block;
  position: relative;
  width: min(calc(100% - 32px), 1150px);
  margin: 26px auto 22px;
  text-align: center;
}
.vm-world-heading h1 {
  display: block;
  width: 100%;
  white-space: nowrap;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: .025em;
  line-height: 1.15;
}
.vm-world-controls {
  position: relative;
}
.vm-world-controls > .vm-world-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin-top: -13px;
}
.vm-world-controls > .vm-world-arrow--left { left: 0; }
.vm-world-controls > .vm-world-arrow--right { right: 0; }
.vm-world-controls > .vm-world-arrow:hover,
.vm-world-controls > .vm-world-arrow:focus-visible {
  transform: translateY(-50%) translateX(-3px);
}
.vm-world-controls > .vm-world-arrow--right:hover,
.vm-world-controls > .vm-world-arrow--right:focus-visible {
  transform: translateY(-50%) translateX(3px);
}
/* Portfolio: Weltwechsel unterhalb des Titels, auf gleicher Höhe wie die Steuerzeile */
.portfolio-section ~ .vm-world-heading { margin-bottom: 0; }
body .vm-world-heading:has(> .vm-world-arrow) {
  padding-bottom: 35px;
}
body .vm-world-heading > .vm-world-arrow {
  position: absolute;
  bottom: 0;
  top: auto;
}
body .vm-world-heading > .vm-world-arrow--left { left: 0; }
body .vm-world-heading > .vm-world-arrow--right { right: 0; }
body .vm-world-heading > .vm-world-arrow-spacer { display: none; }
@media (max-width: 760px) {
  .vm-world-heading h1 { font-size: clamp(18px, 4.2vw, 30px); letter-spacing: 0; }
  .vm-world-controls > .vm-world-arrow { position: static; transform: none; margin: 0 auto 10px; }
  .vm-world-controls > .vm-world-arrow:hover,
  .vm-world-controls > .vm-world-arrow:focus-visible { transform: none; }
  .vm-world-controls { display: flex; flex-direction: column; align-items: center; }
  .vm-world-controls > .vm-world-arrow--left,
  .vm-world-controls > .vm-world-arrow--right { align-self: flex-start; }
}

/* Wechsel zwischen Portfolio und Galerie innerhalb derselben Welt */
.vm-section-jump { width:min(calc(100% - 32px),1150px); margin:18px auto 0; text-align:right; }
.vm-section-jump a { display:inline-flex; align-items:center; gap:9px; color:#786453; font:400 12px 'Lato',sans-serif; letter-spacing:.06em; text-decoration:none; transition:color .2s ease; }
.vm-section-jump a:hover,.vm-section-jump a:focus-visible { color:#393630; text-decoration:underline; text-underline-offset:4px; }
.vm-section-jump a:focus-visible { outline:2px solid #786453; outline-offset:4px; }
@media(max-width:600px) { .vm-section-jump { width:calc(100% - 24px); margin-top:14px; } .vm-section-jump a { font-size:11px; } }

/* Landscape: Portfolio-Verweis in derselben Steuerzeile wie der Weltenwechsel. */
.gallery-mobile-controls.vm-world-controls { position:relative; }
.gallery-mobile-controls.vm-world-controls .vm-section-jump--in-controls {
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:auto; margin:0; z-index:3; text-align:right;
}
.gallery-mobile-controls.vm-world-controls .vm-section-jump--in-controls a {
  font-family:'Lato',sans-serif; font-size:12px; font-weight:400;
  letter-spacing:.075em; text-transform:uppercase; color:#786453;
  white-space:nowrap; gap:9px;
}
@media(max-width:760px) {
 .gallery-mobile-controls.vm-world-controls .vm-section-jump--in-controls {position:static; transform:none; align-self:flex-end; margin:0 0 12px;}
 .gallery-mobile-controls.vm-world-controls .vm-section-jump--in-controls a {font-size:10px;}
}

/* Landscape-Galerie: linker Weltwechsel und rechter Portfolio-Link
   exakt auf derselben vertikalen Mitte der Steuerzeile. */
@media (min-width: 761px) {
  .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left {
    margin-top: 0;
  }
}

/* Gleiche Farbe und Deckkraft wie „ZUM PORTFOLIO“ auf der Galerie-Seite. */
.gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left {
  color: #786453;
  opacity: 1;
}
.gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left:hover,
.gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left:focus-visible {
  color: #393630;
  opacity: 1;
}

/* Portfolio: beide Navigationslinks auf exakt derselben Zeile,
   gleicher Schrift, Farbe und Deckkraft wie auf der Galerie. */
body.portfolio-landscape .vm-world-heading,
body.portfolio-people .vm-world-heading { position:relative; }
body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio,
body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio {
  position:absolute; right:0; bottom:0; top:auto;
  width:auto; margin:0; padding:0; line-height:1;
  text-align:right; z-index:2;
}
body.portfolio-landscape .vm-world-heading > .vm-world-arrow,
body.portfolio-people .vm-world-heading > .vm-world-arrow,
body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio,
body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio {
  color:#786453 !important; opacity:1 !important;
}
body.portfolio-landscape .vm-world-heading > .vm-world-arrow,
body.portfolio-people .vm-world-heading > .vm-world-arrow { line-height:1; }
body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio a,
body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio a {
  display:inline-flex; align-items:center; gap:9px;
  font-family:'Lato',sans-serif; font-size:12px; font-weight:400;
  letter-spacing:.075em; line-height:1; text-transform:uppercase;
  color:#786453 !important; opacity:1 !important;
  text-decoration:none; white-space:nowrap;
}
body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio a:hover,
body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio a:hover { color:#393630 !important; }
@media(max-width:800px) {
 body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio a,
 body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio a {font-size:10px; letter-spacing:.02em; gap:5px;}
}
@media(max-width:520px) {
 body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio a,
 body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio a {font-size:9px;}
}

/* Mobile: lesbare Titel und beide Navigationslinks auf einer gemeinsamen Zeile. */
@media (max-width: 760px) {
  .vm-world-heading h1 {
    font-size: clamp(25px, 6.3vw, 32px) !important;
    line-height: 1.16;
  }
  .vm-world-heading > .vm-world-arrow,
  .gallery-mobile-controls.vm-world-controls > .vm-world-arrow,
  body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio a,
  body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio a,
  .gallery-mobile-controls.vm-world-controls .vm-section-jump--in-controls a {
    font-size: 15px !important;
    letter-spacing: .015em !important;
    line-height: 1.35 !important;
    color: #786453 !important;
    opacity: 1 !important;
  }
  /* Galerieseiten: links People/Landscape, rechts Portfolio, Umschalter darunter. */
  .gallery-mobile-controls.vm-world-controls {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 22px;
  }
  .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center !important;
    transform: none !important;
    margin: 0 !important;
    white-space: nowrap;
  }
  .gallery-mobile-controls.vm-world-controls > .vm-section-jump--in-controls {
    position: static !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
  }
  .gallery-mobile-controls.vm-world-controls > .gallery-view-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 !important;
  }
  .gallery-mobile-controls.vm-world-controls .gallery-view-button {
    font-size: 15px !important;
  }
}
@media (max-width: 390px) {
  .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left,
  .gallery-mobile-controls.vm-world-controls .vm-section-jump--in-controls a,
  body.portfolio-landscape .vm-world-heading > .vm-section-jump--portfolio a,
  body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio a {
    font-size: 13px !important;
  }
}

/* Mobile: einheitlicher Titelabstand für Galerie und Portfolio.
   Nur auf kleinen Bildschirmen, Desktop bleibt unverändert. */
@media (max-width: 760px) {
  .gallery-page .vm-world-heading,
  body.portfolio-landscape > .vm-world-heading,
  body.portfolio-people > .vm-world-heading {
    margin-top: 22px !important;
    margin-bottom: 0 !important;
    width: calc(100% - 32px) !important;
    box-sizing: border-box;
  }
  .gallery-page .vm-world-heading h1,
  body.portfolio-landscape > .vm-world-heading h1,
  body.portfolio-people > .vm-world-heading h1 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(29px, 6vw, 38px) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    line-height: 1.18 !important;
    white-space: nowrap !important;
  }
  /* Galerie: die beiden Pfeile folgen unter dem Titel. */
  .gallery-page .gallery-mobile-controls.vm-world-controls {
    margin-top: 32px !important;
  }
  /* Portfolio: Pfeile bleiben nebeneinander unter dem Titel. */
  body.portfolio-landscape > .vm-world-heading,
  body.portfolio-people > .vm-world-heading {
    padding-bottom: 56px !important;
  }
  body.portfolio-landscape > .vm-world-heading > .vm-world-arrow,
  body.portfolio-people > .vm-world-heading > .vm-world-arrow,
  body.portfolio-landscape > .vm-world-heading > .vm-section-jump--portfolio,
  body.portfolio-people > .vm-world-heading > .vm-section-jump--portfolio {
    bottom: 0 !important;
  }
}

/* People-Portfolio wie Landscape: Weltwechsel links, Galerie rechts. */
body.portfolio-people .vm-world-heading > .vm-world-arrow--left {
  left: 0 !important;
  right: auto !important;
  text-align: left !important;
  justify-content: flex-start !important;
}
body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio {
  left: auto !important;
  right: 0 !important;
  text-align: right !important;
  justify-content: flex-end !important;
}
@media (max-width: 760px) {
  body.portfolio-people .vm-world-heading > .vm-world-arrow--left {
    max-width: 56%;
  }
  body.portfolio-people .vm-world-heading > .vm-section-jump--portfolio {
    max-width: 42%;
  }
  body.portfolio-people .vm-world-heading > .vm-world-arrow--left .vm-world-arrow-label {
    white-space: normal;
  }
}

/* People-Galerie: eigene, kollisionsfreie Zeile fuer die zwei Bereichslinks.
   Gilt auch bei leerer Galerie und unabhaengig von der Portfolio-Navigation. */
.gallery-page.portfolio-people .vm-people-gallery-links {
  display: flex !important;
  position: relative !important;
  width: min(calc(100% - 32px), 1150px) !important;
  max-width: 1150px !important;
  margin: 20px auto 28px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}
.gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link {
  display: inline-flex !important;
  position: static !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 48% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #786453 !important;
  opacity: 1 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: .075em !important;
  text-decoration: none !important;
  white-space: normal !important;
}
.gallery-page.portfolio-people .vm-people-gallery-link--left {
  margin-right: auto !important;
  text-align: left !important;
  justify-content: flex-start !important;
}
.gallery-page.portfolio-people .vm-people-gallery-link--right {
  margin-left: auto !important;
  text-align: right !important;
  justify-content: flex-end !important;
}
@media (max-width: 760px) {
  .gallery-page.portfolio-people .vm-people-gallery-links {
    margin: 30px auto 30px !important;
    gap: 12px !important;
  }
  .gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link {
    font-size: 15px !important;
    letter-spacing: .01em !important;
  }
}
@media (max-width: 430px) {
  .gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link {
    font-size: 13px !important;
  }
}

/* Einheitliche Typografie: People-Galerie übernimmt Landscape-Weltnavigation.
   Ausschließlich die People-Galerie betroffen, Positionen bleiben erhalten. */
.gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link {
  font-family: 'Lato', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: .075em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  color: #786453 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
.gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link:hover,
.gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link:focus-visible {
  color: #393630 !important;
  opacity: 1 !important;
}
@media (max-width: 760px) {
  .gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link {
    font-size: 15px !important;
    letter-spacing: .015em !important;
  }
}
@media (max-width: 390px) {
  .gallery-page.portfolio-people .vm-people-gallery-links > .vm-people-gallery-link {
    font-size: 13px !important;
  }
}

/* Landscape-Galerie: mobile Bereichslinks ohne Überlappung.
   Wie in der People-Galerie darf der linke Weltenname umbrechen. */
@media (max-width: 760px) {
  .gallery-page:not(.portfolio-people) .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: left !important;
  }
  .gallery-page:not(.portfolio-people) .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left .vm-world-arrow-label {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: normal;
  }
  .gallery-page:not(.portfolio-people) .gallery-mobile-controls.vm-world-controls > .vm-section-jump--in-controls {
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: right !important;
  }
}
