/* Zeitabhängiges Future-Space-Farbsystem. Wird nach theme.php geladen. */
body {
  transition: background-color .35s ease, color .35s ease;
}

body.gal-theme-light {
  --gal-accent: #00a9c7;
  --gal-accent-dark: #087e9b;
  --gal-accent-soft: #dff8fd;
  --gal-text: #142c38;
  --gal-muted: #5c7480;
  --gal-border: #b9dce5;
  --gal-surface: rgba(255,255,255,.88);
  --gal-surface-soft: rgba(235,250,253,.9);
  --gal-link: #007f9d;
  background:
    radial-gradient(circle at 12% 8%, rgba(0,201,232,.15), transparent 30rem),
    radial-gradient(circle at 88% 20%, rgba(105,82,255,.09), transparent 28rem),
    linear-gradient(145deg,#eefbfe 0%,#f8fbff 52%,#eef4fb 100%) fixed !important;
  color: var(--gal-text) !important;
}

body.gal-theme-dark {
  color-scheme: dark;
  --gal-accent: #22e6ff;
  --gal-accent-dark: #00a8c7;
  --gal-accent-soft: rgba(34,230,255,.12);
  --gal-text: #e8fbff;
  --gal-muted: #91b3bf;
  --gal-border: rgba(71,221,255,.25);
  --gal-surface: rgba(8,22,38,.82);
  --gal-surface-soft: rgba(11,31,52,.82);
  --gal-link: #5deeff;
  --gal-button-primary-bg: #00bad8;
  --gal-button-primary-text: #03131d;
  --gal-button-secondary-bg: rgba(14,42,61,.9);
  --gal-button-secondary-text: #dbfaff;
  --gal-button-secondary-border: rgba(74,224,255,.34);
  background:
    radial-gradient(circle at 15% 10%, rgba(0,216,255,.16), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(127,69,255,.18), transparent 30rem),
    linear-gradient(rgba(34,230,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,230,255,.035) 1px, transparent 1px),
    linear-gradient(145deg,#020712 0%,#071426 50%,#09061b 100%) fixed !important;
  background-size:auto,auto,42px 42px,42px 42px,auto !important;
  color: var(--gal-text) !important;
}

body.gal-theme-light .gal-brand-card,
body.gal-theme-light .booking-step-card,
body.gal-theme-light .card,
body.gal-theme-dark .gal-brand-card,
body.gal-theme-dark .booking-step-card,
body.gal-theme-dark .card,
body.gal-theme-dark .gal-order-box,
body.gal-theme-dark .pricelist-product-card {
  background: var(--gal-surface) !important;
  border-color: var(--gal-border) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

body.gal-theme-dark .gal-brand-card,
body.gal-theme-dark .booking-step-card,
body.gal-theme-dark .card {
  box-shadow: 0 18px 55px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

body.gal-theme-dark input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.gal-theme-dark select,
body.gal-theme-dark textarea {
  background: rgba(3,16,29,.88) !important;
  color: var(--gal-text) !important;
  border-color: var(--gal-border) !important;
}

body.gal-theme-dark table,
body.gal-theme-dark th,
body.gal-theme-dark td { border-color: var(--gal-border) !important; }
body.gal-theme-dark th { background: rgba(20,61,82,.72) !important; color:#c8f8ff !important; }
body.gal-theme-dark tr:nth-child(even) td { background: rgba(21,48,67,.26); }

body.gal-theme-dark .gal-nav-dropdown-menu,
body.gal-theme-dark .gal-fixed-footer {
  background: rgba(4,18,31,.94) !important;
  color: var(--gal-text) !important;
  border-color: var(--gal-border) !important;
  backdrop-filter: blur(20px);
}

body.gal-theme-dark h1,
body.gal-theme-dark h2,
body.gal-theme-dark h3,
body.gal-theme-dark strong { color:#effdff; }

body.gal-theme-dark .muted,
body.gal-theme-dark .system-small { color:var(--gal-muted) !important; }

@media (prefers-reduced-motion: reduce) {
  body { transition:none; }
}
