/**
 * Kay Maik Fotografie - Built CSS (admin-portal.built.css)
 * Generated: 2026-05-13T21:34:44.468Z
 * DO NOT EDIT - run "node scripts/build-css.js" to regenerate
 */

/* ============================================================
 * Source: components/portal-auth.css
 * ============================================================ */
/**
 * Portal Component (Customer Portal)
 * ====================================
 * Kundenportal: Login, Sidebar, Topbar, Dashboard,
 * Anfragen, Dokumente, Galerien, Profil, Modals
 *
 * Uses CSS custom properties defined in main.css :root
 */

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */

.portal-login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-background);
  padding: var(--spacing-lg);
  overflow: hidden;
}

/* Decorative radial gold circles (CSS only, no images) */
.portal-login::before,
.portal-login::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.portal-login::before {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle,
      rgba(201, 168, 108, 0.12) 0%,
      rgba(201, 168, 108, 0.04) 40%,
      transparent 70%);
}

.portal-login::after {
  width: 600px;
  height: 600px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle,
      rgba(212, 188, 142, 0.10) 0%,
      rgba(212, 188, 142, 0.03) 45%,
      transparent 70%);
}

/* Third decorative circle via child element */
.portal-login__bg-circle {
  position: absolute;
  width: 350px;
  height: 350px;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(184, 149, 106, 0.08) 0%,
      rgba(184, 149, 106, 0.02) 50%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Login Card */
.portal-login__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  text-align: center;
}

.portal-login__logo {
  width: 80px;
  height: auto;
  margin: 0 auto var(--spacing-lg);
  display: block;
}

.portal-login__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.portal-login__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Form */
.portal-login__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.portal-login__input {
  width: 100%;
  padding: var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(201, 168, 108, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  outline: none;
}

.portal-login__input::placeholder {
  color: var(--color-text-muted);
}

.portal-login__input:hover {
  border-color: rgba(201, 168, 108, 0.4);
}

.portal-login__input:focus,
.portal-login__input:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
  background: rgba(255, 255, 255, 0.85);
  outline: none !important;
  outline-offset: 0 !important;
}

/* Password Toggle */
.portal-login__password-wrapper {
  position: relative;
  width: 100%;
}

.portal-login__password-wrapper .portal-login__input {
  padding-right: 48px;
}

.portal-login__pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.portal-login__pw-toggle:hover {
  color: var(--color-primary);
}

.portal-login__pw-toggle svg,
.portal-login__pw-toggle i {
  width: 18px;
  height: 18px;
}

/* Login Submit */
.portal-login__submit {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: var(--spacing-sm);
}

.portal-login__submit:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.portal-login__submit:active {
  transform: translateY(0) scale(0.98);
}

.portal-login__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Login Error */
.portal-login__error {
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  display: none;
  margin-bottom: var(--spacing-md);
}

.portal-login__error.is-visible {
  display: block;
}

/* Forgot Password Link */
.portal-login__forgot {
  display: inline-block;
  margin-top: var(--spacing-lg);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.portal-login__forgot:hover {
  color: var(--color-primary);
}

/* Login Divider */
.portal-login__divider {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(201, 168, 108, 0.15);
}

/* Back to Home Link */
.portal-login__back {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.portal-login__back:hover {
  color: var(--color-primary);
}

.portal-login__back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ==========================================================================
   LOADING STATE
   ========================================================================== */

.portal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4xl) var(--spacing-lg);
  min-height: 200px;
}

.portal-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(201, 168, 108, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: portal-spin 0.8s linear infinite;
}

@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
 * Source: components/portal-layout.css
 * ============================================================ */
/**
 * Portal Layout (Dashboard Shell)
 * ===================================
 * Dashboard wrapper, sidebar, topbar, main content area,
 * footer, bottom navigation, responsive breakpoints,
 * backdrop-filter fallback, print styles
 */

/* ==========================================================================
   DASHBOARD LAYOUT WRAPPER
   ========================================================================== */

.portal-dashboard {
  display: none;
  min-height: 100vh;
  background-color: var(--color-background);
  /* Elevated Cards Design Tokens */
  --elevated-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --elevated-shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --elevated-shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --elevated-shadow-hover: 0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --elevated-card-bg: rgba(255, 255, 255, 0.92);
  --elevated-card-border: rgba(255, 255, 255, 0.6);
  --elevated-radius: 12px;
  --elevated-radius-inner: 8px;
  --elevated-transition: 200ms ease;
  --stat-color-inquiries: #C9A86C;
  --stat-color-offers: #5B8FB9;
  --stat-color-invoices: #7C9A7C;
  --stat-color-appointments: #9B7CB8;
  --stat-color-galleries: #C97C7C;
}

.portal-dashboard.is-active {
  display: flex;
  flex-direction: column;
}

.portal-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.portal-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.04);
  z-index: var(--z-fixed);
  transition: width var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
}

/* Sidebar Logo Area */
.portal-sidebar__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 var(--spacing-sm) 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
}

.portal-sidebar__logo img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  margin: -10px 0 -15px;
}

.portal-sidebar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  line-height: 1;
  transition: opacity var(--transition-normal);
}

/* Sidebar Navigation */
.portal-sidebar__nav {
  flex: 1;
  padding: var(--spacing-md) 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.portal-sidebar__nav-group {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-sidebar__nav-item {
  position: relative;
}

.portal-sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: 2px var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  width: calc(100% - var(--spacing-sm) * 2);
}

.portal-sidebar__nav-link:hover {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.06);
}

.portal-sidebar__nav-link.is-active {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.portal-sidebar__nav-link svg,
.portal-sidebar__nav-link i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.portal-sidebar__nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition-normal);
}

/* Sidebar Sub-items */
.portal-sidebar__sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-normal);
}

.portal-sidebar__nav-item.is-expanded .portal-sidebar__sub-list {
  max-height: 200px;
}

.portal-sidebar__sub-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-xl);
  padding-left: calc(var(--spacing-xl) + 20px + var(--spacing-md));
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 36px;
}

.portal-sidebar__sub-link:hover {
  color: var(--color-primary);
}

.portal-sidebar__sub-link.is-active {
  color: var(--color-primary);
  font-weight: 500;
}

/* Sidebar Chevron for expandable items */
.portal-sidebar__nav-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.portal-sidebar__nav-item.is-expanded .portal-sidebar__nav-chevron {
  transform: rotate(180deg);
}

/* Sidebar Logout */
.portal-sidebar__logout {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.portal-sidebar__logout:hover {
  color: #C47C7C;
  background: rgba(196, 124, 124, 0.08);
}

.portal-sidebar__logout svg,
.portal-sidebar__logout i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.portal-sidebar__logout-label {
  overflow: hidden;
  transition: opacity var(--transition-normal);
}


/* ==========================================================================
   TOP HEADER BAR
   ========================================================================== */

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 108, 0.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  min-height: 60px;
}

.portal-topbar__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
}

.portal-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.portal-topbar__welcome {
  font-size: 0.85rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.portal-topbar__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.15);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.portal-topbar__logout {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.portal-topbar__logout:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: rgba(201, 168, 108, 0.08);
}

.portal-topbar__logout svg,
.portal-topbar__logout i {
  width: 16px;
  height: 16px;
}

/* Mobile sidebar toggle in topbar */
.portal-topbar__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.portal-topbar__menu-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.portal-topbar__menu-toggle svg,
.portal-topbar__menu-toggle i {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.portal-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Admin Preview Banner (shown when admin views portal as customer) */
.portal-admin-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-xl);
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.12), rgba(201, 168, 108, 0.06));
  border-bottom: 1px solid rgba(201, 168, 108, 0.2);
  font-size: 0.82rem;
  color: var(--color-primary-dark);
}

.portal-admin-preview svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.portal-admin-preview__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
  border: 1px solid rgba(201, 168, 108, 0.3);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.portal-admin-preview__back:hover {
  background: rgba(201, 168, 108, 0.2);
  border-color: var(--color-primary);
}

.portal-admin-preview__back svg {
  width: 14px;
  height: 14px;
}

.portal-content {
  flex: 1;
  padding: var(--spacing-2xl);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: #FAFAF7;
}

/* Section visibility: only one visible at a time */
.portal-section {
  display: none;
}

.portal-section.is-active {
  display: block;
}



/* ==========================================================================
   FOOTER
   ========================================================================== */

.portal-footer {
  border-top: 1px solid rgba(201, 168, 108, 0.1);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.5);
}

.portal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-md);
  max-width: 1100px;
  margin: 0 auto;
  font-size: 11px;
  color: var(--color-text-muted);
}

.portal-footer__social {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.portal-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.portal-footer__social a:hover {
  color: var(--color-primary);
}

.portal-footer__social a svg,
.portal-footer__social a i {
  width: 16px;
  height: 16px;
}

.portal-footer__divider {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1;
}

.portal-footer__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.portal-footer__links a {
  font-size: 11px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.portal-footer__links a:hover {
  color: var(--color-primary);
}

.portal-footer__copy {
  font-size: 11px;
  color: var(--color-text-muted);
}


/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */

.portal-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 168, 108, 0.12);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
  padding: var(--spacing-xs) 0;
  padding-bottom: env(safe-area-inset-bottom, var(--spacing-xs));
}

.portal-bottom-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-bottom-nav__item {
  flex: 1;
}

