/* DJ Ollerganove — dunkles Theme, gedämpfte Logo-Farben */

:root {
  --color-bg: #12100e;
  --color-bg-soft: #1c1814;
  --color-surface: rgba(28, 24, 20, 0.72);
  --color-surface-strong: rgba(34, 28, 24, 0.88);
  --color-text: #f0ebe3;
  --color-text-soft: #a89f94;
  --color-orange: #c86a32;
  --color-orange-soft: #d4824a;
  --color-gold: #b8922e;
  --color-gold-soft: #cfaa42;
  --gradient-brand: linear-gradient(135deg, var(--color-orange) 0%, var(--color-gold) 100%);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 14px;
  --transition-smooth: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  line-height: 1.6;
  top: 0 !important;
}

body.intro-active,
body.transition-active {
  overflow: hidden;
}

body.transition-active .site-header,
body.transition-active .main,
body.transition-active .site-footer {
  visibility: hidden;
}

/* Seitenwechsel-Vorhang */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  visibility: hidden;
}

.page-transition.is-active {
  visibility: visible;
  pointer-events: all;
}

.page-transition-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.page-transition.is-closed .page-transition-backdrop {
  opacity: 1;
}

.page-transition-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: linear-gradient(90deg, #0a0908 85%, rgba(200, 106, 50, 0.35) 100%);
  transition: transform 1s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 2;
}

.page-transition-curtain--left {
  left: 0;
  transform: translateX(-105%);
  box-shadow: 4px 0 40px rgba(200, 106, 50, 0.25);
}

.page-transition-curtain--right {
  right: 0;
  background: linear-gradient(270deg, #0a0908 85%, rgba(200, 106, 50, 0.35) 100%);
  transform: translateX(105%);
  box-shadow: -4px 0 40px rgba(200, 106, 50, 0.25);
}

.page-transition.is-closed .page-transition-curtain--left,
.page-transition.is-closed .page-transition-curtain--right {
  transform: translateX(0);
}

.page-transition-sweep {
  position: absolute;
  top: 0;
  left: -70%;
  z-index: 3;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 140, 0.4), transparent);
  transform: skewX(-15deg);
  opacity: 0;
  pointer-events: none;
}

.page-transition.is-active:not(.is-closed) .page-transition-sweep {
  animation: intro-sweep 1.2s ease-out 0.15s forwards;
}

/* Intro-Sequenz */
.intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: all;
}

.intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
}

.intro-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: linear-gradient(90deg, #0a0908 85%, rgba(200, 106, 50, 0.35) 100%);
  transition: transform 1.6s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 2;
}

.intro-curtain--left {
  left: 0;
  box-shadow: 4px 0 40px rgba(200, 106, 50, 0.25);
}

.intro-curtain--right {
  right: 0;
  background: linear-gradient(270deg, #0a0908 85%, rgba(200, 106, 50, 0.35) 100%);
  box-shadow: -4px 0 40px rgba(200, 106, 50, 0.25);
}

.intro.is-opening .intro-curtain--left { transform: translateX(-105%); }
.intro.is-opening .intro-curtain--right { transform: translateX(105%); }
.intro.is-opening .intro-backdrop { opacity: 0; transition: opacity 1.2s ease 0.3s; }

.intro-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.85) 0%, rgba(200, 106, 50, 0.4) 35%, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  mix-blend-mode: screen;
}

.intro.is-flash .intro-flash {
  animation: intro-flash 0.9s ease-out forwards;
}

@keyframes intro-flash {
  0% { opacity: 0; transform: scale(0.3); }
  25% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(2); }
}

.intro-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) scale(0.15);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro.is-logo .intro-logo-wrap {
  animation: intro-logo-in 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes intro-logo-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); filter: blur(12px) brightness(2); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); filter: blur(0) brightness(1.3); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0) brightness(1); }
}

.intro.is-opening .intro-logo-wrap {
  animation: intro-logo-out 0.8s ease-in forwards;
}

@keyframes intro-logo-out {
  to { opacity: 0; transform: translate(-50%, -58%) scale(1.15); filter: blur(6px); }
}

