/* Burg Stolberg Nordseite - Responsive Desktop & Tablet Edition (ohne Scrollbars, einzeilige Timeline) */

/* Basics */
*, ::before, ::after {
	box-sizing: border-box;
}

* {
	-webkit-perspective: 1000;
	-webkit-backface-visibility: none;
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
}

button,
textarea,
a {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	cursor: pointer;
}

/* Typo */
@font-face {
	font-family: "Frutiger";
	src: url("fonts/FrutigerNeue1450Pro-Bold.woff") format("woff");
	font-weight: 600;
}
@font-face {
	font-family: "Frutiger-Regular";
	src: url("FrutigerNeue1450Pro-Regular.woff") format("woff");
	font-weight: 300;
}

html, body {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: "Frutiger", sans-serif;
	line-height: 1;
	font-size: clamp(14px, 1.15vw, 22px);
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	background-image: url(img/hintergrund-startscreen.jpg);
	color: #000;
}

h1 {
	font-size: clamp(28px, 3.5vw, 70px);
	line-height: 1.15em;
	font-weight: 550;
	text-transform: uppercase;
	margin: 0 0 clamp(10px, 1.2vh, 18px) 0;
	color: #e4b05e;
}

h2 {
	font-size: clamp(15px, 1.15vw, 22px);
	font-weight: 100;
	text-transform: uppercase;
	margin: 0;
	color: #e4b05e;
}

p {
	line-height: 1.45em;
	font-family: "Frutiger-Regular", sans-serif;
	font-size: clamp(13px, 1.02vw, 20px);
	color: #fff;
	margin-top: 0;
}