.portal-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--spacing-xs) var(--spacing-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.portal-bottom-nav__link.is-active {
  color: var(--color-primary);
}

.portal-bottom-nav__link:hover {
  color: var(--color-primary);
}

.portal-bottom-nav__link svg,
.portal-bottom-nav__link i {
  width: 22px;
  height: 22px;
}


/* ==========================================================================
   RESPONSIVE: TABLET (768px - 1023px) — Collapsed sidebar
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .portal-sidebar {
    width: 64px;
  }

  .portal-sidebar__logo-text,
  .portal-sidebar__nav-label,
  .portal-sidebar__nav-chevron,
  .portal-sidebar__logout-label {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
  }

  .portal-sidebar__logo {
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs);
  }

  .portal-sidebar__logo img {
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .portal-sidebar__nav-link {
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-sm);
    border-left-width: 0;
  }

  .portal-sidebar__nav-link.is-active {
    border-left-width: 0;
    background: rgba(201, 168, 108, 0.12);
    border-radius: var(--radius-md);
    margin: 0 var(--spacing-xs);
  }

  .portal-sidebar__sub-list {
    display: none;
  }

  .portal-sidebar__logout {
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .portal-main {
    margin-left: 64px;
  }

}

/* Gallery grid: hero banners stack vertically at all sizes */


/* ==========================================================================
   RESPONSIVE: DESKTOP (1024px+) — Full sidebar
   ========================================================================== */

@media (min-width: 1024px) {
  .portal-topbar__menu-toggle {
    display: none;
  }
}


/* ==========================================================================
   RESPONSIVE: MOBILE (<768px) — No sidebar, bottom nav
   ========================================================================== */

@media (max-width: 767px) {

  /* Sidebar als Overlay auf Mobile (standardmaessig versteckt) */
  .portal-sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: calc(var(--z-fixed) + 1);
  }

  .portal-sidebar.is-open {
    transform: translateX(0);
  }

  /* Bottom-Nav verstecken — Hamburger uebernimmt Navigation */
  .portal-bottom-nav {
    display: none;
  }

  /* Hamburger-Menu anzeigen */
  .portal-topbar__menu-toggle {
    display: flex;
  }

  /* Remove sidebar margin from main and footer */
  .portal-main {
    margin-left: 0;
  }

  .portal-footer {
    padding-bottom: var(--spacing-xl);
  }

  /* Topbar adjustments */
  .portal-topbar {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .portal-topbar__welcome {
    display: none;
  }

  .portal-topbar__title {
    font-size: 1.2rem;
    font-weight: 600;
  }

  /* Content padding */
  .portal-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  /* Content: Standard-Padding */
  .portal-content {
    padding-bottom: var(--spacing-lg);
  }

  /* --- WELCOME CARD --- */
  .portal-welcome {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    text-align: center;
    justify-content: center;
  }

  .portal-welcome__content { text-align: center; }

  .portal-welcome__greeting {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .portal-welcome__title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .portal-welcome__text {
    font-size: 0.78rem;
    max-width: 100%;
    line-height: 1.55;
  }

  .portal-welcome__decoration { display: none; }

  .portal-welcome::before {
    top: -30%;
    right: -15%;
    width: 160px;
    height: 160px;
  }

  /* --- STATS: elegante 2er-Kacheln --- */
  .portal-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .portal-stat {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    gap: 0.6rem;
  }

  .portal-stat__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .portal-stat__icon svg,
  .portal-stat__icon i {
    width: 16px;
    height: 16px;
  }

  .portal-stat__value {
    font-size: 1.35rem;
    line-height: 1;
  }

  .portal-stat__label {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .portal-stat__arrow {
    opacity: 0.3;
    transform: none;
    width: 14px;
    height: 14px;
  }

  .portal-stat__arrow svg,
  .portal-stat__arrow i {
    width: 14px;
    height: 14px;
  }

  /* Letzte Stat-Kachel bei ungerader Anzahl */
  .portal-stat:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
  }

  /* --- ACTIVITY --- */
  .portal-activity {
    padding: 1.15rem;
    border-radius: 14px;
  }

  .portal-activity__header {
    margin-bottom: 0.75rem;
  }

  .portal-activity__title {
    font-size: 1.05rem;
  }

  .portal-activity__item {
    padding: 0.5rem 0.6rem;
    gap: 0.6rem;
    border-radius: 8px;
  }

  .portal-activity__text,
  .portal-activity__link {
    font-size: 0.78rem;
  }

  .portal-activity__date {
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  /* --- SECTION HEADERS --- */
  /* Auf Mobile ausblenden, da der Topbar-Titel die Sektion anzeigt */
  .portal-section__header {
    display: none;
  }

  /* --- INQUIRY CARDS --- */
  .inquiry-card {
    padding: var(--spacing-md);
  }

  .inquiry-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .inquiry-card__theme {
    font-size: 1.15rem;
    font-weight: 600;
  }

  .inquiry-card__meta {
    gap: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
  }

  /* --- DOCUMENT ITEMS --- */
  .document-item {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .document-item__icon {
    width: 36px;
    height: 36px;
  }

  .document-item__icon svg,
  .document-item__icon i {
    width: 16px;
    height: 16px;
  }

  .document-item__title {
    font-size: 0.82rem;
  }

  .document-item__meta {
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: var(--spacing-xs);
  }

  .document-item__arrow {
    display: none;
  }

  /* Touch-Targets: Minimum 44px */
  .document-item__action {
    width: 44px;
    height: 44px;
  }

  .document-item__download {
    min-width: 44px;
    min-height: 44px;
  }

  /* --- APPOINTMENT ITEMS --- */
  .appointment-item {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .appointment-item__icon {
    width: 36px;
    height: 36px;
  }

  .appointment-item__icon svg,
  .appointment-item__icon i {
    width: 16px;
    height: 16px;
  }

  .appointment-item__title {
    font-size: 0.88rem;
  }

  .appointment-item__meta {
    font-size: 0.72rem;
    gap: var(--spacing-xs);
  }

  .appointment-item__arrow {
    display: none;
  }

  .appointment-group__title {
    font-size: 0.88rem;
  }

  /* --- PROFILE --- */
  .portal-profile__card {
    padding: var(--spacing-md);
  }

  .portal-profile__btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .portal-profile__actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  /* --- DETAIL MODAL --- */
  .portal-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .portal-modal {
    margin: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    padding: var(--spacing-lg) var(--spacing-md);
    width: 100%;
    max-width: 100%;
  }

  .portal-modal__close {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* --- TOPBAR --- */
  .portal-topbar__menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .portal-topbar__logout {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }

  /* --- BOTTOM-NAV --- */
  .portal-bottom-nav__link {
    font-size: 0.68rem;
    min-height: 44px;
    justify-content: center;
    gap: 2px;
  }

  .portal-bottom-nav__link svg,
  .portal-bottom-nav__link i {
    width: 20px;
    height: 20px;
  }

  /* --- LOGIN --- */
  .portal-login__card {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  /* --- FOOTER --- */
  .portal-footer__inner {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .portal-footer__divider {
    display: none;
  }
}

/* Extra small mobile (<380px) */
@media (max-width: 380px) {
  .portal-content {
    padding-left: var(--spacing-xs);
    padding-right: var(--spacing-xs);
  }

  .portal-login__card {
    padding: var(--spacing-xl) var(--spacing-md);
    margin: var(--spacing-sm);
    max-width: none;
  }

  .portal-login__title {
    font-size: 1.5rem;
  }

  .portal-stats {
    gap: 0.45rem;
  }

  .portal-stat {
    padding: 0.7rem 0.75rem;
    gap: 0.5rem;
  }

  .portal-stat__value {
    font-size: 1.2rem;
  }

  .portal-stat__label {
    font-size: 0.6rem;
  }

  .portal-stat__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .portal-stat__icon svg,
  .portal-stat__icon i {
    width: 14px;
    height: 14px;
  }

  .portal-sidebar {
    width: 260px;
  }

  /* Welcome kompakter */
  .portal-welcome {
    padding: 1.15rem 1rem;
  }

  .portal-welcome__title {
    font-size: 1.25rem;
  }

  .portal-welcome__text {
    font-size: 0.75rem;
  }

  /* Section Headers */
  .portal-section__header {
    font-size: 1rem;
  }

  /* Inquiry Cards */
  .inquiry-card {
    padding: var(--spacing-sm);
  }

  .inquiry-card__theme {
    font-size: 1.1rem;
    font-weight: 600;
  }

  /* Document-Items: Kompakter */
  .document-item {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Appointment-Items: Kompakter */
  .appointment-item {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Activity */
  .portal-activity {
    padding: 0.85rem;
  }

  .portal-activity__title {
    font-size: 0.95rem;
  }

  .portal-activity__item {
    padding: 0.4rem 0.35rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .portal-activity__text,
  .portal-activity__link {
    font-size: 0.75rem;
  }

  .portal-activity__date {
    width: 100%;
    padding-left: calc(7px + 0.4rem);
    font-size: 0.62rem;
  }

  /* Modal fullscreen */
  .portal-modal {
    max-height: 95vh;
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  /* Profile */
  .portal-profile__card {
    padding: var(--spacing-sm);
  }
}

/* Small mobile document stacking (<480px) */
@media (max-width: 480px) {
  .portal-login__card {
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
  }
}


/* ==========================================================================
   BACKDROP-FILTER FALLBACK
   ========================================================================== */

@supports not (backdrop-filter: blur(10px)) {

  .portal-login__card,
  .portal-sidebar,
  .portal-topbar,
  .portal-modal,
  .portal-bottom-nav {
    background: rgba(255, 255, 255, 0.97);
  }

  .portal-welcome,
  .portal-stat,
  .portal-activity,
  .inquiry-card,
  .document-item,
  .appointment-item,
  .portal-gallery-card,
  .portal-profile__card {
    background: rgba(255, 255, 255, 0.97);
  }

  .portal-modal-overlay {
    background: rgba(0, 0, 0, 0.65);
  }
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {

  .portal-sidebar,
  .portal-topbar,
  .portal-bottom-nav,
  .portal-footer,
  .portal-login {
    display: none !important;
  }

  .portal-main {
    margin-left: 0 !important;
  }

  .portal-content {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .portal-section {
    break-inside: avoid;
  }
}

/* ==========================================================================
   BOTTOM NAV - "Mehr" POPUP
   ========================================================================== */

.portal-bottom-nav__item--more {
  position: relative;
}

.portal-bottom-nav__popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: var(--spacing-xs) 0;
  list-style: none;
  margin: 0;
  z-index: 100;
}

.portal-bottom-nav__popup.is-open {
  display: block;
}

.portal-bottom-nav__popup li a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.portal-bottom-nav__popup li a:hover {
  background: rgba(201, 168, 108, 0.1);
}

.portal-bottom-nav__popup li a svg,
.portal-bottom-nav__popup li a i {
  width: 18px;
  height: 18px;
  color: var(--color-gold, #C9A86C);
}

/* ============================================================
 * Source: components/portal-sections.css
 * ============================================================ */
/**
 * Portal Content Sections
 * ===================================
 * Overview/Dashboard cards, section headers, inquiry cards,
 * documents, appointments, profile, empty states, toast,
 * handbuch (manual)
 */

/* ==========================================================================
   OVERVIEW SECTION
   ========================================================================== */

/* Welcome Card */
/* ---- Staggered fade-in animation ---- */
@keyframes portalFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portal-welcome,
.portal-stats,
.portal-activity {
  animation: portalFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.portal-stats    { animation-delay: 0.08s; }
.portal-activity { animation-delay: 0.16s; }

/* ---- Welcome Hero ---- */
.portal-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(250,246,238,0.98));
  border: 1px solid rgba(201,168,108,0.18);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.portal-welcome::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,168,108,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-welcome::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary, #C9A86C), transparent 70%);
}

.portal-welcome__content {
  position: relative;
  z-index: 1;
}

.portal-welcome__greeting {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary, #C9A86C);
  margin-bottom: 0.15rem;
}

.portal-welcome__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.portal-welcome__text {
  font-size: 0.82rem;
  color: var(--color-text-muted, #888);
  line-height: 1.5;
  max-width: 420px;
}

.portal-welcome__decoration {
  position: relative;
  z-index: 1;
  color: var(--color-primary, #C9A86C);
  opacity: 0.15;
}

.portal-welcome__decoration svg,
.portal-welcome__decoration i {
  width: 44px;
  height: 44px;
}

/* ---- Quick Stats — compact horizontal row ---- */
.portal-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.portal-stat {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 108, 0.12);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.portal-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,108,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portal-stat:hover {
  border-color: rgba(201, 168, 108, 0.3);
  box-shadow: 0 4px 20px rgba(201, 168, 108, 0.1), 0 1px 3px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.portal-stat:hover::before {
  opacity: 1;
}

.portal-stat:focus-visible {
  outline: 2px solid var(--color-primary, #C9A86C);
  outline-offset: 2px;
}

.portal-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.portal-stat:hover .portal-stat__icon {
  transform: scale(1.08);
}

.portal-stat__icon svg,
.portal-stat__icon i {
  width: 18px;
  height: 18px;
}

/* Unified gold icon style */
.portal-stat__icon--inquiries,
.portal-stat__icon--offers,
.portal-stat__icon--invoices,
.portal-stat__icon--appointments,
.portal-stat__icon--galleries {
  background: rgba(201,168,108,0.1);
  color: var(--color-primary, #C9A86C);
}

.portal-stat__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-stat__value {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  line-height: 1.1;
}

.portal-stat__label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted, #999);
}

.portal-stat__arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--color-text-muted, #999);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.portal-stat__arrow svg,
.portal-stat__arrow i {
  width: 16px;
  height: 16px;
}

.portal-stat:hover .portal-stat__arrow {
  opacity: 0.6;
  transform: translateX(0);
}

/* Stats responsive */
@media (max-width: 900px) {
  .portal-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .portal-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ---- Recent Activity List ---- */
.portal-activity {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 108, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
}

.portal-activity__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portal-activity__icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary, #C9A86C);
}

.portal-activity__icon svg,
.portal-activity__icon i {
  width: 18px;
  height: 18px;
}

.portal-activity__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text, #2D2D2D);
  margin: 0;
}

.portal-activity__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-activity__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.portal-activity__item:hover {
  background: rgba(201, 168, 108, 0.05);
}

.portal-activity__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary, #C9A86C);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,168,108,0.15);
}

.portal-activity__text {
  font-size: 0.82rem;
  color: var(--color-text-light, #555);
  flex: 1;
}

.portal-activity__link {
  font-size: 0.82rem;
  color: var(--color-text-light, #555);
  flex: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portal-activity__link:hover {
  color: var(--color-primary, #C9A86C);
}

.portal-activity__date {
  font-size: 0.7rem;
  color: var(--color-text-muted, #999);
  white-space: nowrap;
  background: rgba(201, 168, 108, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}


/* ==========================================================================
   SECTION HEADER (reused across all content tabs)
   ========================================================================== */

.portal-section__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(201, 168, 108, 0.15);
}

.portal-section__header svg,
.portal-section__header i {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}


/* ==========================================================================
   INQUIRY CARDS (Meine Anfragen)
   ========================================================================== */

.portal-inquiries {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.inquiry-card {
  position: relative;
  background: var(--elevated-card-bg, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--elevated-card-border, rgba(255, 255, 255, 0.6));
  border-radius: var(--elevated-radius, 12px);
  box-shadow: var(--elevated-shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  padding: var(--spacing-xl);
  padding-left: calc(var(--spacing-xl) + 4px);
  transition: all var(--transition-normal);
}

.inquiry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--stat-color-inquiries, #C9A86C);
  border-radius: 4px 0 0 4px;
}

.inquiry-card:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--elevated-shadow-md, 0 4px 12px rgba(0,0,0,0.06));
  transform: translateY(-3px);
}

.inquiry-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.inquiry-card__theme {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}

.inquiry-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.inquiry-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.inquiry-card__meta svg,
.inquiry-card__meta i {
  width: 14px;
  height: 14px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge--neu {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-badge--kontaktiert {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge--gebucht {
  background: rgba(124, 154, 124, 0.12);
  color: #4d7c4d;
  border: 1px solid rgba(124, 154, 124, 0.3);
}

.status-badge--archiviert {
  background: rgba(107, 107, 107, 0.08);
  color: var(--color-text-muted);
  border: 1px solid rgba(107, 107, 107, 0.2);
}

/* Legacy status aliases (for JS compatibility) */
.status-badge--new {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-badge--contacted {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge--booked {
  background: rgba(124, 154, 124, 0.12);
  color: #4d7c4d;
  border: 1px solid rgba(124, 154, 124, 0.3);
}

.status-badge--archived {
  background: rgba(107, 107, 107, 0.08);
  color: var(--color-text-muted);
  border: 1px solid rgba(107, 107, 107, 0.2);
}


/* ==========================================================================
   DOCUMENTS (Angebote + Rechnungen)
   ========================================================================== */


/* Document List */
.document-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.document-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  padding-left: calc(var(--spacing-lg) + 4px);
  background: var(--elevated-card-bg, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--elevated-card-border, rgba(255, 255, 255, 0.6));
  border-radius: var(--elevated-radius, 12px);
  box-shadow: var(--elevated-shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  transition: all var(--transition-normal);
}

.document-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary, #C9A86C);
  border-radius: 4px 0 0 4px;
}

.document-item:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--elevated-shadow-md, 0 4px 12px rgba(0,0,0,0.06));
  transform: translateY(-2px);
}

.document-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(201, 168, 108, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.document-item__icon svg,
.document-item__icon i {
  width: 20px;
  height: 20px;
}

.document-item__info {
  flex: 1;
  min-width: 0;
}

.document-item__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-item__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.document-item__amount {
  font-weight: 600;
  color: var(--color-text);
}

.document-item__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
  text-decoration: none;
}

.document-item__action:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(201, 168, 108, 0.08);
}

.document-item__action svg,
.document-item__action i {
  width: 18px;
  height: 18px;
}

/* Invoice-specific status badges */
.status-badge--offen {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge--bezahlt {
  background: rgba(124, 154, 124, 0.12);
  color: #4d7c4d;
  border: 1px solid rgba(124, 154, 124, 0.3);
}

.status-badge--ueberfaellig {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
}


/* ==========================================================================
   PROFILE SECTION (Mein Profil)
   ========================================================================== */

.portal-profile {
  max-width: 600px;
}

.portal-profile__card {
  background: var(--elevated-card-bg, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--elevated-card-border, rgba(255, 255, 255, 0.6));
  border-radius: var(--elevated-radius, 12px);
  box-shadow: var(--elevated-shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  padding: var(--spacing-2xl);
}

.portal-profile__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.15);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xl);
}

.portal-profile__row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.portal-profile__row:last-child {
  border-bottom: none;
}

.portal-profile__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.portal-profile__value {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* Editable Profile Inputs */
.portal-profile__input {
  width: 100%;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid rgba(201, 168, 108, 0.3);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.portal-profile__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
}

/* Profile Action Buttons */
.portal-profile__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.portal-profile__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--spacing-xs) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.portal-profile__btn svg {
  width: 14px;
  height: 14px;
}

.portal-profile__btn--edit {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
  border: 1px solid rgba(201, 168, 108, 0.25);
}

.portal-profile__btn--edit:hover {
  background: rgba(201, 168, 108, 0.18);
  border-color: var(--color-primary);
}

.portal-profile__btn--save {
  color: var(--color-white);
  background: var(--color-primary);
}

.portal-profile__btn--save:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.portal-profile__btn--save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.portal-profile__btn--cancel {
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-profile__btn--cancel:hover {
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Password Change Section (Legacy - bleibt fuer Rueckwaertskompatibilitaet) */
.portal-profile__password-section {
  padding: var(--spacing-md) var(--spacing-xl) var(--spacing-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.portal-profile__btn--password {
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-profile__btn--password:hover {
  color: var(--color-primary);
  border-color: rgba(201, 168, 108, 0.3);
  background: rgba(201, 168, 108, 0.05);
}

/* Anmeldedaten-Karte (E-Mail + Passwort aendern) */
.portal-profile__credentials {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.portal-profile__credentials-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.portal-profile__credentials-header h3 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: #2a2a2a;
  margin: 0;
}

.portal-profile__credentials-header i,
.portal-profile__credentials-header svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary, #C9A86C);
}

.portal-profile__credentials-hint {
  font-size: 0.82rem;
  color: #6b6b6b;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.portal-profile__credentials-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.portal-profile__btn--credentials {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted, #888);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-profile__btn--credentials:hover {
  color: var(--color-primary, #C9A86C);
  border-color: rgba(201, 168, 108, 0.4);
  background: rgba(201, 168, 108, 0.05);
}

.portal-profile__btn--credentials i,
.portal-profile__btn--credentials svg {
  width: 14px;
  height: 14px;
}

/* Portal Toast Notification */
.portal-toast {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  /* Hoeher als das Portal-Galerie-Modal (z-index: 2000), damit der Toast
     auch ueber offenen Modals (Teilen, Loeschen, ...) sichtbar bleibt. */
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
}

.portal-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.portal-toast--success {
  border-left: 4px solid var(--color-primary);
}

.portal-toast--error {
  border-left: 4px solid #C47C7C;
}

.portal-toast__message {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}

.portal-toast__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.portal-toast__close:hover {
  color: var(--color-text);
}


/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.portal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
}

.portal-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(201, 168, 108, 0.1);
  border-radius: 50%;
  color: var(--color-primary-light);
  margin-bottom: var(--spacing-lg);
}

.portal-empty__icon svg,
.portal-empty__icon i {
  width: 28px;
  height: 28px;
}

.portal-empty__message {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 320px;
}



/* ==========================================================================
   APPOINTMENTS (Termin-Karten)
   ========================================================================== */

.appointment-group__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.appointment-group__title:first-child {
  margin-top: 0;
}

.appointment-group__title--past {
  color: var(--color-text-light, #999);
}

.appointment-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  padding-left: calc(var(--spacing-lg) + 4px);
  background: var(--elevated-card-bg, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--elevated-card-border, rgba(255, 255, 255, 0.6));
  border-radius: var(--elevated-radius, 12px);
  box-shadow: var(--elevated-shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-bottom: var(--spacing-sm);
}

.appointment-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary, #C9A86C);
  border-radius: 4px 0 0 4px;
}

.appointment-item:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--elevated-shadow-md, 0 4px 12px rgba(0,0,0,0.06));
  transform: translateY(-2px);
}

.appointment-item--past {
  opacity: 0.6;
}

.appointment-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-gold-light, rgba(201, 168, 108, 0.12));
  color: var(--color-gold, #C9A86C);
  flex-shrink: 0;
}

.appointment-item__icon svg,
.appointment-item__icon i {
  width: 20px;
  height: 20px;
}

.appointment-item__info {
  flex: 1;
  min-width: 0;
}

.appointment-item__title {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.appointment-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.appointment-item__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.appointment-item__meta svg,
.appointment-item__meta i {
  width: 14px;
  height: 14px;
}

.appointment-item__type {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--color-gold-light, rgba(201, 168, 108, 0.12));
  color: var(--color-gold-dark, #8B7340);
  font-size: 0.7rem;
}

.appointment-item__arrow {
  color: var(--color-text-light, #ccc);
  flex-shrink: 0;
}

.appointment-item__arrow svg,
.appointment-item__arrow i {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   DOCUMENT ITEM - Arrow / Clickable
   ========================================================================== */

.document-item {
  cursor: pointer;
}

.document-item__arrow {
  color: var(--color-text-light, #ccc);
  flex-shrink: 0;
  margin-left: auto;
}

.document-item__arrow svg,
.document-item__arrow i {
  width: 18px;
  height: 18px;
}

.document-item__download {
  background: none;
  border: none;
  color: var(--color-primary, #C9A86C);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-md, 8px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.document-item__download:hover {
  background: rgba(201, 168, 108, 0.12);
  transform: scale(1.1);
}

.document-item__download:active {
  transform: scale(0.95);
}

.document-item__download svg,
.document-item__download i {
  width: 18px;
  height: 18px;
}


/* ==========================================================================
   INQUIRY CARD - Clickable
   ========================================================================== */

.inquiry-card {
  cursor: pointer;
}


/* =================================================================
   HANDBUCH
   ================================================================= */

/* Layout: TOC + Content */
.handbuch {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* --- TOC (Inhaltsverzeichnis) --- */
.handbuch__toc {
  align-self: start;
  max-height: calc(100vh - 76px - 1rem);
  overflow-y: auto;
  padding: 1.25rem 0;
  will-change: transform;
}

.handbuch__toc-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem;
  padding: 0 0.75rem;
}

.handbuch__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.handbuch__toc-item {
  margin: 0;
}

.handbuch__toc-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.handbuch__toc-link:hover {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.04);
}

.handbuch__toc-link.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: rgba(201, 168, 108, 0.07);
  font-weight: 500;
}

.handbuch__toc-link i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Sub-Items (Galerien-Unterkapitel) */
.handbuch__toc-item--sub .handbuch__toc-link {
  padding-left: 1.75rem;
  font-size: 0.8rem;
}

.handbuch__toc-item--sub .handbuch__toc-link i {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Mobile TOC Toggle */
.handbuch__toc-toggle {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--elevated-card-bg);
  border: 1px solid var(--elevated-card-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.handbuch__toc-toggle i {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
}

.handbuch__toc-toggle.is-open i {
  transform: rotate(180deg);
}

/* --- Content Area --- */
.handbuch__content {
  min-width: 0;
}

/* --- Hero Banner --- */
.handbuch__hero {
  position: relative;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.08) 0%, rgba(255, 251, 245, 0.95) 50%, rgba(201, 168, 108, 0.05) 100%);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.handbuch__hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 108, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.handbuch__hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  position: relative;
}

.handbuch__hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: 400;
  position: relative;
}

.handbuch__hero-icon {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  color: rgba(201, 168, 108, 0.12);
}

/* --- Kapitel --- */
.handbuch__chapter {
  margin-bottom: 3rem;
  scroll-margin-top: 80px; /* Topbar-Hoehe beruecksichtigen */
}

.handbuch__chapter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.handbuch__chapter-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 108, 0.1);
  color: var(--color-primary);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.handbuch__chapter-icon i {
  width: 24px;
  height: 24px;
}

.handbuch__chapter-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.handbuch__chapter-intro {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin: 0 0 1.5rem;
}

.handbuch__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 108, 0.3), transparent);
  margin: 3rem 0;
  border: none;
}

/* --- Feature Cards --- */
.handbuch__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.handbuch__card {
  background: var(--elevated-card-bg);
  border: 1px solid var(--elevated-card-border);
  border-radius: var(--elevated-radius);
  padding: 1.25rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(12px);
}

.handbuch__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.handbuch__card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 108, 0.1);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.handbuch__card-icon i {
  width: 18px;
  height: 18px;
}

.handbuch__card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.4rem;
}

.handbuch__card-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Schritt-fuer-Schritt --- */
.handbuch__steps {
  position: relative;
  padding-left: 2.5rem;
  margin: 1.5rem 0;
}

.handbuch__steps::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(201, 168, 108, 0.2));
}

.handbuch__step {
  position: relative;
  margin-bottom: 1.5rem;
}

.handbuch__step:last-child {
  margin-bottom: 0;
}

.handbuch__step-number {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.handbuch__step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.3rem;
}

.handbuch__step-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Tipp-Boxen --- */
.handbuch__tip {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-primary);
  background: rgba(201, 168, 108, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.handbuch__tip-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.handbuch__tip-icon i {
  width: 18px;
  height: 18px;
}

.handbuch__tip-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.25rem;
}

.handbuch__tip-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0;
}

/* --- Scroll Animations --- */
.handbuch__animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.handbuch__animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll to Top --- */
.handbuch__scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition-normal), transform var(--transition-normal), background var(--transition-fast);
  z-index: var(--z-sticky);
  pointer-events: none;
}

.handbuch__scroll-top.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.handbuch__scroll-top:hover {
  background: var(--color-primary-dark);
}

.handbuch__scroll-top i {
  width: 20px;
  height: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {

  /* Handbuch braucht eigenes Padding, da portal-content auf Mobile nur 8px hat */
  .handbuch {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0.75rem;
  }

  /* --- TOC: Dropdown statt Sidebar --- */
  .handbuch__toc {
    position: static !important;
    transform: none !important;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-bottom: 1rem;
  }

  .handbuch__toc-title {
    display: none;
  }

  .handbuch__toc-toggle {
    display: flex;
    background: rgba(201, 168, 108, 0.06);
    border-color: rgba(201, 168, 108, 0.15);
  }

  .handbuch__toc-list {
    display: none;
    margin-bottom: 1rem;
  }

  .handbuch__toc-list.is-open {
    display: block;
    background: var(--elevated-card-bg);
    border: 1px solid var(--elevated-card-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
  }

  /* --- Hero: Einladend und zentriert --- */
  .handbuch__hero {
    padding: 2rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .handbuch__hero::before {
    width: 200px;
    height: 200px;
    top: -30%;
    right: -20%;
  }

  .handbuch__hero-title {
    font-size: 1.5rem;
  }

  .handbuch__hero-subtitle {
    font-size: 0.92rem;
  }

  .handbuch__hero-icon {
    display: none;
  }

  /* --- Kapitel: Mehr Luft, klare Struktur --- */
  .handbuch__chapter {
    margin-bottom: 2.25rem;
    scroll-margin-top: 70px;
  }

  .handbuch__chapter-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .handbuch__chapter-icon {
    width: 40px;
    height: 40px;
  }

  .handbuch__chapter-icon i {
    width: 20px;
    height: 20px;
  }

  .handbuch__chapter-title {
    font-size: 1.25rem;
  }

  .handbuch__chapter-intro {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
  }

  .handbuch__divider {
    margin: 2rem 0;
  }

  /* --- Cards: 1 Spalte mit mehr Luft --- */
  .handbuch__cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
  }

  .handbuch__card {
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .handbuch__card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .handbuch__card-icon i {
    width: 18px;
    height: 18px;
  }

  .handbuch__card-title {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .handbuch__card-text {
    font-size: 0.82rem;
  }

  /* --- Steps: Klar und lesbar --- */
  .handbuch__steps {
    padding-left: 2.25rem;
    margin: 1.25rem 0;
  }

  .handbuch__steps::before {
    left: 13px;
  }

  .handbuch__step {
    margin-bottom: 1.5rem;
  }

  .handbuch__step-number {
    left: -2.25rem;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .handbuch__step-title {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
  }

  .handbuch__step-text {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  /* --- Tipps: Auffaellig aber kompakt --- */
  .handbuch__tip {
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    gap: 0.65rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .handbuch__tip-icon i {
    width: 16px;
    height: 16px;
  }

  .handbuch__tip-label {
    font-size: 0.75rem;
  }

  .handbuch__tip-text {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  /* --- Scroll-to-Top ueber Bottom-Nav --- */
  .handbuch__scroll-top {
    bottom: 5rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }

  .handbuch__scroll-top i {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
 * Source: components/portal-galleries.css
 * ============================================================ */
/**
 * Portal Galleries
 * ===================================
 * Gallery tabs, gallery grid, hero banner cards,
 * gallery detail view, gallery lightbox,
 * customer shares, selection/album share buttons
 */


/* ==========================================================================
   GALLERY TABS (Galerien / Auswahlen)
   ========================================================================== */

.pgal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(201,168,108,0.15);
  margin-bottom: 1.5rem;
}

.pgal-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: none;
  background: none;
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  margin-bottom: -1px;
}

.pgal-tabs__btn svg {
  width: 16px;
  height: 16px;
}

.pgal-tabs__btn:hover {
  color: #666;
}

.pgal-tabs__btn.is-active {
  color: #b08d3e;
  border-bottom-color: #b08d3e;
}

.pgal-tab-content {
  display: none;
}

.pgal-tab-content.is-active {
  display: block;
}

/* ==========================================================================
   GALLERY GRID (Meine Galerien)
   ========================================================================== */

.portal-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   GALLERY HERO BANNER CARDS (.pgc-hero)
   ========================================================================== */

.pgc-hero {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--elevated-card-bg, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--elevated-card-border, rgba(255, 255, 255, 0.6));
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}

.pgc-hero:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* --- Image area --- */
.pgc-hero__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.pgc-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pgc-hero:hover .pgc-hero__image img {
  transform: scale(1.05);
}

.pgc-hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 40%,
    rgba(0, 0, 0, 0.03) 100%
  );
  pointer-events: none;
}

/* --- Content area --- */
.pgc-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  flex: 1;
}

.pgc-hero__top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pgc-hero__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text, #2C2C2C);
  line-height: 1.25;
  margin: 0;
}

.pgc-hero__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted, #6B6B6B);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Badges --- */
.pgc-hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pgc-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pgc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(201, 168, 108, 0.1);
  border: 1px solid rgba(201, 168, 108, 0.18);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text, #2C2C2C);
  white-space: nowrap;
}

.pgc-hero__badge svg,
.pgc-hero__badge i {
  width: 13px;
  height: 13px;
  color: var(--color-primary, #C9A86C);
}

.pgc-hero__badge--subtle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.pgc-hero__badge--subtle svg,
.pgc-hero__badge--subtle i {
  color: var(--color-text-muted, #6B6B6B);
}

/* --- Actions --- */
.pgc-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pgc-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.pgc-hero__btn svg,
.pgc-hero__btn i {
  width: 14px;
  height: 14px;
}

.pgc-hero__btn--primary {
  background: var(--color-primary, #C9A86C);
  color: #fff;
}

.pgc-hero__btn--primary:hover {
  background: var(--color-primary-dark, #b8954f);
  box-shadow: 0 4px 14px rgba(201, 168, 108, 0.3);
}

.pgc-hero__btn--ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-text-muted, #6B6B6B);
  padding: 8px 12px;
}

.pgc-hero__btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--color-text, #2C2C2C);
}

/* --- Desktop: horizontal hero layout --- */
@media (min-width: 768px) {
  .pgc-hero {
    flex-direction: row;
    min-height: 180px;
    max-height: 220px;
  }

  .pgc-hero__image {
    width: 35%;
    aspect-ratio: unset;
    border-radius: 14px 0 0 14px;
  }

  .pgc-hero__image-overlay {
    background: linear-gradient(
      to right,
      transparent 50%,
      rgba(255, 255, 255, 0.05) 100%
    );
  }

  .pgc-hero__content {
    width: 65%;
    padding: 20px 28px;
    gap: 0;
  }

  .pgc-hero__title {
    font-size: 1.4rem;
  }

  .pgc-hero__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .pgc-hero__badges {
    flex-direction: row;
    gap: 6px;
  }
}

@media (min-width: 1024px) {
  .pgc-hero__title {
    font-size: 1.55rem;
  }

  .pgc-hero__content {
    padding: 24px 32px;
  }
}



/* ==========================================================================
   GALLERY DETAIL VIEW (.pgd = portal-gallery-detail)
   Emotional, elegant design for wedding photography
   ========================================================================== */

.pgd {
  animation: portalFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Hero Banner — cinematic fullwidth ---- */
.pgd__hero-wrapper {
  margin: -1.5rem -1.5rem 0 -1.5rem;
  width: calc(100% + 3rem);
}

.pgd__hero {
  position: relative;
  height: 360px;
  border-radius: 0;
  overflow: hidden;
  background-color: #2D2D2D;
  background-size: cover;
  background-position: center 35%;
}

.pgd__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 40%
  );
}

.pgd__hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
}

.pgd__back {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 10px 12px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted, #6B6B6B);
  cursor: pointer;
  transition: color 0.2s ease;
}

.pgd__back:hover {
  color: var(--color-primary, #C9A86C);
}

.pgd__back svg,
.pgd__back i {
  width: 16px;
  height: 16px;
}

.pgd__hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  max-width: 560px;
}

/* Decorative ornament line */
.pgd__hero-ornament {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary, #C9A86C), transparent);
  margin-bottom: 0.25rem;
  border-radius: 2px;
}

.pgd__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 2.2rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.pgd__desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0.1rem 0 0;
  font-style: italic;
  line-height: 1.5;
}

/* Mobile description block (below hero) — hidden on desktop */
.pgd__desc--mobile {
  display: none;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-muted, #5A5A5A);
  line-height: 1.7;
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--color-primary, #C9A86C);
  background: linear-gradient(135deg, rgba(201,168,108,0.04) 0%, transparent 100%);
  border-radius: 0 10px 10px 0;
}

.pgd__meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pgd__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pgd__meta-item svg,
.pgd__meta-item i {
  width: 14px;
  height: 14px;
}

/* ---- Section Dividers ---- */
.pgd__section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.pgd__section-header--photos {
  margin-top: 2.5rem;
}

.pgd__section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,108,0.25), rgba(201,168,108,0.05));
}

.pgd__section-line:last-child {
  background: linear-gradient(90deg, rgba(201,168,108,0.05), rgba(201,168,108,0.25));
}

.pgd__section-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-dark, #2D2D2D);
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0;
  white-space: nowrap;
}

/* ---- Album Cards ---- */
.pgd__albums-section {
  animation: portalFadeUp 0.5s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pgd__album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.pgd__album-card {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(201,168,108,0.1);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.pgd__album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(201,168,108,0.1);
  border-color: rgba(201,168,108,0.25);
}

.pgd__album-card.is-active {
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 1px var(--color-primary, #C9A86C), 0 4px 16px rgba(201,168,108,0.15);
}

.pgd__album-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: rgba(201,168,108,0.08);
}

.pgd__album-card-info {
  padding: 0.6rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pgd__album-card-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-dark, #2D2D2D);
  line-height: 1.3;
}

.pgd__album-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted, #6B6B6B);
  line-height: 1.5;
}

.pgd__album-card-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary, #C9A86C);
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}

/* ---- Toolbar ---- */
.pgd__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 0 0.75rem;
  margin-bottom: 0.5rem;
}

.pgd__actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.pgd__action-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted, #888);
  border: 1px solid rgba(201,168,108,0.15);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.pgd__action-btn:hover {
  color: var(--color-primary, #C9A86C);
  border-color: rgba(201,168,108,0.4);
  background: rgba(201,168,108,0.04);
}

.pgd__action-btn svg,
.pgd__action-btn i {
  width: 14px;
  height: 14px;
}

/* ---- Auswahl laden (Dropdown) ---- */
.pgd__action-loadsel {
  display: inline-flex;
}

.pgd__action-loadsel[hidden] {
  display: none;
}

.pgd__loadsel-dropdown {
  position: relative;
  display: inline-block;
}

.pgd__loadsel-chev {
  width: 12px !important;
  height: 12px !important;
  margin-left: 0.15rem;
  opacity: 0.6;
}

.pgd__loadsel-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 280px;
  max-width: 360px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 0.4rem;
}

.pgd__loadsel-menu[hidden] {
  display: none;
}

.pgd__loadsel-header {
  padding: 0.5rem 0.75rem 0.45rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0.35rem;
}

.pgd__loadsel-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.pgd__loadsel-item:hover {
  background: rgba(201,168,108,0.1);
}

.pgd__loadsel-item-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 0.15rem;
}

.pgd__loadsel-item-meta {
  display: block;
  font-size: 0.7rem;
  color: #888;
}

/* ---- Masonry Image Grid ---- */
.pgd__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 2rem;
}

.pgd__image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(201,168,108,0.04);
}

.pgd__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pgd__image:hover img {
  transform: scale(1.04);
}

/* Overlay on hover */
.pgd__image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.625rem;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pgd__image:hover .pgd__image-overlay {
  opacity: 1;
}

.pgd__image-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pgd__image-dl:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

.pgd__image-dl svg,
.pgd__image-dl i {
  width: 16px;
  height: 16px;
}

/* Download spinner */
.pgd__dl-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pgdSpin 0.6s linear infinite;
}

.portal-gallery-lightbox__dl .pgd__dl-spinner {
  width: 20px;
  height: 20px;
}

@keyframes pgdSpin {
  to { transform: rotate(360deg); }
}

/* Selection mode */
.pgd__image-check {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.pgd__image-check svg,
.pgd__image-check i {
  width: 28px;
  height: 28px;
}

.pgd__image.is-selected {
  box-shadow: 0 0 0 3px var(--color-primary, #C9A86C);
  border-radius: 6px;
  transform: scale(0.93);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pgd__image.is-selected img {
  opacity: 0.7;
}

.pgd__image.is-selected .pgd__image-check {
  color: var(--color-primary, #C9A86C);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.pgd__image.is-selection-mode:not(.is-selected) {
  transition: transform 0.2s ease;
}

.pgd__image.is-selection-mode {
  cursor: pointer;
}

.pgd__image.is-selection-mode .pgd__image-overlay {
  opacity: 1;
  background: transparent;
}

/* Infinite scroll sentinel */
.pgd__scroll-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

/* Image counter */
.pgd__counter {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted, #888);
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  background: rgba(201,168,108,0.06);
  border-radius: 100px;
  flex-shrink: 0;
}

/* Empty state */
.pgd__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted, #888);
  font-style: italic;
}

/* ---- Meine Auswahlen Section ---- */
.pgd__selections-section {
  margin-top: 1rem;
  padding-bottom: 3rem;
}

.pgd__selections-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.pgd__sel-card {
  background: #fff;
  border: 1px solid rgba(201,168,108,0.18);
  border-radius: 12px;
  padding: 1rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.pgd__sel-card:hover {
  border-color: rgba(201,168,108,0.35);
  box-shadow: 0 4px 20px rgba(201,168,108,0.1);
}

.pgd__sel-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pgd__sel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pgd__sel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0;
}

.pgd__sel-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #888;
}

.pgd__sel-meta svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 3px;
}

.pgd__sel-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pgd__sel-status--draft {
  background: rgba(180,180,180,0.15);
  color: #999;
}

.pgd__sel-status--submitted {
  background: rgba(201,168,108,0.15);
  color: #b08d3e;
}

.pgd__sel-status--reviewed {
  background: rgba(76,175,80,0.12);
  color: #388e3c;
}

.pgd__sel-status--rejected {
  background: rgba(229,57,53,0.1);
  color: #c62828;
}

.pgd__sel-notes {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  font-style: italic;
}

.pgd__sel-review {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: rgba(76,175,80,0.06);
  border-left: 3px solid rgba(76,175,80,0.4);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
}

.pgd__sel-review svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 3px;
  color: #388e3c;
}

.pgd__sel-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 0.85rem;
  overflow: hidden;
}

