/* Nacht als Event: warme Lichtpunkte wie unscharfe Lichterketten, weiche Lichtkegel,
   ein wanderndes Lichtband. Keine Sterne, kein Mond. Nur Markenfarben. */

/* --- gemeinsame Lichtpunkte (Bokeh) --- */
@keyframes atmen { 0%, 100% { opacity: var(--o1, .35); transform: scale(1); } 50% { opacity: var(--o2, .85); transform: scale(1.12); } }
html.nacht-a .himmel-sterne i, html.nacht-a .anfrage-himmel i {
  width: 16px !important; height: 16px !important; box-shadow: none !important; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,195,143,.95) 0 28%, rgba(227,195,143,.35) 55%, rgba(227,195,143,0) 72%) !important;
  filter: blur(1.2px); animation: atmen 7s ease-in-out infinite !important; --o1: .25; --o2: .7;
}
html.nacht-a .himmel-sterne i:nth-child(3n), html.nacht-a .anfrage-himmel i:nth-child(3n) { width: 26px !important; height: 26px !important; filter: blur(2.5px); --o1: .15; --o2: .45; animation-duration: 9s !important;
  background: radial-gradient(circle, rgba(209,142,110,.8) 0 30%, rgba(209,142,110,.25) 58%, rgba(209,142,110,0) 72%) !important; }
html.nacht-a .himmel-sterne i:nth-child(5n), html.nacht-a .anfrage-himmel i:nth-child(5n) { width: 18px !important; height: 18px !important; filter: blur(1.5px); --o1: .3; --o2: .75;
  background: radial-gradient(circle, rgba(243,237,227,.9) 0 25%, rgba(243,237,227,.25) 55%, rgba(243,237,227,0) 72%) !important; }
html.nacht-a .himmel-sterne i:nth-child(7n), html.nacht-a .anfrage-himmel i:nth-child(7n) { width: 40px !important; height: 40px !important; filter: blur(5px); --o1: .1; --o2: .3; animation-duration: 11s !important; }
/* weniger, dafür bewusster gesetzte Lichter */
html.nacht-a .himmel-sterne i:nth-child(n+41), html.nacht-a .anfrage-himmel i:nth-child(n+27) { display: none; }

/* --- kein Mond mehr --- */
html.nacht-a .himmel-mond, html.nacht-a .anfrage-mond { display: none !important; }

/* --- Anfrage: Bühne statt Sternenhimmel --- */
html.nacht-a .anfrage-himmel {
  background:
    radial-gradient(900px 340px at 50% 112%, rgba(209,142,110,.22), rgba(23,27,36,0) 70%),
    radial-gradient(1200px 600px at 80% -10%, rgba(51,87,106,.40), rgba(23,27,36,0) 70%) !important;
}
html.nacht-a .anfrage-himmel::before, html.nacht-a .anfrage-himmel::after {
  content: ""; position: absolute; top: -8%; width: 46vmax; height: 120%; mix-blend-mode: screen; pointer-events: none;
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 5%, transparent 85%); mask-image: linear-gradient(180deg, #000 5%, transparent 85%);
  background: conic-gradient(from 166deg at 50% 0, rgba(227,195,143,0), rgba(227,195,143,.28) 14deg, rgba(227,195,143,0) 28deg, rgba(0,0,0,0) 0);
  animation: schwenk 13s ease-in-out infinite alternate;
}
html.nacht-a .anfrage-himmel::before { left: 6%; margin-left: -23vmax; --von: -14deg; --bis: 10deg; }
html.nacht-a .anfrage-himmel::after { right: 6%; margin-right: -23vmax; --von: 12deg; --bis: -9deg; animation-duration: 17s; animation-delay: -5s;
  background: conic-gradient(from 168deg at 50% 0, rgba(111,155,178,0), rgba(111,155,178,.24) 12deg, rgba(111,155,178,0) 24deg, rgba(0,0,0,0) 0); }
