/* Ergänzung zu Tailwind: exakt wie src/index.css Komponenten */
@layer base {
  :root {
    --background: 20 10% 6%;
    --foreground: 40 20% 88%;
    --card: 20 12% 9%;
    --card-foreground: 40 20% 85%;
    --popover: 20 12% 9%;
    --popover-foreground: 40 20% 85%;
    --primary: 40 60% 45%;
    --primary-foreground: 20 10% 6%;
    --secondary: 20 15% 14%;
    --secondary-foreground: 40 20% 80%;
    --muted: 20 12% 12%;
    --muted-foreground: 40 15% 55%;
    --accent: 350 40% 25%;
    --accent-foreground: 40 20% 88%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 40 20% 88%;
    --border: 30 15% 18%;
    --input: 30 15% 18%;
    --ring: 40 60% 45%;
    --radius: 0.25rem;
    --gold: 40 65% 48%;
    --gold-light: 40 60% 62%;
    --gold-dark: 38 55% 32%;
    --parchment: 40 35% 88%;
    --ink: 20 15% 10%;
    --bordeaux: 350 55% 28%;
    --bordeaux-light: 350 45% 38%;
    --dark-green: 150 30% 18%;
    --ash: 30 10% 35%;
  }
}

body {
  font-family: 'EB Garamond', Garamond, serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  background-image:
    radial-gradient(ellipse at top, hsl(20 15% 10%) 0%, hsl(20 10% 6%) 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
}

::selection {
  background: hsl(var(--gold) / 0.3);
  color: hsl(var(--parchment));
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--ink));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--gold-dark));
  border-radius: 3px;
}

.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid hsl(var(--gold) / 0.4);
}

.frame-border {
  position: relative;
  border: 1px solid hsl(var(--gold) / 0.4);
  box-shadow:
    inset 0 0 0 3px hsl(20 10% 6% / 0.8),
    inset 0 0 0 4px hsl(var(--gold) / 0.15),
    0 0 30px hsl(20 10% 3% / 0.8);
}
.frame-border::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid hsl(var(--gold) / 0.2);
  pointer-events: none;
  z-index: 1;
}

.museum-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--gold));
  border: 1px solid hsl(var(--gold) / 0.5);
  background: linear-gradient(135deg, hsl(20 12% 9% / 0.95), hsl(20 10% 7% / 0.95));
  transition: all 0.4s ease;
  font-family: 'EB Garamond', serif;
}
.museum-btn:hover {
  border-color: hsl(var(--gold));
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15), inset 0 0 20px hsl(var(--gold) / 0.05);
  color: hsl(var(--gold-light));
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--gold) / 0.8);
  font-family: 'EB Garamond', serif;
}

.gallery-modal-open {
  overflow: hidden;
}

@keyframes pm-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.pm-animate-bounce {
  animation: pm-bounce 2s ease-in-out infinite;
}

.team-bio {
  background: hsl(var(--card) / 0.35);
}
.team-bio__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  background: transparent;
  font-family: 'EB Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--gold) / 0.85);
  transition: color 0.2s ease, background 0.2s ease;
}
.team-bio__summary::-webkit-details-marker {
  display: none;
}
.team-bio__summary:hover {
  color: hsl(var(--gold));
  background: hsl(var(--gold) / 0.06);
}
.team-bio[open] .team-bio__summary,
.team-bio.is-open .team-bio__summary {
  border-bottom: 1px solid hsl(var(--gold) / 0.15);
}
.team-bio__chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: hsl(var(--gold) / 0.6);
}
.team-bio[open] .team-bio__chevron,
.team-bio.is-open .team-bio__chevron {
  transform: rotate(180deg);
}
.team-bio__content {
  padding: 1rem 1.25rem 1.25rem;
}
.team-bio__content[hidden] {
  display: none;
}