.pgd__sel-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.pgd__sel-thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,108,0.1);
  color: #b08d3e;
  font-size: 0.8rem;
  font-weight: 600;
}

.pgd__sel-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201,168,108,0.1);
}

.pgd__sel-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(201,168,108,0.3);
  border-radius: 8px;
  background: none;
  color: #b08d3e;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pgd__sel-edit-btn svg {
  width: 14px;
  height: 14px;
}

.pgd__sel-edit-btn:hover {
  background: rgba(201,168,108,0.1);
  border-color: rgba(201,168,108,0.5);
}

.pgd__sel-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200,200,200,0.3);
  border-radius: 8px;
  background: none;
  color: #bbb;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pgd__sel-delete-btn svg {
  width: 15px;
  height: 15px;
}

.pgd__sel-delete-btn:hover {
  color: #E53935;
  border-color: rgba(229,57,53,0.3);
  background: rgba(229,57,53,0.06);
}

.portal-gallery-modal__btn--danger {
  background: #E53935;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease;
}

.portal-gallery-modal__btn--danger:hover {
  background: #c62828;
}

/* ---- Selection Bar (Floating) ---- */
.portal-gallery-selection-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,168,108,0.3);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.portal-gallery-selection-bar.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.portal-gallery-selection-bar__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2D2D2D;
  white-space: nowrap;
}

.portal-gallery-selection-bar__actions {
  display: flex;
  gap: 0.5rem;
}

.portal-gallery-selection-bar__btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.portal-gallery-selection-bar__btn--cancel {
  background: rgba(0,0,0,0.06);
  color: #5A5A5A;
}

.portal-gallery-selection-bar__btn--cancel:hover {
  background: rgba(0,0,0,0.1);
}

.portal-gallery-selection-bar__btn--save {
  background: rgba(201, 168, 108, 0.15);
  color: #8a6f3a;
  border: 1px solid rgba(201, 168, 108, 0.4);
}

.portal-gallery-selection-bar__btn--save:hover {
  background: rgba(201, 168, 108, 0.25);
}

.portal-gallery-selection-bar__btn--save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.portal-gallery-selection-bar__btn--submit {
  background: var(--color-primary, #C9A86C);
  color: #fff;
}

.portal-gallery-selection-bar__btn--submit:hover {
  background: #b8964f;
}

.portal-gallery-selection-bar__btn--submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Gallery Modal (Submit / Share) ---- */
.portal-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.portal-gallery-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.portal-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.portal-gallery-modal__content {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: #fff;
  border: 1px solid rgba(201,168,108,0.2);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.portal-gallery-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(201,168,108,0.12);
}

.portal-gallery-modal__header h4 {
  margin: 0;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: #2D2D2D;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-gallery-modal__header h4 svg,
.portal-gallery-modal__header h4 i {
  width: 18px;
  height: 18px;
  color: var(--color-primary, #C9A86C);
}

.portal-gallery-modal__close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0.35rem;
  line-height: 1;
  border-radius: 8px;
  transition: all 0.2s;
}

.portal-gallery-modal__close:hover {
  color: #2D2D2D;
  background: rgba(0,0,0,0.05);
}

.portal-gallery-modal__body {
  padding: 1.25rem 1.5rem;
}

.portal-gallery-modal__body p {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--color-primary, #C9A86C);
  font-weight: 600;
}

.portal-gallery-modal__hint {
  margin: -0.5rem 0 1.25rem !important;
  font-size: 0.78rem !important;
  color: #6b6b6b !important;
  font-weight: 400 !important;
  line-height: 1.5;
  padding: 0.6rem 0.8rem;
  background: rgba(201, 168, 108, 0.08);
  border-left: 3px solid rgba(201, 168, 108, 0.4);
  border-radius: 4px;
}

.portal-gallery-modal__field {
  margin-bottom: 1.1rem;
}

.portal-gallery-modal__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5A5A5A;
  margin-bottom: 0.4rem;
}

.portal-gallery-modal__input,
.portal-gallery-modal__textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #FAFAF8;
  border: 1px solid rgba(201,168,108,0.2);
  border-radius: 10px;
  color: #2D2D2D;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.portal-gallery-modal__input::placeholder,
.portal-gallery-modal__textarea::placeholder {
  color: #B0B0B0;
}

.portal-gallery-modal__input:focus,
.portal-gallery-modal__textarea:focus {
  outline: none;
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201,168,108,0.1);
}

.portal-gallery-modal__textarea {
  resize: vertical;
  min-height: 80px;
}

.portal-gallery-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(201,168,108,0.1);
  background: #FAFAF8;
}

.portal-gallery-modal__btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.portal-gallery-modal__btn svg,
.portal-gallery-modal__btn i {
  width: 15px;
  height: 15px;
}

.portal-gallery-modal__btn--cancel {
  background: transparent;
  color: #888;
  border: 1px solid rgba(0,0,0,0.1);
}

.portal-gallery-modal__btn--cancel:hover {
  background: rgba(0,0,0,0.04);
  color: #5A5A5A;
}

.portal-gallery-modal__btn--primary {
  background: var(--color-primary, #C9A86C);
  color: #fff;
  box-shadow: 0 2px 8px rgba(201,168,108,0.25);
}

.portal-gallery-modal__btn--primary:hover {
  background: #b8964f;
  box-shadow: 0 4px 12px rgba(201,168,108,0.3);
  transform: translateY(-1px);
}

.portal-gallery-modal__btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .pgd__grid { grid-template-columns: repeat(3, 1fr); }
  .pgd__album-cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

@media (max-width: 768px) {
  /* ---- Hero: clean, bildlastig, Zurück-Button als Overlay ---- */
  .pgd__hero-wrapper {
    margin: -1rem -1rem 0;
    width: calc(100% + 2rem);
    position: relative;
  }
  .pgd__hero { height: 250px; }
  .pgd__hero-overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.15) 45%,
      transparent 75%
    );
  }
  .pgd__hero-content { padding: 1.25rem; }

  /* Hero-Info: kein Glass, direkt auf Bild */
  .pgd__hero-info {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0.2rem;
    max-width: 100%;
  }
  .pgd__hero-ornament { display: none; }
  .pgd__title { font-size: 1.55rem; text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
  .pgd__hero-info .pgd__desc { display: none; }
  .pgd__meta {
    gap: 0.6rem;
    border-top: none;
    margin-top: 0.15rem;
    padding-top: 0;
  }
  .pgd__meta-item {
    font-size: 0.72rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.9);
  }

  /* Zurück-Button: als Pill-Overlay im Hero oben links */
  .pgd__back {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 5;
    padding: 6px 14px 6px 10px;
    font-size: 0.72rem;
    color: #fff;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 100px;
  }
  .pgd__back:hover { color: #fff; background: rgba(0,0,0,0.5); }
  .pgd__back svg, .pgd__back i { width: 14px; height: 14px; }

  /* Beschreibung unter dem Hero — sichtbar machen */
  .pgd__desc--mobile { display: block; }

  /* ---- Section Headers ---- */
  .pgd__section-header { margin: 1.5rem 0 0.75rem; gap: 0.75rem; }
  .pgd__section-header--photos { margin-top: 1.5rem; }
  .pgd__section-title { font-size: 1.2rem; }

  /* ---- Album Cards: horizontal scroll ---- */
  .pgd__album-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .pgd__album-cards::-webkit-scrollbar { display: none; }
  .pgd__album-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }
  .pgd__album-card-cover { aspect-ratio: 16 / 10; }
  .pgd__album-card-info { padding: 0.55rem 0.7rem 0.5rem; }
  .pgd__album-card-title { font-size: 1.05rem; }
  .pgd__album-card-desc {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pgd__album-card-count { font-size: 0.7rem; }

  /* ---- Toolbar ---- */
  .pgd__toolbar { gap: 0.5rem; padding: 0 0 0.5rem; }
  .pgd__actions { width: 100%; justify-content: flex-start; gap: 0.35rem; }
  .pgd__action-btn { padding: 0.45rem 0.85rem; font-size: 0.7rem; }

  /* ---- Bildergrid ---- */
  .pgd__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pgd__image { border-radius: 6px; }
  .pgd__image-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 45%); }
  .pgd__image-dl { opacity: 0.85; width: 30px; height: 30px; }
}

@media (max-width: 480px) {
  /* Hero */
  .pgd__hero { height: 210px; }
  .pgd__hero-content { padding: 1rem; }
  .pgd__title { font-size: 1.3rem; }
  .pgd__meta-item { font-size: 0.68rem; }
  .pgd__meta-item svg, .pgd__meta-item i { width: 12px; height: 12px; }
  .pgd__back { top: 0.6rem; left: 0.6rem; padding: 5px 12px 5px 8px; font-size: 0.68rem; }

  /* Beschreibung */
  .pgd__desc--mobile { font-size: 0.95rem; margin-top: 1rem; padding: 0.85rem 1rem; }

  /* Section */
  .pgd__section-header { margin: 1.1rem 0 0.6rem; }
  .pgd__section-title { font-size: 1.05rem; }

  /* Album Cards */
  .pgd__album-card { flex: 0 0 165px; }
  .pgd__album-card-cover { aspect-ratio: 3 / 2; }
  .pgd__album-card-info { padding: 0.45rem 0.6rem; }
  .pgd__album-card-title { font-size: 0.95rem; }
  .pgd__album-card-desc { -webkit-line-clamp: 2; }

  /* Toolbar: nur Icons */
  .pgd__action-btn span { display: none; }
  .pgd__action-btn { padding: 0.45rem 0.65rem; }

  /* Grid */
  .pgd__grid { gap: 5px; }
  .pgd__image { border-radius: 4px; }

  /* Selection Bar */
  .portal-gallery-selection-bar { width: calc(100% - 1.5rem); bottom: 1rem; padding: 0.6rem 1rem; gap: 0.6rem; border-radius: 10px; }
  .portal-gallery-selection-bar__count { font-size: 0.78rem; }
  .portal-gallery-selection-bar__btn { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
}

@media (min-width: 1400px) {
  .pgd__grid { grid-template-columns: repeat(5, 1fr); }
  .pgd__hero { height: 400px; }
  .pgd__title { font-size: 3rem; }
}



/* ==========================================================================
   PORTAL GALLERY LIGHTBOX
   ========================================================================== */

.portal-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portal-gallery-lightbox.is-visible {
  opacity: 1;
}

.portal-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portal-gallery-lightbox__img-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
  user-select: none;
}

.portal-gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.portal-gallery-lightbox__img.is-loaded {
  opacity: 1;
}

/* Spinner */
.portal-gallery-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--color-gold, #C9A86C);
  border-radius: 50%;
  animation: lightboxSpin 0.8s linear infinite;
}

.portal-gallery-lightbox__img.is-loaded ~ .portal-gallery-lightbox__spinner,
.portal-gallery-lightbox__spinner.is-hidden {
  display: none;
}

@keyframes lightboxSpin {
  to { transform: rotate(360deg); }
}

/* Close Button */
.portal-gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.portal-gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.portal-gallery-lightbox__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Navigation Arrows */
.portal-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.portal-gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.08);
}

.portal-gallery-lightbox__nav--prev {
  left: 16px;
}

.portal-gallery-lightbox__nav--next {
  right: 16px;
}