.intro-logo {
  position: relative;
  z-index: 2;
  width: min(320px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(200, 106, 50, 0.5));
}

.intro-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  opacity: 0;
}

.intro-ring--1 {
  inset: -30px;
  border-color: rgba(200, 106, 50, 0.5);
}

.intro-ring--2 {
  inset: -55px;
  border-color: rgba(184, 146, 46, 0.35);
}

.intro-ring--3 {
  inset: -80px;
  border-color: rgba(160, 90, 180, 0.25);
}

.intro.is-logo .intro-ring {
  animation: intro-ring 1.4s ease-out forwards;
}

.intro.is-logo .intro-ring--2 { animation-delay: 0.15s; }
.intro.is-logo .intro-ring--3 { animation-delay: 0.3s; }

@keyframes intro-ring {
  0% { opacity: 0; transform: scale(0.5); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.8); }
}

.intro-sweep {
  position: absolute;
  top: 0;
  left: -60%;
  z-index: 6;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 140, 0.45), rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-15deg);
  opacity: 0;
}

.intro.is-opening .intro-sweep {
  animation: intro-sweep 1.4s ease-out 0.15s forwards;
}

@keyframes intro-sweep {
  0% { left: -70%; opacity: 0; }
  15% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Partikel */
.particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.intro-done .particles {
  opacity: 1;
}

/* Elemente nach Intro */
.intro-hidden {
  opacity: 0;
  transform: translateY(24px);
}

body.intro-done .site-header,
body.intro-done .main,
body.intro-done .site-footer {
  visibility: visible;
}

body.intro-done .intro-hidden {
  animation: content-in 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.intro-done .site-header.intro-hidden { animation-delay: 0.2s; }
body.intro-done .hero-eyebrow.intro-hidden { animation-delay: 0.45s; }
body.intro-done .hero-logo.intro-hidden { animation-delay: 0.55s; }
body.intro-done .hero-subtitle.intro-hidden { animation-delay: 0.75s; }
body.intro-done .construction-card.intro-hidden { animation-delay: 1s; }
body.intro-done .hero-tags.intro-hidden { animation-delay: 1.25s; }
body.intro-done .site-footer.intro-hidden { animation-delay: 1.45s; }

@keyframes content-in {
  to { opacity: 1; transform: translateY(0); }
}

body.intro-done .nav-stagger {
  opacity: 0;
  transform: translateY(-12px);
  animation: nav-in 0.5s ease forwards;
}

body.intro-done .nav-stagger:nth-child(1) { animation-delay: 0.3s; }
body.intro-done .nav-stagger:nth-child(2) { animation-delay: 0.38s; }
body.intro-done .nav-stagger:nth-child(3) { animation-delay: 0.46s; }
body.intro-done .nav-stagger:nth-child(4) { animation-delay: 0.54s; }
body.intro-done .nav-stagger:nth-child(5) { animation-delay: 0.62s; }
body.intro-done .nav-stagger:nth-child(6) { animation-delay: 0.7s; }
body.intro-done .nav-stagger:nth-child(7) { animation-delay: 0.78s; }
body.intro-done .nav-stagger:nth-child(8) { animation-delay: 0.86s; }

@keyframes nav-in {
  to { opacity: 1; transform: translateY(0); }
}

body.intro-done .tag-stagger {
  opacity: 0;
  transform: scale(0.85);
  animation: tag-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

body.intro-done .tag-stagger:nth-child(1) { animation-delay: 0.95s; }
body.intro-done .tag-stagger:nth-child(2) { animation-delay: 1.05s; }
body.intro-done .tag-stagger:nth-child(3) { animation-delay: 1.15s; }
body.intro-done .tag-stagger:nth-child(4) { animation-delay: 1.25s; }
body.intro-done .tag-stagger:nth-child(5) { animation-delay: 1.35s; }

@keyframes tag-pop {
  to { opacity: 1; transform: scale(1); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hintergrund-Slideshow */
.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 2.2s ease-in-out, transform 8s ease-out;
}

.bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.84) 0%, rgba(18, 15, 12, 0.8) 45%, rgba(14, 12, 10, 0.86) 100%),
    radial-gradient(circle at 20% 20%, rgba(184, 146, 46, 0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200, 106, 50, 0.05), transparent 35%);
  backdrop-filter: blur(3px);
}

.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: 10%;
  left: -5%;
  background: rgba(184, 146, 46, 0.5);
}