/* Admin-Dashboard Charts */
.admin-dash {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.admin-dash__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-dash__section-head {
  border-bottom: 1px solid hsl(var(--gold) / 0.15);
  padding-bottom: 0.65rem;
}
.admin-dash__section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: hsl(var(--foreground));
  line-height: 1.2;
}
.admin-dash__section-sub {
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.2rem;
}
.admin-dash__eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--gold) / 0.75);
}
.admin-dash__kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .admin-dash__kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.admin-dash__kpi-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .admin-dash__kpi-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.admin-dash__kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid hsl(var(--gold) / 0.18);
  background: hsl(var(--card) / 0.45);
  transition: border-color 0.2s, background 0.2s;
}
.admin-dash__kpi--link {
  text-decoration: none;
  color: inherit;
}
.admin-dash__kpi--link:hover {
  border-color: hsl(var(--gold) / 0.4);
  background: hsl(var(--card) / 0.65);
}
.admin-dash__kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1;
  color: hsl(var(--foreground));
}
.admin-dash__kpi-label {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--gold) / 0.8);
}
.admin-dash__kpi-hint {
  font-family: 'EB Garamond', serif;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.admin-dash__hero {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .admin-dash__hero {
    grid-template-columns: 1.6fr 1fr;
    align-items: stretch;
  }
}
.admin-dash__hero-chart {
  min-height: 100%;
}
.admin-dash__hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.admin-dash__hero-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
  margin-top: 0.15rem;
}
.admin-dash__hero-side {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.admin-dash__mini-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: hsl(var(--foreground));
}
.admin-dash__panel-grid {
  display: grid;
  gap: 0.75rem;
}
.admin-dash__panel-grid--2 {
  grid-template-columns: 1fr;
}
.admin-dash__panel-grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .admin-dash__panel-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dash__panel-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.admin-dash__panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.15rem;
}
.admin-dash__panel-sub {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
.admin-dash__panel--donut .admin-donut-wrap {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
.admin-dash__panel--timeline .admin-timeline {
  max-height: 16rem;
}
.admin-dash__status-row {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .admin-dash__status-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.admin-dash__status-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-dash__status-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.2;
}
.admin-sync-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-sync-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid hsl(var(--gold) / 0.12);
  background: hsl(var(--ink) / 0.25);
}
.admin-sync-list__badge {
  grid-row: span 2;
  font-family: 'EB Garamond', serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid hsl(var(--gold) / 0.25);
  color: hsl(var(--gold) / 0.85);
}
.admin-sync-list__badge--new {
  border-color: hsl(140 30% 35% / 0.5);
  color: hsl(140 45% 65%);
}
.admin-sync-list__badge--changed {
  border-color: hsl(40 50% 45% / 0.5);
  color: hsl(40 65% 62%);
}
.admin-sync-list__label {
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  color: hsl(var(--foreground) / 0.92);
}
.admin-sync-list__meta {
  font-family: 'EB Garamond', serif;
  font-size: 0.68rem;
  color: hsl(var(--muted-foreground));
  word-break: break-all;
}
.admin-timeline__utm {
  font-family: 'EB Garamond', serif;
  font-size: 0.62rem;
  color: hsl(var(--gold) / 0.65);
  margin-top: 0.2rem;
}

.admin-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 28rem;
  overflow-y: auto;
}
.admin-log__entry {
  border: 1px solid hsl(var(--gold) / 0.12);
  background: hsl(var(--ink) / 0.25);
  padding: 0.65rem 0.75rem;
}
.admin-log__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.admin-log__time {
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  color: hsl(var(--foreground) / 0.85);
}
.admin-log__badge {
  font-family: 'EB Garamond', serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 1px solid hsl(var(--gold) / 0.2);
  color: hsl(var(--muted-foreground));
}
.admin-log__badge--new {
  border-color: hsl(140 30% 35% / 0.5);
  color: hsl(140 45% 65%);
}
.admin-log__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-log__items li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  color: hsl(var(--foreground) / 0.85);
}
.admin-log__count {
  color: hsl(140 45% 60%);
  flex-shrink: 0;
}
.admin-log__label {
  color: hsl(var(--foreground) / 0.9);
}
.admin-log__detail {
  color: hsl(var(--muted-foreground));
  font-size: 0.7rem;
}
.admin-log__empty {
  font-family: 'EB Garamond', serif;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

/* Rich-Text-Editor (Admin) */
.pm-rte {
  border: 1px solid hsl(var(--gold) / 0.45);
  background: hsl(20 10% 7%);
  border-radius: 4px;
  margin-top: 0.35rem;
  box-shadow: 0 0 0 3px hsl(var(--gold) / 0.06);
}
.pm-rte:focus-within {
  border-color: hsl(var(--gold) / 0.8);
  box-shadow: 0 0 0 3px hsl(var(--gold) / 0.12);
}
.pm-rte__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid hsl(var(--gold) / 0.35);
  background: hsl(20 15% 14%);
  border-radius: 4px 4px 0 0;
}
.pm-rte__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid hsl(var(--gold) / 0.35);
  background: hsl(20 12% 11%);
  color: hsl(var(--parchment));
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pm-rte__btn:hover {
  border-color: hsl(var(--gold) / 0.8);
  color: hsl(var(--gold));
  background: hsl(20 14% 16%);
}
.pm-rte__btn:active {
  background: hsl(var(--gold) / 0.2);
}
.pm-rte__select {
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid hsl(var(--gold) / 0.35);
  background: hsl(20 12% 11%);
  color: hsl(var(--parchment));
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  border-radius: 3px;
  cursor: pointer;
}
.pm-rte__select:hover {
  border-color: hsl(var(--gold) / 0.7);
}
.pm-rte__sep {
  display: inline-block;
  width: 1px;
  height: 1.5rem;
  background: hsl(var(--gold) / 0.3);
  margin: 0 0.25rem;
}
.pm-rte__swatch {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid hsl(var(--gold) / 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.pm-rte__swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px hsl(var(--gold) / 0.3);
}
.pm-rte__color {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid hsl(var(--gold) / 0.4);
  border-radius: 3px;
  background: hsl(20 12% 11%);
  cursor: pointer;
}
.pm-rte__color::-webkit-color-swatch-wrapper { padding: 2px; }
.pm-rte__color::-webkit-color-swatch { border: none; border-radius: 2px; }
.pm-rte__editor {
  min-height: 13rem;
  max-height: 32rem;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  color: hsl(var(--foreground) / 0.92);
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  line-height: 1.65;
  outline: none;
  background: hsl(20 10% 7%);
  border-radius: 0 0 4px 4px;
}
.pm-rte__editor:focus {
  background: hsl(20 11% 8%);
}
.pm-rte__editor p { margin: 0 0 0.75rem; }
.pm-rte__editor h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin: 0 0 0.6rem; color: hsl(var(--parchment)); }
.pm-rte__editor h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin: 0 0 0.5rem; color: hsl(var(--parchment)); }
.pm-rte__editor h4 { font-family: 'Playfair Display', serif; font-size: 1rem; margin: 0 0 0.4rem; color: hsl(var(--parchment)); }
.pm-rte__editor ul,
.pm-rte__editor ol { margin: 0 0 0.75rem; padding-left: 1.5rem; }
.pm-rte__editor a { color: hsl(var(--gold)); text-decoration: underline; }
.pm-rte__editor u { text-decoration: underline !important; }
.pm-rte__editor s,
.pm-rte__editor strike,
.pm-rte__editor del { text-decoration: line-through !important; }
.pm-rte__editor b,
.pm-rte__editor strong { font-weight: 700 !important; }
.pm-rte__editor i,
.pm-rte__editor em { font-style: italic !important; }