@keyframes schwenk { from { transform: rotate(var(--von)); } to { transform: rotate(var(--bis)); } }

/* wanderndes Lichtband oben am Abschnitt */
html.nacht-a #anfrage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(227,195,143,0) 0%, rgba(227,195,143,0) 35%, rgba(227,195,143,.9) 50%, rgba(227,195,143,0) 65%, rgba(227,195,143,0) 100%);
  background-size: 300% 100%; animation: lichtband 9s linear infinite; box-shadow: 0 0 18px rgba(227,195,143,.35); }
@keyframes lichtband { from { background-position: 100% 0; } to { background-position: -200% 0; } }

@media (max-width: 767px) {
  html.nacht-a .anfrage-himmel::before, html.nacht-a .anfrage-himmel::after { width: 80vmax; }
  html.nacht-a .anfrage-himmel i:nth-child(n+17) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.nacht-a .himmel-sterne i, html.nacht-a .anfrage-himmel i, html.nacht-a .anfrage-himmel::before, html.nacht-a .anfrage-himmel::after, html.nacht-a #anfrage::before { animation: none !important; }
}

/* Lichtkegel weicher, wie Licht im Dunst: weiche Kanten statt harter Flächen */
html.nacht-a .himmel-lichter span { clip-path: none !important;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 88%); mask-image: linear-gradient(0deg, #000 10%, transparent 88%);
  background: conic-gradient(from -13deg at 50% 100%, rgba(var(--k1, 227,195,143), 0), rgba(var(--k1, 227,195,143), .38) 13deg, rgba(var(--k1, 227,195,143), 0) 26deg, rgba(0,0,0,0) 0) !important; }
html.nacht-a .himmel-lichter span:nth-child(2) { background: conic-gradient(from -11deg at 50% 100%, rgba(111,155,178, 0), rgba(111,155,178, .34) 11deg, rgba(111,155,178, 0) 22deg, rgba(0,0,0,0) 0) !important; }
html.nacht-a .himmel-lichter span:nth-child(3) { background: conic-gradient(from -12deg at 50% 100%, rgba(209,142,110, 0), rgba(209,142,110, .3) 12deg, rgba(209,142,110, 0) 24deg, rgba(0,0,0,0) 0) !important; }

/* ===== gemeinsam für B und C: Sterne und Mond aus ===== */
html.nacht-b .himmel-sterne, html.nacht-c .himmel-sterne, html.nacht-b .anfrage-himmel > i, html.nacht-c .anfrage-himmel > i { display: none !important; }
html.nacht-b .himmel-mond, html.nacht-c .himmel-mond, html.nacht-b .anfrage-mond, html.nacht-c .anfrage-mond { display: none !important; }

