/* Reifen Reimer – Site styles (extracted from index.html) */
/* ── Theme-Variablen: Dunkel (Grau statt Schwarz) & Hell ── */
:root[data-theme="dark"] {
  color-scheme: only dark;
  --rr-bg: #484850;
  --rr-overlay-a: rgba(72, 72, 80, 0.5);
  --rr-overlay-b: rgba(72, 72, 80, 0.56);
  --rr-overlay-c: rgba(72, 72, 80, 0.64);
  --rr-text: #d4d4d8;
  --rr-text-muted: #a1a1aa;
  --rr-text-subtle: #71717a;
  --rr-heading: #ffffff;
  --rr-card: rgba(82, 82, 90, 0.82);
  --rr-card-deep: rgba(68, 68, 76, 0.88);
  --rr-card-input: #5a5a64;
  --rr-border: rgba(255, 255, 255, 0.12);
  --rr-border-soft: rgba(255, 255, 255, 0.06);
  --rr-section-border: rgba(113, 113, 122, 0.45);
  --rr-trust-bar: rgba(63, 63, 70, 0.62);
  --rr-footer: #000000;
  --rr-skeleton-a: #5a5a64;
  --rr-skeleton-b: #68686f;
  --rr-site-bg-opacity: 1;
  --rr-hero-logo-boost: 0.48;
  --rr-hero-logo-filter: brightness(1.12) contrast(1.24) saturate(1.08);
  --rr-hero-bg: #000000;
  --rr-hero-vignette: rgba(0, 0, 0, 0.32);
  --rr-hero-horizon: rgba(72, 72, 80, 0.45);
  --rr-btn-outline-text: #ffffff;
  --rr-scrollbar-track: rgba(255, 255, 255, 0.06);
  --rr-meta-theme: #484850;
}
:root[data-theme="light"] {
  color-scheme: only light;
  --rr-bg: #f4f5f7;
  --rr-overlay-a: rgba(244, 245, 247, 0.4);
  --rr-overlay-b: rgba(244, 245, 247, 0.48);
  --rr-overlay-c: rgba(244, 245, 247, 0.56);
  --rr-text: #3f3f46;
  --rr-text-muted: #52525b;
  --rr-text-subtle: #71717a;
  --rr-heading: #18181b;
  --rr-card: rgba(255, 255, 255, 0.92);
  --rr-card-deep: rgba(255, 255, 255, 0.96);
  --rr-card-input: #ffffff;
  --rr-border: rgba(0, 0, 0, 0.1);
  --rr-border-soft: rgba(0, 0, 0, 0.06);
  --rr-section-border: rgba(0, 0, 0, 0.08);
  --rr-trust-bar: rgba(255, 255, 255, 0.75);
  --rr-footer: #000000;
  --rr-skeleton-a: #e4e4e7;
  --rr-skeleton-b: #f4f4f5;
  --rr-site-bg-opacity: 0.62;
  --rr-hero-logo-boost: 0.58;
  --rr-hero-logo-filter: brightness(1.16) contrast(1.3) saturate(1.1);
  --rr-hero-bg: #000000;
  --rr-hero-vignette: rgba(0, 0, 0, 0.28);
  --rr-hero-horizon: rgba(0, 0, 0, 0.42);
  --rr-btn-outline-text: #14629f;
  --rr-scrollbar-track: rgba(0, 0, 0, 0.05);
  --rr-meta-theme: #f4f5f7;
}

html {
  scroll-behavior: smooth;
  background-color: var(--rr-bg);
  transition: background-color 0.35s ease, color 0.35s ease;
}
:root {
  --site-header-h: 4.25rem;
}
@media (min-width: 640px) {
  :root { --site-header-h: 4.5rem; }
}
body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--rr-text);
  transition: color 0.35s ease;
  padding-top: var(--site-header-h);
}
h1, h2, h3, .font-headline { font-family: var(--font-headline); }

/* ── Durchgehender WebP-Hintergrund (Parallax vorerst ausgeblendet – stottert) ── */
#site-bg {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: -3;
  transform: translate3d(0, 100vh, 0);
  background-image: url('images/LogoBackground.webp');
  /* Fester Anteil der kürzeren Viewport-Seite: großer, aber vollständiger Kreis.
     Bild hat Innenabstand — daher etwas über 100vmin möglich ohne sichtbaren Schnitt. */
  background-size: min(128vmin, 1600px);
  background-position: center center;
  background-repeat: no-repeat;
  will-change: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