/* Ausgabe von formatiertem Text auf der öffentlichen Seite */
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 1.1rem; }
.rich-content h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 1.5rem 0 0.75rem; color: hsl(var(--parchment)); }
.rich-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin: 1.25rem 0 0.6rem; color: hsl(var(--parchment)); }
.rich-content h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin: 1rem 0 0.5rem; color: hsl(var(--parchment)); }
.rich-content ul,
.rich-content ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.rich-content li { margin-bottom: 0.35rem; }
.rich-content a { color: hsl(var(--gold)); text-decoration: underline; }
.rich-content a:hover { color: hsl(var(--parchment)); }
.rich-content u { text-decoration: underline !important; }
.rich-content s,
.rich-content strike,
.rich-content del { text-decoration: line-through !important; }
.rich-content b,
.rich-content strong { font-weight: 700 !important; }
.rich-content i,
.rich-content em { font-style: italic !important; }

.admin-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.admin-bar-chart__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.admin-bar-chart__label {
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  color: hsl(var(--foreground) / 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-bar-chart__value {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: hsl(var(--gold) / 0.85);
  flex-shrink: 0;
}
.admin-bar-chart__track {
  height: 0.45rem;
  background: hsl(var(--muted) / 0.8);
  border: 1px solid hsl(var(--gold) / 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.admin-bar-chart__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--gold) / 0.45), hsl(var(--gold) / 0.85));
  transition: width 0.6s ease;
}