.portal-gallery-lightbox__nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Counter */
.portal-gallery-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* Download Button in Lightbox */
.portal-gallery-lightbox__download {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #fff;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.portal-gallery-lightbox__download:hover {
  background: var(--color-gold, #C9A86C);
  border-color: var(--color-gold, #C9A86C);
  color: #fff;
}

.portal-gallery-lightbox__download svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Tablet */
@media (max-width: 768px) {
  .portal-gallery-lightbox__img-wrapper {
    padding: 50px 12px;
  }

  .portal-gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .portal-gallery-lightbox__nav--prev {
    left: 8px;
  }

  .portal-gallery-lightbox__nav--next {
    right: 8px;
  }

  .portal-gallery-lightbox__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .portal-gallery-lightbox__download {
    bottom: 14px;
    right: 14px;
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

/* Mobile Lightbox */
@media (max-width: 480px) {
  .portal-gallery-lightbox__img-wrapper {
    padding: 44px 4px 60px;
  }

  .portal-gallery-lightbox__nav {
    width: 34px;
    height: 34px;
  }

  .portal-gallery-lightbox__nav--prev { left: 4px; }
  .portal-gallery-lightbox__nav--next { right: 4px; }

  .portal-gallery-lightbox__close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .portal-gallery-lightbox__counter {
    bottom: 10px;
    left: 12px;
    right: auto;
    transform: none;
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .portal-gallery-lightbox__download {
    bottom: 10px;
    right: 12px;
    padding: 5px 10px;
    font-size: 0.68rem;
    gap: 4px;
  }

  .portal-gallery-lightbox__download span {
    display: none;
  }
}

/* ===== Customer Shares ===== */

.pgal-share-target {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem; background: rgba(0,0,0,0.02);
  border-radius: 8px; margin-bottom: 1rem; font-size: 0.85rem;
}
.pgal-share-target i, .pgal-share-target svg { width: 16px; height: 16px; opacity: 0.6; }

.pgal-share-form { display: flex; flex-direction: column; gap: 1rem; }
.pgal-share-label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; font-weight: 500; }
.pgal-share-optional { font-weight: 400; color: #999; font-size: 0.75rem; }
.pgal-share-toggle { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; cursor: pointer; }

/* Passwort-Feld mit Augensymbol-Toggle */
.pgal-share-pwd {
  position: relative;
  display: block;
}
.pgal-share-pwd .pgal-share-pwd__input {
  padding-right: 2.6rem;
  width: 100%;
}
.pgal-share-pwd__toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pgal-share-pwd__toggle:hover {
  background: rgba(201,168,108,0.12);
  color: var(--color-primary, #C9A86C);
}
.pgal-share-pwd__toggle i,
.pgal-share-pwd__toggle svg {
  width: 16px;
  height: 16px;
}

/* Passwort-Staerke-Indikator */
.pgal-share-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
}
.pgal-share-strength[hidden] { display: none; }

.pgal-share-strength__bars {
  display: inline-flex;
  flex: 1;
  gap: 0.25rem;
  height: 4px;
}
.pgal-share-strength__bar {
  flex: 1;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.pgal-share-strength[data-level="1"] .pgal-share-strength__bar.is-filled { background: #d94545; }
.pgal-share-strength[data-level="2"] .pgal-share-strength__bar.is-filled { background: #e09f3e; }
.pgal-share-strength[data-level="3"] .pgal-share-strength__bar.is-filled { background: #c9a86c; }
.pgal-share-strength[data-level="4"] .pgal-share-strength__bar.is-filled { background: #2f9e6e; }

.pgal-share-strength__label {
  min-width: 4.5rem;
  text-align: right;
  color: #888;
}
.pgal-share-strength[data-level="1"] .pgal-share-strength__label { color: #d94545; }
.pgal-share-strength[data-level="2"] .pgal-share-strength__label { color: #e09f3e; }
.pgal-share-strength[data-level="3"] .pgal-share-strength__label { color: #b8964f; }
.pgal-share-strength[data-level="4"] .pgal-share-strength__label { color: #2f9e6e; }

.pgal-share-success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.pgal-share-success__badge {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0.25rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47,158,110,0.16), rgba(47,158,110,0.06));
  border-radius: 50%;
  animation: pgal-share-success-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pgal-share-success__badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(47,158,110,0.3);
}

.pgal-share-success__badge i,
.pgal-share-success__badge svg {
  width: 30px;
  height: 30px;
  color: #2f9e6e;
  stroke-width: 3;
}

@keyframes pgal-share-success-pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.pgal-share-success__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  color: #2a2a2a;
  letter-spacing: 0.01em;
}

.pgal-share-success__sub {
  margin: 0 0 1.1rem !important;
  font-size: 0.82rem !important;
  color: #6b6b6b !important;
  font-weight: 400 !important;
}

.pgal-share-success__close {
  margin-top: 1rem;
  min-width: 120px;
}

/* Share Cards */
.pgal-shares-list { display: flex; flex-direction: column; gap: 0.75rem; }

.pgal-share-card {
  background: #fff; border: 1px solid #e8e0d4; border-radius: 12px;
  padding: 1rem 1.25rem;
}
.pgal-share-card__header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.pgal-share-card__title { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; }
.pgal-share-card__title i, .pgal-share-card__title svg { width: 15px; height: 15px; opacity: 0.5; }
.pgal-share-card__type { font-size: 0.7rem; color: #999; background: rgba(0,0,0,0.04); padding: 0.15rem 0.5rem; border-radius: 100px; }
.pgal-share-card__target { font-size: 0.78rem; color: #888; margin-bottom: 0.25rem; }
.pgal-share-card__gallery { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: #999; margin-bottom: 0.5rem; }
.pgal-share-card__gallery i, .pgal-share-card__gallery svg { width: 13px; height: 13px; opacity: 0.5; }

.pgal-share-card__status { font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 100px; white-space: nowrap; }
.pgal-share-card__status--active { background: rgba(236,253,245,0.8); color: #166534; }
.pgal-share-card__status--inactive { background: rgba(0,0,0,0.04); color: #888; }
.pgal-share-card__status--expired { background: rgba(254,242,242,0.8); color: #991b1b; }

.pgal-share-card__link-row { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
.pgal-share-card__link-row input { flex: 1; font-size: 0.75rem; }

.pgal-share-card__meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.75rem; color: #888; margin: 0.5rem 0;
}
.pgal-share-card__meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.pgal-share-card__meta i, .pgal-share-card__meta svg { width: 12px; height: 12px; opacity: 0.5; }

.pgal-share-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.pgal-share-action {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 500; border: 1px solid #e0d6c8;
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.pgal-share-action:hover { border-color: var(--color-primary, #C9A86C); color: var(--color-primary, #C9A86C); }
.pgal-share-action i, .pgal-share-action svg { width: 13px; height: 13px; }
.pgal-share-action--danger:hover { border-color: #dc2626; color: #dc2626; }

/* Album share button overlay */
.pgd__album-card-wrap {
  position: relative;
  flex: 0 0 auto;
}
.pgd__album-share-btn {
  all: unset; box-sizing: border-box;
  position: absolute; top: 6px; right: 6px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.85); border-radius: 50%;
  cursor: pointer; opacity: 0; transition: opacity 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.pgd__album-card-wrap:hover .pgd__album-share-btn { opacity: 1; }
.pgd__album-share-btn:hover { background: #fff; }
.pgd__album-share-btn i, .pgd__album-share-btn svg { width: 14px; height: 14px; color: #555; }

/* Selection share button */
.pgd__sel-share-btn {
  all: unset; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid #e0d6c8; border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.pgd__sel-share-btn:hover { border-color: var(--color-primary, #C9A86C); color: var(--color-primary, #C9A86C); }
.pgd__sel-share-btn i, .pgd__sel-share-btn svg { width: 14px; height: 14px; }


/* ============================================================
   Share-Modal: Galerie-/Album-Links + QR-Code
   ============================================================ */

.portal-gallery-share {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-gallery-share > label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B6B6B;
  margin-bottom: 0.4rem;
}

/* Input + Copy-Button als horizontale Einheit (Input-Group-Pattern) */
.portal-gallery-share__link-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(201, 168, 108, 0.25);
  border-radius: 10px;
  background: #FAFAF8;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-gallery-share__link-row:focus-within {
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.portal-gallery-share__link-row .portal-gallery-modal__input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem;
  color: #2D2D2D;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: 0.7rem 0.85rem;
}

.portal-gallery-share__link-row .portal-gallery-modal__input:focus {
  outline: none;
  box-shadow: none;
}

.portal-gallery-share__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  border: none;
  border-left: 1px solid rgba(201, 168, 108, 0.2);
  background: rgba(201, 168, 108, 0.08);
  color: var(--color-primary, #C9A86C);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-gallery-share__copy:hover {
  background: var(--color-primary, #C9A86C);
  color: #fff;
}

.portal-gallery-share__copy:active {
  transform: scale(0.96);
}

.portal-gallery-share__copy i,
.portal-gallery-share__copy svg {
  width: 16px;
  height: 16px;
}

/* QR-Code zentriert + dezent gerahmt */
.portal-gallery-share__qr-wrapper {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: #FAFAF8;
  border: 1px solid rgba(201, 168, 108, 0.15);
  border-radius: 12px;
}

.portal-gallery-share__qr {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Album-Liste */
.portal-gallery-share__albums {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 168, 108, 0.15);
}

.portal-gallery-share__albums h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B6B6B;
  margin: 0 0 0.25rem 0;
}

.portal-gallery-share__album-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-gallery-share__album-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1rem;
  font-weight: 500;
  color: #2D2D2D;
  font-style: italic;
}

.portal-gallery-share__album-link {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(201, 168, 108, 0.25);
  border-radius: 10px;
  background: #FAFAF8;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-gallery-share__album-link:focus-within {
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.portal-gallery-share__album-link .portal-gallery-modal__input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: 0.7rem 0.85rem;
}

.portal-gallery-share__album-link .portal-gallery-modal__input:focus {
  outline: none;
  box-shadow: none;
}

.portal-gallery-share__album-link .portal-gallery-share__copy {
  border-left: 1px solid rgba(201, 168, 108, 0.2);
}

@media (max-width: 480px) {
  .portal-gallery-share__copy {
    width: 40px;
  }
  .portal-gallery-share__qr {
    max-width: 140px;
  }
}

/* ============================================================
 * Source: components/portal-modals.css
 * ============================================================ */
/**
 * Portal Modals
 * ===================================
 * Password reset modal, detail modal (document/inquiry details),
 * detail modal modern redesign (animations, type-theming,
 * card-sections, appointment timeline)
 */

/* ==========================================================================
   PASSWORD RESET MODAL
   ========================================================================== */

.portal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.portal-modal-overlay[hidden] {
  display: none;
}

.portal-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.portal-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--elevated-card-border, rgba(255, 255, 255, 0.6));
  border-radius: var(--elevated-radius, 12px);
  box-shadow: var(--elevated-shadow-lg, 0 8px 24px rgba(0,0,0,0.08));
  padding: var(--spacing-2xl);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform var(--transition-normal);
}

.portal-modal-overlay.is-open .portal-modal {
  transform: translateY(0) scale(1);
}

.portal-modal__close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  /* Ensure touch target is large enough */
  padding: 0;
}

.portal-modal__close:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.portal-modal__close svg,
.portal-modal__close i {
  width: 20px;
  height: 20px;
}

.portal-modal__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.portal-modal__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.portal-modal__success {
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(124, 154, 124, 0.12);
  color: #4d7c4d;
  border: 1px solid rgba(124, 154, 124, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-md);
  display: none;
}

.portal-modal__success.is-visible {
  display: block;
}

.portal-modal__error {
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-md);
  display: none;
}

.portal-modal__error.is-visible {
  display: block;
}

.portal-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}


/* ==========================================================================
   DETAIL MODAL (breitere Variante fuer Dokument-Details)
   ========================================================================== */

.portal-modal.portal-modal--detail {
  max-width: 800px;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.portal-modal--detail .portal-modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin-top: calc(-1 * var(--spacing-md));
  margin-right: calc(-1 * var(--spacing-md));
  z-index: 10;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-gold, #C9A86C), var(--color-gold-dark, #B8975A));
  color: #fff;
  flex-shrink: 0;
}

.detail-header__icon svg,
.detail-header__icon i {
  width: 22px;
  height: 22px;
}

.detail-header__info {
  flex: 1;
}

.detail-header__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--spacing-xs);
}

.detail-header__badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-gold-light, rgba(201, 168, 108, 0.15));
  color: var(--color-gold-dark, #8B7340);
}

.detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-field__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-field__value {
  font-size: 0.9rem;
  color: var(--color-text);
  word-break: break-word;
}

.detail-intro {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  white-space: pre-line;
}

.detail-notes {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-background);
  border-radius: var(--radius-md);
  white-space: pre-line;
}

/* Line Items Table */
.detail-line-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: var(--spacing-md);
}

.detail-line-items th {
  text-align: left;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-gold, #C9A86C);
}

.detail-line-items td {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

.detail-line-items .text-right {
  text-align: right;
}

/* Amount Summary */
.detail-summary {
  margin-top: var(--spacing-md);
  margin-left: auto;
  max-width: 280px;
}

.detail-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-xs) 0;
  font-size: 0.9rem;
}

.detail-summary__row--total {
  font-weight: 600;
  font-size: 1rem;
  border-top: 2px solid var(--color-gold, #C9A86C);
  padding-top: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

/* PDF Download Button */
.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portal-btn svg,
.portal-btn i {
  width: 16px;
  height: 16px;
}

.portal-btn--primary {
  background: var(--color-primary, #C9A86C);
  color: #fff;
}

.portal-btn--primary:hover {
  background: var(--color-primary-dark, #B8975A);
}

@media (max-width: 480px) {
  .detail-fields {
    grid-template-columns: 1fr;
  }

  .detail-line-items {
    font-size: 0.75rem;
  }

  .detail-line-items th,
  .detail-line-items td {
    padding: var(--spacing-xs) 4px;
  }
}

/* ==========================================================================
   DETAIL MODAL — MODERN REDESIGN (Animationen, Type-Theming, Card-Sections)
   ========================================================================== */

/* ---------- Keyframe Animations ---------- */

@keyframes detailSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes goldShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes countPop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--detail-accent-glow, rgba(201,168,108,0.3)); }
  50%      { box-shadow: 0 0 10px 3px var(--detail-accent-glow, rgba(201,168,108,0.12)); }
}

@keyframes progressFill {
  from { width: 0%; }
  to   { width: var(--fill-pct, 100%); }
}

/* ---------- Type-Specific Theming via data-detail-type ---------- */

.detail-content {
  position: relative;
  overflow: hidden;
  --detail-accent: var(--color-primary, #C9A86C);
  --detail-accent-light: rgba(201, 168, 108, 0.08);
  --detail-accent-glow: rgba(201, 168, 108, 0.25);
}

.detail-content[data-detail-type="inquiry"] {
  --detail-accent: #C9A86C;
  --detail-accent-light: rgba(201, 168, 108, 0.1);
  --detail-accent-glow: rgba(201, 168, 108, 0.25);
}

.detail-content[data-detail-type="offer"] {
  --detail-accent: #C9A86C;
  --detail-accent-light: rgba(201, 168, 108, 0.08);
  --detail-accent-glow: rgba(201, 168, 108, 0.2);
}

.detail-content[data-detail-type="invoice"] {
  --detail-accent: #C9A86C;
  --detail-accent-light: rgba(201, 168, 108, 0.08);
  --detail-accent-glow: rgba(201, 168, 108, 0.2);
}

.detail-content[data-detail-type="invoice"][data-status="paid"] {
  --detail-accent: var(--color-accent-green, #7C9A7C);
  --detail-accent-light: rgba(124, 154, 124, 0.08);
  --detail-accent-glow: rgba(124, 154, 124, 0.2);
}

.detail-content[data-detail-type="invoice"][data-status="overdue"] {
  --detail-accent: #dc3545;
  --detail-accent-light: rgba(220, 53, 69, 0.06);
  --detail-accent-glow: rgba(220, 53, 69, 0.2);
}

.detail-content[data-detail-type="appointment"] {
  --detail-accent: var(--color-gold, #C9A86C);
  --detail-accent-light: rgba(201, 168, 108, 0.08);
  --detail-accent-glow: rgba(201, 168, 108, 0.2);
}

/* ---------- Decorative Background Elements ---------- */

.detail-content::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--detail-accent) 0%, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

.detail-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(var(--detail-accent) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Accent Gradient Bar (Top) ---------- */

.detail-content > .detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--detail-accent), transparent 80%);
  border-radius: 3px 3px 0 0;
}

/* ---------- Enhanced Header ---------- */

.detail-content > .detail-header {
  position: relative;
  padding-top: var(--spacing-md);
}

.detail-content .detail-header__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--detail-accent), color-mix(in srgb, var(--detail-accent) 70%, #000));
  box-shadow: 0 4px 12px var(--detail-accent-glow);
  position: relative;
  overflow: hidden;
}

.detail-content .detail-header__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: goldShimmer 3s ease-in-out infinite;
  animation-delay: 1s;
}

.detail-content .detail-header__icon svg,
.detail-content .detail-header__icon i {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.detail-content .detail-header__title {
  font-size: 1.35rem;
}

/* ---------- Enhanced Status Badges ---------- */

.detail-content .status-badge--ueberfaellig,
.detail-content .status-badge--overdue {
  animation: pulseGlow 2s ease-in-out infinite;
}

.detail-content .status-badge--bezahlt,
.detail-content .status-badge--gebucht,
.detail-content .status-badge--paid,
.detail-content .status-badge--accepted {
  background: rgba(124, 154, 124, 0.15);
  color: #4a6f4a;
}

/* ---------- Card-Style Detail Sections ---------- */

.detail-section {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--detail-accent);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.detail-section__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.detail-section .detail-field {
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.detail-section .detail-field:hover {
  background: var(--detail-accent-light);
}

/* ---------- Modern Line-Items Table ---------- */

.detail-content .detail-line-items {
  border-collapse: separate;
  border-spacing: 0 var(--spacing-xs);
  position: relative;
  z-index: 1;
}

.detail-content .detail-line-items thead tr {
  background: var(--detail-accent-light);
}

.detail-content .detail-line-items th {
  border-bottom: none;
  background: var(--detail-accent-light);
}

.detail-content .detail-line-items th:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.detail-content .detail-line-items th:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.detail-content .detail-line-items tbody tr {
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.detail-content .detail-line-items tbody tr:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(2px);
  box-shadow: inset 3px 0 0 var(--detail-accent);
}

.detail-content .detail-line-items td {
  border-bottom: none;
}

.detail-content .detail-line-items td:first-child {
  font-weight: 600;
  color: var(--detail-accent);
  font-size: 0.8rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.detail-content .detail-line-items td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Enhanced Amount Summary ---------- */

.detail-content .detail-summary {
  background: linear-gradient(135deg, var(--detail-accent-light), rgba(255, 255, 255, 0.8));
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.detail-content .detail-summary__row--total {
  border-top-color: var(--detail-accent);
}

.detail-content .detail-summary__row--total span:last-child {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--detail-accent);
}

/* ---------- Enhanced PDF Button ---------- */

.detail-content .detail-actions {
  position: relative;
  z-index: 1;
}

.detail-content .portal-btn--primary {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-gold, #C9A86C), var(--color-gold-dark, #B8975A));
  color: #fff;
  transition: all var(--transition-normal);
}

.detail-content .portal-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.detail-content .portal-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--detail-accent-glow);
}

.detail-content .portal-btn--primary:hover::before {
  opacity: 1;
  animation: goldShimmer 0.6s ease forwards;
}

.detail-content .portal-btn--primary:active {
  transform: translateY(0);
}

/* ---------- Appointment Timeline ---------- */

.detail-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm) 0;
  position: relative;
  z-index: 1;
}

.detail-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.detail-timeline__step-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.detail-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  background: transparent;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.detail-timeline__dot--complete {
  background: var(--detail-accent);
  border-color: var(--detail-accent);
}

.detail-timeline__dot--active {
  background: var(--detail-accent);
  border-color: var(--detail-accent);
  animation: pulseGlow 2s ease-in-out infinite;
}

.detail-timeline__line {
  width: 40px;
  height: 2px;
  background: var(--color-text-muted);
  opacity: 0.2;
  flex-shrink: 0;
  margin: 0 var(--spacing-xs);
  align-self: center;
  margin-top: -18px;
}

.detail-timeline__line--complete {
  background: var(--detail-accent);
  opacity: 0.6;
}

/* ---------- Staggered Entrance Animations ---------- */

@media (prefers-reduced-motion: no-preference) {
  .detail-content > * {
    animation: detailSlideUp 400ms ease-out both;
    animation-delay: var(--detail-delay, 0ms);
  }

  .detail-content .detail-summary__row--total {
    animation: countPop 500ms ease-out both;
    animation-delay: 300ms;
  }
}

/* ---------- Detail Notes Enhanced ---------- */

.detail-content .detail-notes {
  position: relative;
  z-index: 1;
  border-left: 3px solid var(--detail-accent-light);
}

.detail-content .detail-intro {
  position: relative;
  z-index: 1;
}

/* ---------- Line Items Wrapper ---------- */

.detail-line-items-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Mobile: Bottom-Sheet + Hide Decorations ---------- */

@media (max-width: 767px) {
  .detail-content::before,
  .detail-content::after {
    display: none;
  }

  .detail-header {
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .detail-header__icon {
    width: 36px;
    height: 36px;
  }

  .detail-header__title {
    font-size: 1.1rem;
  }

  .detail-section {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .detail-content .detail-summary {
    max-width: 100%;
  }

  .detail-fields {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .detail-timeline {
    gap: 0;
  }

  .detail-timeline__step-label {
    font-size: 0.6rem;
  }

  .detail-timeline__line {
    margin-top: 0;
  }

  .detail-line-items {
    font-size: 0.75rem;
  }

  .detail-line-items th,
  .detail-line-items td {
    padding: var(--spacing-xs) 4px;
  }

  .detail-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .detail-actions .portal-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .detail-header {
    padding: var(--spacing-sm);
  }

  .detail-header__title {
    font-size: 0.95rem;
  }

  .detail-section {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .detail-timeline__step-label {
    display: none;
  }
}

/* ============================================================
 * Source: components/dashboard-layout.css
 * ============================================================ */
/**
 * Dashboard Layout
 * ================
 * Admin layout shell, sidebar, mobile sidebar, topbar, panels,
 * toast, footer, skeleton, bottom nav, responsive breakpoints,
 * print, fallback, reduced-motion, high-contrast
 */

/* ===== Admin Layout Shell ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--color-background);
  max-width: 100vw;
  overflow-x: hidden;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  margin-left: 260px;
  transition: margin-left var(--transition-normal);
  overflow-x: hidden;
}

.admin-content {
  flex: 1;
  padding: var(--spacing-2xl);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ===== Admin Sidebar ===== */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.04);
  transition: width var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
}

.admin-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 var(--spacing-sm) 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-sidebar__logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  margin: -10px 0 -15px;
}

.admin-sidebar__brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  line-height: 1;
  transition: opacity var(--transition-normal);
}

.admin-sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md) 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: 2px var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: calc(100% - var(--spacing-sm) * 2);
}

.admin-sidebar__nav-item:hover {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.06);
}

.admin-sidebar__nav-item.is-active {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.admin-sidebar__nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-sidebar__nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition-normal);
}

.admin-sidebar__nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-full);
  margin-left: auto;
  line-height: 1;
  flex-shrink: 0;
}

.admin-sidebar__footer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.admin-sidebar__logout {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-sidebar__logout:hover {
  color: #C47C7C;
  background: rgba(196, 124, 124, 0.08);
}

.admin-sidebar__logout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Mobile Sidebar Toggle ===== */
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.admin-sidebar-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.06);
}

.admin-sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

/* ===== Mobile Sidebar Overlay ===== */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-fixed) - 1);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.admin-sidebar-overlay.is-visible {
  opacity: 1;
}

/* ===== Admin Top Bar ===== */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-2xl);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.03);
  min-height: 60px;
}

.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.admin-topbar__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
}

.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.admin-topbar__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(201, 168, 108, 0.15);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-topbar__avatar svg {
  width: 18px;
  height: 18px;
}

.admin-topbar__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
}

/* Willkommen-Text in Topbar */
.admin-topbar__welcome {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 400;
  white-space: nowrap;
}

.admin-topbar__welcome strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Kundenansicht-Button */
.admin-topbar__customer-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.08);
  border: 1px solid rgba(201, 168, 108, 0.25);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.admin-topbar__customer-view:hover {
  background: rgba(201, 168, 108, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.admin-topbar__customer-view svg {
  width: 14px;
  height: 14px;
}

.admin-topbar__logout {
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.admin-topbar__logout:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: rgba(201, 168, 108, 0.08);
}

/* ===== Panel Show/Hide ===== */
.admin-panel {
  display: none;
  position: relative;
}

.admin-panel.is-active {
  display: block;
}

.admin-panel.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
  border-radius: var(--radius-md);
}

.admin-panel.is-loading::after {
  content: '';
  position: absolute;
  top: 120px;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(201, 168, 108, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  z-index: 11;
  animation: panel-spin 0.7s linear infinite;
}

@keyframes panel-spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* ===== Toast Notification ===== */
.admin-toast {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-width: 280px;
  max-width: 420px;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(120%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.admin-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.admin-toast--success {
  border-left: 4px solid var(--color-primary);
}

.admin-toast--error {
  border-left: 4px solid #C47C7C;
}

.admin-toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.admin-toast--success .admin-toast__icon {
  background: rgba(201, 168, 108, 0.12);
  color: var(--color-primary);
}

.admin-toast--error .admin-toast__icon {
  background: rgba(196, 124, 124, 0.12);
  color: #C47C7C;
}

.admin-toast__icon svg {
  width: 18px;
  height: 18px;
}

.admin-toast__content {
  flex: 1;
  min-width: 0;
}

.admin-toast__message {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.admin-toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
}

.admin-toast__close:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.admin-toast__close svg {
  width: 16px;
  height: 16px;
}

/* Toast auto-dismiss progress bar */
.admin-toast__progress {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 0;
  height: 2px;
  border-radius: 0 0 var(--radius-lg) 0;
  overflow: hidden;
}

.admin-toast__progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: toast-dismiss 5s linear forwards;
}

.admin-toast--success .admin-toast__progress-bar {
  background: var(--color-primary);
}

.admin-toast--error .admin-toast__progress-bar {
  background: #C47C7C;
}

@keyframes toast-dismiss {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* ===== Admin Footer ===== */
.admin-footer {
  padding: var(--spacing-sm) var(--spacing-2xl);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5);
}

.admin-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs) var(--spacing-md);
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--color-text-muted);
}

.admin-footer__social {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.admin-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.admin-footer__social a:hover {
  color: var(--color-primary);
}

.admin-footer__social a svg {
  width: 16px;
  height: 16px;
}

.admin-footer__divider {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.admin-footer__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.admin-footer__links a {
  color: var(--color-text-muted);
  font-size: 11px;
  transition: color var(--transition-fast);
}

.admin-footer__links a:hover {
  color: var(--color-primary);
}

.admin-footer__copy {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ===== Loading Skeleton ===== */
.admin-skeleton {
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.04) 25%,
      rgba(0, 0, 0, 0.08) 50%,
      rgba(0, 0, 0, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.admin-skeleton--text {
  height: 14px;
  width: 80%;
}

.admin-skeleton--value {
  height: 32px;
  width: 60%;
}

.admin-skeleton--circle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ===== Mobile Bottom Nav ===== */
.admin-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
  padding: var(--spacing-xs) 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.admin-bottom-nav__items {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.admin-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.admin-bottom-nav__item:hover,
.admin-bottom-nav__item.is-active {
  color: var(--color-primary);
}

.admin-bottom-nav__item.is-active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.admin-bottom-nav__item svg {
  width: 20px;
  height: 20px;
}

.admin-bottom-nav__badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Responsive: Tablet (768-1023) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .admin-sidebar {
    width: 64px;
  }

  .admin-sidebar__brand-text {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
  }

  .admin-sidebar__brand {
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs);
  }

  .admin-sidebar__logo {
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .admin-sidebar__nav-item {
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-sm);
    margin: 2px var(--spacing-xs);
    border-left-width: 0;
    border-bottom: 2px solid transparent;
    border-left: none;
  }

  .admin-sidebar__nav-item.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--color-primary);
  }

  .admin-sidebar__nav-label {
    display: none;
  }

  .admin-sidebar__nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.55rem;
    margin-left: 0;
  }

  .admin-sidebar__nav-item {
    position: relative;
  }

  .admin-sidebar__logout span {
    display: none;
  }

  .admin-sidebar__logout {
    justify-content: center;
  }

  .admin-sidebar__footer {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .admin-main {
    margin-left: 64px;
  }

  .admin-topbar {
    padding: var(--spacing-md) var(--spacing-xl);
  }

  .admin-content {
    padding: var(--spacing-xl);
  }
}

/* ===== Responsive: Mobile (<768) — Layout ===== */
@media (max-width: 767px) {

  /* --- Layout: Sidebar als Overlay, kein Bottom-Nav --- */
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: calc(var(--z-fixed) + 1);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    display: block;
  }

  .admin-sidebar-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }

  /* Bottom-Nav ausblenden — Hamburger + Sidebar reicht */
  .admin-bottom-nav {
    display: none !important;
  }

  .admin-main {
    margin-left: 0;
    padding-bottom: 0;
    overflow-x: hidden;
  }

  /* --- Topbar: Kompakt, kein Overflow --- */
  .admin-topbar {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .admin-topbar__left {
    min-width: 0;
    overflow: hidden;
  }

  .admin-topbar__title {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-topbar__welcome {
    display: none;
  }

  .admin-topbar__customer-view span {
    display: none;
  }

  .admin-topbar__right {
    flex-shrink: 0;
    gap: var(--spacing-sm);
  }

  .admin-topbar__logout {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
  }

  /* --- Content: Kein Overflow, sauberes Padding --- */
  .admin-content {
    padding: var(--spacing-md);
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* --- Section Header --- */
  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .admin-section-filters {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }

  /* --- Footer --- */
  .admin-footer {
    padding: var(--spacing-md);
  }

  .admin-footer__inner {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .admin-footer__divider {
    display: none;
  }

  /* --- Toast: Volle Breite unten --- */
  .admin-toast {
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: var(--spacing-md);
    min-width: auto;
    max-width: none;
  }

  /* --- Settings: Labels stapeln, Touch-Targets --- */
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-btn {
    min-height: 44px;
    padding: 10px 20px;
  }

  .admin-settings-field {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-settings-field__label {
    min-width: unset;
  }

  .admin-settings-card {
    padding: var(--spacing-lg);
  }

  /* --- Gallery Section Header: Buttons wrappen --- */
  .admin-section-header__right,
  .admin-section-header [style*="display: flex"] {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }

  /* --- Gallery Editor: Kompakter --- */
  .admin-gallery-editor__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .admin-gallery-editor__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-gallery-editor__actions .admin-settings-btn {
    flex: 1;
    min-width: 0;
  }

  .admin-gallery-editor__upload-zone {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .admin-gallery-editor__albums-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: var(--spacing-xs);
  }

  .admin-gallery-editor__image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

/* ===== Desktop (1024+) full sidebar ===== */
@media (min-width: 1024px) {
  .admin-sidebar-toggle {
    display: none;
  }

  .admin-sidebar {
    transform: translateX(0);
  }
}

/* ===== Extra-Small Mobile (<380px) — Layout ===== */
@media (max-width: 380px) {
  .admin-topbar__title {
    font-size: 0.95rem;
  }

  .admin-topbar__customer-view {
    display: none;
  }

  .admin-sidebar {
    width: 260px;
  }

  .admin-content {
    padding: var(--spacing-sm);
  }

  .admin-section-title {
    font-size: 1.1rem;
  }
}

/* ===== Print Styles ===== */
@media print {

  .admin-sidebar,
  .admin-topbar,
  .admin-bottom-nav,
  .admin-toast,
  .admin-modal__backdrop,
  .admin-footer {
    display: none !important;
  }

  .admin-main {
    margin-left: 0 !important;
  }

  .admin-kpi-card,
  .admin-chart-card,
  .admin-table-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== Backdrop-filter Fallback ===== */
@supports not (backdrop-filter: blur(10px)) {
  .admin-sidebar {
    background: rgba(255, 255, 255, 0.98);
  }

  .admin-topbar {
    background: rgba(255, 255, 255, 0.98);
  }

  .admin-kpi-card,
  .admin-chart-card,
  .admin-table-card {
    background: rgba(255, 255, 255, 0.97);
  }

  .admin-modal {
    background: rgba(255, 255, 255, 0.99);
  }

  .admin-modal__backdrop {
    background: rgba(0, 0, 0, 0.6);
  }

  .admin-toast {
    background: rgba(255, 255, 255, 0.99);
  }

  .admin-bottom-nav {
    background: rgba(255, 255, 255, 0.99);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {

  .admin-kpi-card,
  .admin-chart-card,
  .admin-modal,
  .admin-toast,
  .admin-sidebar,
  .admin-action-btn,
  .admin-filter-btn {
    transition: none;
  }

  .admin-toast__progress-bar {
    animation: none;
  }

  .admin-skeleton {
    animation: none;
  }

  @keyframes spin {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(0deg);
    }
  }
}

/* ===== High Contrast Adjustments ===== */
@media (forced-colors: active) {

  .admin-kpi-card,
  .admin-chart-card,
  .admin-table-card,
  .admin-modal {
    border: 2px solid ButtonText;
  }

  .status-badge {
    border: 1px solid ButtonText;
  }

  .admin-sidebar__nav-item.is-active {
    border-left-color: Highlight;
    color: Highlight;
  }
}

/* ============================================================
 * Source: components/dashboard-kpis.css
 * ============================================================ */
/**
 * Dashboard KPIs
 * ==============
 * KPI cards, time filter, stats
 */

/* ===== KPI Cards ===== */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.admin-kpi-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.admin-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0.6;
}

.admin-kpi-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.admin-kpi-card:hover::before {
  opacity: 1;
}

.admin-kpi-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.admin-kpi-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(201, 168, 108, 0.12);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  flex-shrink: 0;
}

.admin-kpi-card__icon svg {
  width: 20px;
  height: 20px;
}

.admin-kpi-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.admin-kpi-card__trend--up {
  color: #4d7c4d;
  background: rgba(124, 154, 124, 0.12);
}

.admin-kpi-card__trend--down {
  color: #C47C7C;
  background: rgba(196, 124, 124, 0.12);
}

.admin-kpi-card__trend--neutral {
  color: var(--color-text-muted);
  background: rgba(107, 107, 107, 0.08);
}

.admin-kpi-card__trend svg {
  width: 12px;
  height: 12px;
}

.admin-kpi-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.admin-kpi-card__value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.1;
}

/* ===== Dashboard Time Filter ===== */
.dashboard-time-filter {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.dashboard-time-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.dashboard-time-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.15);
}

.dashboard-time-btn.is-active {
  color: #fff;
  background: var(--color-primary, #C9A86C);
  border-color: var(--color-primary, #C9A86C);
}

/* ===== Conversion Funnel ===== */

.admin-funnel__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--spacing-sm) 0;
}

.admin-funnel__step {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-funnel__bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: width 0.5s ease;
}

.admin-funnel__step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
}

.admin-funnel__step-count {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-text);
}

.admin-funnel__rate {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 2px 0;
}

/* ===== Responsive: Mobile (<768) — KPIs ===== */
@media (max-width: 767px) {

  /* --- KPI-Cards: Kompakt als 2er-Grid --- */
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
  }

  .admin-kpi-card {
    padding: var(--spacing-sm) var(--spacing-md);
    overflow: hidden;
  }

  .admin-kpi-card:hover {
    transform: none;
  }

  .admin-kpi-card__header {
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
  }

  .admin-kpi-card__icon {
    width: 30px;
    height: 30px;
  }

  .admin-kpi-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .admin-kpi-card__sparkline {
    display: none;
  }

  .admin-kpi-card__label {
    font-size: 0.65rem;
  }

  .admin-kpi-card__value {
    font-size: 1.3rem;
  }

  /* --- Time Filter Mobile --- */
  .dashboard-time-filter {
    gap: 4px;
  }

  .dashboard-time-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
}

