/* 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-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;
}