.admin-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.admin-donut {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px hsl(var(--gold) / 0.15);
}
.admin-donut--empty {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  border: 1px dashed hsl(var(--gold) / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-donut__hole {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: hsl(var(--card) / 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem;
}
.admin-donut__value {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
}
.admin-donut__label {
  font-family: 'EB Garamond', serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-top: 0.15rem;
}
.admin-donut-legend {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.75rem;
  color: hsl(var(--foreground) / 0.85);
}
.admin-donut-legend__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-donut-legend__text {
  flex: 1;
}
.admin-donut-legend__num {
  color: hsl(var(--gold) / 0.8);
}

.admin-spark-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 8rem;
  padding-top: 0.5rem;
  overflow-x: auto;
}
.admin-spark-chart__col {
  flex: 1 1 0;
  min-width: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.admin-spark-chart__bar-wrap {
  width: 100%;
  height: 6.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.admin-spark-chart__bar {
  width: 72%;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, hsl(var(--gold) / 0.85), hsl(var(--gold) / 0.35));
  border: 1px solid hsl(var(--gold) / 0.25);
  transition: height 0.5s ease;
}
.admin-spark-chart__day {
  font-family: 'EB Garamond', serif;
  font-size: 0.6rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.admin-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.admin-timeline__item {
  display: flex;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  position: relative;
}
.admin-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.75rem;
  bottom: 0;
  width: 1px;
  background: hsl(var(--gold) / 0.2);
}
.admin-timeline__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  margin-top: 0.2rem;
  flex-shrink: 0;
  background: hsl(var(--gold) / 0.5);
  box-shadow: 0 0 0 2px hsl(var(--card));
}
.admin-timeline__dot--desktop { background: hsl(40 65% 48%); }
.admin-timeline__dot--mobile { background: hsl(40 35% 62%); }
.admin-timeline__dot--tablet { background: hsl(30 25% 38%); }
.admin-timeline__time {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  color: hsl(var(--foreground) / 0.9);
}
.admin-timeline__client {
  font-family: 'EB Garamond', serif;
  font-size: 0.68rem;
  color: hsl(var(--gold) / 0.8);
  margin-top: 0.1rem;
}
.admin-timeline__path {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.1rem;
  word-break: break-all;
}
.admin-timeline__source {
  font-family: 'EB Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  color: hsl(var(--gold) / 0.75);
}
.admin-timeline__source--direct { color: hsl(40 35% 62%); }
.admin-timeline__source--search { color: hsl(40 65% 55%); }
.admin-timeline__source--social { color: hsl(350 30% 55%); }
.admin-timeline__source--referral { color: hsl(30 25% 50%); }
.admin-timeline__source--internal { color: hsl(var(--muted-foreground)); }
.admin-timeline__source-detail {
  color: hsl(var(--muted-foreground));
}

.admin-kpi-meter__track {
  height: 0.35rem;
  background: hsl(var(--muted) / 0.7);
  border-radius: 999px;
  overflow: hidden;
}
.admin-kpi-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--gold) / 0.4), hsl(var(--gold) / 0.75));
  border-radius: 999px;
}

/* Event-Fotoalbum: Lightbox */
.album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.album-lightbox.hidden {
  display: none !important;
}
.album-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--ink) / 0.92);
  border: 0;
  cursor: pointer;
}
.album-lightbox__frame {
  position: relative;
  z-index: 1;
  width: min(92vw, 56rem);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.75rem;
}
.album-lightbox__figure {
  margin: 0;
  width: 100%;
  text-align: center;
}
.album-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 40rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid hsl(var(--gold) / 0.25);
  box-shadow: 0 12px 48px hsl(0 0% 0% / 0.45);
}
.album-lightbox__caption {
  margin-top: 1rem;
  padding: 0 0.5rem;
  color: hsl(var(--parchment) / 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.album-lightbox__counter {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--gold) / 0.65);
}
.album-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  color: hsl(var(--parchment) / 0.65);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.album-lightbox__close:hover {
  color: hsl(var(--gold));
}
.album-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(var(--gold) / 0.35);
  background: hsl(var(--card) / 0.85);
  color: hsl(var(--parchment));
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.album-lightbox__nav:hover:not(:disabled) {
  border-color: hsl(var(--gold) / 0.7);
  color: hsl(var(--gold));
  background: hsl(var(--card));
}
.album-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.album-lightbox__nav--prev {
  left: 0;
}
.album-lightbox__nav--next {
  right: 0;
}
@media (max-width: 640px) {
  .album-lightbox__frame {
    padding: 0 2rem;
  }
  .album-lightbox__nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.4rem;
  }
}