/* Section-Trennlinien (Border + dekorative Gradient-Linie) unsichtbar */
section.border-t.border-neutral-800\/40,
#trust-bar.border-b {
  border-color: transparent !important;
}
#services > [aria-hidden="true"].pointer-events-none,
#listings-section > [aria-hidden="true"].pointer-events-none {
  opacity: 0;
  visibility: hidden;
}
#services,
#contact,
#contact-details {
  scroll-margin-top: 5.5rem;
}
/* Schleier für Lesbarkeit – Grau statt Schwarz im Dunkelmodus */
#site-bg-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: -2;
  transform: translate3d(0, 100vh, 0);
  will-change: transform;
  background: linear-gradient(180deg, var(--rr-overlay-a) 0%, var(--rr-overlay-b) 45%, var(--rr-overlay-c) 100%);
  transition: background 0.35s ease;
}
[data-theme="light"] #site-bg-overlay {
  background: linear-gradient(180deg, var(--rr-overlay-a) 0%, var(--rr-overlay-b) 45%, var(--rr-overlay-c) 100%);
}
[data-theme="light"] #site-bg {
  filter: brightness(1.55) contrast(0.78) saturate(0.82);
}
[data-theme="dark"] #site-bg {
  filter: contrast(1.12) saturate(1.06);
}

/* ── Seitenweiter Maus-Spotlight (wie Hero, über die ganze Seite) ── */
html {
  --mouse-x: 50%;
  --mouse-y: 40%;
  --hero-mouse-x: 50%;
  --hero-mouse-y: 40%;
}
#page-spotlight,
.hero-spotlight {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-color: transparent;
  background-repeat: no-repeat;
}
#page-spotlight {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  will-change: opacity;
  background-image: radial-gradient(
    380px circle at var(--mouse-x) var(--mouse-y),
    rgba(20, 98, 159, 0.28) 0%,
    rgba(20, 98, 159, 0.10) 28%,
    rgba(20, 98, 159, 0.03) 45%,
    transparent 62%
  );
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(
    380px circle at var(--hero-mouse-x) var(--hero-mouse-y),
    rgba(20, 98, 159, 0.28) 0%,
    rgba(20, 98, 159, 0.10) 28%,
    rgba(20, 98, 159, 0.03) 45%,
    transparent 62%
  );
}
@media (hover: hover) {
  #page-spotlight,
  .hero-spotlight {
    opacity: 1;
  }
}
body > main,
body > footer {
  position: relative;
  z-index: 1;
}
#trust-bar {
  display: none;
}
#hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--site-header-h));
  min-height: calc(100dvh - var(--site-header-h));
  background-color: var(--rr-hero-bg);
  overflow: hidden;
}
#hero.hero--has-downtime {
  padding-bottom: 4.5rem;
}
#hero .hero-vignette {
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 35%, var(--rr-hero-vignette) 100%);
}
#hero .hero-horizon {
  background: linear-gradient(to top, var(--rr-hero-horizon) 0%, transparent 30%);
}
#hero-logo-decor {
  right: clamp(1.5rem, 6vw, 4.5rem);
  z-index: 3;
  isolation: isolate;
}
.hero-logo-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 18px 9px rgba(255, 255, 255, 0.52),
    0 0 42px 21px rgba(255, 255, 255, 0.3),
    0 0 72px 36px rgba(235, 245, 255, 0.17),
    0 0 108px 54px rgba(20, 98, 159, 0.11),
    0 0 148px 74px rgba(20, 98, 159, 0.05);
  animation: heroLogoGlowPulse 6s ease-in-out infinite;
}
@keyframes heroLogoGlowPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
#hero-logo-decor img {
  position: relative;
  z-index: 1;
  filter:
    brightness(1.45)
    contrast(0.9)
    saturate(1.05)
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.28))
    drop-shadow(0 0 72px rgba(20, 98, 159, 0.18));
  opacity: 0.92;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
