/* Bildansicht: dunkle Bühne, klare Werkzeuge, Bildinfos außerhalb des Motivs. */
html.lb-offen { overflow: hidden; }
.lb {
  --lb-rand: clamp(1rem, 3vw, 3rem);
  --lb-ton: rgba(243, 240, 233, 1);
  --lb-leise: rgba(185, 185, 182, 1);
  --lb-kante: rgba(243, 240, 233, .16);
  --lb-knopf-schatten: 0 6px 22px rgba(0, 0, 0, .24);
  --lb-strip: 0px;
  position: fixed; inset: 0; margin: 0; border: 0; padding: 0;
  width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  overflow: hidden; overscroll-behavior: contain;
  background: rgba(16, 18, 20, 1); color: var(--lb-ton);
  font-family: var(--schrift-lb, inherit);
  color-scheme: dark;
}
.lb::backdrop { background: rgba(16, 18, 20, 1); }
.werkzeug-tooltip {
  position: absolute; z-index: 10; width: max-content;
  max-width: min(20rem, calc(100% - 16px)); padding: .5rem .7rem;
  border: 1px solid rgba(247, 247, 243, 0.16); border-radius: 3px;
  background: rgba(24, 26, 25, 0.98); color: rgba(247, 247, 243, 1);
  font-family: var(--studio-text-schrift, "Archivo", sans-serif);
  font-size: .75rem; font-weight: 400; line-height: 1.45;
  letter-spacing: 0; text-transform: none; overflow-wrap: anywhere;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: werkzeug-tooltip-ein .12s ease-out;
}
@keyframes werkzeug-tooltip-ein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .werkzeug-tooltip { animation: none; } }
.lb[open] { display: block; }
.lb__rahmen {
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto; position: relative;
  width: 100%; height: 100%; background: rgba(16, 18, 20, 1);
}
.lb__kopf {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(.85rem, env(safe-area-inset-top)) var(--lb-rand) .85rem;
  background: linear-gradient(rgba(16, 18, 20, 0.93), rgba(16, 18, 20, 0.66) 65%, transparent);
}
.lb__marke {
  display: flex; align-items: center; gap: 1.3rem; font-size: 1.25rem;
  flex: none; white-space: nowrap;
  font-weight: 850; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.035em;
}
.lb__marke span {
  border-left: 1px solid var(--lb-kante); padding-left: 1.3rem;
  color: var(--lb-leise); font-size: .69rem; font-weight: 550;
  font-stretch: normal; letter-spacing: .13em;
  text-transform: uppercase;
}
.lb__werkzeuge { display: flex; gap: .5rem; align-items: center; }
.lb .lb__knopf {
  display: inline-flex; justify-content: center; align-items: center; gap: .6rem;
  min-width: 46px; min-height: 46px; padding: .65rem .9rem;
  border: 1px solid var(--lb-kante); border-radius: 9px;
  background: rgba(27, 30, 33, .88); color: var(--lb-ton);
  box-shadow: var(--lb-knopf-schatten);
  font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.2;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s, opacity .22s;
  touch-action: manipulation;
}
.lb__knopf svg { flex: none; width: 21px; height: 21px; }
.lb .lb__knopf:hover:not(:disabled) { border-color: rgba(243, 240, 233, .42); background: rgba(51, 55, 59, 1); }
.lb .lb__knopf:active:not(:disabled) { background: rgba(66, 71, 75, 1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.27); }
.lb .lb__knopf:focus-visible {
  outline: none; border-color: var(--lb-ton);
  box-shadow: inset 0 0 0 2px var(--lb-ton);
}
.lb:not(.lb--tabfokus) .lb__zur:focus-visible, .lb:not(.lb--tabfokus) .lb__vor:focus-visible {
  border-color: var(--lb-kante); box-shadow: var(--lb-knopf-schatten);
}
.lb .lb__knopf:disabled { opacity: .3; cursor: default; }
.lb .lb__zu { border-color: rgba(243, 240, 233, .28); margin-left: .4rem; }
.lb .lb__zoom[aria-pressed="true"], .lb .lb__diashow[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.lb__diashow { position: relative; overflow: hidden; }
.lb__timer {
  position: absolute; bottom: 4px; left: 8px; right: 8px; height: 2px;
  background: var(--lime); border-radius: 2px; transform-origin: left; pointer-events: none;
}
.lb__buehne {
  position: relative; grid-row: 1; min-height: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(35, 39, 42, 1), rgba(16, 18, 20, 1) 75%);
}
.lb__signatur {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .9rem; border-radius: 0;
  background: rgba(16, 18, 20, 1); color: rgba(247, 247, 243, 1);
  font: 500 calc(var(--lb-logo-hoehe, 24px) * 1.1)/1 "Archivo", sans-serif;
  letter-spacing: -.025em; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.lb__signatur img { flex: none; width: auto; height: var(--lb-logo-hoehe, 24px); object-fit: contain; filter: brightness(0) invert(1); }
.lb__signatur-text { display: grid; }
.lb__signatur--mit-unterzeile .lb__signatur-text {
  height: var(--lb-logo-hoehe, 24px); align-content: center;
  gap: calc(var(--lb-logo-hoehe, 24px) * .12);
}
.lb__signatur--mit-unterzeile .lb__signatur-name {
  font-size: calc(var(--lb-logo-hoehe, 24px) * .6); line-height: 1;
  letter-spacing: -.025em; text-transform: none;
}
.lb__signatur-unterzeile {
  font-size: calc(var(--lb-logo-hoehe, 24px) * .24); line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 400;
}
.lb__flaeche {
  position: absolute; inset: 1rem; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  touch-action: none; overscroll-behavior: contain;
}
.lb .lb__flaeche { inset: max(1rem, var(--lb-bild-abstand, 0px)); }
.lb .lb__bild {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0; object-fit: contain; flex: 0 1 auto;
  outline: var(--lb-bild-rand, 1px) solid var(--lb-bild-rand-farbe, rgba(255,255,255,.14));
  outline-offset: calc(-1 * var(--lb-bild-rand, 1px));
  box-shadow: var(--lb-bild-schimmer-normal, 0 0 0 transparent), 0 16px 64px rgba(0, 0, 0, 0.4);
  transform-origin: 0 0;
  user-select: none; -webkit-user-select: none;
}
.lb .lb__bild:hover {
  box-shadow: var(--lb-bild-schimmer-aktiv, 0 0 0 transparent), 0 16px 64px rgba(0, 0, 0, 0.4);
}
.lb--laden .lb__bild { opacity: .25; }
.lb--zoom .lb__flaeche {
  display: block; overflow: auto; cursor: grab;
  scrollbar-color: rgba(110, 106, 96, 1) rgba(23, 25, 27, 1); scrollbar-width: thin;
}
.lb--zoom .lb__bild { max-width: none; max-height: none; margin: auto; }
.lb--zoom .lb__flaeche--ziehen { cursor: grabbing; }
.lb__zoomleiste {
  position: relative; grid-column: 2; grid-row: 1; justify-self: center; align-self: center;
  display: flex; align-items: center; gap: .2rem; padding: .2rem;
  border: 1px solid var(--lb-kante); border-radius: 999px; background: rgba(23, 25, 27, 0.92);
  box-shadow: var(--lb-knopf-schatten);
}
.lb .lb__zoomleiste .lb__knopf { border: 0; border-radius: 999px; box-shadow: none; background: transparent; min-width: 42px; min-height: 42px; padding: .4rem; }
.lb .lb__zoomleiste .lb__knopf:hover:not(:disabled) { background: rgba(54, 58, 62, 1); }
.lb .lb__zoomleiste .lb__knopf:focus-visible { box-shadow: inset 0 0 0 2px var(--lb-ton); }
.lb .lb__zoomleiste .lb__massstab {
  min-width: 60px; color: var(--lime); font-size: .8rem;
  font-weight: 650; font-variant-numeric: tabular-nums;
}
.lb .lb__zur, .lb .lb__vor {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; min-width: 52px; min-height: 52px;
  border-radius: 50%; padding: 0;
}
.lb .lb__zur { left: var(--lb-rand); }
.lb .lb__vor { right: var(--lb-rand); }
.lb__zur svg, .lb__vor svg { width: 26px; height: 26px; }
.lb__laden, .lb__fehler {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; font-size: .83rem; color: var(--lb-leise);
}
.lb__laden { display: none; pointer-events: none; }
.lb--laden .lb__laden { display: grid; justify-items: center; gap: .85rem; }
.lb__laden > span {
  display: block; width: 30px; height: 30px; border: 2px solid var(--lb-kante);
  border-top-color: var(--lime); border-radius: 50%; animation: lb-laden .8s linear infinite;
}
.lb__fehler { width: min(90%, 25rem); }
.lb__fehler p { margin-bottom: 1rem; }
.lb__fuss {
  position: relative; grid-row: 2; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 1rem;
  padding: 1.25rem var(--lb-rand) max(1.25rem, env(safe-area-inset-bottom));
  background: rgba(21, 23, 25, 1); border-top: 1px solid var(--lb-kante);
}
.lb__info { grid-column: 1; grid-row: 1; min-width: 0; }
.lb .lb__meta {
  color: var(--lime); font-size: .68rem; line-height: 1.4;
  font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 .4rem;
}
.lb .lb__titel {
  font-size: clamp(1.2rem, 2.1vw, 2rem); font-weight: 700; font-stretch: 85%;
  line-height: 1.15; letter-spacing: -.025em; text-transform: none;
  overflow-wrap: anywhere; color: var(--lb-ton); margin: 0; max-width: 65ch;
  max-height: 3.5em; overflow-y: auto;
}
.lb .lb__titel,
.lb .lb__meta {
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 185, 182, 0.45) transparent;
}
.lb .lb__titel::-webkit-scrollbar,
.lb .lb__meta::-webkit-scrollbar { width: 6px; height: 6px; }
.lb .lb__titel::-webkit-scrollbar-track,
.lb .lb__meta::-webkit-scrollbar-track { background: transparent; }
.lb .lb__titel::-webkit-scrollbar-thumb,
.lb .lb__meta::-webkit-scrollbar-thumb { background: rgba(185, 185, 182, 0.45); border-radius: 3px; }
.lb__fortschritt { grid-column: 3; grid-row: 1; justify-self: end; min-width: 0; text-align: right; }
.lb__zaehler { display: flex; align-items: baseline; justify-content: flex-end; gap: .65rem; font-variant-numeric: tabular-nums; line-height: 1; }
.lb__zaehler strong { font-size: 1.8rem; font-weight: 650; color: var(--lime); }
.lb__trenner { color: rgba(119, 121, 118, 1); }
.lb__gesamt { font-size: 1rem; color: var(--lb-leise); }
.lb__hilfe { margin-top: .7rem; font-size: .67rem; line-height: 1.4; color: var(--lb-leise); }
.lb__hilfe-tastatur > span { padding: 0 .4rem; }
.lb__hilfe-touch { display: none; }
.lb__werkzeuge, .lb__zur, .lb__vor, .lb__vorschau { transition: opacity .22s ease; }
.lb--ruhig .lb__werkzeuge,
.lb--ruhig .lb__zur, .lb--ruhig .lb__vor { opacity: 0; pointer-events: none; }
.lb--ruhig .lb__zoomleiste { background: transparent; border-color: transparent; box-shadow: none; pointer-events: none; }
.lb--ruhig .lb__zoomleiste .lb__knopf:not(.lb__massstab) { opacity: 0; pointer-events: none; }
.lb--ruhig .lb__kopf { pointer-events: none; }
.lb--ruhig .lb__flaeche { cursor: none; }
.lb--mit-vorschau { --lb-strip: 100px; }
.lb__vorschau {
  position: relative; grid-row: 3; width: 100%; height: var(--lb-strip); z-index: 4;
  padding: 10px 1rem; background: rgba(21, 23, 25, 0.96); border-top: 1px solid var(--lb-kante);
  overflow: auto hidden; overscroll-behavior: contain; scrollbar-width: thin;
  touch-action: pan-x; cursor: grab;
}
.lb__vorschau, .lb__vorschau * {
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.lb__vorschau button { cursor: grab; }
.lb__vorschau--ziehen, .lb__vorschau--ziehen button { cursor: grabbing; }
.lb__vorschau ol { display: flex; align-items: center; gap: .5rem; width: max-content; min-width: 100%; }
.lb__vorschau li { flex: none; }
.lb__vorschau button {
  display: block; width: 120px; height: 76px; border: 2px solid transparent; padding: 2px;
  border-radius: 2px; background: rgba(13, 15, 16, 1); opacity: .65;
}
.lb__vorschau button[aria-current], .lb__vorschau button:hover { border-color: var(--lime); opacity: 1; }
.lb__vorschau button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--lime); opacity: 1; }
.lb__vorschau img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (forced-colors: active) {
  .lb .lb__knopf:focus-visible, .lb__vorschau button:focus-visible { outline: 2px solid Highlight; outline-offset: -3px; }
  .lb:not(.lb--tabfokus) .lb__zur:focus-visible, .lb:not(.lb--tabfokus) .lb__vor:focus-visible { outline: none; }
}
@keyframes lb-laden { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .lb__marke { flex-direction: column; align-items: flex-start; justify-content: center; gap: .25rem; min-height: 46px; }
  .lb__marke span { border: 0; padding: 0; font-size: .62rem; line-height: 1.1; letter-spacing: .025em; }
  .lb__knopf span { display: none; }
}
@media (max-width: 800px) {
  .lb__flaeche { inset: .5rem; }
  .lb .lb__zur, .lb .lb__vor { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
  .lb__fuss { gap: 1rem; }
}
@media (max-width: 540px) {
  .lb__kopf { gap: .5rem; padding-top: max(.65rem, env(safe-area-inset-top)); padding-bottom: .65rem; }
  .lb__marke { font-size: 1rem; line-height: 1; min-height: 44px; }
  .lb__werkzeuge { width: auto; margin-left: auto; justify-content: flex-end; gap: .25rem; }
  .lb .lb__werkzeuge .lb__knopf { flex: none; width: 44px; height: 44px; }
  .lb .lb__knopf { padding: .55rem; min-width: 44px; min-height: 44px; }
  .lb .lb__zu { margin-left: 0; }
  .lb .lb__zur, .lb .lb__vor { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .lb .lb__zur { left: var(--lb-rand); }
  .lb .lb__vor { right: var(--lb-rand); }
  .lb__zoomleiste { grid-row: 2; padding: 0; }
  .lb .lb__zoomleiste .lb__knopf { min-width: 40px; min-height: 42px; }
  .lb .lb__zoomleiste .lb__massstab { min-width: 60px; }
  .lb__fuss { gap: .5rem; padding-top: .85rem; padding-bottom: max(.85rem, env(safe-area-inset-bottom)); }
  .lb__info { display: contents; }
  .lb .lb__titel { grid-column: 1 / -1; grid-row: 1; font-size: 1.15rem; max-height: 2.4em; overflow-y: auto; }
  .lb .lb__meta { grid-column: 1; grid-row: 2; margin: 0; letter-spacing: .03em; font-size: .62rem; max-height: 3em; overflow: auto; overflow-wrap: anywhere; }
  .lb__fortschritt { grid-row: 2; }
  .lb--ohne-info .lb__zoomleiste, .lb--ohne-info .lb__fortschritt { grid-row: 1; }
  .lb__zaehler { gap: .4rem; }
  .lb__zaehler strong { font-size: 1.5rem; }
  .lb__hilfe { max-width: 8rem; }
  .lb__hilfe { display: none; }
}
@media (max-width: 374px) {
  .lb__kopf { align-items: flex-start; }
  .lb__werkzeuge { display: grid; grid-template-columns: repeat(3, 44px); gap: .25rem; }
  .lb__werkzeuge .lb__voll { grid-column: 2; }
  .lb__werkzeuge .lb__zu { grid-column: 3; }
}
@media (max-width: 540px) {
  .lb--mit-diashow .lb__kopf { align-items: flex-start; }
  .lb--mit-diashow .lb__werkzeuge { display: grid; grid-template-columns: repeat(3, 44px); gap: .25rem; }
  .lb--mit-diashow .lb__werkzeuge .lb__voll { grid-column: 2; }
  .lb--mit-diashow .lb__werkzeuge .lb__zu { grid-column: 3; }
}
.lb--ohne-info .lb__hilfe { display: none; }
@media (pointer: coarse) {
  .lb__hilfe-tastatur { display: none; }
  .lb__hilfe-touch { display: inline; }
}
@media (max-height: 500px) and (min-width: 541px) {
  .lb__kopf { padding-top: .4rem; padding-bottom: .4rem; }
  .lb__fuss { padding-top: .6rem; padding-bottom: .6rem; }
  .lb .lb__titel { font-size: 1.1rem; max-height: 2.4em; overflow-y: auto; }
  .lb .lb__meta { margin-bottom: .2rem; }
  .lb__hilfe { display: none; }
  .lb__zaehler strong { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lb .lb__bild, .lb__laden > span { animation: none; }
  .lb .lb__knopf, .lb__werkzeuge, .lb__fuss, .lb__zoomleiste, .lb__zur, .lb__vor { transition: none; }
}
