/* ===================== BILDANSICHT (wie auf der Startseite) =====================
   Der 👁-Knopf blendet Inhalt, Logo, Navigation und Footer weich aus,
   damit man das Hintergrundbild ungestört ansehen kann. */

#hide-cont{
	position: absolute;
	bottom: 7%;
	right: 1.2%;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	background: rgba(0,0,0,.28);
	border: 1px solid rgba(255,255,255,.25);
	color: rgba(255,255,255,.95);
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 220;
	opacity: 1;
	animation: none;
	transition: transform .2s ease, background .2s ease;
}
#hide-cont:hover{
	transform: scale(1.06);
	background: rgba(0,0,0,.45);
}
#hide-cont:focus-visible{
	outline: 2px solid #fff;
	outline-offset: 3px;
}
#hide-cont svg{ width: 22px; height: 22px; }
#hide-cont .icon-close{ display: none; }
body.viewing #hide-cont{ bottom: auto; top: 20px; right: 20px; }
body.viewing #hide-cont .icon-eye{ display: none; }
body.viewing #hide-cont .icon-close{ display: block; }

body.viewing #cont,
body.viewing #logo,
body.viewing #nav,
body.viewing #footer{
	animation: ansichtAus .45s ease forwards;
	pointer-events: none;
}
body.ansicht-benutzt:not(.viewing) #cont,
body.ansicht-benutzt:not(.viewing) #logo,
body.ansicht-benutzt:not(.viewing) #nav,
body.ansicht-benutzt:not(.viewing) #footer{
	animation: ansichtEin .45s ease both;
}
.overlay-2{ transition: opacity .6s ease; }
body.viewing .overlay-2{ opacity: 0 !important; }

/* sanfter Verlauf oben/unten im Ansichtsmodus, damit der Schließen-Knopf sichtbar bleibt */
body.viewing #content::after{
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(rgba(0,0,0,.3), transparent 120px);
}

@keyframes ansichtAus {
	from { opacity: 1; }
	to   { opacity: 0; visibility: hidden; }
}
@keyframes ansichtEin {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (orientation: portrait){
	#hide-cont{ bottom: 9%; right: 16px; }
	body.viewing #hide-cont{ top: 16px; right: 16px; }
}