#hero-logo-decor::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url('images/LogoBackground.webp') center / contain no-repeat;
  pointer-events: none;
  opacity: var(--rr-hero-logo-boost, 0.42);
  filter: var(--rr-hero-logo-filter, brightness(1.12) contrast(1.24) saturate(1.08));
  transition: opacity 0.35s ease, filter 0.35s ease;
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    #000 0%,
    #000 44%,
    transparent 50%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    #000 0%,
    #000 44%,
    transparent 50%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-glow {
    animation: none;
  }
}
[data-theme="light"] #hero .text-white,
[data-theme="light"] #hero h1.text-white {
  color: #ffffff !important;
}
[data-theme="light"] #hero .text-neutral-400 {
  color: #a1a1aa !important;
}
[data-theme="light"] #hero .text-neutral-500 {
  color: #71717a !important;
}
[data-theme="light"] #hero .btn-outline {
  color: #ffffff !important;
  --rr-btn-outline-text: #ffffff;
}

/* ── Betriebspause-Hinweis in der Hero-Box ── */
.hero-downtime {
  margin-top: 0;
  max-width: 36rem;
  animation: heroDowntimeIn 0.55s ease both;
}
.hero-downtime[hidden] {
  display: none !important;
}
.hero-downtime__inner {
  position: relative;
  padding: 1rem 1.15rem 1.05rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(94, 176, 224, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 98, 159, 0.22) 0%, rgba(20, 98, 159, 0.08) 55%, rgba(0, 0, 0, 0.28) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.hero-downtime__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eb0e0;
}
.hero-downtime__title {
  margin: 0;
  font-family: var(--font-headline, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.hero-downtime__text {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.hero-downtime__range {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}
@keyframes heroDowntimeIn {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-downtime { animation: none; }
}

/* Mobil: Hinweis über CTAs + undurchsichtiger Hintergrund (nach Basis-Regel!) */
@media (max-width: 639px) {
  .hero-cta-stack:has(.hero-downtime:not([hidden])) .hero-downtime {
    order: -1;
  }
  .hero-downtime__inner {
    border-color: rgba(94, 176, 224, 0.45);
    background: #060d14;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  }
}

/* Buchungs-Wizard: Basis-Styles (Overlay-Layout in booking-wizard.css) */
.booking-downtime[hidden] {
  display: none !important;
}
.booking-downtime__inner {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(94, 176, 224, 0.35);
  background: #0a1520;
}
.booking-downtime__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #5eb0e0;
}
.booking-downtime__text {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
[data-theme="light"] .booking-downtime__inner {
  border-color: rgba(20, 98, 159, 0.35);
  background: #e8eef4;
}
[data-theme="light"] .booking-downtime__title {
  color: #14629f;
}
[data-theme="light"] .booking-downtime__text {
  color: #27272a;
}

/* ── Primary CTA & schwarze Elevation bei Hover (kein farbiger Glow) ── */
.btn-primary {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.45s ease, transform 0.45s ease, background-color 0.35s ease, border-color 0.35s ease;
}
@media (hover: hover) {
  /* Große CTAs (Primary, Brand, WhatsApp) */
  .btn-primary:hover,
  a.bg-brand:hover,
  button.bg-brand:hover:not(:disabled),
  a[class*="25D366"]:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }
  /* Kompakte Kacheln: kleinerer Schatten (sonst wirkt er disproportioniert & clippt) */
  [data-service-key]:hover,
  .slot-btn:hover:not(:disabled),
  [data-booking-date]:hover,
  .listings-cat-btn:hover,
  [data-booking-step][data-reachable="1"]:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
}

/* ── Outline CTA: Füllung von der Mitte ── */
.btn-outline {
  border: 1px solid color-mix(in srgb, #14629f 50%, transparent);
  background: transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--rr-btn-outline-text);
}
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(20, 98, 159, 0.45) 0%,
    rgba(20, 98, 159, 0.22) 35%,
    rgba(20, 98, 159, 0.08) 55%,
    transparent 72%
  );
  transform: scale(0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.btn-outline:hover::before {
  transform: scale(2.8);
  opacity: 1;
}
.btn-outline:hover {
  border-color: rgba(20, 98, 159, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ── Header: fixiert oben (wie Legacy; unabhängig von overflow auf html/body) ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, #fafafa 0%, #f0f1f3 48%, #e3e5e9 100%);
  border-bottom: 1px solid #c8ccd2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 18px rgba(0, 0, 0, 0.12);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
[data-theme="dark"] .site-header {
  background:
    linear-gradient(180deg, #52525b 0%, #484850 50%, #3f3f47 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Header: Schriftfarben fest – unabhängig von Theme-Overrides */
.site-header .nav-link,
.site-header .text-neutral-700,
.site-header #menu-toggle {
  color: #404040 !important;
}
.site-header .nav-link:hover,
.site-header #mobile-menu a:hover {
  color: #14629f !important;
}
.site-header a.text-white,
.site-header .bg-brand.text-white {
  color: #ffffff !important;
}

[data-theme="dark"] .site-header .nav-link,
[data-theme="dark"] .site-header .text-neutral-700,
[data-theme="dark"] .site-header #menu-toggle,
[data-theme="dark"] .site-header #mobile-menu a.text-neutral-700 {
  color: #e4e4e7 !important;
}
[data-theme="dark"] .site-header .nav-link:hover,
[data-theme="dark"] .site-header #mobile-menu a:hover {
  color: #3a8db5 !important;
}

[data-theme="dark"] #mobile-menu {
  border-color: rgba(255, 255, 255, 0.1);
  background: #3f3f47;
}
[data-theme="dark"] #mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Dunkler Header: helleres Grau hinter dem gesamten Logo (Icon + Schrift) */
[data-theme="dark"] .header-logo {
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  border-radius: 0.875rem;
  background: linear-gradient(180deg, #ececef 0%, #dcdce2 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .header-logo .header-logo-icon {
  border-radius: 0.625rem;
}
/* Mobile: nur Logo-Icon – gleichmäßiger Rand (Desktop-Padding rechts für Schrift) */
@media (max-width: 639px) {
  [data-theme="dark"] .header-logo {
    padding: 0.3rem;
  }
}

/* ── Service Glass Cards ── */
.service-glass {
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
}
.service-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 90% 70% at 50% 110%,
    rgba(20, 98, 159, 0.35) 0%,
    rgba(20, 98, 159, 0.08) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.service-glass:hover {
  transform: translateY(-0.5rem);
  border-color: #14629f;
  box-shadow:
    0 0 0 1px rgba(20, 98, 159, 0.35),
    0 20px 40px -12px rgba(0, 0, 0, 0.45),
    0 10px 20px -8px rgba(0, 0, 0, 0.35);
}
.service-glass:hover::before {
  opacity: 1;
}
.service-glass > * {
  position: relative;
  z-index: 1;
}

/* Nav link underline motion */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #14629f;
  transition: width 0.35s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Listings: Karten ── */
.listing-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 98, 159, 0.4);
  box-shadow: 0 0 0 1px rgba(20, 98, 159, 0.25), 0 20px 40px -16px rgba(0, 0, 0, 0.4);
}
.listing-card .listing-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.listing-card:hover .listing-img {
  transform: scale(1.05);
}

/* Scroll-Box nur für Angebote */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 98, 159, 0.55) rgba(255, 255, 255, 0.06);
}
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(20, 98, 159, 0.5);
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 98, 159, 0.75);
}

