/* «Eine Nacht bei der Muster AG» – nur auf der Seite eine-nacht geladen */
.bs-nacht {
	--n-nacht: #090439; --n-zw: #180E73; --n-azur: #3B8BE6; --n-kuerbis: #F97316; --n-rot: #e5484d; --n-gruen: #4ade80;
	--n-text: #dfe4f8; --n-leise: #9aa3cf; --n-linie: rgba(255, 255, 255, .12);
	--n-oben: #2b1d63; --n-mitte: #20105a; --n-unten: #f08a4b; --n-sterne: 0; --n-p: 0;
	--n-schmal: "Barlow Condensed", Barlow, sans-serif;
	--n-kopf: var(--bs-kopfhoehe, 76px);
	position: relative; isolation: isolate; color: var(--n-text); font-size: 18px; line-height: 1.6; overflow-x: clip;
}
.admin-bar .bs-nacht { --n-kopf: calc(var(--bs-kopfhoehe, 76px) + 32px); }
body.seite-eine-nacht { background: #090439; }
.bs-nacht *, .bs-nacht *::before, .bs-nacht *::after { box-sizing: border-box; }
.bs-nacht h1, .bs-nacht h2, .bs-nacht h3, .bs-nacht p, .bs-nacht ul { margin: 0; padding: 0; }
.bs-nacht img { max-width: 100%; height: auto; display: block; }
.bs-nacht a { color: inherit; }

/* ---------- Himmel, Sterne, Mond, Stadt ---------- */
.n-himmel, .n-sterne, .n-stadt { position: fixed; left: 0; right: 0; pointer-events: none; }
.n-himmel { top: 0; bottom: 0; z-index: -3; background: linear-gradient(180deg, var(--n-oben) 0%, var(--n-mitte) 55%, var(--n-unten) 100%); }
.n-sterne { top: 0; bottom: 0; z-index: -2; opacity: var(--n-sterne); }
.n-sterne i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: n-funkeln 3s ease-in-out infinite alternate; }
@keyframes n-funkeln { from { opacity: .25; } to { opacity: 1; } }
.n-mond { position: fixed; z-index: -2; width: 64px; height: 64px; border-radius: 50%; background: #f4f1e3; pointer-events: none;
	box-shadow: 0 0 60px 10px rgba(244, 241, 227, .22); left: calc(6vw + var(--n-p) * 84vw); top: calc(28vh - sin(var(--n-p) * 3.1416) * 12vh); opacity: calc(var(--n-sterne) * .85); }