/* ===== Extra-Small Mobile (<380px) — KPIs ===== */
@media (max-width: 380px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-kpi-card__value {
    font-size: 1.25rem;
  }
}

/* ============================================================
 * Source: components/dashboard-charts.css
 * ============================================================ */
/**
 * Dashboard Charts
 * ================
 * Chart grid, chart styles, heatmap
 */

/* ===== Charts Grid ===== */
.admin-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .admin-charts-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.admin-chart-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-xl);
  transition: box-shadow var(--transition-normal);
}

.admin-chart-card:hover {
  box-shadow: var(--shadow-lg);
}

.admin-chart-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

.admin-chart-card__canvas {
  width: 100%;
  min-height: 260px;
  max-height: 320px;
}

.admin-chart-card__canvas--tall {
  min-height: 300px;
  max-height: 380px;
}

/* ===== Heatmap Table ===== */

.admin-heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.admin-heatmap-table thead th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.7rem;
  text-align: center;
  padding: 4px 2px;
}

.admin-heatmap-table__day {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.7rem;
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
}

.admin-heatmap-table__cell {
  text-align: center;
  padding: 6px 2px;
  border-radius: 3px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.7rem;
  min-width: 28px;
  transition: transform var(--transition-fast);
}

.admin-heatmap-table__cell:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-sm);
}

/* ===== Responsive: Mobile (<768) — Charts ===== */
@media (max-width: 767px) {

  /* --- Charts: Volle Breite, kompakter --- */
  .admin-charts-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .admin-chart-card {
    padding: var(--spacing-sm) var(--spacing-md);
    overflow: hidden;
  }

  .admin-chart-card__title {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
  }

  .admin-chart-card__canvas {
    min-height: 150px;
    max-height: 200px;
  }
}

/* ============================================================
 * Source: components/dashboard-tables.css
 * ============================================================ */
/**
 * Dashboard Tables
 * ================
 * Tables (inquiry, customer, appointment, documents), status badges,
 * search, sort, export, dropdowns, action buttons, empty states,
 * customer cards, customer stats, gallery sections, settings,
 * appointments hero/timeline, reviews, audit-log
 */

/* ===== Inquiries Section ===== */
.admin-inquiries {
  margin-bottom: var(--spacing-2xl);
}

/* ===== Shared Search Input ===== */

.admin-search-wrapper {
  position: relative;
  flex: 0 1 260px;
  min-width: 160px;
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.admin-search-input::placeholder {
  color: var(--color-text-muted);
}

/* ===== Sort Select ===== */

.admin-sort-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color var(--transition-fast);
}

.admin-sort-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ===== Export Button ===== */

.admin-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-export-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(201, 168, 108, 0.06);
}

.admin-export-btn svg {
  width: 13px;
  height: 13px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.admin-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
}

.admin-section-filters {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.admin-filter-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-filter-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  background: rgba(201, 168, 108, 0.06);
}

.admin-filter-btn.is-active {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===== Inquiry Table ===== */
.admin-table-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table th {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-align: left;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-background-alt);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.admin-table td {
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--color-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: rgba(201, 168, 108, 0.04);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table__name {
  font-weight: 500;
  color: var(--color-text);
}

.admin-table__email {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.admin-table__theme {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.admin-table__date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ===== Status Badges ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge--neu {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-badge--kontaktiert {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge--gebucht {
  background: rgba(124, 154, 124, 0.15);
  color: #4d7c4d;
  border: 1px solid rgba(124, 154, 124, 0.3);
}

.status-badge--offen {
  color: #d97706;
  background: #fffbeb;
}

.status-badge--archiviert {
  background: rgba(107, 107, 107, 0.1);
  color: var(--color-text-muted);
  border: 1px solid rgba(107, 107, 107, 0.2);
}

.status-badge--spam {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

/* English aliases for legacy compat */
.status-badge--new {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-badge--contacted {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge--booked {
  background: rgba(124, 154, 124, 0.15);
  color: #4d7c4d;
  border: 1px solid rgba(124, 154, 124, 0.3);
}

.status-badge--archived {
  background: rgba(107, 107, 107, 0.1);
  color: var(--color-text-muted);
  border: 1px solid rgba(107, 107, 107, 0.2);
}

/* ===== Status Dropdown ===== */
.status-select {
  appearance: none;
  padding: var(--spacing-xs) var(--spacing-md);
  padding-right: calc(var(--spacing-md) + 18px);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-xs) center;
  background-size: 14px;
}

.status-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.status-select:hover {
  border-color: var(--color-primary-light);
}

/* ===== Table Action Buttons ===== */
.admin-table__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  color: #555;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-body);
  line-height: 1;
}

.admin-action-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
}

.admin-action-btn--invite {
  color: var(--color-accent-green, #5a7a5a);
  border-color: rgba(124, 154, 124, 0.3);
  background: rgba(124, 154, 124, 0.05);
}

.admin-action-btn--invite:hover {
  color: var(--color-accent-green);
  border-color: var(--color-accent-green);
  background: rgba(124, 154, 124, 0.12);
}

.admin-action-btn--crm {
  color: var(--color-primary, #C9A86C);
  border-color: rgba(201, 168, 108, 0.3);
  background: rgba(201, 168, 108, 0.05);
}

.admin-action-btn--crm:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(201, 168, 108, 0.12);
}

.admin-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.admin-action-btn__label {
  display: inline;
}

.admin-action-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
  border: 1px solid rgba(201, 168, 108, 0.3);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}

/* ===== Empty State ===== */
.admin-empty-row td {
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
}

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-3xl) var(--spacing-lg);
  animation: adminEmptyFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.15s;
}

@keyframes adminEmptyFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.1), rgba(201, 168, 108, 0.05));
  border: 1px solid rgba(201, 168, 108, 0.12);
  border-radius: 20px;
  color: var(--color-primary, #C9A86C);
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.admin-empty-state__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 1px dashed rgba(201, 168, 108, 0.15);
}

.admin-empty-state__icon svg {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.admin-empty-state__text {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

/* ===== Customer Section: Stats + Search ===== */
.admin-customers__stats {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.admin-customers__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(201, 168, 108, 0.10);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 500;
}

.admin-customers__badge--portal {
  background: rgba(74, 144, 90, 0.10);
  color: #4a905a;
}

.admin-customers__search {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.admin-customers__search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.admin-customers__search-input-wrap>svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.admin-customers__search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-customers__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.admin-customers__search-input::placeholder {
  color: var(--color-text-muted);
}

.admin-customers__search-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ===== Customer Cards ===== */
.admin-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--spacing-lg);
}

.admin-customer-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
}

.admin-customer-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.admin-customer-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.admin-customer-card__avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.18), rgba(201, 168, 108, 0.08));
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.admin-customer-card__info {
  min-width: 0;
  flex: 1;
}

.admin-customer-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.admin-customer-card__company {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.admin-customer-card__number {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  margin: 2px 0 0;
  opacity: 0.7;
}

.admin-customer-card__portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-muted);
}

.admin-customer-card__portal-badge--active {
  background: rgba(74, 144, 90, 0.10);
  color: #4a905a;
}

.admin-customer-card__portal-badge--pending {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}

.admin-customer-card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
  color: var(--color-text);
}

.admin-customer-card__details span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-customer-card__details svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Portal-E-Mail-Hinweis (gruen, wenn Kunde seine E-Mail im Portal geaendert hat) */
.admin-customer-card__details span.admin-customer-card__portal-email {
  color: #2f9e6e;
  font-weight: 500;
  font-size: 0.75rem;
}

.admin-customer-card__details span.admin-customer-card__portal-email svg {
  color: #2f9e6e;
}

.admin-customer-card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.admin-customer-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-customer-card__meta svg {
  width: 13px;
  height: 13px;
}

.admin-customer-card__revenue {
  color: #4a905a !important;
  font-weight: 500;
}

/* ===== Customer Invite / Resend Buttons ===== */
.admin-customer-card__invite-btn,
.admin-customer-card__resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--spacing-sm);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-gold);
  background: rgba(201, 168, 108, 0.08);
  border: 1px solid rgba(201, 168, 108, 0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-customer-card__invite-btn:hover,
.admin-customer-card__resend-btn:hover {
  background: rgba(201, 168, 108, 0.15);
  border-color: var(--color-gold);
}

.admin-customer-card__invite-btn svg,
.admin-customer-card__resend-btn svg {
  width: 14px;
  height: 14px;
}

/* ===== Detail Modal Action Buttons ===== */
.admin-detail__actions {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.admin-detail__resend-btn,
.admin-detail__invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.15s ease;
}

.admin-detail__resend-btn {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}

.admin-detail__resend-btn:hover {
  background: #fef3c7;
}

.admin-detail__invite-btn {
  color: var(--primary, #2563eb);
  background: var(--primary-light, #eff6ff);
  border-color: var(--primary-border, #bfdbfe);
}

.admin-detail__invite-btn:hover {
  background: var(--primary-hover-light, #dbeafe);
}

.admin-detail__pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border, #e5e7eb);
  color: var(--color-text, #1f2937);
  background: var(--color-bg, #fff);
  transition: all 0.15s ease;
}

.admin-detail__pdf-btn:hover {
  background: var(--color-bg-hover, #f9fafb);
  border-color: var(--color-primary, #C9A86C);
  color: var(--color-primary, #C9A86C);
}

.admin-detail__pdf-btn i {
  width: 16px;
  height: 16px;
}

.admin-detail__send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-primary, #C9A86C);
  color: #fff;
  background: var(--color-primary, #C9A86C);
  transition: all 0.15s ease;
}

.admin-detail__send-btn:hover {
  background: #b8964f;
  border-color: #b8964f;
}

.admin-detail__send-btn i {
  width: 16px;
  height: 16px;
}

.admin-table__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--color-text-muted, #6b7280);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-table__action-btn:hover {
  background: var(--color-bg-hover, #f3f4f6);
  color: var(--color-primary, #C9A86C);
}

.admin-table__action-btn i {
  width: 16px;
  height: 16px;
}

/* ===== Customer Load More ===== */
.admin-customers__load-more {
  display: flex;
  justify-content: center;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.admin-customers__load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-2xl);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.08);
  border: 1px solid rgba(201, 168, 108, 0.25);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.admin-customers__load-more-btn:hover {
  background: rgba(201, 168, 108, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.admin-customers__load-more-btn:active {
  transform: translateY(0);
}

.admin-customers__load-more-btn svg {
  width: 16px;
  height: 16px;
}

.admin-customers__load-more-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 2px;
}

/* ===== Documents Load More ===== */
.admin-docs-load-more {
  display: block;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.05);
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background var(--transition-fast);
  text-align: center;
}

.admin-docs-load-more:hover {
  background: rgba(201, 168, 108, 0.12);
}

@media (max-width: 640px) {
  .admin-customer-grid {
    grid-template-columns: 1fr;
  }

  .admin-customers__search {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-customers__search-input-wrap {
    max-width: none;
  }
}

/* ===== Gallery Expiry Alert ===== */
.admin-gallery-expiry-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  background: rgba(255, 251, 235, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 3px solid #F59E0B;
  border-radius: 12px;
  color: var(--color-text);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  line-height: 1.6;
  animation: adminGalleryFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes adminGalleryFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-gallery-expiry-alert em {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary-dark, #B8956A);
}

.admin-gallery-expiry-alert--danger {
  background: rgba(254, 242, 242, 0.7);
  border-color: rgba(239, 68, 68, 0.2);
  border-left-color: #EF4444;
}

/* ===== Gallery Section — Premium Header & Stats ===== */
.admin-galleries__header {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(201, 168, 108, 0.1);
}

@media (min-width: 768px) {
  .admin-galleries__header {
    flex-direction: row;
    align-items: center;
  }
}

.admin-galleries__title-group {
  flex: 1;
  min-width: 0;
}

.admin-galleries__title {
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.admin-galleries__subtitle {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 0;
  line-height: 1.4;
}

.admin-galleries__header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-galleries__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-galleries__stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B6B6B);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 108, 0.12);
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.admin-galleries__stat-badge:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(201, 168, 108, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.admin-galleries__stat-badge span {
  font-weight: 700;
  color: var(--color-text, #2D2D2D);
}

.admin-galleries__stat-badge i {
  opacity: 0.6;
}

.admin-galleries__stat-badge--active {
  background: rgba(236, 253, 245, 0.7);
  border-color: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.admin-galleries__stat-badge--active span {
  color: #166534;
}

.admin-galleries__stat-badge--expired {
  background: rgba(254, 242, 242, 0.6);
  border-color: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.admin-galleries__stat-badge--expired span {
  color: #991b1b;
}

.admin-galleries__create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary, #C9A86C), var(--color-primary-dark, #B8956A));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px rgba(201, 168, 108, 0.25);
  position: relative;
  overflow: hidden;
}

.admin-galleries__create-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-galleries__create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 108, 0.35);
}

.admin-galleries__create-btn:hover::before {
  opacity: 1;
}

.admin-galleries__create-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 168, 108, 0.2);
}

.admin-galleries__create-btn i {
  width: 16px;
  height: 16px;
}

.admin-galleries__filters {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 108, 0.08);
  display: inline-flex;
  margin-bottom: var(--spacing-lg);
}

/* ===== Gallery Grid ===== */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--spacing-lg);
}

/* ===== Settings ===== */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--spacing-lg);
}

.admin-settings-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-xl);
}

.admin-settings-card__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-settings-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(201, 168, 108, 0.12);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  flex-shrink: 0;
}

.admin-settings-card__icon svg {
  width: 18px;
  height: 18px;
}

.admin-settings-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}

.admin-settings-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.admin-settings-field {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
}

.admin-settings-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  min-width: 80px;
  flex-shrink: 0;
}

.admin-settings-field__value {
  font-size: 0.9rem;
  color: var(--color-text);
  word-break: break-word;
}

.admin-settings-card__hint {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: var(--spacing-xs);
}

/* Editable Inputs in Settings */
.admin-settings-field__input {
  flex: 1;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid rgba(201, 168, 108, 0.3);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-settings-field__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
}

/* Settings Action Buttons */
.admin-settings-card__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--spacing-xs) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.admin-settings-btn svg {
  width: 14px;
  height: 14px;
}

.admin-settings-btn--edit {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
  border: 1px solid rgba(201, 168, 108, 0.25);
}

.admin-settings-btn--edit:hover {
  background: rgba(201, 168, 108, 0.18);
  border-color: var(--color-primary);
}

.admin-settings-btn--save {
  color: var(--color-white);
  background: var(--color-primary);
}

.admin-settings-btn--save:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.admin-settings-btn--save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.admin-settings-btn--cancel {
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-settings-btn--cancel:hover {
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ===== Documents Section (Angebote + Rechnungen) ===== */
.admin-documents {
  margin-bottom: var(--spacing-2xl);
}

.admin-documents__stats {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.admin-documents-table .admin-table__doc-number {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.admin-documents-table .admin-table__doc-title {
  font-size: 0.82rem;
  color: var(--color-text-light);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-documents-table .admin-table__amount {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  text-align: right;
}

.admin-documents-table th:nth-child(5) {
  text-align: right;
}

/* ===== Customer Detail Stats ===== */

.admin-detail__customer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #B8974F);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-detail__customer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.admin-detail__customer-stat {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(201, 168, 108, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-detail__customer-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: 'Cormorant Garamond', serif;
}

.admin-detail__customer-stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .admin-detail__customer-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Appointments Next-Up Hero ===== */
.appointments-hero {
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.08) 0%, rgba(201, 168, 108, 0.03) 100%);
  border: 1.5px solid rgba(201, 168, 108, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.appointments-hero:hover {
  box-shadow: 0 4px 20px rgba(201, 168, 108, 0.15);
  transform: translateY(-1px);
}

.appointments-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary) 0%, #b8944f 100%);
  border-radius: 4px 0 0 4px;
}

.appointments-hero__countdown {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.appointments-hero__countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.appointments-hero__countdown-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
}

.appointments-hero__content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.appointments-hero__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8944f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.appointments-hero__icon svg {
  width: 24px;
  height: 24px;
}

.appointments-hero__info {
  flex: 1;
  min-width: 0;
}

.appointments-hero__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointments-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-md);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.appointments-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.appointments-hero__meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.appointments-hero__badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 108, 0.12);
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.appointments-hero__more {
  margin-top: var(--spacing-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* Highlight next appointment row in table */
.admin-table__row--highlight {
  background: rgba(201, 168, 108, 0.06) !important;
  border-left: 3px solid var(--color-primary) !important;
}

@media (max-width: 767px) {
  .appointments-hero {
    padding: var(--spacing-md);
  }

  .appointments-hero__content {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .appointments-hero__icon {
    width: 40px;
    height: 40px;
  }

  .appointments-hero__icon svg {
    width: 20px;
    height: 20px;
  }

  .appointments-hero__title {
    font-size: 1rem;
  }

  .appointments-hero__countdown-value {
    font-size: 1.1rem;
  }

  .appointments-hero__badge {
    order: -1;
  }

  .appointments-hero__meta {
    font-size: 0.75rem;
  }
}

/* Document table rows clickable */
.admin-documents-table tbody tr:not(.admin-empty-row) {
  cursor: pointer;
  transition: background-color 0.15s;
}

.admin-documents-table tbody tr:not(.admin-empty-row):hover {
  background-color: rgba(201, 168, 108, 0.06);
}

/* ===== Dashboard Upcoming Appointments ===== */
.dashboard-appointments-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.dashboard-appointment-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.dashboard-appointment-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-appointment-card--next {
  border-left: 3px solid var(--color-primary, #C9A86C);
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.06), rgba(255, 255, 255, 0.9));
}

.dashboard-appointment-card__countdown {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
}

.dashboard-appointment-card__countdown--soon {
  color: var(--color-primary, #C9A86C);
}

.dashboard-appointment-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(201, 168, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-appointment-card__icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary, #C9A86C);
}

.dashboard-appointment-card__info {
  flex: 1;
  min-width: 0;
}

.dashboard-appointment-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-appointment-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-md);
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.dashboard-appointment-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dashboard-appointment-card__meta svg {
  width: 12px;
  height: 12px;
}

.dashboard-appointment-card__badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ===== Appointments View Toggle ===== */
.appointments-view-toggle {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.appointments-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.appointments-view-btn svg {
  width: 14px;
  height: 14px;
}

.appointments-view-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.appointments-view-btn.is-active {
  color: var(--color-primary, #C9A86C);
  border-color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.06);
}

/* ===== Appointments Timeline View ===== */
.appointments-timeline {
  position: relative;
  padding-left: 24px;
}

.timeline-month {
  margin-bottom: var(--spacing-lg);
}

.timeline-month__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
  padding-left: 20px;
}

.timeline-card {
  position: relative;
  margin-bottom: var(--spacing-sm);
  padding-left: 20px;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: -12px;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
}

.timeline-card:last-child::before {
  display: none;
}

.timeline-card__dot {
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  border: 2px solid var(--color-background, #FAF6F0);
  z-index: 1;
}

.timeline-card__dot--next {
  width: 14px;
  height: 14px;
  left: -1px;
  top: 13px;
  background: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 4px rgba(201, 168, 108, 0.2);
}

.timeline-card__dot--past {
  background: rgba(0, 0, 0, 0.06);
}

.timeline-card__content {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.timeline-card__content:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-card--next .timeline-card__content {
  border-left: 3px solid var(--color-primary, #C9A86C);
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.06), rgba(255, 255, 255, 0.9));
}

.timeline-card--past .timeline-card__content {
  opacity: 0.6;
}

.timeline-card--past .timeline-card__content:hover {
  opacity: 0.85;
}

.timeline-card__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.timeline-card__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(201, 168, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-card__icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary, #C9A86C);
}

.timeline-card__title-wrap {
  flex: 1;
  min-width: 0;
}

.timeline-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.timeline-card__date {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.timeline-card__date svg {
  width: 12px;
  height: 12px;
}

.timeline-card__countdown {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.timeline-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-md);
  margin-top: var(--spacing-xs);
  padding-left: 44px;
}

.timeline-card__detail {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.timeline-card__detail svg {
  width: 12px;
  height: 12px;
}

.timeline-card__footer {
  margin-top: var(--spacing-xs);
  padding-left: 44px;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .dashboard-appointment-card {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .dashboard-appointment-card__icon {
    width: 30px;
    height: 30px;
  }

  .dashboard-appointment-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .dashboard-appointment-card__title {
    font-size: 0.82rem;
  }

  .dashboard-appointment-card__badge {
    display: none;
  }

  .appointments-timeline {
    padding-left: 16px;
  }

  .timeline-card {
    padding-left: 16px;
  }

  .timeline-card__details {
    padding-left: 0;
  }

  .timeline-card__footer {
    padding-left: 0;
  }

  .timeline-card__content {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .timeline-card__header {
    flex-wrap: wrap;
  }

  .timeline-card__countdown {
    font-size: 0.65rem;
  }

  .appointments-view-toggle {
    gap: var(--spacing-xs);
  }

  .appointments-view-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}

/* ===== ADMIN REVIEWS ===== */

.admin-reviews__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md, 8px);
  background: none;
  color: var(--color-text-muted, #8A8A8A);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.admin-reviews__toggle:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
}

.admin-reviews__toggle.is-on {
  color: #C9A86C;
  border-color: rgba(201, 168, 108, 0.3);
  background: rgba(201, 168, 108, 0.08);
}

.admin-reviews__toggle.is-on:hover {
  background: rgba(201, 168, 108, 0.15);
}

.admin-reviews__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md, 8px);
  background: none;
  color: var(--color-text-muted, #8A8A8A);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.admin-reviews__delete-btn:hover {
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.3);
  background: rgba(220, 53, 69, 0.06);
}

.admin-reviews__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-reviews__author strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text, #333);
}

.admin-reviews__stars {
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.admin-reviews__text-preview {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #8A8A8A);
  line-height: 1.4;
}

.admin-reviews__theme-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201, 168, 108, 0.1);
  color: #8A7448;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Review star inactive state */
.review-star-btn:not(.is-active) {
  color: #ddd !important;
}

/* ===== Audit-Log Viewer ===== */
.admin-audit-log__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-md);
}

