@charset "UTF-8";
/* =====================================================================
   roemer.ag – Hero-Slider (ehem. "oberer Bereich" / seite00)
   Umbau von fullPage.js -> Bootstrap-5-Carousel
   Alle Styles sind unter .roemer-hero gekapselt, damit nichts mit dem
   Typo3-Theme / Bootstrap-Package kollidiert.
   ===================================================================== */

/* ---------- Farb- & Maß-Variablen ---------- */
.roemer-hero {
	--gruen:   #afd000;
	--dunkel:  #283033;
	--dunkel2: #21292c;
	--overlay: hsla(196, 12%, 18%, 0.6);
	--overlay-stark: hsla(196, 12%, 18%, 0.92);

	position: relative;
	width: 100%;
	height: clamp(560px, 88vh, 940px);
	overflow: hidden;
	color: #fff;
	font-family: "gineso", sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.05em;
	line-height: 1.4;
	height: 100%
}

.roemer-hero *,
.roemer-hero *::before,
.roemer-hero *::after { box-sizing: border-box; }

.roemer-hero a { color: #fff; text-decoration: none; }
.roemer-hero a:hover,
.roemer-hero a:focus { color: var(--gruen); outline: none; }

/* ---------- Bühne (ehem. .oben) ---------- */
.roemer-hero__stage {
	position: relative;
	height: calc(100% - 80px);
	background: url(/fileadmin/images/hg.jpg) no-repeat right top;
	background-size: cover;
}
@media (min-width: 768px) {
	.roemer-hero__stage { background-position: center top; height: calc(100% - 140px);}
}

/* ---------- Carousel-Grundgerüst ---------- */
.roemer-hero__carousel,
.roemer-hero__carousel .carousel-inner,
.roemer-hero__carousel .carousel-item { height: 100%; }

.roemer-hero__carousel .carousel-item { position: relative; }

/* ---------- Feste Basis-Figur: Christoph steht still (slidet NICHT) ---------- */
.roemer-hero__base { position: absolute; inset: 0; z-index: 1; }

/* Das Carousel liegt ÜBER der Basis – nur koerper/kopf darin bewegen sich. */
.roemer-hero__carousel { position: relative; z-index: 2; }

/* ---------- Figur pro Slide (Ebenen: koerper + kopf über der Basis) ---------- */
.roemer-hero__figure { position: absolute; inset: 0; z-index: 1; }
.roemer-hero__figure img,
.roemer-hero__base img {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom center;
	user-select: none;
	pointer-events: none;
}
.roemer-hero__figure .figure-koerper { z-index: 1; } /* Kleidung: slidet horizontal  */
.roemer-hero__figure .figure-kopf    { z-index: 2; } /* Haare/Brille                  */

/* Kopf-Animation (wie im Original):
   - Auftauchen: Körper slidet herein (Bootstrap), Kopf ist zunächst
     unsichtbar und fadet erst nach dem Slide ein (Kopplung an .active).
   - Abbau: der Kopf bleibt sichtbar und slidet mit dem Slide horizontal raus. */
.roemer-hero__figure .figure-kopf {
	opacity: 0;
	transition: opacity .8s ease;
}
.roemer-hero__carousel .carousel-item.active .figure-kopf { opacity: 1; }
@media (min-width: 992px) {
	.roemer-hero__figure img,
	.roemer-hero__base img { object-fit: contain; object-position: bottom right; }
}

/* ---------- Textblock (ehem. .aussage) ---------- */
.roemer-hero__aussage {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 3;
	width: 100%;
	max-width: 100%;
	padding: 15px 18px;
	text-align: left;
	background-color: var(--overlay);
}
@media (min-width: 768px) {
	.roemer-hero__aussage {
		bottom: 16%;
		left: 10%;
		max-width: 30%;
		background-color: transparent;
	}
}
@media (min-width: 1200px) { .roemer-hero__aussage { max-width: 34%; } }

.roemer-hero__headline {
	font-family: "rift-soft", sans-serif;
	font-weight: 400;
	font-size: 1.7em;
	line-height: 1.15;
	margin: 0 0 .35em;
	color: #fff;
}
@media (min-width: 768px)  { .roemer-hero__headline { font-size: 2.4em; } }
@media (min-width: 1200px) { .roemer-hero__headline { font-size: 3.6em; } }
@media (min-width: 1600px) { .roemer-hero__headline { font-size: 4.6em; } }

.roemer-hero__subhead {
	font-weight: 300;
	font-size: .85em;
	line-height: 1.35;
	margin: 0;
	cursor: pointer;
	transition: color .3s ease, background-color .3s ease;
}
.roemer-hero__subhead:hover { color: var(--gruen); }
@media (min-width: 768px)  { .roemer-hero__subhead { font-size: 1em; } }
@media (min-width: 1200px) { .roemer-hero__subhead { font-size: 1.15em; } }

/* Begrüßung (Startslide) */
.roemer-hero__aussage--start { cursor: pointer; }
.roemer-hero__begruessung { margin: 0 0 10px}
.roemer-hero__begruessung--klein { font-weight: 500; font-size: .95em; }
.roemer-hero__begruessung--gross {
	font-family: "rift-soft", sans-serif;
	font-weight: 500;
	font-size: 2em;
	line-height: 1.1;
}
.roemer-hero__begruessung--text { font-weight: 300; font-size: .85em; }
@media (min-width: 768px) {
	.roemer-hero__begruessung--klein { font-size: 1em; }
	.roemer-hero__begruessung--gross { font-size: 3.4em; }
	.roemer-hero__begruessung--text  { font-size: 1em; }
}
@media (min-width: 1600px) {
	.roemer-hero__begruessung--gross { font-size: 5em; }
}

/* ---------- Eingangs-Animationen (ersetzen die fullPage-Callbacks) ---------- */
/* Startzustand: nach rechts geschoben + unsichtbar */
.roemer-hero__headline,
.roemer-hero__subhead,
.roemer-hero__begruessung { opacity: 0; transform: translateX(60px); }

/* Bootstrap markiert den aktiven Slide mit .active -> Text fährt ein */
.roemer-hero__carousel .carousel-item.active .roemer-hero__headline { animation: heroTextIn .35s ease .20s forwards; }
.roemer-hero__carousel .carousel-item.active .roemer-hero__subhead  { animation: heroTextIn .50s ease .35s forwards; }
.roemer-hero__carousel .carousel-item.active .roemer-hero__begruessung--klein { animation: heroTextIn .4s ease .30s forwards; }
.roemer-hero__carousel .carousel-item.active .roemer-hero__begruessung--gross { animation: heroTextIn .5s ease .50s forwards; }
.roemer-hero__carousel .carousel-item.active .roemer-hero__begruessung--text  { animation: heroTextIn .5s ease .70s forwards; }

@keyframes heroTextIn {
	from { opacity: 0; transform: translateX(60px); }
	to   { opacity: 1; transform: translateX(0);     }
}


/* ---------- Carousel-Pfeile ---------- */
.roemer-hero__carousel .carousel-control-prev,
.roemer-hero__carousel .carousel-control-next {
	width: 14%;
	align-items: center;
	opacity: .35;
	transition: opacity .3s ease;
	z-index: 4;
	background: none;
	justify-content: center
}
.roemer-hero__carousel .carousel-control-prev:hover,
.roemer-hero__carousel .carousel-control-next:hover { opacity: 1; }
.roemer-hero__carousel .carousel-control-prev-icon,
.roemer-hero__carousel .carousel-control-next-icon {
	width: 28px; height: 28px; background-size: 100% 100%; position: absolute
}
.roemer-hero__carousel .carousel-control-prev-icon { background-image: url(/fileadmin/images/arrow-left.svg); }
.roemer-hero__carousel .carousel-control-next-icon { background-image: url(/fileadmin/images/arrow-right.svg); }
@media (min-width: 768px) {
	.roemer-hero__carousel .carousel-control-prev-icon,
	.roemer-hero__carousel .carousel-control-next-icon { width: 30px; height: 30px;  top: 70%}
}

/* =====================================================================
   Untere Leiste (ehem. .unten) – "Ich will es:" Auswahl
   ===================================================================== */
.roemer-hero__wahl {
	position: relative;
	height: 80px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 5%;
	background-color: var(--dunkel);
	z-index: 20;
}
@media (min-width: 768px) {.roemer-hero__wahl {height:140px}}
.roemer-hero__will {min-width: fit-content}

/* Dropdown */
.roemer-hero__dropdown { position: relative; width:100% }
@media (min-width: 768px) {.roemer-hero__dropdown { position: relative; width: 290px; max-width: 60%; }}
	
.roemer-hero__dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 0;
	background: none;
	border: 0;
	color: #fff;
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
	text-align: left;
}
.roemer-hero__dropdown-toggle:hover { color: var(--gruen); }
.roemer-hero__dropdown-toggle .icon {
	width: 14px; height: 14px; flex: 0 0 14px;
	background: url(/fileadmin/images/arrow-left.svg) no-repeat center / contain;
	transition: transform .3s ease;
}
.roemer-hero__dropdown.is-open .roemer-hero__dropdown-toggle .icon {
	background-image: url(/fileadmin/images/arrow-up.svg);
}