/* Listings: Angebots-Scrollbox – Mobil: mind. eine Karte sichtbar; Desktop: Höhe = Filter */
#listings-scroll-box {
  max-height: min(82vh, 700px);
}
@media (min-width: 1024px) {
  #listings-scroll-box {
    min-height: 0;
    flex: none !important;
    overflow-y: auto;
    max-height: none;
  }
}

/* Listings: Filterleiste */
.listings-cat-btn {
  transition: border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease, box-shadow 0.45s ease;
}
.listings-cat-btn.is-active {
  border-color: #14629f !important;
  background-color: #14629f !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}
.listings-cat-btn.is-active .listings-cat-count {
  color: rgba(255, 255, 255, 0.85) !important;
}
.listings-cat-btn.is-active:hover {
  color: #ffffff !important;
}
.listings-filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}
#listings-filter-mobile-wrap.is-open {
  max-height: 2000px;
  opacity: 1;
}
#listings-filter-toggle-icon.is-open {
  transform: rotate(180deg);
}
@media (max-width: 1023px) {
  .listings-filter-mobile-card {
    padding: 0.75rem;
  }
  #listings-filter-panel-mobile .listings-filter-fields--mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.625rem;
  }
  #listings-filter-panel-mobile .listings-filter-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }
  #listings-filter-panel-mobile .listings-filter-label {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }
  #listings-filter-panel-mobile .listings-filter-select {
    padding: 0.375rem 1.75rem 0.375rem 0.5rem;
    font-size: 0.75rem;
    background-position: right 0.4rem center;
    background-size: 0.875rem;
  }
  #listings-filter-panel-mobile .listings-search-input {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.8125rem;
  }
  #listings-filter-panel-mobile .listings-filter-chips {
    margin-top: 0.625rem;
    gap: 0.375rem;
  }
  #listings-filter-panel-mobile .listings-reset-filters {
    margin-top: 0.5rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
  }
}