.admin-audit-log__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-audit-log__row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 10px 14px;
  background: var(--color-surface, #fff);
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.admin-audit-log__row:hover {
  background: rgba(201, 168, 108, 0.05);
}

.admin-audit-log__time {
  flex-shrink: 0;
  width: 130px;
  color: var(--color-text-muted, #6B6B6B);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.admin-audit-log__action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-audit-log__label {
  font-weight: 600;
  color: var(--color-text, #2C2C2C);
}

.admin-audit-log__target {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(201, 168, 108, 0.12);
  color: var(--color-primary, #C9A86C);
  text-transform: capitalize;
}

.admin-audit-log__detail {
  color: var(--color-text-muted, #6B6B6B);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .admin-audit-log__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .admin-audit-log__time {
    width: auto;
  }
}

/* ===== Responsive: Mobile (<768) — Tables ===== */
@media (max-width: 767px) {

  /* --- Tabelle: Card-Layout statt horizontalem Scroll --- */
  .admin-table-card {
    overflow: hidden;
    background: none;
    box-shadow: none;
    border: none;
  }

  .admin-table-wrapper {
    overflow-x: visible;
  }

  .admin-table {
    display: block;
    font-size: 0.8rem;
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .admin-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs) var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .admin-table tr.admin-empty-row {
    display: table-row;
  }

  .admin-table th,
  .admin-table td {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    white-space: normal;
  }

  /* Name: volle Breite, als Titel */
  .admin-table__name {
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    order: -2;
  }

  /* Datum: klein, neben dem Namen */
  .admin-table__date {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    order: -1;
  }

  /* E-Mail + Thema: zweite Zeile, kompakt */
  .admin-table__email {
    display: inline-flex;
    font-size: 0.72rem;
    color: var(--color-text-muted);
  }

  .admin-table__email a {
    color: var(--color-text-muted) !important;
  }

  .admin-table__theme {
    display: inline-flex;
    font-size: 0.72rem;
    color: var(--color-text-muted);
  }

  .admin-table__theme::before {
    content: '\00b7';
    margin-right: var(--spacing-xs);
    color: var(--color-text-muted);
  }

  /* Status + Aktionen: dritte Zeile */
  .status-select {
    font-size: 0.75rem;
    padding: 5px 24px 5px 8px;
    max-width: none;
    min-height: 32px;
  }

  .admin-table__actions {
    margin-left: auto;
    display: inline-flex;
    gap: var(--spacing-xs);
  }

  /* Action-Button Labels auf Mobile ausblenden */
  .admin-action-btn__label {
    display: none;
  }

  .admin-action-btn {
    padding: 0;
    min-width: 40px;
    height: 40px;
  }

  /* --- Dokument-Tabellen (Angebote/Rechnungen) --- */
  .admin-documents-table .admin-table__doc-title {
    display: inline-flex;
    width: 100%;
    font-weight: 600;
    font-size: 0.85rem;
    order: -2;
  }

  .admin-documents-table .admin-table__amount {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
  }

  .admin-filter-btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  /* --- Kunden: Grid 1-spaltig, Cards kompakter --- */
  .admin-customer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .admin-customer-card {
    padding: var(--spacing-md);
    overflow: hidden;
  }

  .admin-customer-card:hover {
    transform: none;
  }

  .admin-customer-card__header {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .admin-customer-card__portal-badge {
    margin-left: auto;
  }

  .admin-customer-card__name {
    font-size: 0.95rem;
  }

  .admin-customer-card__details span {
    white-space: normal;
    word-break: break-word;
  }

  .admin-customer-card__meta {
    gap: var(--spacing-md);
  }

  .admin-customers__search {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-customers__search-input-wrap {
    max-width: none;
  }

  /* --- Dokumente: Card-Layout Overrides (werden oben im Card-Layout gehandhabt) --- */

  /* --- Galerie-Grid: 1 Spalte --- */
  .admin-gallery-grid {
    grid-template-columns: 1fr;
  }

  /* --- Reviews: Card-Layout, Text als Zweizeiler --- */
  .admin-reviews__text-preview {
    width: 100%;
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .admin-reviews__theme-badge {
    order: 1;
  }

  .admin-reviews__toggle,
  .admin-reviews__delete-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* ============================================================
 * Source: components/dashboard-modals.css
 * ============================================================ */
/**
 * Dashboard Modals
 * ================
 * Modals, forms, detail views, inline edit, all modal-related responsive styles
 */

/* ===== Invite Modal ===== */
.admin-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.admin-modal__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.admin-modal {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--spacing-2xl);
  transform: translateY(12px) scale(0.97);
  transition: transform var(--transition-normal);
}

.admin-modal__backdrop.is-open .admin-modal {
  transform: translateY(0) scale(1);
}

.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.admin-modal__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
}

.admin-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.admin-modal__close:hover {
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.03);
}

.admin-modal__close svg {
  width: 18px;
  height: 18px;
}

.admin-modal__details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.admin-modal__detail {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
}

.admin-modal__detail-label {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 70px;
  flex-shrink: 0;
}

.admin-modal__detail-value {
  color: var(--color-text);
  word-break: break-word;
}

.admin-modal__message {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.admin-modal__actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.admin-modal__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-xl);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.admin-modal__btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.admin-modal__btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.admin-modal__btn-primary svg {
  width: 16px;
  height: 16px;
}

.admin-modal__btn-cancel {
  padding: var(--spacing-sm) var(--spacing-xl);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.admin-modal__btn-cancel:hover {
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.02);
}

/* ===== Inquiry Detail Modal ===== */

/* Breiteres Modal fuer Detail-Ansicht */
.inquiry-detail-modal {
  max-width: 600px;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.inquiry-detail-modal .admin-modal__header {
  padding: var(--spacing-lg) var(--spacing-xl);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.inquiry-detail__header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Scrollbarer Body */
.inquiry-detail__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-lg) var(--spacing-xl);
  overscroll-behavior: contain;
}

/* Sektionen */
.inquiry-detail__section {
  margin-bottom: var(--spacing-xl);
}

.inquiry-detail__section:last-child {
  margin-bottom: 0;
}

.inquiry-detail__section-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--spacing-md) 0;
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.inquiry-detail__section-title svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* 2-Spalten-Grid fuer Felder */
.inquiry-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm) var(--spacing-lg);
}

.inquiry-detail__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inquiry-detail__field--full {
  grid-column: 1 / -1;
}

.inquiry-detail__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.inquiry-detail__value {
  font-size: 0.875rem;
  color: var(--color-text);
  word-break: break-word;
}

.inquiry-detail__value a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.inquiry-detail__value a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.inquiry-detail__value--price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* Nachricht-Box */
.inquiry-detail__message {
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow-y: auto;
}

/* Notizen-Textarea */
.inquiry-detail__notes {
  width: 100%;
  min-height: 70px;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.inquiry-detail__notes:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.inquiry-detail__notes-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.inquiry-detail__notes-save {
  font-size: 0.8rem;
  padding: var(--spacing-xs) var(--spacing-lg);
}

.inquiry-detail__notes-status {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Footer mit Timestamp */
.inquiry-detail__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.015);
}

/* Klickbare Tabellenzeilen */
.admin-table tbody tr:not(.admin-empty-row) {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.admin-table tbody tr:not(.admin-empty-row):hover {
  background: rgba(201, 168, 108, 0.04);
}

/* Detail-Modal Responsive */
@media (max-width: 640px) {
  .inquiry-detail-modal {
    max-width: 100%;
    max-height: 95vh;
    margin: var(--spacing-sm);
  }

  .inquiry-detail-modal .admin-modal__header {
    padding: var(--spacing-md);
  }

  .inquiry-detail__body {
    padding: var(--spacing-md);
  }

  .inquiry-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .inquiry-detail__footer {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .inquiry-detail__header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

/* ===== Inline Edit ===== */

.inquiry-detail__field {
  position: relative;
}

.detail-edit-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--color-text-muted);
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  border-radius: var(--radius-sm);
  line-height: 1;
}

.inquiry-detail__field:hover .detail-edit-btn {
  opacity: 1;
}

.detail-edit-btn:hover {
  color: var(--color-primary);
  background: rgba(201, 168, 108, 0.1);
}

.detail-edit-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.detail-edit-input {
  width: 100%;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.detail-edit-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.detail-edit-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

select.detail-edit-input {
  cursor: pointer;
  appearance: auto;
}

.detail-edit-row {
  display: flex;
  gap: 6px;
}

.detail-edit-row .detail-edit-input {
  flex: 1;
}

.detail-edit-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.detail-edit-save,
.detail-edit-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.detail-edit-save {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.detail-edit-save:hover {
  background: var(--color-primary-dark);
}

.detail-edit-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.detail-edit-cancel {
  background: #fff;
  color: var(--color-text-muted);
}

.detail-edit-cancel:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.is-editing {
  min-height: auto;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Admin Detail Modal ===== */
.admin-detail-modal {
  max-width: 860px;
  width: 95vw;
}

.admin-detail-modal__body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  max-height: 70vh;
  -webkit-overflow-scrolling: touch;
}

.admin-detail__header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-detail__header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8944f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.admin-detail__header-icon svg {
  width: 22px;
  height: 22px;
}

.admin-detail__header-info {
  flex: 1;
  min-width: 0;
}

.admin-detail__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 6px 0;
}

.admin-detail__header-badges {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.admin-detail__type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201, 168, 108, 0.12);
  color: var(--color-primary);
}

.admin-detail__section {
  margin-bottom: var(--spacing-lg);
}

.admin-detail__section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-detail__section-title svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.admin-detail__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm) var(--spacing-lg);
}

.admin-detail__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-detail__field-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.admin-detail__field-value {
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 400;
}

/* Variante mit gestapelten Untereintraegen (z.B. CRM-E-Mail + Portal-E-Mail) */
.admin-detail__field-value--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Hinweis-Zeile mit abweichender Portal-E-Mail (gruen, wie "Portal aktiv"-Status) */
.admin-detail__field-portal-email {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #2f9e6e;
  font-weight: 500;
}

.admin-detail__field-portal-email i,
.admin-detail__field-portal-email svg {
  width: 13px;
  height: 13px;
}

.admin-detail__intro {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.admin-detail__notes {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
}

/* Line Items Table */
.admin-detail__line-items-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-detail__line-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-detail__line-items th {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  white-space: nowrap;
}

.admin-detail__line-items td {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.admin-detail__line-items .text-right {
  text-align: right;
}

/* Amount Summary */
.admin-detail__summary {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-detail__summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.admin-detail__summary-row--total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  margin-top: var(--spacing-xs);
  padding-top: var(--spacing-sm);
}

/* Appointment Timeline */
.admin-detail__timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.admin-detail__timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.admin-detail__timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  transition: all 0.3s;
}

.admin-detail__timeline-dot--active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(201, 168, 108, 0.2);
}

.admin-detail__timeline-dot--complete {
  border-color: #4d7c4d;
  background: #4d7c4d;
}

.admin-detail__timeline-line {
  flex: 1;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  min-width: 40px;
  margin: 0 var(--spacing-xs);
  margin-bottom: 22px;
}

.admin-detail__timeline-line--complete {
  background: #4d7c4d;
}

/* Admin Modal Form Fields */
.admin-modal__field {
  margin-bottom: 0.75rem;
}

.admin-modal__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text, #333);
  margin-bottom: 0.35rem;
}

.admin-modal__input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-text, #333);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-modal__input:focus {
  outline: none;
  border-color: #C9A86C;
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.admin-modal__input::placeholder {
  color: var(--color-text-muted, #8A8A8A);
}

.admin-modal__form {
  /* Overrides fuer Form-Inhalte */
}

.admin-modal__form select.admin-modal__input {
  appearance: auto;
  cursor: pointer;
}

.admin-modal__form textarea.admin-modal__input {
  min-height: 80px;
}

/* Mobile Detail Modal */
@media (max-width: 767px) {
  .admin-detail-modal {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    margin: auto 0 0 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .admin-detail-modal__body {
    padding: var(--spacing-md);
    max-height: 75vh;
  }

  .admin-detail__fields {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .admin-detail__title {
    font-size: 1.1rem;
  }

  .admin-detail__header-icon {
    width: 38px;
    height: 38px;
  }

  .admin-detail__header-icon svg {
    width: 18px;
    height: 18px;
  }

  .admin-detail__line-items th,
  .admin-detail__line-items td {
    padding: 4px 6px;
    font-size: 0.75rem;
  }
}

/* ===== Responsive: Mobile (<768) — Modals ===== */
@media (max-width: 767px) {

  /* --- Modal: Fullscreen auf Mobile --- */
  .admin-modal {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .admin-modal__backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .admin-modal__close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Inputs: mindestens 16px fuer iOS (kein Auto-Zoom) */
  .admin-modal__input,
  .admin-modal__input[type="text"],
  .admin-modal__input[type="email"],
  .admin-modal__input[type="number"],
  .admin-modal__form select.admin-modal__input,
  .admin-modal__form textarea.admin-modal__input {
    font-size: 16px;
    padding: 0.65rem 0.75rem;
  }

  .admin-modal__btn-primary,
  .admin-modal__btn-cancel {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }

  .admin-modal__actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* ============================================================
 * Source: components/gallery-admin.css
 * ============================================================ */
/**
 * Gallery Component
 * =================
 * Vollstaendiges Galerie-System: Admin, Portal, Guest, Lightbox, Slideshow
 *
 * Uses CSS custom properties defined in main.css :root
 * BEM-Namenskonvention, mobile-first, pure CSS
 *
 * REDESIGN 2026-03 — Premium Gallery Command Center
 */

/* ==========================================================================
   ADMIN GALLERY — STAGGERED ENTRANCE ANIMATIONS
   ========================================================================== */

@keyframes adminGalleryFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes adminGalleryShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes adminUploadPulse {
  0%, 100% { border-color: rgba(201, 168, 108, 0.25); }
  50% { border-color: rgba(201, 168, 108, 0.55); }
}

@keyframes adminGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 108, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(201, 168, 108, 0.15); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-gallery-card,
  .admin-gallery-editor,
  .admin-gallery-editor__upload-zone,
  .ge-tile {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   ADMIN GALLERY CARDS — PREMIUM GRID
   ========================================================================== */

.admin-gallery-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-top: 0.75rem;
}

@media (min-width: 640px) {
  .admin-gallery-cards {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .admin-gallery-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Card ---- */
.admin-gallery-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 108, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(201, 168, 108, 0.06);
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  animation: adminGalleryFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Staggered entrance — up to 12 cards */
.admin-gallery-card:nth-child(1) { animation-delay: 0.04s; }
.admin-gallery-card:nth-child(2) { animation-delay: 0.09s; }
.admin-gallery-card:nth-child(3) { animation-delay: 0.14s; }
.admin-gallery-card:nth-child(4) { animation-delay: 0.18s; }
.admin-gallery-card:nth-child(5) { animation-delay: 0.22s; }
.admin-gallery-card:nth-child(6) { animation-delay: 0.26s; }
.admin-gallery-card:nth-child(7) { animation-delay: 0.30s; }
.admin-gallery-card:nth-child(8) { animation-delay: 0.34s; }
.admin-gallery-card:nth-child(9) { animation-delay: 0.38s; }
.admin-gallery-card:nth-child(10) { animation-delay: 0.42s; }
.admin-gallery-card:nth-child(11) { animation-delay: 0.46s; }
.admin-gallery-card:nth-child(12) { animation-delay: 0.50s; }

.admin-gallery-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 20px 50px rgba(201, 168, 108, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(201, 168, 108, 0.2);
  border-color: rgba(201, 168, 108, 0.35);
}

.admin-gallery-card:active {
  transform: translateY(-2px) scale(0.995);
  transition-duration: 0.1s;
}

/* ---- Shimmer overlay on hover ---- */
.admin-gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(201, 168, 108, 0.07) 45%,
    rgba(201, 168, 108, 0.12) 50%,
    rgba(201, 168, 108, 0.07) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.admin-gallery-card:hover::after {
  opacity: 1;
  animation: adminGalleryShimmer 1.5s ease-in-out;
}

/* ---- Cover Image ---- */
.admin-gallery-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f3eb 0%, #efe8db 50%, #e8e0d2 100%);
}

.admin-gallery-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  will-change: transform;
}

.admin-gallery-card:hover .admin-gallery-card__cover img {
  transform: scale(1.06);
  filter: brightness(1.04) saturate(1.05);
}

/* Gradient overlay on cover bottom for text readability */
.admin-gallery-card__cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
  pointer-events: none;
}

.admin-gallery-card__cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-primary, #C9A86C);
  background: linear-gradient(135deg, #f8f3eb 0%, #efe8db 50%, #e8e0d2 100%);
}

.admin-gallery-card__cover-placeholder i {
  width: 44px;
  height: 44px;
  opacity: 0.22;
}

/* ---- Status Badge ---- */
.admin-gallery-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-gallery-card:hover .admin-gallery-card__badge {
  transform: scale(1.05);
}

.admin-gallery-card__badge--entwurf {
  background: rgba(255, 251, 235, 0.9);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.admin-gallery-card__badge--aktiv {
  background: rgba(236, 253, 245, 0.9);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.admin-gallery-card__badge--abgelaufen {
  background: rgba(254, 242, 242, 0.9);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* ---- Card Body ---- */
.admin-gallery-card__body {
  padding: 20px 20px 14px;
}

.admin-gallery-card__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 12px;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.admin-gallery-card:hover .admin-gallery-card__title {
  color: var(--color-primary-dark, #B8956A);
}

.admin-gallery-card__customer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #777;
  margin: -6px 0 10px;
}
.admin-gallery-card__customer svg {
  width: 13px;
  height: 13px;
  color: var(--color-primary, #C9A86C);
}

.admin-gallery-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B6B6B);
  margin-bottom: 8px;
}

.admin-gallery-card__meta:last-child {
  margin-bottom: 0;
}

.admin-gallery-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.admin-gallery-card:hover .admin-gallery-card__meta-item {
  color: var(--color-text, #2D2D2D);
}

.admin-gallery-card__meta-item i {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.admin-gallery-card:hover .admin-gallery-card__meta-item i {
  opacity: 0.85;
}

.admin-gallery-card__selections {
  color: #7C9A7C;
  font-weight: 600;
}

/* ---- Card Actions ---- */
.admin-gallery-card__actions {
  display: flex;
  gap: 6px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(201, 168, 108, 0.08);
}

.admin-gallery-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 108, 0.15);
  background: transparent;
  color: var(--color-text, #2D2D2D);
  cursor: pointer;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Gold fill on hover */
.admin-gallery-card__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.08), rgba(201, 168, 108, 0.15));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-gallery-card__btn:hover {
  border-color: var(--color-primary, #C9A86C);
  color: var(--color-primary-dark, #B8956A);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(201, 168, 108, 0.12);
}

.admin-gallery-card__btn:hover::before {
  opacity: 1;
}

.admin-gallery-card__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.admin-gallery-card__btn--danger {
  flex: 0;
  color: var(--color-text-muted, #6B6B6B);
  border-color: transparent;
}

.admin-gallery-card__btn--danger::before {
  background: rgba(239, 68, 68, 0.06);
}

.admin-gallery-card__btn--danger:hover {
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.08);
}

.admin-gallery-card__btn i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.admin-gallery-card__btn:hover i {
  transform: scale(1.1);
}


/* ==========================================================================
   ADMIN GALLERY EDITOR — PREMIUM REDESIGN
   ========================================================================== */

.admin-gallery-editor {
  max-width: 1200px;
  margin: 0 auto;
  animation: adminGalleryFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}


/* ---- Images Toolbar (View Toggle) ---- */
.ge-images-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ge-images-toolbar__count {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted, #6B6B6B);
  letter-spacing: 0.02em;
}

.ge-images-toolbar__toggle {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 3px;
}

.ge-images-toolbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-muted, #6B6B6B);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ge-images-toolbar__btn:focus-visible {
  outline: none !important;
}

.ge-images-toolbar__btn:hover {
  color: var(--color-text, #2C2C2C);
  background: rgba(0, 0, 0, 0.04);
}

.ge-images-toolbar__btn.is-active {
  background: #fff;
  color: var(--color-primary, #C9A86C);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ge-images-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ge-images-toolbar__danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.05);
  color: #B91C1C;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ge-images-toolbar__danger:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.4);
}

.ge-images-toolbar__danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ge-images-toolbar__danger:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.5);
  outline-offset: 2px;
}

/* ---- Load More Button ---- */
.ge-load-more {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.ge-load-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary, #C9A86C);
  background: transparent;
  border: 1.5px solid var(--color-primary, #C9A86C);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ge-load-more__btn:hover {
  background: var(--color-primary, #C9A86C);
  color: var(--color-cream, #FFFBF5);
}

.ge-load-more__btn:focus-visible {
  outline: 2px solid var(--color-primary, #C9A86C);
  outline-offset: 2px;
}

.ge-load-more__icon {
  width: 18px;
  height: 18px;
}

/* ---- Image Container ---- */
.ge-images {
  margin-bottom: var(--spacing-xl);
}

/* ---- Tile Grid View ---- */
.ge-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .ge-tile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .ge-tile-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1400px) {
  .ge-tile-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.ge-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #f5f0e8, #ece5d8);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}

.ge-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.ge-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ge-tile:hover .ge-tile__img {
  transform: scale(1.08);
}

/* Floating cover badges */
.ge-tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ge-tile__badge--gallery {
  background: rgba(201, 168, 108, 0.9);
}

.ge-tile__badge--album {
  background: rgba(90, 125, 106, 0.9);
  top: auto;
  bottom: 8px;
}

.ge-tile__badge--gallery + .ge-tile__badge--album {
  top: auto;
  bottom: 8px;
}

/* Hover overlay with action buttons */
.ge-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ge-tile:hover .ge-tile__overlay {
  opacity: 1;
}

.ge-tile__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  pointer-events: auto;
}

.ge-tile__action:focus-visible {
  outline: none !important;
}

.ge-tile__action:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.ge-tile__action--danger:hover {
  background: rgba(220, 38, 38, 0.6);
}

.ge-tile__action i {
  width: 16px;
  height: 16px;
}

/* ---- Table / List View ---- */
.ge-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ge-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
}

.ge-table__th {
  text-align: left;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #6B6B6B);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.ge-table__th--thumb {
  width: 52px;
  padding-right: 0;
}

.ge-table__th--dim,
.ge-table__th--album,
.ge-table__th--size {
  display: none;
}

.ge-table__th--date {
  display: none;
}

@media (min-width: 768px) {
  .ge-table__th--dim,
  .ge-table__th--album,
  .ge-table__th--size {
    display: table-cell;
  }
}

@media (min-width: 1024px) {
  .ge-table__th--date {
    display: table-cell;
  }
}

.ge-table__th--actions {
  width: 120px;
  text-align: right;
}

.ge-table__row {
  transition: background-color 0.15s ease;
}

.ge-table__row:hover {
  background: rgba(201, 168, 108, 0.04);
}

.ge-table__row:not(:last-child) .ge-table__td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ge-table__td {
  padding: 8px 14px;
  vertical-align: middle;
}

.ge-table__td--thumb {
  width: 52px;
  padding-right: 0;
}

.ge-table__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: linear-gradient(135deg, #f5f0e8, #ece5d8);
}

.ge-table__td--name {
  max-width: 220px;
}

.ge-table__filename {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-text, #2C2C2C);
  font-size: 0.8125rem;
  max-width: 200px;
}

.ge-table__badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.ge-table__badge--gallery {
  background: var(--color-primary, #C9A86C);
}

.ge-table__badge--album {
  background: #5a7d6a;
}

.ge-table__td--dim,
.ge-table__td--album,
.ge-table__td--size,
.ge-table__td--date {
  display: none;
  color: var(--color-text-muted, #6B6B6B);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .ge-table__td--dim,
  .ge-table__td--album,
  .ge-table__td--size {
    display: table-cell;
  }
}

@media (min-width: 1024px) {
  .ge-table__td--date {
    display: table-cell;
  }
}

.ge-table__muted {
  color: var(--color-text-muted, #9a9a9a);
}

.ge-table__td--actions {
  text-align: right;
}

.ge-table__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ge-table__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-muted, #6B6B6B);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ge-table__action-btn:focus-visible {
  outline: none !important;
}

.ge-table__action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text, #2C2C2C);
}

.ge-table__action-btn--danger:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

/* Table summary bar */
.ge-table-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  margin-bottom: 8px;
  background: rgba(201, 168, 108, 0.08);
  border: 1px solid rgba(201, 168, 108, 0.15);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted, #6B6B6B);
}

.ge-table-summary__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ge-table-summary__item strong {
  color: var(--color-text, #2C2C2C);
  font-weight: 600;
}

/* Selected state (admin multi-select) */
.ge-tile--selected {
  outline: 3px solid var(--color-primary, #C9A86C);
  outline-offset: -3px;
  box-shadow: 0 0 0 4px rgba(201, 168, 108, 0.2);
}

.ge-tile--selected::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--color-primary, #C9A86C);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(201, 168, 108, 0.35);
}



/* ============================================================
   Admin Lightbox (Vollbild-Vorschau bei Klick auf ein Bild)
   ============================================================ */

.admin-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  z-index: 10000;
}

.admin-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.admin-lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

.admin-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.admin-lightbox__img.is-loaded {
  opacity: 1;
}

.admin-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #C9A86C;
  border-radius: 50%;
  animation: admin-lb-spin 0.9s linear infinite;
}

@keyframes admin-lb-spin {
  to { transform: rotate(360deg); }
}

.admin-lightbox__close,
.admin-lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.admin-lightbox__close:hover,
.admin-lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

.admin-lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.admin-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}

.admin-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.admin-lightbox__nav--prev { left: 20px; }
.admin-lightbox__nav--next { right: 20px; }

.admin-lightbox__nav i,
.admin-lightbox__close i {
  width: 22px;
  height: 22px;
}

.admin-lightbox__counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  letter-spacing: 0.04em;
}

.admin-lightbox__filename {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 70vw;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

@media (max-width: 768px) {
  .admin-lightbox__stage {
    padding: 70px 16px;
  }
  .admin-lightbox__nav {
    width: 44px;
    height: 44px;
  }
  .admin-lightbox__nav--prev { left: 8px; }
  .admin-lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-lightbox__img,
  .admin-lightbox__close,
  .admin-lightbox__nav,
  .admin-lightbox__spinner {
    transition: none;
    animation: none;
  }
}

/* ============================================================
 * Source: components/gallery-editor.css
 * ============================================================ */
/* ==========================================================================
   GALLERY EDITOR — PREMIUM DETAIL PAGE (ge-* namespace)
   ========================================================================== */

/* ---- Top Bar: Back + Title + Badge ---- */
.ge-topbar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
  margin-bottom: var(--spacing-xl, 2rem);
  padding-bottom: var(--spacing-lg, 1.5rem);
  border-bottom: 1px solid rgba(201, 168, 108, 0.1);
  animation: adminGalleryFadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@media (min-width: 640px) {
  .ge-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ge-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted, #6B6B6B);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 108, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  align-self: flex-start;
}

.ge-topbar__back:hover {
  color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.06);
  border-color: rgba(201, 168, 108, 0.25);
  transform: translateX(-3px);
}

.ge-topbar__back i {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.ge-topbar__back:hover i {
  transform: translateX(-3px);
}

.ge-topbar__title-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  flex-wrap: wrap;
}

.ge-topbar__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0;
  letter-spacing: -0.01em;
}

.ge-topbar__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ge-topbar__badge--entwurf {
  background: rgba(255, 251, 235, 0.9);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ge-topbar__badge--aktiv {
  background: rgba(236, 253, 245, 0.9);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.ge-topbar__badge--abgelaufen {
  background: rgba(254, 242, 242, 0.9);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ge-topbar__customer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #555;
  margin-left: 4px;
}
.ge-topbar__customer--none {
  color: #aaa;
  font-style: italic;
}

/* ---- Bento Grid: Settings Form + Action Buttons ---- */
.ge-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg, 1.5rem);
  margin-bottom: var(--spacing-xl, 2rem);
  animation: adminGalleryFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.06s;
}

@media (min-width: 768px) {
  .ge-bento {
    grid-template-columns: 1fr 260px;
  }
}

@media (min-width: 1024px) {
  .ge-bento {
    grid-template-columns: 1fr 300px;
  }
}

.ge-bento__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 108, 0.1);
  border-radius: 16px;
  padding: var(--spacing-xl, 2rem);
}

.ge-bento__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 767px) {
  .ge-bento__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---- Form Fields ---- */
.ge-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ge-field__label {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B6B6B);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ge-field__input {
  padding: 11px 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  color: var(--color-text, #2D2D2D);
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(201, 168, 108, 0.18);
  border-radius: 10px;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.ge-field__input:hover {
  border-color: rgba(201, 168, 108, 0.35);
}

.ge-field__input:focus,
.ge-field__input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.1), 0 2px 8px rgba(201, 168, 108, 0.06);
  background: #fff;
}

.ge-field__input--textarea {
  resize: vertical;
  min-height: 60px;
}

.ge-field__password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ge-field__password-wrap .ge-field__input {
  padding-right: 2.5rem;
}

.ge-field__password-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--color-text-muted, #999);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.ge-field__password-clear:hover {
  color: #EF4444;
}

.ge-field__password-clear i,
.ge-field__password-clear svg {
  width: 16px;
  height: 16px;
}

.ge-field__hint {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted, #999);
  margin-top: 4px;
  line-height: 1.3;
}

/* ---- Toggles (Checkboxes) ---- */
.ge-field__toggles {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 4px;
}

.ge-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: var(--color-text, #2D2D2D);
  transition: color 0.2s ease;
}

.ge-toggle:hover {
  color: var(--color-primary, #C9A86C);
}

.ge-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #C9A86C);
  cursor: pointer;
}

.ge-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ge-toggle__icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* ---- Action Buttons ---- */
.ge-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  border: none;
  position: relative;
  overflow: hidden;
}

.ge-action i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ge-action--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary, #C9A86C), var(--color-primary-dark, #B8956A));
  box-shadow: 0 4px 14px rgba(201, 168, 108, 0.25);
}