.orb-2 {
  width: 220px;
  height: 220px;
  top: 55%;
  right: -3%;
  background: rgba(200, 106, 50, 0.45);
  animation-delay: -4s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: 35%;
  background: rgba(160, 90, 180, 0.25);
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.08); }
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s ease;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--color-bg-soft);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  list-style: none;
}

.nav-item {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
  border-radius: 999px;
  cursor: default;
  user-select: none;
  text-decoration: none;
  transition: color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

a.nav-item,
a.nav-subitem { cursor: pointer; }

/* Dropdown Rechtliches */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-icon::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-dropdown-icon::after {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  list-style: none;
  padding: 0.5rem;
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  z-index: 200;
}

.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-subitem {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-subitem:hover,
.nav-subitem.nav-item--active {
  color: var(--color-gold-soft);
  background: rgba(200, 106, 50, 0.12);
}

/* Sprachauswahl */
.nav-lang {
  display: flex;
  align-items: center;
}

.lang-select {
  padding: 0.4rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.lang-select:hover,
.lang-select:focus {
  border-color: rgba(200, 106, 50, 0.35);
  background: rgba(200, 106, 50, 0.1);
}

/* Google Translate */
.google-translate-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
.goog-te-menu-value span:first-child {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

body > .skiptranslate,
.skiptranslate iframe,
.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

.goog-te-gadget {
  font-size: 0 !important;
  color: transparent !important;
}

html.translated-ltr,
html.translated-rtl,
body {
  top: 0 !important;
  margin-top: 0 !important;
  position: static !important;
}

/* Rechtstexte */
.legal-prose .about-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold-soft);
}

.nav-item--active {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.nav-item:not(.nav-item--active):hover {
  color: var(--color-gold-soft);
  background: rgba(200, 106, 50, 0.12);
  transform: translateY(-1px);
}

/* Hauptinhalt */
.main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
}

.hero {
  width: 100%;
  max-width: 900px;
}

.hero-content {
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 1.15rem;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-gold-soft);
  background: rgba(200, 106, 50, 0.12);
  border-radius: 999px;
}

.hero-logo {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  margin: 0.75rem auto 1.25rem;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

body.intro-done .hero-logo.intro-hidden {
  animation: content-in 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 0.35em;
}

.hero-word {
  display: inline-block;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  filter: blur(6px);
}

body.intro-done .hero-word {
  animation: word-reveal 0.9s cubic-bezier(0.34, 1.2, 0.64, 1) forwards,
             shimmer 4s ease-in-out 1.6s infinite;
}

body.intro-done .hero-word:nth-child(1) { animation-delay: 0.45s, 1.6s; }
body.intro-done .hero-word:nth-child(2) { animation-delay: 0.62s, 1.75s; }

@keyframes word-reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--color-text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.subtitle-line {
  display: block;
  opacity: 0;
  transform: translateX(-20px);
}

body.intro-done .subtitle-line {
  animation: subtitle-in 0.7s ease forwards;
}

body.intro-done .subtitle-line:nth-child(1) { animation-delay: 0.55s; }
body.intro-done .subtitle-line:nth-child(2) { animation-delay: 0.68s; }

@keyframes subtitle-in {
  to { opacity: 1; transform: translateX(0); }
}

/* Baustellen-Karte */
.construction-card {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 2rem 2rem 1.75rem;
  text-align: left;
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-soft);
  background: rgba(200, 106, 50, 0.14);
  border-radius: 999px;
}

.construction-dot {
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.construction-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: 0.6rem;
  background: var(--color-orange);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s ease-out infinite;
}

.construction-badge {
  position: relative;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

.construction-text {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.construction-progress {
  height: 6px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.construction-progress-bar {
  width: 0;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 999px;
}

body.intro-done .construction-progress-bar {
  animation: progress-fill 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards,
             progress-glow 2.5s ease-in-out 2.3s infinite;
}

@keyframes progress-fill {
  to { width: 35%; }
}

@keyframes progress-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(200, 106, 50, 0.25); }
  50% { box-shadow: 0 0 14px rgba(184, 146, 46, 0.35); }
}

.construction-hint {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(168, 159, 148, 0.65);
}

/* Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero-tags span {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.hero-tags span:hover {
  transform: translateY(-3px);
  color: var(--color-text);
  border-color: rgba(200, 106, 50, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Unterseiten */
.main--page {
  align-items: flex-start;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.page-content {
  width: 100%;
  max-width: 860px;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  background: rgba(200, 106, 50, 0.12);
  border-radius: 999px;
}

.page-title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.85);
  paint-order: stroke fill;
}

.page-lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.about-section,
.about-block {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.about-section h2 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-gold-soft);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.85);
  paint-order: stroke fill;
}

