/* Public $MANI gallery on robin.mood.click. Only used when html.mani-gallery-home is set. */
html.mani-gallery-home {
  background: #0b0b0c;
}
html.mani-gallery-home body {
  min-height: 100%;
  background: #0b0b0c;
  color: #f4f1ea;
}
html.mani-gallery-home main {
  display: none !important;
}
html.mani-gallery-home #mani-gallery {
  display: block !important;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
.mani-gallery-wrap {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px);
  padding-bottom: 4rem;
  box-sizing: border-box;
  text-align: left;
}
.mani-gallery-head h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: .01em;
}
.mani-gallery-head p {
  margin: 0 0 .75rem;
  color: #b9b4aa;
  line-height: 1.55;
  max-width: 60ch;
}
.mani-gallery-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.mani-gallery-head a {
  color: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
#mani-gallery-status {
  margin: 0 0 1rem;
  color: #b9b4aa;
  min-height: 1.2em;
}
#mani-gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  #mani-gallery-list {
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  }
}
.mani-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid #3a3733;
  border-radius: 16px;
  background: #141415;
  min-width: 0;
}
.mani-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mani-card-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #19191a;
}
.mani-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.mani-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
  font-size: .95rem;
}
.mani-card dt { color: #b9b4aa; }
.mani-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mani-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 0;
}
.mani-card-links a {
  color: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mani-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border: 0;
  border-radius: 999px;
  background: #f4f1ea;
  color: #0b0b0c;
  font: 700 1.15rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}
.mani-play-btn:focus-visible {
  outline: 3px solid #8ff0a4;
  outline-offset: 3px;
}
.mani-play-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #0b0b0c;
  color: #f4f1ea;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.mani-play-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  padding: .65rem .85rem;
  border-bottom: 1px solid #3a3733;
}
.mani-play-bar h2 {
  margin: 0;
  flex: 1;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.mani-play-close {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #66615a;
  background: transparent;
  color: inherit;
  font: 600 1rem/1 inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.mani-play-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}
.mani-play-stage iframe,
.mani-play-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  background: #000;
  object-fit: contain;
}
#robin-gallery-link {
  margin: 0;
  font-size: 1rem;
}
#robin-gallery-link a {
  color: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mani-play-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: #07091a;
  z-index: 0;
}
.mani-play-stage iframe {
  z-index: 1;
  background: transparent;
}

/* W257A15: Robin-only layout; shared navigation and private gate keep their behaviour. */
html.mani-gallery-home { font-family: Nunito, system-ui, sans-serif; }
html.mani-gallery-home body { font-family: Nunito, system-ui, sans-serif; }
.mani-gallery-wrap { max-width: 1120px; padding: 22px 16px 34px; }
.mani-kicker { color: #e10600; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.mani-gallery-head h1 { font: 600 34px/1.08 Fredoka, sans-serif; margin: 6px 0 8px; letter-spacing: 0; }
.mani-gallery-head p { color: #a8a39c; font-size: 17px; line-height: 1.5; }
.mani-gallery-head nav { gap: 10px; margin: 16px 0; }
.mani-gallery-head a { min-height: 48px; padding: 0 16px; border: 2px solid #34343a; border-radius: 999px; text-decoration: none; font: 600 14px Fredoka, sans-serif; background: #222224; }
#mani-gallery-status { font-size: 13px; }
#mani-gallery-list { grid-template-columns: 1fr; }
.mani-card { border: 2px solid #34343a; border-radius: 22px; background: #161617; padding: 16px; box-shadow: 0 5px 0 #000; gap: 12px; }
.mani-card-visual { border-radius: 16px; border: 3px solid #f4f1ea; }
.mani-card h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 17px/1.2 Fredoka, sans-serif; }
.mani-number { border-radius: 999px; background: #e10600; padding: 4px 10px; font: 800 11px Nunito, sans-serif; }
.mani-card dl { gap: 0; font-size: 13px; }
.mani-card dt, .mani-card dd { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid #34343a; }
.mani-card dd { justify-content: flex-end; font-family: ui-monospace, monospace; }
.mani-card dd a { display: inline-flex; align-items: center; min-height: 48px; color: inherit; }
.mani-card-links { font-size: 12px; }
.mani-card-links a, .mani-play-close { min-height: 48px; }
.mani-play-btn { background: #f4f1ea; color: #0b0b0c; border: 2px solid #f4f1ea; min-height: 48px; font: 600 16px Fredoka, sans-serif; box-shadow: 0 4px 0 #000; }
.mani-gallery-wrap a:focus-visible, .mani-play-btn:focus-visible { outline: 3px solid #f4f1ea; outline-offset: 3px; }
.mani-skeleton { background: linear-gradient(110deg,#1c1c1e,#2a2a2d,#1c1c1e); border: 0; border-radius: 12px; }
.mani-skeleton-line { height: 14px; width: 70%; }
.mani-skeleton-button { height: 48px; border-radius: 999px; }
html.mani-gallery-home .mn-footer-groups { max-width: 1120px; text-align: left; padding: 22px 16px 30px; gap: 18px; }
html.mani-gallery-home .mn-footer-identity { padding: 0; }
html.mani-gallery-home .mn-footer-groups nav { justify-content: flex-start; }
html.mani-gallery-home .mn-crew-footer nav a { flex-basis: auto; font-size: 14px; border: 2px solid #34343a; }
@media (min-width: 900px) {
  .mani-gallery-wrap { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 16px; align-items: center; padding: 36px 40px 50px; }
  .mani-gallery-head h1 { font-size: 52px; }
  .mani-gallery-head p { font-size: 19px; }
  #mani-gallery-list { grid-column: 2; grid-row: 1 / 3; }
  #mani-gallery-status { grid-column: 1; }
  html.mani-gallery-home .mn-footer-groups { grid-template-columns: 1.2fr 1fr 1fr; }
}
#mani-gallery-status.mani-gallery-loaded { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.mani-gallery-home .mn-footer-groups nav { padding: 0; gap: 10px; }
html.mani-gallery-home .mn-footer-groups nav::before { display: block; width: 100%; font: 800 10px Nunito, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a8a39c; }
html.mani-gallery-home .mn-footer-groups nav[aria-label="Rechtliches"]::before { content: "Rechtliches"; }
html.mani-gallery-home .mn-footer-groups nav[aria-label="Wald"]::before { content: "Wald"; }
@media (min-width: 900px) {
  #mani-gallery-list { grid-row: 1; }
}

/* Keep the image footprint when every preview source fails. */
.mani-card-visual > .mood-bild-fehlt { height: 100%; aspect-ratio: 1; }