.roemer-hero__dropdown-menu {
	position: absolute;
	left: 0;
	bottom: 100%;
	width: 100%;
	margin: 0;
	padding: 10px 20px;
	list-style: none;
	background-color: var(--dunkel2);
	z-index: 21;
	display: none;
}
.roemer-hero__dropdown.is-open .roemer-hero__dropdown-menu { display: block; }
.roemer-hero__dropdown-menu li { margin: 0; }
.roemer-hero__dropdown-menu a {
	display: block;
	width: 100%;
	padding: 4px 0;
	cursor: pointer;
}

/* =====================================================================
   Fußnoten-Popups (ehem. .sternchentext)
   ===================================================================== */
.roemer-hero__popup {
	position: absolute;
	inset: 0;
	z-index: 99999;
	background-color: var(--overlay-stark);
	cursor: pointer;
	display: none;
}
.roemer-hero__popup.is-open { display: block; }
.roemer-hero__popup p {
	margin: 14% 10% 5%;
	font-size: 1em;
	line-height: 1.5;
	max-width: 900px;
}
.roemer-hero__popup a { color: var(--gruen); }
.roemer-hero__popup-close {
	position: absolute;
	top: 24px;
	left: 24px;
	width: 21px;
	height: 21px;
	padding: 0;
	border: 0;
	background: url(/fileadmin/images/x.svg) no-repeat center / contain;
	cursor: pointer;
	text-indent: -9999px;
	overflow: hidden;
}