.ge-action--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 108, 0.35);
  filter: brightness(1.05);
}

.ge-action--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 168, 108, 0.2);
}

.ge-action--outline {
  color: var(--color-text, #2D2D2D);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(201, 168, 108, 0.18);
}

.ge-action--outline:hover {
  background: rgba(201, 168, 108, 0.06);
  border-color: var(--color-primary, #C9A86C);
  color: var(--color-primary-dark, #B8956A);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 108, 0.1);
}

.ge-action--outline:active {
  transform: translateY(0);
  box-shadow: none;
}

.ge-action--sm {
  padding: 8px 14px;
  font-size: 0.75rem;
  border-radius: 8px;
}

/* ---- Section Blocks (Albums, Selections) ---- */
.ge-section {
  margin-bottom: var(--spacing-xl, 2rem);
  animation: adminGalleryFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.12s;
}

.ge-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md, 1rem);
  margin-bottom: var(--spacing-md, 1rem);
}

.ge-section__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0;
}

.ge-section__title i {
  width: 18px;
  height: 18px;
  color: var(--color-primary, #C9A86C);
  opacity: 0.7;
}

.ge-section__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.06);
  border: 1px solid rgba(201, 168, 108, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ge-section__add-btn:hover {
  background: rgba(201, 168, 108, 0.12);
  border-color: rgba(201, 168, 108, 0.3);
  transform: translateY(-1px);
}

.ge-section__add-btn i {
  width: 14px;
  height: 14px;
}

.ge-section__empty {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  color: var(--color-text-muted, #6B6B6B);
  padding: var(--spacing-md, 1rem) 0;
  font-style: italic;
}

/* ---- Editor Content Tabs (Bilder / Auswahlen) ---- */
.ge-editor-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(201,168,108,0.15);
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.ge-editor-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  margin-bottom: -2px;
}

.ge-editor-tabs__btn svg {
  width: 16px;
  height: 16px;
}

.ge-editor-tabs__btn:hover {
  color: #666;
}

.ge-editor-tabs__btn.is-active {
  color: var(--color-primary, #C9A86C);
  border-bottom-color: var(--color-primary, #C9A86C);
}

.ge-editor-tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--color-primary, #C9A86C);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.ge-editor-tab-content {
  display: none;
}

.ge-editor-tab-content.is-active {
  display: block;
}

/* ---- Selection Highlight Toolbar ---- */
.ge-sel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(201,168,108,0.08), rgba(201,168,108,0.15));
  border: 1px solid rgba(201,168,108,0.3);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.ge-sel-toolbar__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text, #2D2D2D);
}

.ge-sel-toolbar__info svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary, #C9A86C);
}

.ge-sel-toolbar__count {
  color: #888;
  font-weight: 400;
}

.ge-sel-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ge-sel-toolbar__group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ge-sel-toolbar__select {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(201,168,108,0.3);
  border-radius: 6px;
  background: #fff;
  font-size: 0.8rem;
  color: var(--color-text, #2D2D2D);
  cursor: pointer;
  max-width: 200px;
}

.ge-sel-toolbar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: #999;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ge-sel-toolbar__close:hover {
  background: rgba(0,0,0,0.06);
  color: #444;
}

.ge-sel-toolbar__close svg {
  width: 16px;
  height: 16px;
}

.ge-action--danger-text {
  color: #c62828 !important;
  border-color: rgba(198,40,40,0.25) !important;
}

.ge-action--danger-text:hover {
  background: rgba(198,40,40,0.08) !important;
}

/* ---- Image Highlight States ---- */
.ge-tile.is-highlighted {
  outline: 3px solid var(--color-primary, #C9A86C);
  outline-offset: -3px;
  border-radius: 8px;
}

.ge-tile.is-dimmed {
  opacity: 0.3;
  filter: grayscale(0.5);
  pointer-events: none;
}

.ge-table__row.is-highlighted {
  background: rgba(201,168,108,0.1);
}

.ge-table__row.is-dimmed {
  opacity: 0.3;
}

/* ---- Album Tabs ---- */
/* ---- Album Cards (Admin) ---- */
.ge-album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.ge-album-card {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(201,168,108,0.1);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ge-album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(201,168,108,0.08);
  border-color: rgba(201,168,108,0.2);
}

.ge-album-card.is-active {
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 1px var(--color-primary, #C9A86C), 0 4px 12px rgba(201,168,108,0.12);
}

.ge-album-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(201,168,108,0.06);
}

.ge-album-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 50%);
  transition: opacity 0.3s ease;
}

.ge-album-card:hover .ge-album-card__overlay {
  opacity: 0.5;
}

.ge-album-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,168,108,0.3);
}

.ge-album-card__placeholder i,
.ge-album-card__placeholder svg {
  width: 24px;
  height: 24px;
}

.ge-album-card__info {
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ge-album-card__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text, #2D2D2D);
  line-height: 1.3;
}

.ge-album-card__desc {
  font-size: 0.72rem;
  color: var(--color-text-muted, #888);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ge-album-card__count {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-primary, #C9A86C);
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}

.ge-album-card-wrap {
  position: relative;
}

.ge-album-card__delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ge-album-card__delete svg {
  width: 14px;
  height: 14px;
}

.ge-album-card-wrap:hover .ge-album-card__delete {
  opacity: 1;
}

.ge-album-card__delete:hover {
  background: #E53935;
}

@media (max-width: 768px) {
  .ge-album-cards {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
  }
}

/* ---- Upload Zone ---- */
.ge-upload {
  margin-bottom: var(--spacing-lg, 1.5rem);
  animation: adminGalleryFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.18s;
}

.ge-upload__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--spacing-2xl, 3rem) var(--spacing-lg, 1.5rem);
  border: 2px dashed rgba(201, 168, 108, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.5) 0%, rgba(245, 240, 232, 0.3) 100%);
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: adminUploadPulse 3s ease-in-out infinite;
}

.ge-upload__dropzone::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 108, 0.03), transparent);
  transition: left 0.6s ease;
}

.ge-upload__dropzone:hover::before {
  left: 100%;
}

.ge-upload__dropzone:hover {
  border-color: rgba(201, 168, 108, 0.45);
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.8) 0%, rgba(245, 240, 232, 0.5) 100%);
  animation: none;
  box-shadow: 0 8px 30px rgba(201, 168, 108, 0.08);
}

.ge-upload__dropzone.is-dragover {
  border-color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.05);
  border-style: solid;
  animation: none;
  transform: scale(1.01);
  box-shadow: 0 0 30px rgba(201, 168, 108, 0.12);
}

.ge-upload__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(201, 168, 108, 0.08);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.ge-upload__dropzone:hover .ge-upload__icon {
  background: rgba(201, 168, 108, 0.14);
  transform: translateY(-2px);
}

.ge-upload__icon i {
  width: 24px;
  height: 24px;
  color: var(--color-primary, #C9A86C);
  opacity: 0.7;
}

.ge-upload__text {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 0;
}

.ge-upload__link {
  color: var(--color-primary, #C9A86C);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 108, 0.3);
  transition: border-color 0.2s ease;
}

.ge-upload__link:hover {
  border-bottom-color: var(--color-primary, #C9A86C);
}

.ge-upload__file-input {
  display: none;
}

.ge-upload__progress {
  width: 100%;
  max-width: 360px;
  margin-top: var(--spacing-md, 1rem);
}

.ge-upload__progress-track {
  background: rgba(201, 168, 108, 0.1);
  border-radius: 4px;
  overflow: hidden;
  height: 6px;
}

.ge-upload__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary, #C9A86C), var(--color-primary-light, #D4BC8E));
  border-radius: 4px;
  width: 0%;
  transition: width 0.35s ease;
  box-shadow: 0 0 6px rgba(201, 168, 108, 0.3);
}

.ge-upload__progress-text {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  color: var(--color-text-muted, #6B6B6B);
  margin-top: 6px;
}

/* ---- Selection Cards ---- */
.ge-selection-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 108, 0.1);
  border-radius: 12px;
  padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.ge-selection-card:hover {
  border-color: rgba(201, 168, 108, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ge-selection-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm, 0.5rem);
}

.ge-selection-card__info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ge-selection-card__title {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
}

.ge-selection-card__count {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  color: var(--color-text-muted, #6B6B6B);
}

.ge-selection-card__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.ge-selection-card__status--draft {
  background: rgba(0, 0, 0, 0.04);
  color: #888;
}

.ge-selection-card__status--submitted {
  background: rgba(201, 168, 108, 0.1);
  color: var(--color-primary-dark, #B8956A);
  border: 1px solid rgba(201, 168, 108, 0.2);
}

.ge-selection-card__status--approved {
  background: rgba(236, 253, 245, 0.8);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ge-selection-card__status--rejected {
  background: rgba(254, 242, 242, 0.8);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.ge-selection-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  color: var(--color-text-muted, #6B6B6B);
  margin-top: 6px;
}

.ge-selection-card__meta-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.ge-selection-card__notes {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
  font-style: italic;
}

.ge-selection-card__notes svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.5;
}

.ge-selection-card__review-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(76,175,80,0.06);
  border-left: 3px solid rgba(76,175,80,0.4);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.5;
}

.ge-selection-card__review-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #388e3c;
}

.ge-selection-card__actions {
  display: flex;
  gap: 8px;
  margin-top: var(--spacing-sm, 0.5rem);
  padding-top: var(--spacing-sm, 0.5rem);
  border-top: 1px solid rgba(201, 168, 108, 0.08);
}

/* ---- QR Code Modal ---- */
.ge-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--spacing-lg, 1.5rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ge-modal-overlay.is-open {
  opacity: 1;
}

.ge-modal {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 108, 0.15);
  border-radius: 20px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.06);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.ge-modal-overlay.is-open .ge-modal {
  transform: scale(1) translateY(0);
}

.ge-modal--qr {
  max-width: 380px;
  width: 100%;
  text-align: center;
  padding: var(--spacing-2xl, 3rem) var(--spacing-xl, 2rem);
}

.ge-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-muted, #6B6B6B);
}

.ge-modal__close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text, #2D2D2D);
  transform: scale(1.05);
}

.ge-modal__close i {
  width: 18px;
  height: 18px;
}

.ge-modal__qr-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg, 1.5rem);
  background: #fff;
  border: 1px solid rgba(201, 168, 108, 0.1);
  border-radius: 14px;
  margin-bottom: var(--spacing-lg, 1.5rem);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.ge-modal__qr-img {
  width: 240px;
  height: 240px;
  image-rendering: pixelated;
}

.ge-modal__qr-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 4px;
}

.ge-modal__qr-hint {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 0 0 var(--spacing-lg, 1.5rem);
}

.ge-modal__qr-download {
  text-decoration: none;
  width: 100%;
}

/* ---- KI-Button (inline neben Label) ---- */
.ge-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ge-field__label-row .ge-field__label {
  margin-bottom: 0;
}

.ge-ai-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #C9A86C, #B8956A);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
}

.ge-ai-btn:hover {
  background: linear-gradient(135deg, #d4b57a, #C9A86C);
  box-shadow: 0 2px 12px rgba(201,168,108,0.3);
  transform: translateY(-1px);
}

.ge-ai-btn i,
.ge-ai-btn svg {
  width: 12px;
  height: 12px;
}

/* ---- KI-Modal ---- */
.ge-modal--ai {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 2rem 1.75rem 1.5rem;
}

/* Prompt-Eingabe */
.ge-ai-prompt {
  text-align: left;
}

.ge-ai-prompt__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  color: var(--color-text, #2D2D2D);
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(201,168,108,0.15);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.2s ease;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.ge-ai-prompt__input:focus {
  outline: none;
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201,168,108,0.1);
}

.ge-ai-prompt__btn {
  width: 100%;
  justify-content: center;
}

/* Loading */
.ge-ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.ge-ai-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201,168,108,0.15);
  border-top-color: var(--color-primary, #C9A86C);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ge-ai-loading__text {
  font-size: 0.82rem;
  color: var(--color-text-muted, #888);
  font-style: italic;
}

/* Ergebnis-Karten */
.ge-ai-results {
  text-align: left;
}

.ge-ai-results__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 0.75rem;
  text-align: center;
}

.ge-ai-suggestion {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(201,168,108,0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 0.5rem;
}

.ge-ai-suggestion:hover {
  border-color: var(--color-primary, #C9A86C);
  background: rgba(201,168,108,0.03);
  box-shadow: 0 2px 12px rgba(201,168,108,0.1);
}

.ge-ai-suggestion__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(201,168,108,0.1);
  color: var(--color-primary, #C9A86C);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.ge-ai-suggestion__text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--color-text, #2D2D2D);
  line-height: 1.55;
  margin: 0;
}

.ge-ai-suggestion__select {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-primary, #C9A86C);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.ge-ai-suggestion__select i,
.ge-ai-suggestion__select svg {
  width: 14px;
  height: 14px;
}

.ge-ai-suggestion:hover .ge-ai-suggestion__select {
  opacity: 1;
}

.ge-ai-results__retry {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .ge-modal--ai {
    max-width: 95vw;
    padding: 1.25rem 1rem;
  }
}

/* Focal-Point Picker Modal */
.ge-modal--focal {
  max-width: 680px;
  width: 100%;
  text-align: center;
  padding: 1.5rem;
}

.ge-focal-picker {
  position: relative;
  margin: 1rem 0 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  cursor: crosshair;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ge-focal-picker__img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0,0,0,0.03);
  flex: 1;
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
}

.ge-focal-picker__crosshair {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease, top 0.15s ease;
}

.ge-focal-picker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary, #C9A86C);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(201,168,108,0.4), 0 2px 8px rgba(0,0,0,0.3);
}

.ge-focal-picker__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,0.6);
  pointer-events: none;
  animation: focalPulse 2s ease-in-out infinite;
}

@keyframes focalPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
}

.ge-focal-picker__preview {
  width: 140px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  background-size: cover;
  border: 1px solid rgba(201,168,108,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background-position 0.15s ease;
}

@media (max-width: 600px) {
  .ge-focal-picker {
    flex-direction: column;
  }
  .ge-focal-picker__preview {
    width: 100%;
    height: 80px;
  }
  .ge-modal--focal {
    max-width: 95vw;
    padding: 1rem;
  }
}

/* Input Modal (Album erstellen, etc.) */
.ge-modal--input {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: var(--spacing-2xl, 3rem) var(--spacing-xl, 2rem) var(--spacing-xl, 2rem);
}

.ge-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto var(--spacing-md, 1rem);
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.1), rgba(201, 168, 108, 0.05));
  border: 1px solid rgba(201, 168, 108, 0.12);
  border-radius: 14px;
}

.ge-modal__icon i {
  width: 24px;
  height: 24px;
  color: var(--color-primary, #C9A86C);
}

.ge-modal__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 4px;
}

.ge-modal__hint {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 0 0 var(--spacing-lg, 1.5rem);
}

.ge-modal__input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: var(--spacing-lg, 1.5rem);
  text-align: left;
}

.ge-modal__buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ge-modal__buttons .ge-action {
  flex: 1;
}

.ge-modal__icon--danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.15);
}

.ge-modal__icon--danger i {
  color: #EF4444;
}

.ge-action--danger {
  color: #fff;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.ge-action--danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
  filter: brightness(1.05);
}

/* ==========================================================================
   TEMPLATE MANAGEMENT
   ========================================================================== */

/* Templates button in header */
.admin-galleries__templates-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #C9A86C);
  background: transparent;
  border: 1.5px solid rgba(201, 168, 108, 0.4);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-galleries__templates-btn:hover {
  background: rgba(201, 168, 108, 0.08);
  border-color: var(--color-primary, #C9A86C);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201, 168, 108, 0.15);
}

.admin-galleries__templates-btn:active {
  transform: translateY(0);
}

.admin-galleries__templates-btn i {
  width: 16px;
  height: 16px;
}

/* Template Manager Modal */
.ge-modal--templates {
  max-width: 640px;
  width: 100%;
  padding: var(--spacing-xl, 2rem);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.ge-tpl-manager {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.ge-tpl-manager__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 var(--spacing-lg, 1.5rem);
  text-align: center;
}

.ge-tpl-section {
  margin-bottom: var(--spacing-xl, 2rem);
}

.ge-tpl-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md, 1rem);
}

.ge-tpl-section__heading {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0;
}