.about-section p,
.about-block p {
  margin-bottom: 1rem;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.about-section p:last-child,
.about-block p:last-child {
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.about-grid--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.about-grid--reverse .about-figure {
  order: -1;
}

.about-figure {
  margin: 0;
  text-align: center;
}

.about-figure img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-md);
  border: 2px solid rgba(200, 106, 50, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-figure img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(200, 106, 50, 0.15);
}

.about-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: rgba(168, 159, 148, 0.8);
  font-style: italic;
}

.about-figure--hero {
  margin-top: 1.5rem;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.about-closing {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
  color: var(--color-text) !important;
  text-align: center;
}

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

/* Partner-Links (Footer + Startseite) */
.partner-bar {
  max-width: 720px;
  margin: 0 auto 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.partner-bar-label,
.partner-note-label {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.partner-bar-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-bar-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 48px;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-bar-list a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.partner-bar-list img {
  display: block;
  max-height: 36px;
  max-width: 108px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-ssl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  line-height: 1.45;
}

.partner-ssl-icon {
  flex-shrink: 0;
  color: var(--color-gold-soft);
  width: 15px;
  height: 15px;
}

.partner-note {
  margin: 2rem 0 0.75rem;
  padding: 1.15rem 1.25rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(28, 24, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-note-label {
  margin-bottom: 0.75rem;
}

.partner-note .partner-bar-list a {
  min-width: 108px;
  min-height: 54px;
  padding: 0.45rem 0.75rem;
}

.partner-note .partner-bar-list img {
  max-height: 42px;
  max-width: 124px;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-menu {
    position: fixed;
    top: 5.5rem;
    left: 1.5rem;
    right: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--color-surface-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: var(--transition-smooth);
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item {
    text-align: center;
    padding: 0.7rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .construction-card {
    padding: 1.5rem;
  }

  .about-grid,
  .about-grid--reverse {
    grid-template-columns: 1fr;
  }

  .about-grid--reverse .about-figure {
    order: 0;
  }

  .about-section,
  .about-block {
    padding: 1.5rem;
  }

  .nav-submenu {
    position: static;
    margin-top: 0.35rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 0.5rem;
  }

  .nav-dropdown.open .nav-submenu {
    display: block;
  }

  .partner-bar-list a {
    min-width: 88px;
    min-height: 44px;
  }

  .partner-bar-list img {
    max-height: 32px;
    max-width: 96px;
  }

  .partner-note {
    padding: 1rem;
  }

  .partner-note .partner-bar-list img {
    max-height: 36px;
    max-width: 108px;
  }
}

/* Startseite */
.main--home {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.home-hero {
  max-width: 860px;
  width: 100%;
  margin: 0 auto 2.5rem;
}

.home-hero-lead {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.home-hero-cta {
  margin-bottom: 1.5rem;
}

.home-content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.home-showcase {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-showcase-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  background: var(--color-surface-strong);
}

.home-showcase-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.home-showcase-item--lead img {
  min-height: 280px;
}

.home-showcase-item figcaption,
.home-gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.45;
}

.home-banner {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-surface-strong);
}

.home-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.home-cta .page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.home-cta-phone {
  margin-top: 1rem;
  color: var(--color-text-soft);
}

.home-cta-phone a {
  color: var(--color-gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.home-cta-phone a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.faq-question {
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  line-height: 1.45;
  transition: color 0.2s ease, background 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  float: right;
  font-size: 1.25rem;
  color: var(--color-gold-soft);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question {
  color: var(--color-gold-soft);
  background: rgba(200, 106, 50, 0.08);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.faq-answer p { margin: 0; }

.faq-cta {
  margin-top: 2rem;
  text-align: center;
  color: var(--color-text-soft);
}

.faq-cta a {
  color: var(--color-gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kontakt */
.contact-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-quick-link:hover {
  border-color: rgba(200, 106, 50, 0.35);
  transform: translateY(-2px);
}

.contact-quick-link strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.contact-quick-link span {
  color: var(--color-text);
  font-size: 1.05rem;
}

.contact-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-soft);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.contact-tab.is-active {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.contact-panel {
  padding: 2rem;
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.contact-panel[hidden] { display: none; }

.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-required { color: var(--color-gold-soft); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(200, 106, 50, 0.45);
  box-shadow: 0 0 0 3px rgba(200, 106, 50, 0.12);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #6ee7a0;
}

.form-status.is-error {
  color: #f0a0a8;
}

.form-hint {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Social Media */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  text-decoration: none;
  text-align: center;
  background: var(--color-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 106, 50, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.social-card-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
}

.social-card-handle {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.social-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.social-card-icon svg {
  display: block;
  width: 48px;
  height: 48px;
}

.social-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--color-text-soft);
}

.social-note a {
  color: var(--color-gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .home-showcase,
  .home-gallery {
    grid-template-columns: 1fr;
  }

  .contact-quick { grid-template-columns: 1fr; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .contact-tabs { flex-direction: column; border-radius: var(--radius-md); }
  .contact-tab { border-radius: var(--radius-sm); }
}

/* Admin-Nav (nur nach ?acode= sichtbar) */
.nav-admin .nav-item {
  color: var(--color-gold-soft);
  border: 1px solid rgba(207, 170, 66, 0.35);
}

.nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(207, 170, 66, 0.35);
  border-radius: 999px;
  background: rgba(200, 106, 50, 0.1);
  color: var(--color-gold-soft);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-logout:hover,
.nav-logout:focus-visible {
  background: rgba(200, 106, 50, 0.22);
  border-color: rgba(200, 106, 50, 0.55);
  color: var(--color-text);
  outline: none;
}

.nav-logout-icon {
  display: block;
}

/* Statistik-Dashboard */
.stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-period-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.stats-period-select {
  min-width: 9.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.stats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stats-filter {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-soft);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.stats-filter.is-active,
.stats-filter:hover {
  color: var(--color-gold-soft);
  border-color: rgba(200, 106, 50, 0.45);
  background: rgba(200, 106, 50, 0.12);
}

.stats-meta {
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stats-card {
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stats-card-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.stats-card-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.stats-section {
  margin-bottom: 2.25rem;
}

.stats-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  color: var(--color-gold-soft);
}

.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 180px;
  padding: 1rem 1rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.stats-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 28px;
  flex: 1;
  height: 150px;
}

.stats-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 120px;
}

.stats-bar-fill {
  width: 100%;
  max-width: 22px;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--color-gold-soft), rgba(200, 106, 50, 0.45));
  transition: height 0.4s ease;
}

.stats-chart--hourly .stats-bar {
  min-width: 22px;
}

.stats-bar-fill--hourly {
  background: linear-gradient(180deg, #2a9d8f, rgba(42, 157, 143, 0.4));
}

.stats-chart[data-density="compact"] {
  gap: 0.18rem;
}

.stats-chart[data-density="dense"],
.stats-chart[data-density="ultra"] {
  gap: 0.08rem;
}

.stats-chart[data-density="compact"] .stats-bar {
  min-width: 16px;
  height: 155px;
}

.stats-chart[data-density="dense"] .stats-bar,
.stats-chart[data-density="ultra"] .stats-bar {
  min-width: 8px;
  height: 160px;
}

.stats-chart[data-density="compact"] .stats-bar-fill {
  max-width: 12px;
  border-radius: 4px 4px 1px 1px;
}

.stats-chart[data-density="dense"] .stats-bar-fill,
.stats-chart[data-density="ultra"] .stats-bar-fill {
  max-width: 6px;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
}

.stats-bar-label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-soft);
  white-space: nowrap;
}

.stats-bar-label.is-hidden {
  visibility: hidden;
}

.stats-chart[data-density="compact"] .stats-bar-label {
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  transform: rotate(-45deg);
  transform-origin: top center;
  margin-top: 0.55rem;
  height: 1.6rem;
}

.stats-chart[data-density="dense"] .stats-bar-label,
.stats-chart[data-density="ultra"] .stats-bar-label {
  font-size: 0.42rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  transform: rotate(-60deg);
  transform-origin: top center;
  margin-top: 0.65rem;
  height: 1.8rem;
}

.stats-pies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.stats-pie-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.stats-pie-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--color-gold-soft);
}

.stats-pie-card .stats-hint {
  margin: 0 0 1rem;
}

.stats-pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.stats-pie-svg {
  width: min(100%, 210px);
  height: auto;
  display: block;
}

.stats-pie-legend {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stats-pie-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--color-text);
}

.stats-pie-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.stats-pie-legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-soft);
}

.stats-pie-legend-value {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  white-space: nowrap;
}

.stats-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.stats-table th,
.stats-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table td {
  color: var(--color-text);
}

.stats-empty {
  text-align: center;
  color: var(--color-text-soft);
  padding: 1.25rem !important;
}

.stats-error {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(180, 40, 40, 0.18);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #ffb8b8;
}

.stats-hint {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.55;
  margin-top: 0.5rem;
}

.stats-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-soft);
}

.stats-badge--returning {
  background: rgba(200, 106, 50, 0.18);
  color: var(--color-gold-soft);
}

/* === Admin Login === */
.admin-login {
  max-width: 520px;
}

.admin-login-card {
  margin-top: 0.5rem;
}

.admin-login .inv-gate-form {
  max-width: none;
}

.admin-login .inv-btn {
  width: 100%;
}

/* === Rechnungen === */
.inv-gate-form,
.inv-card {
  max-width: 720px;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.inv-gate-form h2,
.inv-card h3 {
  margin: 0 0 0.75rem;
  color: var(--color-gold-soft);
}

.inv-label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

.inv-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-text);
  font: inherit;
}

.inv-btn {
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #1a140f;
  font-weight: 600;
  cursor: pointer;
}

.inv-btn--small {
  margin-top: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.inv-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  white-space: nowrap;
}

.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.inv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.inv-tab {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
}

.inv-tab.is-active {
  background: rgba(200, 106, 50, 0.2);
  color: var(--color-gold-soft);
  border-color: rgba(200, 106, 50, 0.45);
}

.inv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.inv-filters .inv-input {
  max-width: 260px;
}

.inv-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.inv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.inv-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.inv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.inv-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.inv-item-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 0.8fr 0.8fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: start;
}

.inv-item-row .inv-item-service {
  grid-column: 1 / -1;
}

.inv-link {
  background: none;
  border: none;
  color: var(--color-gold-soft);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-right: 0.55rem;
  font: inherit;
}

.inv-muted {
  color: var(--color-text-soft);
  font-size: 0.85em;
}

.inv-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 1rem;
}

.inv-inline {
  margin: 0;
}

.invoice-sheet {
  background: #fff;
  color: #1a1a1a;
  padding: 1.5rem 1.6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0;
  word-spacing: normal;
}

.invoice-pdf-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 210mm;
  background: #fff;
  z-index: -1;
  pointer-events: none;
}

.invoice-sheet--pdf {
  box-shadow: none;
  border-radius: 0;
  width: 186mm;
  max-width: 186mm;
  padding: 0;
  margin: 0;
  min-height: 240mm;
}

.invoice-top--pdf {
  position: static !important;
  min-height: 0 !important;
  margin: 0 0 14px !important;
}

.invoice-logo--pdf {
  width: 210px !important;
  max-width: 210px !important;
  margin: 0 auto 10px !important;
}

.invoice-return--pdf {
  position: static !important;
  top: auto !important;
  left: auto !important;
  max-width: none !important;
  margin: 0 0 18px !important;
}

.invoice-sheet-inner--pdf .invoice-meta-grid {
  margin-top: 0;
}

.invoice-top {
  position: relative;
  margin-bottom: 0.35rem;
  min-height: 9.5rem;
}

.invoice-logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.invoice-logo {
  display: block;
  width: 340px;
  max-width: 78%;
  height: auto;
}

.invoice-return {
  position: absolute;
  left: 0;
  top: 58%;
  font-size: 10px;
  color: #555;
  border-bottom: 1px solid #bbb;
  padding-bottom: 2px;
  max-width: 280px;
  letter-spacing: 0;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0.35rem 0 1.2rem;
  padding-top: 0.15rem;
}

.invoice-address p {
  margin: 0;
}

.invoice-meta div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.invoice-meta span {
  color: #444;
}

.invoice-title {
  font-size: 1.35rem;
  margin: 0 0 0.55rem;
  color: #1d4f91;
}

.invoice-intro {
  margin: 0 0 0.9rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.9rem;
}

.invoice-table th {
  background: #2f6db3;
  color: #fff;
  text-align: left;
  padding: 0.45rem 0.5rem;
  font-weight: 600;
}

.invoice-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #d7d7d7;
}

.invoice-table .num {
  text-align: right;
  white-space: nowrap;
}

.invoice-totals {
  margin-left: auto;
  width: min(320px, 100%);
  margin-bottom: 1rem;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
}

.invoice-total-row--strong {
  color: #1d4f91;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.invoice-vat-note {
  margin: 0.45rem 0 0;
  font-size: 0.92em;
  color: #333;
}

.invoice-extra {
  margin: 0.85rem 0 0.75rem;
  white-space: pre-wrap;
  line-height: 1.5;
}

.invoice-payment,
.invoice-payment-hint,
.invoice-thanks {
  margin: 0.45rem 0;
}

.stats-badge--cancelled {
  background: rgba(180, 40, 40, 0.2);
  color: #ffb8b8;
}

.inv-row--cancelled td {
  opacity: 0.72;
}

.invoice-cancelled-note {
  margin: 0.6rem 0;
  font-weight: 700;
  color: #b00020;
  letter-spacing: 0.08em;
}

.invoice-sheet-inner.is-cancelled {
  position: relative;
}

.invoice-sheet-inner.is-cancelled::after {
  content: "STORNIERT";
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(176, 0, 32, 0.18);
  pointer-events: none;
  white-space: nowrap;
}

.invoice-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid #ccc;
  font-size: 10.5px;
  color: #333;
  letter-spacing: 0;
  word-spacing: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.invoice-footer div {
  overflow-wrap: anywhere;
  word-break: normal;
}

.invoice-footer .invoice-nowrap {
  white-space: nowrap;
}

.invoice-page {
  text-align: right;
  margin: 0.4rem 0 0;
  font-size: 10px;
  color: #666;
}

  @media (max-width: 900px) {
  .inv-grid,
  .inv-row,
  .inv-row--3,
  .inv-item-row,
  .invoice-meta-grid,
  .invoice-footer {
    grid-template-columns: 1fr;
  }

  .inv-item-row .inv-item-service {
    grid-column: auto;
  }

  .invoice-top {
    min-height: 0;
  }

  .invoice-return {
    position: static;
    margin-top: 0.75rem;
  }

  .invoice-logo {
    width: 280px;
    max-width: 90%;
  }
}

@media print {
  body.page-invoices * {
    visibility: hidden;
  }

  body.page-invoices .invoice-sheet,
  body.page-invoices .invoice-sheet * {
    visibility: visible;
  }

  body.page-invoices .invoice-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .no-print,
  .site-header,
  .site-footer,
  .particles,
  .bg-slideshow,
  .bg-overlay,
  .ambient-orbs,
  .page-transition {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-slide { transition-duration: 0.8s; }
  .intro-curtain { transition-duration: 0.8s; }
  .particles { display: none; }
}