/* ── Theme-Umschalter: 3 Positionen (Hell · System · Dunkel) ── */
.theme-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.125rem;
  padding: 0.2rem;
  border-radius: 9999px;
  border: 1px solid #c8ccd2;
  background: linear-gradient(180deg, #fafafa 0%, #eceef1 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .theme-switch {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #5a5a64 0%, #484850 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.theme-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-switch__btn svg {
  width: 1rem;
  height: 1rem;
}
.theme-switch__btn:hover {
  color: #14629f;
}
.theme-switch__btn.is-active {
  background: #ffffff;
  color: #14629f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}
[data-theme="dark"] .theme-switch__btn {
  color: #a1a1aa;
}
[data-theme="dark"] .theme-switch__btn:hover {
  color: #e4e4e7;
}
[data-theme="dark"] .theme-switch__btn.is-active {
  background: #ececef;
  color: #14629f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.theme-switch__btn:focus-visible {
  outline: 2px solid #14629f;
  outline-offset: 2px;
}
.theme-switch__btn--sun.is-active { color: #d97706; }
.theme-switch__btn--moon.is-active { color: #14629f; }
[data-theme="dark"] .theme-switch__btn--moon.is-active { color: #3a8db5; }

/* ── Helles Design: Tailwind-Utility-Overrides ── */
[data-theme="light"] .text-white {
  color: var(--rr-heading);
}
[data-theme="light"] .text-neutral-200 { color: #3f3f46; }
[data-theme="light"] .text-neutral-300 { color: var(--rr-text); }
[data-theme="light"] .text-neutral-400 { color: var(--rr-text-muted); }
[data-theme="light"] .text-neutral-500 { color: var(--rr-text-subtle); }
[data-theme="light"] .text-neutral-600 { color: #a1a1aa; }
[data-theme="light"] .text-neutral-700 { color: #d4d4d8; }

[data-theme="light"] .bg-neutral-950,
[data-theme="light"] .bg-neutral-950\/40,
[data-theme="light"] .bg-neutral-950\/50,
[data-theme="light"] .bg-neutral-950\/60 {
  background-color: var(--rr-card-deep) !important;
}
[data-theme="light"] .bg-neutral-900,
[data-theme="light"] .bg-neutral-900\/30,
[data-theme="light"] .bg-neutral-900\/40,
[data-theme="light"] .bg-neutral-900\/50,
[data-theme="light"] .bg-neutral-900\/60,
[data-theme="light"] .bg-neutral-900\/80 {
  background-color: var(--rr-card) !important;
}
[data-theme="light"] .bg-neutral-800 { background-color: #f4f4f5 !important; }
[data-theme="light"] .bg-black\/40 { background-color: var(--rr-trust-bar) !important; }
[data-theme="light"] .bg-black\/60 { background-color: rgba(0, 0, 0, 0.55) !important; }

[data-theme="light"] .border-neutral-800,
[data-theme="light"] .border-neutral-800\/40 { border-color: var(--rr-section-border) !important; }
[data-theme="light"] .border-white\/5,
[data-theme="light"] .border-white\/10 { border-color: var(--rr-border) !important; }

[data-theme="light"] .shadow-black\/40 { --tw-shadow-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] footer.border-neutral-800 { border-color: rgba(255, 255, 255, 0.12); }
[data-theme="light"] footer.bg-neutral-950 { background-color: var(--rr-footer) !important; }
[data-theme="light"] footer .text-neutral-500 { color: #a1a1aa !important; }
[data-theme="light"] footer .text-neutral-600 { color: #71717a !important; }
[data-theme="light"] footer .text-neutral-700 { color: #52525b !important; }

[data-theme="light"] #trust-bar { border-color: var(--rr-border-soft); }

[data-theme="light"] .listings-cat-btn:not(.is-active) {
  color: var(--rr-text-muted) !important;
}
[data-theme="light"] .listings-cat-btn:not(.is-active):hover {
  color: var(--rr-heading) !important;
}
[data-theme="light"] .listings-cat-btn.is-active,
[data-theme="light"] .listings-cat-btn.is-active:hover {
  border-color: #14629f !important;
  background-color: #14629f !important;
  color: #ffffff !important;
}

/* Blaue/grüne Buttons: weiße Schrift (Override für globales .text-white im hellen Theme) */
[data-theme="light"] .btn-primary:not(:disabled),
[data-theme="light"] a.btn-primary,
[data-theme="light"] button.btn-primary:not(:disabled) {
  color: #ffffff !important;
}
[data-theme="light"] .bg-brand.text-white {
  color: #ffffff !important;
}
[data-theme="light"] a.bg-\[\#25D366\] {
  color: #ffffff !important;
}

[data-theme="light"] .btn-outline.text-white,
[data-theme="light"] a.btn-outline.text-white,
[data-theme="light"] button.btn-outline.text-white {
  color: var(--rr-btn-outline-text) !important;
}

[data-theme="light"] .custom-scrollbar {
  scrollbar-color: rgba(20, 98, 159, 0.45) var(--rr-scrollbar-track);
}
[data-theme="light"] .custom-scrollbar::-webkit-scrollbar-track {
  background: var(--rr-scrollbar-track);
}

[data-theme="light"] .listings-filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

[data-theme="light"] .from-brand\/10.via-neutral-900\/50.to-neutral-950\/50 {
  --tw-gradient-from: rgba(20, 98, 159, 0.08);
  --tw-gradient-via: rgba(255, 255, 255, 0.7);
  --tw-gradient-to: rgba(255, 255, 255, 0.85);
}

/* Hero-Dekor-Logo: Glow + Aufhellung (siehe #hero-logo-decor img oben) */

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #a1a1aa;
}

[data-theme="light"] .hover\:text-white:hover {
  color: var(--rr-heading) !important;
}

[data-theme="light"] footer a.hover\:text-white:hover {
  color: #ffffff !important;
}

[data-theme="light"] .bg-white\/10 { background-color: rgba(0, 0, 0, 0.05) !important; }

/* Dunkelmodus: Karten etwas heller als früheres Schwarz */
[data-theme="dark"] .bg-neutral-950 { background-color: rgba(68, 68, 76, 0.95) !important; }
[data-theme="dark"] .bg-neutral-950\/40 { background-color: rgba(68, 68, 76, 0.55) !important; }
[data-theme="dark"] .bg-neutral-950\/50 { background-color: rgba(68, 68, 76, 0.62) !important; }
[data-theme="dark"] .bg-neutral-950\/60 { background-color: rgba(68, 68, 76, 0.72) !important; }
[data-theme="dark"] .bg-neutral-900,
[data-theme="dark"] .bg-neutral-900\/30 { background-color: rgba(82, 82, 90, 0.55) !important; }
[data-theme="dark"] .bg-neutral-900\/40 { background-color: rgba(82, 82, 90, 0.65) !important; }
[data-theme="dark"] .bg-neutral-900\/50 { background-color: rgba(82, 82, 90, 0.72) !important; }
[data-theme="dark"] .bg-neutral-900\/60 { background-color: rgba(82, 82, 90, 0.78) !important; }
[data-theme="dark"] .bg-neutral-900\/80 { background-color: rgba(82, 82, 90, 0.88) !important; }
[data-theme="dark"] .bg-neutral-800 { background-color: #5a5a64 !important; }
[data-theme="dark"] footer.bg-neutral-950 { background-color: var(--rr-footer) !important; }
[data-theme="dark"] #trust-bar { background-color: var(--rr-trust-bar) !important; }