.ge-tpl-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.08);
  border: 1px solid rgba(201, 168, 108, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ge-tpl-add-btn:hover {
  background: rgba(201, 168, 108, 0.15);
  border-color: rgba(201, 168, 108, 0.4);
}

.ge-tpl-add-btn i {
  width: 14px;
  height: 14px;
}

.ge-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ge-tpl-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 108, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ge-tpl-card:hover {
  border-color: rgba(201, 168, 108, 0.25);
  box-shadow: 0 2px 12px rgba(201, 168, 108, 0.08);
}

.ge-tpl-card__info {
  flex: 1;
  min-width: 0;
}

.ge-tpl-card__title {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ge-tpl-card__desc {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ge-tpl-card__count {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 2px 0 0;
}

.ge-tpl-card__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ge-tpl-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text-muted, #6B6B6B);
  transition: all 0.2s ease;
}

.ge-tpl-card__btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text, #2D2D2D);
}

.ge-tpl-card__btn--danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.ge-tpl-card__btn i {
  width: 15px;
  height: 15px;
}

.ge-tpl-empty {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8rem;
  color: var(--color-text-muted, #6B6B6B);
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(201, 168, 108, 0.03);
  border: 1px dashed rgba(201, 168, 108, 0.15);
  border-radius: 10px;
}

/* Template form sub-modal */
.ge-modal--tpl-form {
  max-width: 420px;
  width: 100%;
  padding: var(--spacing-xl, 2rem);
}

.ge-tpl-form__field {
  margin-bottom: 1rem;
  text-align: left;
}

.ge-tpl-form__label {
  display: block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin-bottom: 0.375rem;
}

.ge-tpl-form__input,
.ge-tpl-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  color: var(--color-text, #2D2D2D);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(201, 168, 108, 0.2);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ge-tpl-form__input:focus,
.ge-tpl-form__textarea:focus,
.ge-tpl-form__input:focus-visible,
.ge-tpl-form__textarea:focus-visible {
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
  outline: none !important;
  outline-offset: 0 !important;
}

.ge-tpl-form__textarea {
  resize: vertical;
  min-height: 60px;
}

/* Checkbox list for template-set form */
.ge-tpl-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.ge-tpl-checkbox-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  color: var(--color-text, #2D2D2D);
  padding: 0.375rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ge-tpl-checkbox-list label:hover {
  background: rgba(201, 168, 108, 0.06);
}

.ge-tpl-checkbox-list input[type="checkbox"] {
  accent-color: var(--color-primary, #C9A86C);
  width: 16px;
  height: 16px;
}

/* Template chips in album dialog */
.ge-modal__templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ge-modal__tpl-chip {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 108, 0.3);
  background: rgba(201, 168, 108, 0.08);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8rem;
  color: var(--color-text, #2D2D2D);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ge-modal__tpl-chip:hover {
  background: rgba(201, 168, 108, 0.2);
  border-color: var(--color-primary, #C9A86C);
}

.ge-modal__tpl-chip.is-active {
  background: var(--color-primary, #C9A86C);
  color: #fff;
  border-color: var(--color-primary, #C9A86C);
}

/* Description textarea in album dialog */
.ge-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: var(--spacing-lg, 1.5rem);
  text-align: left;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  color: var(--color-text, #2D2D2D);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(201, 168, 108, 0.2);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  min-height: 50px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ge-modal__textarea:focus,
.ge-modal__textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
}

.ge-action--danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* ============================================================
 * Source: components/gallery-portal.css
 * ============================================================ */
/* ==========================================================================
   PORTAL GALLERY CARDS
   ========================================================================== */

.portal-gallery-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 640px) {
  .portal-gallery-cards {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.portal-gallery-card {
  position: relative;
  background: var(--color-white, #fff);
  border: 1px solid rgba(201, 168, 108, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portal-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(201, 168, 108, 0.25);
}

.portal-gallery-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f0e8;
}

.portal-gallery-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portal-gallery-card:hover .portal-gallery-card__cover img {
  transform: scale(1.04);
}

.portal-gallery-card__body {
  padding: 18px 16px 16px;
}

.portal-gallery-card__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 8px;
  line-height: 1.3;
}

.portal-gallery-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B6B6B);
}

.portal-gallery-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-gallery-card__meta-item i {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.portal-gallery-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  margin-top: 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary, #C9A86C);
  background: rgba(201, 168, 108, 0.06);
  border: 1px solid rgba(201, 168, 108, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portal-gallery-card__cta:hover {
  background: rgba(201, 168, 108, 0.12);
  border-color: var(--color-primary, #C9A86C);
}

.portal-gallery-card__cta i {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   PORTAL GALLERY DETAIL
   ========================================================================== */

.portal-gallery-detail {
  max-width: 1400px;
  margin: 0 auto;
}

/* Album Nav Pills */
.portal-gallery-detail__albums {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.portal-gallery-detail__album-pill {
  padding: 8px 20px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted, #6B6B6B);
  background: rgba(201, 168, 108, 0.06);
  border: 1px solid rgba(201, 168, 108, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portal-gallery-detail__album-pill:hover {
  background: rgba(201, 168, 108, 0.12);
  color: var(--color-text, #2D2D2D);
}

.portal-gallery-detail__album-pill--active {
  background: var(--color-primary, #C9A86C);
  color: var(--color-white, #fff);
  border-color: var(--color-primary, #C9A86C);
  font-weight: 600;
}

.portal-gallery-detail__album-pill--active:hover {
  background: var(--color-primary-dark, #B8956A);
  color: var(--color-white, #fff);
}

/* Image Grid (CSS Columns - Masonry) */
.portal-gallery-detail__grid {
  column-count: 1;
  column-gap: 12px;
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 640px) {
  .portal-gallery-detail__grid {
    column-count: 2;
  }
}

@media (min-width: 768px) {
  .portal-gallery-detail__grid {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .portal-gallery-detail__grid {
    column-count: 4;
    column-gap: 16px;
  }
}

.portal-gallery-detail__image {
  position: relative;
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .portal-gallery-detail__image {
    margin-bottom: 16px;
  }
}

.portal-gallery-detail__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.portal-gallery-detail__image:hover img {
  transform: scale(1.03);
}

.portal-gallery-detail__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portal-gallery-detail__image:hover .portal-gallery-detail__image-overlay {
  opacity: 1;
}

.portal-gallery-detail__image-overlay i {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* Action Bar (fixed bottom, glassmorphism) */
.portal-gallery-detail__action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 168, 108, 0.15);
  z-index: var(--z-fixed, 300);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portal-gallery-detail__action-bar--visible {
  transform: translateY(0);
}

.portal-gallery-detail__action-bar-info {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: var(--color-text, #2D2D2D);
}

.portal-gallery-detail__action-bar-info strong {
  font-weight: 600;
}

.portal-gallery-detail__action-bar-buttons {
  display: flex;
  gap: 8px;
}

.portal-gallery-detail__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.portal-gallery-detail__action-btn--primary {
  background: var(--color-primary, #C9A86C);
  color: var(--color-white, #fff);
}

.portal-gallery-detail__action-btn--primary:hover {
  background: var(--color-primary-dark, #B8956A);
}

.portal-gallery-detail__action-btn--secondary {
  background: transparent;
  color: var(--color-text, #2D2D2D);
  border: 1px solid rgba(201, 168, 108, 0.25);
}

.portal-gallery-detail__action-btn--secondary:hover {
  background: rgba(201, 168, 108, 0.08);
}

.portal-gallery-detail__action-btn i {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   PORTAL SELECTION MODE
   ========================================================================== */

.is-selecting .portal-gallery-detail__image {
  cursor: pointer;
}

.is-selecting .portal-gallery-detail__image::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  z-index: 2;
}

.is-selecting .portal-gallery-detail__image--selected {
  outline: 3px solid var(--color-primary, #C9A86C);
  outline-offset: -3px;
}

.is-selecting .portal-gallery-detail__image--selected::after {
  background: var(--color-primary, #C9A86C);
  border-color: var(--color-primary, #C9A86C);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Selection Bar (fixed bottom with gold bg) */
.portal-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 14px 24px;
  background: var(--color-primary, #C9A86C);
  color: var(--color-white, #fff);
  z-index: calc(var(--z-fixed, 300) + 1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portal-selection-bar--visible {
  transform: translateY(0);
}

.portal-selection-bar__count {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
}

.portal-selection-bar__actions {
  display: flex;
  gap: 8px;
}

.portal-selection-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white, #fff);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portal-selection-bar__btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.portal-selection-bar__btn i {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   PORTAL MODALS
   ========================================================================== */

.portal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop, 400);
  padding: var(--spacing-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portal-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.portal-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-white, #fff);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
}

.portal-modal-overlay--visible .portal-modal {
  transform: translateY(0) scale(1);
}

.portal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(201, 168, 108, 0.1);
}

.portal-modal__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0;
}

.portal-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--color-text-muted, #6B6B6B);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.portal-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text, #2D2D2D);
}

.portal-modal__close i {
  width: 20px;
  height: 20px;
}

.portal-modal__body {
  padding: 24px;
}

.portal-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid rgba(201, 168, 108, 0.1);
}


/* ==========================================================================
   GUEST GALLERY GATE
   ========================================================================== */

.gallery-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-lg);
  background-color: #FDFBF7;
  background-image: radial-gradient(
    ellipse at 30% 20%,
    rgba(201, 168, 108, 0.07) 0%,
    transparent 50%
  ),
  radial-gradient(
    ellipse at 70% 80%,
    rgba(201, 168, 108, 0.05) 0%,
    transparent 50%
  );
}

.gallery-gate__card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 108, 0.15);
  border-radius: 12px;
  padding: 40px 32px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.gallery-gate__logo {
  width: 80px;
  height: auto;
  margin: 0 auto 20px;
  opacity: 0.85;
}

.gallery-gate__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0 0 8px;
  line-height: 1.3;
}

.gallery-gate__subtitle {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 0 0 28px;
  line-height: 1.6;
}

.gallery-gate__error {
  display: none;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: #991b1b;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  text-align: left;
}

.gallery-gate__error--visible {
  display: block;
}

.gallery-gate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-gate__input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.9375rem;
  color: var(--color-text, #2D2D2D);
  background: var(--color-white, #fff);
  border: 1px solid rgba(201, 168, 108, 0.25);
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  letter-spacing: 0.08em;
}

.gallery-gate__input:focus {
  outline: none;
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.gallery-gate__input::placeholder {
  color: rgba(107, 107, 107, 0.5);
  letter-spacing: 0.04em;
}

.gallery-gate__submit {
  width: 100%;
  padding: 12px 24px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white, #fff);
  background: var(--color-primary, #C9A86C);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.gallery-gate__submit:hover {
  background: var(--color-primary-dark, #B8956A);
}

.gallery-gate__submit:active {
  transform: scale(0.98);
}

.gallery-gate__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gallery-gate__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6B6B6B);
  text-decoration: none;
  transition: color 0.3s ease;
}

.gallery-gate__back:hover {
  color: var(--color-primary, #C9A86C);
}

.gallery-gate__back i {
  width: 14px;
  height: 14px;
}


/* ==========================================================================
   GUEST GALLERY (Main View) — gg__ prefix
   ========================================================================== */

.gg {
  background: var(--color-bg, #FDFBF7);
  min-height: 100vh;
}

/* ---- Hero Header ---- */
.gg__hero-wrapper { position: relative; }

.gg__hero {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.gg__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
}

.gg__hero-content {
  position: relative;
  z-index: 1;
}

.gg__hero-glass {
  text-align: center;
  max-width: 520px;
  width: 100%;
  padding: 1.5rem 1.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.gg__hero-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@media (min-width: 768px) {
  .gg__hero-logo { width: 100px; }
}

.gg__hero-ornament {
  width: 40px;
  height: 2px;
  background: var(--color-primary, #C9A86C);
  margin: 0 auto 0.75rem;
  border-radius: 1px;
}

.gg__hero-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .gg__hero-title { font-size: 2.5rem; }
}

.gg__hero-desc {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.gg__hero-meta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.gg__hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.gg__hero-meta-item i,
.gg__hero-meta-item svg {
  width: 14px;
  height: 14px;
}

/* ---- Section Headers ---- */
.gg__section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem 0.75rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gg__section-header { padding: 2.5rem 2rem 1rem; }
}

.gg__section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,108,0.25), transparent);
}

.gg__section-center {
  text-align: center;
  flex-shrink: 0;
  max-width: 60%;
}

.gg__section-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .gg__section-title { font-size: 1.75rem; }
}

.gg__section-desc {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B6B6B);
  margin: 0.35rem 0 0;
  line-height: 1.6;
  font-style: italic;
}

/* ---- Album Cards ---- */
.gg__albums-section {
  max-width: 1400px;
  margin: 0 auto;
}

.gg__album-cards {
  display: flex;
  gap: 1rem;
  padding: 0 1.25rem 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gg__album-cards::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .gg__album-cards {
    padding: 0 2rem 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.gg__album-card {
  flex-shrink: 0;
  width: 240px;
  background: #fff;
  border: 1px solid rgba(201,168,108,0.12);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gg__album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,108,0.15);
  border-color: rgba(201,168,108,0.3);
}

.gg__album-card.is-active {
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 4px 16px rgba(201,168,108,0.2);
}

.gg__album-card-cover {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #f0ece4;
}

.gg__album-card-info {
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gg__album-card-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #2D2D2D);
  line-height: 1.3;
}

.gg__album-card-desc {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  color: var(--color-text-muted, #6B6B6B);
  line-height: 1.5;
}

.gg__album-card-count {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  color: var(--color-primary, #C9A86C);
  font-weight: 500;
  margin-top: 2px;
}

/* ---- Toolbar ---- */
.gg__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gg__toolbar { padding: 0.5rem 2rem 1rem; }
}

.gg__image-count {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B6B6B);
}

.gg__actions {
  display: flex;
  gap: 8px;
}

.gg__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text, #2D2D2D);
  background: transparent;
  border: 1px solid rgba(201,168,108,0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gg__action-btn:hover {
  background: rgba(201,168,108,0.08);
  border-color: var(--color-primary, #C9A86C);
}

.gg__action-btn--gold {
  background: var(--color-primary, #C9A86C);
  color: #fff;
  border-color: var(--color-primary, #C9A86C);
}

.gg__action-btn--gold:hover {
  background: var(--color-primary-dark, #B8956A);
}

.gg__action-btn i,
.gg__action-btn svg {
  width: 15px;
  height: 15px;
}

.gg__action-btn span {
  display: none;
}

@media (min-width: 640px) {
  .gg__action-btn span { display: inline; }
}

/* ---- Image Grid (CSS Grid — zeilenweise Sortierung) ---- */
.gg__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: start;
  padding: 0 1.25rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .gg__grid { gap: 12px; }
}

@media (min-width: 768px) {
  .gg__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 2rem 3rem;
  }
}

@media (min-width: 1024px) {
  .gg__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.gg__grid-item {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .gg__grid-item { border-radius: 8px; }
}

.gg__grid-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gg__grid-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.02);
}

.gg__grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px;
  pointer-events: none;
}

.gg__grid-item:hover .gg__grid-overlay {
  opacity: 1;
}

.gg__grid-dl {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gg__grid-dl:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

.gg__grid-dl i,
.gg__grid-dl svg {
  width: 16px;
  height: 16px;
}

.gg__dl-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gallery-spin 0.7s linear infinite;
}

.gg__grid-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

/* Empty state */
.gg__grid-empty {
  column-span: all;
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted, #6B6B6B);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
}

/* ---- Footer ---- */
.gg__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(201,168,108,0.1);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  color: var(--color-text-muted, #6B6B6B);
  letter-spacing: 0.04em;
}

.gg__footer-logo {
  width: 50px;
  height: auto;
  opacity: 0.6;
}

.gg__footer a {
  color: var(--color-primary, #C9A86C);
  text-decoration: none;
  font-weight: 500;
}

.gg__footer a:hover { opacity: 0.7; }

.gg__footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1rem;
  margin-top: 0.25rem;
  background: transparent;
  border: 1px solid var(--color-primary, #C9A86C);
  border-radius: 20px;
  color: var(--color-primary, #C9A86C);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gg__footer-contact-btn:hover {
  background: var(--color-primary, #C9A86C);
  color: #fff;
}

.gg__footer-contact-btn i,
.gg__footer-contact-btn svg {
  width: 14px;
  height: 14px;
}

/* ---- Contact Modal ---- */
.gg__contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gg__contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gg__contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gg__contact-modal-card {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: calc(100% - 2rem);
  padding: 2.5rem 2rem 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gg__contact-modal.is-open .gg__contact-modal-card {
  transform: translateY(0);
}

.gg__contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.gg__contact-modal-close:hover {
  color: #333;
}

.gg__contact-modal-close i,
.gg__contact-modal-close svg {
  width: 20px;
  height: 20px;
}

.gg__contact-modal-logo {
  width: 70px;
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.gg__contact-modal-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #2D2D2D;
  margin: 0 0 1.5rem;
}

.gg__contact-modal-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gg__contact-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: #4A4A4A;
  text-decoration: none;
  transition: color 0.2s;
}

a.gg__contact-modal-link:hover {
  color: var(--color-primary, #C9A86C);
}

.gg__contact-modal-link--text {
  font-size: 0.75rem;
  color: #999;
}

.gg__contact-modal-link i,
.gg__contact-modal-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-primary, #C9A86C);
}

.gg__contact-modal-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.gg__contact-modal-social a {
  color: #999;
  transition: color 0.2s;
}

.gg__contact-modal-social a:hover {
  color: var(--color-primary, #C9A86C);
}

.gg__contact-modal-social i,
.gg__contact-modal-social svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
 * Source: components/gallery-lightbox.css
 * ============================================================ */
/* ==========================================================================
   GALLERY LIGHTBOX
   ========================================================================== */

dialog.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  margin: 0;
  border: none;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

dialog.gallery-lightbox::backdrop {
  background: transparent;
}

dialog.gallery-lightbox:not([open]) {
  display: none;
}

.gallery-lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-lightbox__image--loaded {
  opacity: 1;
}

/* Nav arrows */
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.08);
}

.gallery-lightbox__nav--prev {
  left: 16px;
}

.gallery-lightbox__nav--next {
  right: 16px;
}

.gallery-lightbox__nav i {
  width: 24px;
  height: 24px;
}

/* Close */
.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__close i {
  width: 20px;
  height: 20px;
}

/* Counter */
.gallery-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.12em;
  z-index: 10;
}

/* Actions (top-left) */
.gallery-lightbox__actions {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.gallery-lightbox__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-lightbox__action:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox__action i,
.gallery-lightbox__action svg {
  width: 18px;
  height: 18px;
}

/* Download button (bottom-right) */
.gallery-lightbox__download {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #fff;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-lightbox__download:hover {
  background: var(--color-primary, #C9A86C);
  border-color: var(--color-primary, #C9A86C);
}

.gallery-lightbox__download i,
.gallery-lightbox__download svg {
  width: 16px;
  height: 16px;
}

/* Spinner */
.gallery-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--color-primary, #C9A86C);
  border-radius: 50%;
  animation: gallery-spin-centered 0.8s linear infinite;
}

@keyframes gallery-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gallery-spin-centered {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Lightbox mobile */
@media (max-width: 640px) {
  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox__nav--prev {
    left: 8px;
  }

  .gallery-lightbox__nav--next {
    right: 8px;
  }

  .gallery-lightbox__image {
    max-width: 96vw;
    max-height: 80vh;
  }

  .gallery-lightbox__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}


/* ==========================================================================
   GALLERY SLIDESHOW
   ========================================================================== */

.gallery-slideshow {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-slideshow--visible {
  opacity: 1;
  visibility: visible;
}

.gallery-slideshow__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.gallery-slideshow__image--active {
  opacity: 1;
}

/* Controls */
.gallery-slideshow__controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-slideshow:hover .gallery-slideshow__controls {
  opacity: 1;
}

.gallery-slideshow__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-slideshow__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-slideshow__btn i {
  width: 18px;
  height: 18px;
}

.gallery-slideshow__counter {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  min-width: 50px;
  text-align: center;
}

/* Close (slideshow) */
.gallery-slideshow__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
  opacity: 0;
}

.gallery-slideshow:hover .gallery-slideshow__close {
  opacity: 1;
}

.gallery-slideshow__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-slideshow__close i {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   SHARED: EXPIRY BADGE
   ========================================================================== */

.gallery-expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
}

.gallery-expiry-badge i {
  width: 12px;
  height: 12px;
}

.gallery-expiry-badge--green {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.gallery-expiry-badge--yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.gallery-expiry-badge--red {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.25);
}


/* ==========================================================================
   SHARED: LOADING SPINNER
   ========================================================================== */

.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 20px;
  background-color: #FDFBF7;
}

.gallery-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(201, 168, 108, 0.15);
  border-top-color: var(--color-primary, #C9A86C);
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
}

.gallery-loading__text {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B6B6B);
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS (shared utility overrides)
   ========================================================================== */

@media (max-width: 640px) {
  .ge-tile-grid {
    gap: 8px;
  }

  .gallery-gate__card {
    padding: 32px 24px 28px;
  }

  .gallery-gate__title {
    font-size: 1.5rem;
  }

  .portal-gallery-detail__action-bar {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
  }

  .portal-selection-bar {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  .portal-gallery-detail__grid {
    column-gap: 20px;
  }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .admin-gallery-card,
  .portal-gallery-card,
  .admin-gallery-card__cover img,
  .portal-gallery-card__cover img,
  .portal-gallery-detail__image img,
  .gallery-grid__item img,
  .gallery-lightbox,
  .gallery-lightbox__image,
  .gallery-slideshow,
  .gallery-slideshow__image,
  .portal-modal-overlay,
  .portal-modal,
  .portal-gallery-detail__action-bar,
  .portal-selection-bar {
    transition: none;
  }

  .gallery-loading__spinner,
  .gallery-lightbox__spinner {
    animation: none;
  }

  .gallery-slideshow__image {
    transition: opacity 0.1s ease;
  }
}

/* ==========================================================================
   ZIP DOWNLOAD MODAL
   ========================================================================== */

.zdl-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.zdl-overlay.is-open {
  opacity: 1;
}

.zdl {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.zdl-overlay.is-open .zdl {
  transform: translateY(0);
}

.zdl__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #999;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.zdl__close:hover {
  background: rgba(0,0,0,0.06);
  color: #444;
}

.zdl__close svg {
  width: 18px;
  height: 18px;
}

.zdl__phase--hidden {
  display: none !important;
}

.zdl__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(201,168,108,0.1);
  color: #C9A86C;
}

.zdl__icon svg {
  width: 26px;
  height: 26px;
}

.zdl__icon--spin svg {
  animation: zdlSpin 1.5s linear infinite;
}

@keyframes zdlSpin {
  to { transform: rotate(360deg); }
}

.zdl__icon--success {
  background: rgba(76,175,80,0.1);
  color: #388e3c;
}

.zdl__icon--error {
  background: rgba(229,57,53,0.1);
  color: #c62828;
}

.zdl__title {
  text-align: center;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 0.25rem;
}

.zdl__subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 1rem;
}

.zdl__info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.zdl__info-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zdl__info-row svg {
  width: 15px;
  height: 15px;
  color: #C9A86C;
}

/* Album checkboxes */
.zdl__albums {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(201,168,108,0.04);
  border: 1px solid rgba(201,168,108,0.12);
  border-radius: 10px;
}

.zdl__album-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #444;
  cursor: pointer;
}

.zdl__album-option input[type="checkbox"] {
  accent-color: #C9A86C;
  width: 16px;
  height: 16px;
}

.zdl__album-count {
  color: #999;
  font-size: 0.78rem;
}

.zdl__split-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.zdl__split-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #C9A86C;
}

/* Start/Close button */
.zdl__start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: #C9A86C;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zdl__start-btn:hover {
  background: #b8954f;
}

.zdl__start-btn svg {
  width: 18px;
  height: 18px;
}

/* Progress bar */
.zdl__progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(201,168,108,0.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.25rem 0 1rem;
}

.zdl__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #C9A86C, #d4b87d);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Stats grid */
.zdl__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.zdl__stat {
  font-size: 0.82rem;
  color: #555;
  text-align: center;
}

.zdl__stat:first-child {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2c2c2c;
}

.zdl__current-file {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 1rem;
  min-height: 1.1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cancel button */
.zdl__cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(200,200,200,0.4);
  border-radius: 10px;
  background: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zdl__cancel-btn:hover {
  border-color: #ccc;
  color: #555;
}

.zdl__cancel-btn svg {
  width: 15px;
  height: 15px;
}

/* Done info */
.zdl__done-info {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.5;
}

/* Error message */
.zdl__error-msg {
  text-align: center;
  font-size: 0.85rem;
  color: #c62828;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.5;
}

/* ===== Dashboard Pending Selections ===== */

.admin-selections-preview {
  margin-top: 2rem;
}

.dashboard-selections-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-selection-card {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-selection-card:hover {
  border-color: var(--color-primary, #C9A86C);
  box-shadow: 0 2px 8px rgba(201,168,108,0.12);
}

.dashboard-selection-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dashboard-selection-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.dashboard-selection-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #666;
}

.dashboard-selection-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dashboard-selection-card__meta i,
.dashboard-selection-card__meta svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.dashboard-selection-card__notes {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-selection-card__date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #999;
}

.dashboard-selection-card__date i,
.dashboard-selection-card__date svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

/* ===== Admin Customer Shares ===== */

.ge-subsection-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: #555;
  margin: 1.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid #eee;
}
.ge-subsection-title i, .ge-subsection-title svg { width: 15px; height: 15px; opacity: 0.5; }

.ge-share-card {
  background: #fafafa; border: 1px solid #eee; border-radius: 10px;
  padding: 0.75rem 1rem; margin-bottom: 0.5rem;
}
.ge-share-card__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ge-share-card__info { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; }
.ge-share-card__info i, .ge-share-card__info svg { width: 14px; height: 14px; opacity: 0.5; }
.ge-share-card__customer { font-size: 0.72rem; color: #999; margin-left: 0.25rem; }
.ge-share-card__meta { font-size: 0.72rem; color: #888; margin: 0.4rem 0; }
.ge-share-card__actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

.ge-empty-hint { font-size: 0.8rem; color: #999; font-style: italic; padding: 0.5rem 0; }