.n-mond::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--n-oben); transform: translate(17px, -8px); opacity: .92; }
.n-stadt { bottom: 0; height: 24vh; z-index: -1; }
.n-stadt svg { width: 100%; height: 100%; display: block; }
.n-stadt .n-fenster { fill: #ffd27a; transition: opacity .6s; }
.n-stadt .n-fenster.aus { opacity: 0; }
.n-stadt .n-server { fill: var(--n-azur); animation: n-blinken 1.4s steps(2) infinite; }
.bs-nacht.alarm .n-stadt .n-server { fill: var(--n-rot); animation-duration: .35s; }
@keyframes n-blinken { 50% { opacity: .3; } }

/* ---------- Leiste: Firma, Uhr, Schalter ---------- */
.n-leiste { position: sticky; top: var(--n-kopf); z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
	padding: 10px clamp(16px, 4vw, 40px); background: linear-gradient(180deg, rgba(9, 4, 57, .82), rgba(9, 4, 57, 0)); }
.n-leiste { transition: opacity .4s, visibility .4s; }
.n-leiste.weg { opacity: 0; visibility: hidden; }
.n-leiste__firma { font: 600 12px/1 var(--n-schmal); letter-spacing: .2em; text-transform: uppercase; color: var(--n-leise); }
.n-uhr { font: 700 clamp(28px, 4vw, 40px)/1 var(--n-schmal); color: #fff; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(59, 139, 230, .6); }
.n-schalter { justify-self: end; display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--n-schmal); letter-spacing: .1em; text-transform: uppercase;
	color: var(--n-leise); cursor: pointer; background: none; border: 0; padding: 6px 0; }
.n-schalter__bahn { width: 54px; height: 28px; border-radius: 14px; background: rgba(229, 72, 77, .35); border: 1px solid var(--n-rot); position: relative; transition: .3s; flex: none; }
.n-schalter__bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--n-rot); transition: .3s; }
.bs-nacht.vorbereitet .n-schalter__bahn { background: rgba(74, 222, 128, .25); border-color: var(--n-gruen); }
.bs-nacht.vorbereitet .n-schalter__bahn::after { left: 29px; background: var(--n-gruen); }
.bs-nacht:not(.vorbereitet) .n-schalter__ohne, .bs-nacht.vorbereitet .n-schalter__mit { color: #fff; }
.n-schalter:focus-visible { outline: 2px solid var(--n-kuerbis); outline-offset: 4px; border-radius: 6px; }

/* ---------- Anfang ---------- */
.n-held { min-height: calc(100vh - var(--n-kopf) - 60px); display: grid; align-content: center; padding: 40px clamp(16px, 6vw, 80px) 24vh; max-width: 1200px; margin: 0 auto; }
.n-ober { font: 600 14px/1.2 var(--n-schmal); letter-spacing: .2em; text-transform: uppercase; color: #ffc59a; display: flex; align-items: center; gap: 12px; }
.n-ober::before { content: ""; width: 34px; height: 2px; background: var(--n-kuerbis); flex: none; }
.bs-nacht h1 { font: 700 clamp(52px, 9vw, 120px)/.95 var(--n-schmal); color: #fff; margin: 22px 0 26px; }
.bs-nacht h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; }
.n-held > p:not(.n-ober) { font-size: clamp(19px, 2vw, 23px); max-width: 40ch; color: #e8eaf7; }
.n-runter { margin-top: 40px; font: 600 13px/1 var(--n-schmal); letter-spacing: .2em; text-transform: uppercase; color: var(--n-leise); display: flex; align-items: center; gap: 12px; }
.n-runter i { width: 1px; height: 46px; background: linear-gradient(var(--n-leise), transparent); animation: n-tropfen 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes n-tropfen { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Zeitachse ---------- */
.n-zeitachse { position: relative; max-width: 1140px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 60px) 16vh; }
.n-zeitachse::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(transparent, var(--n-azur) 4%, var(--n-azur) 96%, transparent); opacity: .5; }
.n-szene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; min-height: 96vh; padding: 10vh 0; }
.n-zeit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; font: 700 20px/1 var(--n-schmal); color: #fff;
	background: var(--n-nacht); border: 2px solid var(--n-azur); border-radius: 30px; padding: 9px 16px; box-shadow: 0 0 0 8px rgba(9, 4, 57, .7), 0 0 30px rgba(59, 139, 230, .5); white-space: nowrap; }
.n-szene--gefahr .n-zeit { border-color: var(--n-kuerbis); box-shadow: 0 0 0 8px rgba(9, 4, 57, .7), 0 0 34px rgba(249, 115, 22, .6); }
.bs-nacht.vorbereitet .n-szene--gefahr .n-zeit { border-color: var(--n-gruen); box-shadow: 0 0 0 8px rgba(9, 4, 57, .7), 0 0 30px rgba(74, 222, 128, .45); }
.n-szene:nth-child(even) .n-text { order: 2; }
.n-text { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(.2, .7, .2, 1); }
.n-bild { opacity: 0; transform: translateY(60px) scale(.96); transition: 1.1s .15s cubic-bezier(.2, .7, .2, 1); }
.n-szene.sichtbar .n-text, .n-szene.sichtbar .n-bild { opacity: 1; transform: none; }
.n-seite { display: inline-block; font: 600 12px/1 var(--n-schmal); letter-spacing: .16em; text-transform: uppercase; color: var(--n-azur); border: 1px solid rgba(59, 139, 230, .5); border-radius: 4px; padding: 5px 8px; margin-bottom: 16px; }
.bs-nacht h2 { font: 700 clamp(34px, 4.2vw, 52px)/1.02 var(--n-schmal); color: #fff; margin-bottom: 16px; }
.n-text > p { color: #cfd5ee; }

/* Fragen */
.n-frage { margin-top: 22px; padding: 18px 20px; border-radius: 12px; background: rgba(20, 14, 70, .88); border: 1px solid var(--n-linie); }
.n-frage__titel { font: 700 18px/1.2 var(--n-schmal); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 12px !important; display: flex; align-items: center; gap: 10px; }
.n-frage__titel::before { content: "?"; width: 24px; height: 24px; border-radius: 50%; background: var(--n-kuerbis); color: #1a0d00; display: grid; place-items: center; font-size: 15px; flex: none; }
.n-frage__knoepfe { display: flex; flex-direction: column; gap: 8px; }
.n-knopf { display: inline-block; font: 600 16px/1.25 var(--n-schmal); letter-spacing: .06em; text-transform: uppercase; padding: 13px 18px; border-radius: 8px; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; text-align: left; text-decoration: none; transition: background .2s, border-color .2s, opacity .2s; }
.n-knopf:hover, .n-knopf:focus-visible { background: rgba(255, 255, 255, .15); }
.n-knopf:focus-visible { outline: 2px solid var(--n-kuerbis); outline-offset: 2px; }
.n-frage.beantwortet .n-knopf { cursor: default; opacity: .45; }
.n-frage.beantwortet .n-knopf.loesung { opacity: 1; border-color: var(--n-gruen); background: rgba(74, 222, 128, .14); }
.n-frage.beantwortet .n-knopf.gewaehlt.falsch { opacity: 1; border-color: var(--n-rot); background: rgba(229, 72, 77, .16); }
.n-knopf.loesung::after { content: " ✓"; color: var(--n-gruen); }
.n-knopf.gewaehlt.falsch::after { content: " ✕"; color: #ff8a8d; }
.n-frage__antwort { font-size: 16px; line-height: 1.5; color: #fff; }
.n-frage__antwort:not(:empty) { margin-top: 14px !important; padding-left: 12px; border-left: 3px solid var(--n-gruen); }
.n-frage.daneben .n-frage__antwort:not(:empty) { border-left-color: #ffb37a; }
.bs-nacht .n-knopf--voll { background: var(--n-kuerbis); border-color: var(--n-kuerbis); color: #1a0d00; text-align: center; }
.bs-nacht .n-knopf--voll:hover, .bs-nacht .n-knopf--voll:focus-visible { background: #ff8a3a; color: #1a0d00; }
.bs-nacht .n-knopf--dunkel { background: var(--n-nacht); border-color: var(--n-nacht); color: #fff; margin-top: 22px; }
.bs-nacht .n-knopf--dunkel:hover { background: var(--n-zw); }

/* Ausgänge */
.n-ausgang { margin-top: 18px; border-radius: 12px; padding: 16px 18px; font-size: 16.5px; line-height: 1.5; }
.n-ausgang b { display: block; font: 700 13px/1 var(--n-schmal); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.n-ausgang--ohne { background: linear-gradient(rgba(229, 72, 77, .14), rgba(229, 72, 77, .14)), rgba(12, 6, 50, .9); border: 1px solid rgba(229, 72, 77, .45); color: #ffd9da; }
.n-ausgang--ohne b { color: #ff8a8d; }
.n-ausgang--mit { background: linear-gradient(rgba(74, 222, 128, .1), rgba(74, 222, 128, .1)), rgba(12, 6, 50, .9); border: 1px solid rgba(74, 222, 128, .45); color: #d7f8e2; display: none; }
.n-ausgang--mit b { color: var(--n-gruen); }
.n-leistung { display: block; margin-top: 10px; font-size: 14px; color: var(--n-leise); }
.n-leistung a { color: #fff; }
.bs-nacht.vorbereitet .n-ausgang--ohne { display: none; }
.bs-nacht.vorbereitet .n-ausgang--mit { display: block; animation: n-auf .6s ease; }
@keyframes n-auf { from { opacity: 0; transform: translateY(10px); } }

/* Bilder der Szenen */
.n-handy { width: min(300px, 72vw); margin: 0 auto; border-radius: 34px; border: 8px solid #23232c; box-shadow: 0 40px 80px -30px #000, 0 0 0 1px #3a3a46; overflow: hidden; position: relative; }
.n-handy::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 18px; background: #23232c; border-radius: 12px; z-index: 2; }
.n-mail img { border-radius: 10px; box-shadow: 0 40px 80px -30px #000; border: 1px solid var(--n-linie); transition: opacity .3s; }
.n-usb { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 40px 80px -30px #000; }
.n-schirm { background: #05031c; border: 1px solid var(--n-linie); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px #000; font: 500 14px/1.5 ui-monospace, "DejaVu Sans Mono", monospace; }
.n-schirm__leiste { display: flex; gap: 7px; padding: 11px 14px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--n-linie); align-items: center; }
.n-schirm__leiste i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a55; }
.n-schirm__leiste span { margin-left: 10px; color: var(--n-leise); font-size: 12px; }
.n-schirm ul { list-style: none; padding: 14px 18px; }
.n-schirm li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); color: #c9cff0; transition: color .3s; }
.n-schirm li > span:last-child { color: var(--n-leise); white-space: nowrap; }
.n-schirm li.weg, .n-schirm li.weg > span:last-child { color: var(--n-rot); }
.n-schirm__fuss { padding: 12px 18px; border-top: 1px solid var(--n-linie); font-size: 13px; color: var(--n-leise); display: flex; justify-content: space-between; gap: 12px; }
.n-balken { height: 6px; background: rgba(255, 255, 255, .08); margin: 0 18px 16px; border-radius: 3px; overflow: hidden; }
.n-balken i { display: block; height: 100%; width: 0; background: var(--n-rot); transition: width .3s; }
.bs-nacht.vorbereitet .n-balken i { background: var(--n-gruen); }

/* ---------- Morgen ---------- */
.n-morgen { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 14vh clamp(16px, 6vw, 80px) 26vh; }
.n-morgen > div { max-width: 760px; }
.n-morgen .n-ober { justify-content: center; color: #fff; }
.n-morgen h2 { font-size: clamp(46px, 7vw, 92px); margin: 18px auto; text-shadow: 0 2px 30px rgba(9, 4, 57, .35); }
.n-morgen .n-ausgang { max-width: 620px; margin: 24px auto 0; text-align: left; background: rgba(9, 4, 57, .74); backdrop-filter: blur(6px); }
.n-morgen .n-nochmal { margin-top: 30px; }
.n-bilanz { margin: 34px auto 0; max-width: 620px; padding: 26px 28px; border-radius: 16px; background: rgba(9, 4, 57, .82); backdrop-filter: blur(8px); border: 1px solid var(--n-linie); }
.n-bilanz .n-ober { justify-content: center; color: #ffc59a; }
.n-bilanz__zahl { font: 700 clamp(34px, 5vw, 48px)/1.05 var(--n-schmal); color: #fff; margin: 12px 0 14px !important; }
.n-bilanz__punkte { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.n-bilanz__punkte i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.n-bilanz__punkte i.richtig { background: var(--n-gruen); }
.n-bilanz__punkte i.falsch { background: var(--n-rot); }
.n-bilanz__text { color: #dfe4f8; }
.n-bilanz__knoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Tag ---------- */
.n-tag { background: #f5f7fc; color: #1a1d2e; position: relative; }
.n-tag::before { content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 140px; background: linear-gradient(transparent, #f5f7fc); pointer-events: none; }
.n-innen { max-width: 1200px; margin: 0 auto; padding: 110px clamp(16px, 6vw, 80px); }
.n-tag .n-ober { color: var(--n-zw); }
.n-tag h2 { color: var(--n-nacht); font-size: clamp(38px, 5vw, 64px); max-width: 18ch; margin-top: 14px; }
.n-einl { font-size: 20px; color: #5a6070; max-width: 60ch; }
.n-tag .n-einl { margin-bottom: 50px !important; }
.n-posten { display: grid; grid-template-columns: 1fr 240px 1fr; gap: 26px 40px; align-items: center; }
.n-eule { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; position: relative; }
.n-eule::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 139, 230, .25), transparent 70%); }
.n-eule img { width: 170px; position: relative; filter: drop-shadow(0 20px 30px rgba(9, 4, 57, .25)); }
.n-wache { background: #fff; border: 1px solid #e3e7f2; border-radius: 14px; padding: 22px 24px; box-shadow: 0 12px 32px -16px rgba(9, 4, 57, .2); }
.n-wache small { font: 700 12px/1 var(--n-schmal); letter-spacing: .16em; text-transform: uppercase; color: var(--n-kuerbis); }
.n-wache h3 { font: 700 26px/1.1 var(--n-schmal); color: var(--n-nacht); margin: 8px 0 6px; }
.n-wache p { font-size: 16px; color: #5a6070; line-height: 1.5; }
.n-stempel { display: inline-block; margin-top: 10px; font: 600 13px/1 var(--n-schmal); letter-spacing: .08em; color: var(--n-zw); background: #eef2fb; padding: 6px 9px; border-radius: 5px; }
.n-ergebnis { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; margin-top: 120px; }
.n-ergebnis h2 { margin-bottom: 16px; }
.n-faecher { position: relative; height: 380px; }
.n-faecher img { position: absolute; width: 78%; left: 11%; top: 40px; border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(9, 4, 57, .45); border: 1px solid #e3e7f2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.n-faecher img:nth-child(1) { transform: rotate(-9deg) translate(-60px, 20px); }
.n-faecher img:nth-child(2) { transform: rotate(-2deg) translate(-10px, 0); }
.n-faecher img:nth-child(3) { transform: rotate(6deg) translate(50px, 10px); }
.n-faecher:hover img:nth-child(1) { transform: rotate(-14deg) translate(-120px, 30px); }
.n-faecher:hover img:nth-child(3) { transform: rotate(11deg) translate(110px, 20px); }
.n-vertraulich { display: inline-block; margin: 22px 0 0 16px; font: 700 14px/1 var(--n-schmal); letter-spacing: .16em; text-transform: uppercase; color: #c4153a; border: 3px solid #c4153a; padding: 9px 12px; border-radius: 6px; transform: rotate(-4deg); vertical-align: middle; }

/* ---------- Schluss ---------- */
.n-schluss { text-align: center; padding: 130px clamp(16px, 6vw, 80px) 60px; background: radial-gradient(circle at 50% 0%, rgba(59, 139, 230, .35), transparent 60%), var(--n-nacht); }
.n-schluss .n-ober { justify-content: center; }
.n-schluss h2 { font-size: clamp(44px, 6vw, 80px); max-width: 16ch; margin: 18px auto; }
.n-schluss > p:not(.n-ober):not(.n-fussnote) { color: #c4cbe8; max-width: 52ch; margin: 0 auto; }
.n-schluss .n-knopf { margin-top: 34px; }
.n-fussnote { margin-top: 90px !important; font-size: 13px; color: var(--n-leise); }

@media (max-width: 820px) {
	.n-zeitachse::before { left: 22px; }
	.n-szene { grid-template-columns: 1fr; gap: 34px; padding: 15vh 0 8vh 40px; min-height: 0; }
	.n-zeit { left: 22px; top: 8vh; }
	.n-szene:nth-child(even) .n-text { order: 0; }
	.n-posten, .n-ergebnis { grid-template-columns: 1fr; }
	.n-eule { grid-column: 1; grid-row: auto; order: -1; }
	.n-eule img { width: 110px; }
	.n-eule::before { width: 160px; height: 160px; }
	.n-faecher { height: 240px; }
	.n-schalter__ohne, .n-schalter__mit, .n-mond { display: none; }
	.n-stadt { height: 15vh; }
	.n-leiste__firma { font-size: 10px; letter-spacing: .12em; }
	.n-leiste { background: rgba(9, 4, 57, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
}
@media (prefers-reduced-motion: reduce) {
	.n-text, .n-bild { opacity: 1; transform: none; transition: none; }
	.n-sterne i, .n-runter i, .n-stadt .n-server { animation: none; }
}

/* Update-Fenster (22:30) */
.n-update__inhalt { display: grid; gap: 8px; padding: 26px 26px 24px; font-family: Barlow, sans-serif; }
.n-update__symbol { width: 52px; height: 52px; border-radius: 50%; background: rgba(59, 139, 230, .2); color: #8fbbf5; display: grid; place-items: center; font-size: 28px; margin-bottom: 6px; }
.n-update__inhalt b { color: #fff; font-size: 21px; font-weight: 600; }
.n-update__inhalt > span:not(.n-update__symbol) { color: #c9cff0; font-size: 15px; }
.n-update__klein { color: var(--n-leise) !important; font-size: 13.5px !important; }
.n-update__knoepfe { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.n-update__knoepfe i { font-style: normal; font-size: 14px; padding: 9px 16px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.n-update__knoepfe i:first-child { background: var(--n-azur); border-color: var(--n-azur); }

/* Fusszeile über Himmel und Stadt legen (die festen Ebenen der Geschichte würden sie sonst verdecken) */
body.seite-eine-nacht .bs-fussbereich { position: relative; z-index: 1; }
