/* ── legal.css ───────────────────────────────────────────────────────────────
   Styles für datenschutz.php und impressum.php
   ─────────────────────────────────────────────────────────────────────────── */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ds-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  flex: 1;
}
.ds-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.18s;
}
@media (hover: hover) {
  .ds-back:hover {
    color: var(--gold);
  }
}
.ds-back:active {
  color: var(--gold);
}
.ds-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ds-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
}
.ds-section {
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.ds-section h2 {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 700;
}
.ds-section p,
.ds-section li {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 10px;
}
.ds-section p:last-child,
.ds-section li:last-child {
  margin-bottom: 0;
}
.ds-section ul {
  padding-left: 18px;
  margin: 0 0 10px;
}
.ds-section a {
  color: var(--gold);
  text-decoration: none;
}
@media (hover: hover) {
  .ds-section a:hover {
    text-decoration: underline;
  }
}
.ds-section a:active {
  text-decoration: underline;
}
.ds-muted {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
}
:root.light .ds-section {
  border-color: rgba(131, 98, 0, 0.12);
}
.ds-verantwortlich {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ds-portrait {
  margin: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* height: auto – Figur wächst natürlich mit Bildbreite, JS setzt nur die Breite */
.ds-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.ds-portrait figcaption {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
  padding-top: 6px;
  opacity: 0.6;
}

/* Portrait-Zoom */
.ds-portrait-zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
  background: none;
  border: none;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}
.ds-portrait-zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.ds-portrait-zoom__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ds-portrait-zoom:hover .ds-portrait-zoom__overlay,
.ds-portrait-zoom:focus-visible .ds-portrait-zoom__overlay {
  opacity: 1;
}
.ds-portrait-zoom__overlay .ti {
  font-size: 1.5rem;
  color: #fff;
}

/* Lightbox */
.ds-lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s;
}
.ds-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.ds-lightbox img {
  max-width: min(420px, 90vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.7);
  cursor: default;
  transform: scale(0.95);
  transition: transform 0.22s ease;
}
.ds-lightbox.is-open img {
  transform: scale(1);
}
.ds-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}
@media (hover: hover) {
  .ds-lightbox__close:hover {
    color: #fff;
  }
}
.ds-lightbox__close:active {
  color: #fff;
}
.ds-lightbox__caption {
  position: absolute;
  bottom: 20px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}

@media (max-width: 500px) {
  .ds-verantwortlich {
    flex-direction: column;
    align-items: flex-start;
  }
  .ds-portrait {
    width: 90px !important;
  }
}