/* ===== Entwurf B: Lichterkette wie im Festsaal ===== */
html.nacht-b .lichterkette { position: absolute; left: 0; top: 0; width: 100%; height: 34vh; min-height: 200px; pointer-events: none; overflow: visible; }
html.nacht-b .himmel .lichterkette { opacity: var(--sterne-op, 0); }
html.nacht-b .lichterkette path { fill: none; stroke: rgba(243,237,227,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
html.nacht-b .lichterkette circle { fill: #f6dcae; filter: drop-shadow(0 0 4px rgba(227,195,143,.95)) drop-shadow(0 0 12px rgba(209,142,110,.6)); animation: gluehen 5s ease-in-out infinite; }
@keyframes gluehen { 0%, 100% { opacity: .95; } 50% { opacity: .55; } }
html.nacht-b .anfrage-himmel { background:
  radial-gradient(1100px 380px at 50% -6%, rgba(227,195,143,.16), rgba(23,27,36,0) 70%),
  radial-gradient(900px 340px at 50% 112%, rgba(209,142,110,.18), rgba(23,27,36,0) 70%) !important; }
@media (max-width: 767px) { html.nacht-b .lichterkette { height: 22vh; min-height: 140px; } }

/* ===== Entwurf C: echte Discokugel, Reflexe ziehen ruhig durch den Raum ===== */
html.nacht-c .reflexe { position: absolute; top: 0; left: 0; width: 200%; height: 100%; pointer-events: none; animation: kugel 38s linear infinite; }
html.nacht-c .himmel .reflexe { opacity: calc(var(--sterne-op, 0) * .9); }
html.nacht-c .reflexe i { position: absolute; border-radius: 50%; transform: scaleX(1.7);
  background: radial-gradient(closest-side, rgba(var(--spot, 255,226,170),.95), rgba(var(--spot, 255,226,170),.5) 55%, rgba(var(--spot, 255,226,170),0));
  opacity: .8; animation: facette 5s ease-in-out infinite; }
html.nacht-c .reflexe i:nth-child(3n) { opacity: .45; }
html.nacht-c .reflexe i:nth-child(4n) { background: radial-gradient(closest-side, rgba(250,244,232,.9), rgba(250,244,232,.4) 55%, rgba(250,244,232,0)); }
@keyframes kugel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes facette { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
html.nacht-c .himmel-lichter span { clip-path: none !important;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 88%); mask-image: linear-gradient(0deg, #000 10%, transparent 88%);
  background: conic-gradient(from -9deg at 50% 100%, rgba(227,195,143,0), rgba(227,195,143,.28) 9deg, rgba(227,195,143,0) 18deg, rgba(0,0,0,0) 0) !important; }
html.nacht-c .anfrage-himmel { background:
  radial-gradient(520px 520px at 88% 8%, rgba(243,237,227,.08), rgba(23,27,36,0) 62%),
  radial-gradient(1200px 600px at 80% -10%, rgba(51,87,106,.38), rgba(23,27,36,0) 70%) !important; }
html.nacht-c .discokugel { position: relative; width: 160px; height: 160px; margin: 0 0 44px 64px; filter: drop-shadow(0 20px 34px rgba(0,0,0,.5)); }
html.nacht-c .discokugel::before { content: ""; position: absolute; left: 50%; bottom: 40%; width: 220px; height: 640px; margin-left: -110px; pointer-events: none; transform: rotate(22deg); transform-origin: 50% 100%;
  background: conic-gradient(from 174deg at 50% 0, rgba(var(--spot, 255,226,170),0), rgba(var(--spot, 255,226,170),.22) 6deg, rgba(var(--spot, 255,226,170),0) 12deg, rgba(0,0,0,0) 0);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 55%, #000 80%, transparent); }
html.nacht-c .discokugel { animation: schweben-k 7s ease-in-out infinite alternate; }
@keyframes schweben-k { from { transform: translateY(0); } to { transform: translateY(6px); } }
html.nacht-c .discokugel canvas { position: relative; z-index: 1; }
html.nacht-c .discokugel canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 1023px) { html.nacht-c .discokugel { width: 100px; height: 100px; margin: 0 0 32px 24px; } }

@media (prefers-reduced-motion: reduce) {
  html.nacht-b .lichterkette circle, html.nacht-c .reflexe, html.nacht-c .reflexe i, html.nacht-c .discokugel { animation: none !important; }
}

/* Feinschliff B und C */
html.nacht-b .himmel .lichterkette { top: 84px; }
html.nacht-b .himmel-lichter span { clip-path: none !important;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 88%); mask-image: linear-gradient(0deg, #000 10%, transparent 88%);
  background: conic-gradient(from -12deg at 50% 100%, rgba(227,195,143,0), rgba(227,195,143,.3) 12deg, rgba(227,195,143,0) 24deg, rgba(0,0,0,0) 0) !important; }
html.nacht-c .anfrage-bogen { display: none; }

html.nacht-c #anfrage .kontakt-raster > div:first-child { position: relative; }
