:root {
  --bg: #111214;
  --ink: #ffffff;
  --ink-soft: #b9b9ba;
  --ci-gray: #ded7cf;
  --ci-brown: #9a6b47;
  --ci-brown-dark: #704a31;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Sehr schmale Kopfzeile: möglichst viel Platz für das Foto. */
.topbar {
  flex: 0 0 54px;
  height: 54px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) minmax(130px, 1fr);
  align-items: center;
  padding: 0 18px;
  background: #2d2a28;
  color: var(--ci-gray);
  border-bottom: 2px solid var(--ci-brown);
  z-index: 5;
}

.topbar a {
  justify-self: start;
  color: var(--ci-gray);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 800;
}

.topbar a:hover,
.topbar a:focus-visible { color: var(--ci-brown); }

.topbar h1 {
  justify-self: center;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.95rem, 1.7vw, 1.35rem);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ci-gray);
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auto-toggle {
  min-height: 38px;
  border: 1px solid #695747;
  background: var(--ci-brown);
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.auto-toggle.off {
  color: var(--ci-gray);
  background: transparent;
}

.auto-toggle:focus-visible {
  outline: 2px solid var(--ci-brown);
  outline-offset: 2px;
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: #111214;
}

.stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  min-width: 70px;
  display: flex;
  align-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: transparent;
  opacity: 0.12;
  transition: opacity 0.15s ease, background 0.15s ease;
  z-index: 3;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  opacity: 0.88;
  background: linear-gradient(90deg, rgba(0,0,0,.28), transparent);
  outline: none;
}

.nav-btn.next:hover,
.nav-btn.next:focus-visible {
  background: linear-gradient(270deg, rgba(0,0,0,.28), transparent);
}

.nav-btn.prev { left: 0; justify-content: flex-start; padding-left: 18px; }
.nav-btn.next { right: 0; justify-content: flex-end; padding-right: 18px; }

.nav-btn svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.65));
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  max-width: 460px;
  line-height: 1.6;
  padding: 2rem;
}

.empty-state strong { color: var(--ink); }

@media (max-width: 700px) {
  .topbar {
    height: 50px;
    flex-basis: 50px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 10px;
    gap: 8px;
  }
  .topbar a { font-size: 0; }
  .topbar a::before { content: "←"; font-size: 1.3rem; }
  .topbar h1 { font-size: 0.82rem; }
  .auto-toggle { padding: 0.38rem 0.52rem; min-height: 36px; font-size: 0.68rem; }
  .nav-btn { min-width: 52px; }
}
.slide-logo{display:block;width:150px;height:34px;object-fit:contain;margin-right:10px}.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}@media(max-width:700px){.slide-logo{width:105px;height:28px}}