.white { color: #fff; }
.grey { color: #383e42; }
.align-right { text-align: right; }

/* Sprach-Buttons */
.sprachen {
	position: fixed;
	z-index: 50;
	right: clamp(20px, 2.6vw, 50px);
	bottom: clamp(20px, 3vh, 50px);
	display: flex;
	gap: clamp(10px, 1.5vw, 30px);
}

button {
	width: clamp(44px, 3.1vw, 60px);
	height: clamp(44px, 3.1vw, 60px);
	background-color: transparent;
	border: none;
	color: #393e42;
	text-align: center;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Frutiger", sans-serif;
	font-size: clamp(15px, 1.25vw, 24px);
	background-image: url("img/button-bg-sprache.png");
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.btn-sprache {
	margin: 0;
	padding-bottom: 3px;
}

.btn-sprache.active {
	background-image: url("img/button-bg-sprache-aktiv.png");
}

.btn-span {
	margin: 0 0 0 -2px;
}

/* Haupt-Container (Screens) */
.timeline,
.startscreen,
.gallerie,
.panoviewer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: visibility 1s, opacity 1s;
	opacity: 0;
	visibility: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.timeline {
	background-image: url(img/hintergrund-grau.jpg);
	z-index: 20;
}

.startscreen { z-index: 2; }
.gallerie {
	background-image: url(img/hintergrund-orte-pano.jpg);
	z-index: 3;
}
.panoviewer { z-index: 3; }

.timeline.active,
.startscreen.active,
.gallerie.active {
	transition-delay: 0.5s;
	opacity: 1;
	visibility: inherit;
}

.panoviewer.active {
	transition-delay: 0s;
	opacity: 1;
	visibility: inherit;
}

/* Startscreen Layout */
.titel-left {
	position: absolute;
	left: clamp(30px, 4.5vw, 85px);
	top: clamp(30px, 5vh, 85px);
	z-index: 4;
	font-weight: 200 !important;
}

.titel-right {
	position: absolute;
	right: clamp(30px, 4.5vw, 85px);
	top: clamp(30px, 5vh, 85px);
	z-index: 4;
	text-align: right;
}

.titel-mitte {
	position: absolute;
	transition: visibility 1s, opacity 1s;
	opacity: 0;
	visibility: hidden;
	text-align: center;
	font-size: clamp(16px, 1.25vw, 24px);
	left: 50%;
	transform: translateX(-50%);
	top: 18vh;
	z-index: 4;
	width: 80%;
	max-width: 700px;
}

.titel-mitte.active {
	opacity: 1;
	visibility: inherit;
}

.titel-mitte > span:nth-child(2),
.titel-mitte > span:nth-child(3),
.titel-mitte > span:nth-child(4) {
	position: relative;
	left: 0;
}

.menu-left,
.menu-right {
	position: absolute;
	transition: visibility 1s, opacity 1s;
	opacity: 0;
	visibility: hidden;
	z-index: 3;
	text-align: center;
	top: 39vh;
	width: 42vw;
	max-width: 600px;
}

.menu-left {
	left: 5vw;
}

.menu-right {
	right: 5vw;
}

.menu-left.active,
.menu-right.active {
	opacity: 1;
	visibility: inherit;
}

.btn-menu {
	position: relative;
	width: auto;
	height: clamp(46px, 3.1vw, 60px);
	padding: 0 clamp(20px, 1.8vw, 30px) 3px;
	margin-top: clamp(20px, 3vh, 40px);
	background-image: url("img/button-bg.png");
	background-position: right;
	background-size: 100% 100%;
}

.btn-menu:active {
	background-image: url("img/button-bg-active.png");
}

.blue-bg {
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(85, 218, 242, 0.5);
	transform: translateX(-50%);
	width: 100%;
	height: 100%;
	transition: all 1000ms ease-in-out;
}

.blue-bg.full { transform: translateX(0); }
.blue-bg.none { transform: translateX(-100%); }

/* Zurück-Buttons */
.btn-back-timeline,
.btn-back-gallerie,
.btn-back-pano {
	position: fixed;
	bottom: clamp(20px, 3vh, 50px);
	left: clamp(25px, 4.5vw, 85px);
	width: auto;
	height: clamp(44px, 3.1vw, 60px);
	padding: 0 clamp(18px, 1.5vw, 25px) 3px clamp(22px, 1.8vw, 30px);
	background-image: url("img/button-bg-arrow-left.png");
	background-size: 100% 100%;
	transition: opacity 0.4s, visibility 0.4s;
}

.btn-back-timeline { z-index: 25; }
.btn-back-gallerie { z-index: 12; opacity: 1; visibility: inherit; }
.btn-back-pano { z-index: 14; opacity: 1; visibility: inherit; }

.btn-back-gallerie.inactive,
.btn-back-pano.inactive {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.btn-back-timeline:active,
.btn-back-gallerie:active,
.btn-back-pano:active {
	background-image: url("img/button-bg-arrow-left-active.png");
}

/* Swiper & Timeline */
.swiper {
	width: 100%;
	height: 100%;
}

.swiper-button-prev {
	left: clamp(15px, 2.5vw, 60px) !important;
	color: #fff;
}

.swiper-button-next {
	right: clamp(15px, 2.5vw, 60px) !important;
	color: #fff;
}

.swiper-slide,
.swiper-slide-prev,
.swiper-slide-next {
	transition: all 400ms ease-in-out;
	opacity: 0;
	transform: scale(1.05);
	position: relative;
	overflow: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.swiper-slide-active {
	transition: all 600ms ease-in-out;
	opacity: 1;
	transform: scale(1);
}

.swiper-slide-content {
	position: absolute;
	text-align: left;
	top: clamp(110px, 21vh, 250px);
	left: clamp(65px, 11vw, 220px);
	right: clamp(65px, 8vw, 150px);
	bottom: clamp(80px, 11vh, 130px);
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 400ms ease-in-out;
	opacity: 0;
	pointer-events: none;
}

.swiper-slide-active .swiper-slide-content {
	opacity: 1;
	transition-delay: 400ms;
}

/* Infotext ohne Blur und ohne Hintergrundfarbe, ohne Scrollbar */
.infotext {
	max-width: clamp(320px, 32vw, 480px);
	background: transparent;
	padding: 0;
	pointer-events: auto;
}

.infotext-width {
	max-width: 100%;
	margin-bottom: 0;
}

/* Quellenangaben responsiv am unteren Rand des Content-Bereichs */
.quelle,
.quelle-1, .quelle-2, .quelle-3, .quelle-4,
.quelle-5, .quelle-6, .quelle-7, .quelle-8 {
	position: relative;
	top: auto;
	bottom: auto;
	left: auto;
	right: auto;
	color: #ffffff;
	font-size: clamp(11px, 0.82vw, 16px);
	line-height: 1.35;
	z-index: 20;
	max-width: 440px;
	margin: 0;
}

.quelle-1 {
	align-self: flex-end;
	text-align: right;
}

.quelle-titel {
	text-transform: uppercase;
	font-size: clamp(9px, 0.65vw, 12px);
	font-weight: 600;
	display: inline-block;
	margin-top: 2px;
}


/* Timeline-Pagination: Immer exakt 1 Zeile oben, links und rechts symmetrisch */
.swiper-pagination {
	position: absolute !important;
	top: clamp(30px, 10vh, 140px) !important;
	bottom: auto !important;
	left: clamp(35px, 4.9vw, 95px) !important;
	right: clamp(35px, 4.9vw, 95px) !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: space-between;
	z-index: 30;
}

.swiper-pagination-bullet {
	padding: 2px 0 0 0 !important;
	margin: 0 0 0 -0.45vw !important;
	border-radius: 0 !important;
	height: clamp(32px, 3.1vw, 60px) !important;
	line-height: clamp(32px, 3.1vw, 60px) !important;
	font-size: clamp(9px, 0.88vw, 17px);
	color: #383e42;
	opacity: 1 !important;
	background-size: 100% 100% !important;
	background-position: center;
	background-color: transparent !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	flex: 1 1 auto;
}

.swiper-pagination-bullet:first-child {
	margin-left: 0 !important;
}

/* Proportionale Breitenverhältnisse der 14 Buttons */
.swiper-pagination .btn1  { background-image: url("img/button-timeline-1.png");  flex-grow: 1.41; }
.swiper-pagination .btn2  { background-image: url("img/button-timeline-2.png");  flex-grow: 1.08; }
.swiper-pagination .btn3  { background-image: url("img/button-timeline-3.png");  flex-grow: 1.09; }
.swiper-pagination .btn4  { background-image: url("img/button-timeline-4.png");  flex-grow: 1.47; }
.swiper-pagination .btn5  { background-image: url("img/button-timeline-5.png");  flex-grow: 1.09; }
.swiper-pagination .btn6  { background-image: url("img/button-timeline-6.png");  flex-grow: 1.09; }
.swiper-pagination .btn7  { background-image: url("img/button-timeline-7.png");  flex-grow: 1.48; }
.swiper-pagination .btn8  { background-image: url("img/button-timeline-8.png");  flex-grow: 1.48; }
.swiper-pagination .btn9  { background-image: url("img/button-timeline-9.png");  flex-grow: 1.47; }
.swiper-pagination .btn10 { background-image: url("img/button-timeline-10.png"); flex-grow: 1.48; }
.swiper-pagination .btn11 { background-image: url("img/button-timeline-11.png"); flex-grow: 1.09; }
.swiper-pagination .btn12 { background-image: url("img/button-timeline-12.png"); flex-grow: 1.09; }
.swiper-pagination .btn13 { background-image: url("img/button-timeline-13.png"); flex-grow: 1.42; }
.swiper-pagination .btn14 { background-image: url("img/button-timeline-14.png"); flex-grow: 1.53; }

.swiper-pagination-bullet.btn1.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-1-active.png") !important; }
.swiper-pagination-bullet.btn2.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-2-active.png") !important; }
.swiper-pagination-bullet.btn3.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-3-active.png") !important; }
.swiper-pagination-bullet.btn4.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-4-active.png") !important; }
.swiper-pagination-bullet.btn5.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-5-active.png") !important; }
.swiper-pagination-bullet.btn6.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-6-active.png") !important; }
.swiper-pagination-bullet.btn7.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-7-active.png") !important; }
.swiper-pagination-bullet.btn8.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-8-active.png") !important; }
.swiper-pagination-bullet.btn9.swiper-pagination-bullet-active  { background-image: url("img/button-timeline-9-active.png") !important; }
.swiper-pagination-bullet.btn10.swiper-pagination-bullet-active { background-image: url("img/button-timeline-10-active.png") !important; }
.swiper-pagination-bullet.btn11.swiper-pagination-bullet-active { background-image: url("img/button-timeline-11-active.png") !important; }
.swiper-pagination-bullet.btn12.swiper-pagination-bullet-active { background-image: url("img/button-timeline-12-active.png") !important; }
.swiper-pagination-bullet.btn13.swiper-pagination-bullet-active { background-image: url("img/button-timeline-13-active.png") !important; }
.swiper-pagination-bullet.btn14.swiper-pagination-bullet-active { background-image: url("img/button-timeline-14-active.png") !important; }

.parallax-bg {
	z-index: 1;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

/* 360° Galerie Hotspots */
[class^="btn-ort"] {
	position: absolute;
	width: auto;
	height: clamp(36px, 3.1vw, 60px);
	padding: 0 clamp(16px, 1.6vw, 30px) 3px clamp(12px, 1.3vw, 25px);
	font-size: clamp(12px, 1.1vw, 22px);
	background-image: url("img/button-bg-arrow-right.png");
	background-position: right;
	background-size: 100% 100%;
	white-space: nowrap;
	transform: translateX(-100%);
}

[class^="btn-ort"]:active {
	background-image: url("img/button-bg-arrow-right-active.png");
}

.btn-ort1 { top: 40.7%; left: 27.6%; }
.btn-ort2 { top: 50.0%; left: 33.3%; }
.btn-ort3 { top: 56.9%; left: 39.8%; }
.btn-ort4 { top: 45.4%; left: 52.1%; }
.btn-ort5 { top: 60.2%; left: 54.7%; }
.btn-ort6 { top: 56.0%; left: 68.2%; }
.btn-ort7 { top: 53.7%; left: 87.0%; }

/* Pano-Viewer & Infobox (Collapsible ohne Scrollbar) */
.psv-navbar {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

.panotext {
	position: absolute;
	display: block;
	left: clamp(25px, 4.5vw, 85px);
	top: clamp(25px, 7vh, 140px);
	z-index: 18;
	width: clamp(300px, 30vw, 450px);
	background: transparent;
}

.info-ort-titel {
	line-height: 1.2em;
	z-index: 18;
	font-weight: 200 !important;
	padding-right: 30px;
}

.collapsible {
	position: relative;
	background-color: #eee;
	cursor: pointer;
	padding: clamp(12px, 1.1vw, 20px);
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	display: block;
}

button.collapsible {
	height: auto !important;
	background-image: url("img/button-bg.png");
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.collapsible:active, .collapsible:hover {
	background-color: #ccc;
}

.collapsible:after {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	content: '\02795';
	font-size: clamp(14px, 1.1vw, 20px);
	color: white;
}

.collapsible.active:after {
	content: "\2796";
}

.content {
	display: flex;
	flex-direction: column;
	padding: 0 20px;
	background-image: url("img/bg-infotext.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.15s ease-out;
}

.content > span[class^="ort"] {
	order: 1;
	display: block;
}

.content p {
	padding: 14px 0 26px 0; /* Unten Platz lassen für den Credit */
	margin: 0;
	font-size: clamp(12px, 0.9vw, 18px);
	line-height: 1.35em;
}

.quelle-titel-pano {
	order: 2;
	position: static;
	transform: none;
	align-self: flex-end;
	margin-top: -18px; /* Zieht den Credit leicht in den unteren Padding-Bereich */
	padding-bottom: 8px;
	text-transform: uppercase;
	font-size: 10px;
	font-weight: 600;
	color: #383e42;
	opacity: 0.8;
	pointer-events: none;
	white-space: nowrap;
}

/* Touch & Swipe Icons */
.btn-touch,
.btn-swipe {
	position: absolute;
	animation: hide-touch 1s forwards;
	opacity: 0;
	z-index: 12;
	bottom: 10px;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: clamp(100px, 9vw, 190px);
	height: clamp(100px, 9vw, 190px);
	background-size: contain;
	pointer-events: none;
}

.btn-touch { background-image: url("img/button-touch.png"); }
.btn-swipe { background-image: url("img/button-swipe.png"); }

.btn-touch.active,
.btn-swipe.active {
	animation: visible 1s forwards;
}

@keyframes visible {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes hide-touch {
	from { opacity: 1; }
	to   { opacity: 0; }
}

.franz {
	font-size: clamp(11px, 1vw, 20px);
	letter-spacing: -0.5px;
}

.franz-headline {
	font-size: clamp(26px, 3vw, 55px);
}

/* =========================================================
   ANPASSUNGEN FÜR KLEINERE DISPLAYS (OHNE SCROLLBARS)
   ========================================================= */

@media (max-width: 1366px) {
	.swiper-slide-content {
		top: 19vh;
		left: 75px;
		bottom: 75px;
	}
	.infotext {
		max-width: 420px;
	}
	.infotext h1 {
		font-size: 32px;
		margin-bottom: 10px;
	}
	.infotext p {
		font-size: 14px;
		line-height: 1.38em;
	}
}

@media (max-width: 1024px) {
	.swiper-pagination {
		top: 25px !important;
		left: 25px !important;
		right: 25px !important;
	}

	.swiper-slide-content {
		top: 85px;
		left: 55px;
		right: 55px;
		bottom: 75px;
	}

	.infotext {
		max-width: 460px;
	}

	.infotext h1 {
		font-size: 26px;
		margin-bottom: 8px;
	}

	.infotext p {
		font-size: 13px;
		line-height: 1.35em;
	}

	.panotext {
		top: 20px;
		width: 340px;
	}

	.content p {
		font-size: 12.5px;
		line-height: 1.32em;
	}
}