@import url("normalize.css");

:root {
	/* Farben */
	--nav-bg: #092357;
	--nav-bg-alpha: #092357CC;
	--nav-bg-alpha-shadow: #09235740;

	--page-bg: #F0FAFF;
	--page-bg2: #0795EA5E;

	--box-bg: #FFFFFF;

	--font-light: #FFFFFF;
	--font-dark: #092357;

	--resort-hotel: #DD223F;
	--resort-hotel-alpha: #DD223FCC;
	--resort-hotel-alpha-bg: #DD223F33;
	--resort-park: #FFBF00;
	--resort-park-alpha: #FFBF00CC;
	--resort-park-alpha-bg: #FFBF0033;
	--resort-rulantica: #005396;
	--resort-rulantica-alpha: #005396CC;
	--resort-rulantica-alpha-bg: #00539633;

	--opacity-hover: 0.8;

	/* Höhen */
	--bar-height: clamp(56px, 6vw, 90px);

	/* Radius */
	--radius-outer: 22px;
	--radius-inner: 12px;
	--radius-round: 999px;

	/* Schatten */
	--text-shadow: 2px 2px 5px rgb(0 0 0 / 40%);
	--box-shadow: 10px 10px 20px 1px var(--nav-bg-alpha-shadow);

	/* Icons */
	--star-red: url(./star_red.svg);
	--star-blue: url(./star_blue.svg);
	--star-yellow: url(./star_yellow.svg);
	--star-light: url(./star_light.svg);
}

* {
	box-sizing: border-box;
}

html {
	height: 100% !important;
	overflow: hidden !important;
}

body {
	font-family: "Cabin", Arial, sans-serif;
	height: 100% !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	margin: 0;
	scroll-behavior: smooth;
}

.nobr {
	white-space: nowrap;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

header, footer {
	height: var(--bar-height);
	background: var(--nav-bg);
	color: var(--font-light);
}

[id] {
	scroll-margin-top: calc(var(--bar-height) + 16px);
}

header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	transform: translateY(0);
	transition: transform 220ms ease;
	will-change: transform;
}

header.hide {
	transform: translateY(-100%);
}

footer {
	display: flex;
	align-items: center;
}

.footer-inner {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-decoration: none;
}

.brand:focus,
.nav-inner button {
	outline: none;
}

.brand img {
	width: var(--bar-height);
	height: var(--bar-height);
	object-fit: contain;
	display: block;
}

.nav-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

nav a {
	color: var(--font-light);
	text-decoration: none;
	font-weight: bold;
	padding: 10px;
	border-radius: var(--radius-inner);
	opacity: 1;
	transition: opacity 200ms ease;
}

nav a img {
	width: 1em;
	height: auto;
}

nav a:hover {
	opacity: var(--opacity-hover);
}

nav a:hover, nav a:focus-visible {
	outline: none;
}

.nav-links {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nav-toggle {
	display: none;
	width: 40px;
	height: 32px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.nav-toggle span {
	display: block;
	height: 3px;
	width: 100%;
	background: var(--font-light);
	border-radius: 2px;
	transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle span + span {
	margin-top: 6px;
}

header.menu-open .nav-toggle span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

header.menu-open .nav-toggle span:nth-child(2) {
	opacity: 0;
}

header.menu-open .nav-toggle span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

main {
	background: var(--page-bg);
	background: url(./bg_ep.png), linear-gradient(180deg, var(--page-bg2) 0%, var(--page-bg) 70%);
	background-attachment: fixed;
	background-repeat: repeat;
	background-size: 650px;
	padding-top: calc(var(--bar-height) + 16px);
	padding-bottom: 24px;
	min-height: calc(100vh - var(--bar-height));
	color: var(--font-dark);
}

h2 {
	font-weight: bold;
	text-shadow: var(--text-shadow);
}

.h-star::before {
	content: "";
	display: inline-block;
	width: 1.2em;
	height: .8em;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.h-star-red::before {
	background-image: var(--star-red);
}

.h-star-yellow::before {
	background-image: var(--star-yellow);
}

.h-star-blue::before {
	background-image: var(--star-blue);
}

/* Grid */
.grid {
	display: grid;
	gap: 12px;
}

.grid-25-25-25-25 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-33-33-33 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}

.grid-50-50 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-100 {
	grid-template-columns: minmax(0, 1fr);
}

.grid-50-25h {
	grid-template-areas: "social linka"
						 "social linkb";
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: 1fr 1fr;
	align-items: stretch;
}

.box {
	background: var(--box-bg);
	border-radius: var(--radius-outer);
	padding: 18px;
	box-shadow: var(--box-shadow);
}

.box-area-social {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#insta-carousel {
	flex: 1;
	min-height: 0;
}

.box-link {
	display: grid;
	grid-template-areas:
        "logo text"
        "logo button";
	grid-template-columns: 40% calc(60% - 18px);
	align-items: center;
	gap: 12px;
	height: 100%;
}

.box-link img {
	grid-area: logo;
	width: 100%;
	height: auto;
}

.box-link div {
	grid-area: text;
}

.box-link a {
	grid-area: button;
}

.box-main {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: center;
}

.box-main h1 {
	text-shadow: var(--text-shadow);
	font-weight: bold;
}

.box-main p {
	margin-bottom: 24px;
}

.box-extern-off {
	text-align: center;
}

.box-extern-off img {
	width: 100%;
	max-width: 150px;
}

.box-extern-off p {
	font-style: italic;
	padding: 10px 15px;
}

.box-extern-off a.button {
	margin: 5px;
}

a.datenschutz {
	color: var(--font-dark);
	text-decoration: underline;
}

a.datenschutz:hover {
	text-decoration: none;
}


.resort {
	display: flex;
	align-items: center;
	border-radius: var(--radius-inner);
	flex-direction: column;
	padding: 15px;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-align: center;
}

.resort-hotel {
	background: var(--resort-hotel);
}

.resort-park {
	background: var(--resort-park);
}

.resort-rulantica {
	background: var(--resort-rulantica);
}

.resort img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	filter: drop-shadow(var(--text-shadow));
	-webkit-filter: drop-shadow(var(--text-shadow));
}

.resort h3 {
	font-weight: bold;
	color: var(--font-light);
	margin: 2px 0;
	text-shadow: var(--text-shadow);
}

.box-aktuelles-slide {
	display: grid;
	grid-template-rows: auto auto;
	gap: 8px;
}

.box-aktuelles-slide-image {
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	height: clamp(200px, 22vw, 360px);
	width: 100%;
}

.box-aktuelles-slide-image img {
	max-width: calc(100% - 8px);
	max-height: 100%;
	object-fit: contain;
	display: block;
	border-radius: var(--radius-inner);
}

.box-aktuelles-slide-caption {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	width: 100%;
	justify-content: space-between;
	flex-direction: column;
	color: var(--font-dark);
	text-align: center;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: bold;
	line-height: 1;
	text-wrap: nowrap;
	border-radius: var(--radius-round);
	border: 1px solid transparent;
	color: var(--font-light);
	text-decoration: none;
	text-align: center;
	transition: background 200ms ease;
	text-shadow: var(--text-shadow);
	width: min-content;
}

.button::after {
	content: "→";
	font-size: 14px;
	transition: transform 200ms ease;
}

.button:hover::after {
	transform: translateX(2px);
}

.button-red {
	background: var(--resort-hotel);
}

.button-red:hover {
	background: var(--resort-hotel-alpha);
}

.button-yellow {
	background: var(--resort-park);
}

.button-yellow:hover {
	background: var(--resort-park-alpha);
}

.button-blue {
	background: var(--resort-rulantica);
}

.button-blue:hover {
	background: var(--resort-rulantica-alpha);
}

.events-future {
	font-style: italic;
	text-align: center;
	font-size: 0.9em;
}

.insta-post-outer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	flex-wrap: nowrap;
	padding-bottom: 30px;
}

.insta-post {
	padding: 6px 12px;
	display: grid;
	grid-auto-flow: row;
	height: 100%;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: 1fr min-content;
	gap: 24px;
}

.insta-post img {
	max-width: calc(100% - 36px);
	max-height: 100%;
	border-radius: var(--radius-inner);
	object-fit: contain;
}

.insta-post-image {
	aspect-ratio: 1 / 1;
	object-position: top;
	height: clamp(200px, 22vw, 360px);
	width: 100%;
	grid-row: 1 / span 2;
	grid-column: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.insta-post-time {
	font-style: italic;
	font-size: .8em;
	margin: .25rem 0 .5rem;
	margin-block: 0;
	line-height: 1;
	grid-row: 2;
	grid-column: 2;
}

.insta-post-caption-wrap {
	position: relative;
}

.insta-post-caption {
	max-height: 400px;
	overflow-y: auto;
	overflow-x: hidden;
	margin: 0;
	padding: 25px 0;
	line-height: 1.35;
	grid-row: 1;
	grid-column: 2;
}

.insta-post-caption-wrap::before,
.insta-post-caption-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 25px;
	pointer-events: none;
	z-index: 5;
}

.insta-post-caption-wrap::before {
	top: 0;
	background: linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.insta-post-caption-wrap::after {
	bottom: 0;
	background: linear-gradient(to top, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.insta-post a {
	margin-top: auto;
}

.box-events {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 18px;
	align-items: center;
	padding: 18px;
}

.event-old {
	opacity: 0.5;
	transition: opacity 200ms ease;
}

.event-old:hover {
	opacity: 1;
}

.event-date {
	border-radius: var(--radius-inner);
	padding: 10px 8px;
	text-align: center;
	line-height: 1.05;
	text-shadow: var(--text-shadow);
	user-select: none;
	color: var(--font-light);
}

.event-day {
	font-weight: bold;
	font-size: 20px;
}

.event-month {
	font-weight: bold;
	margin-top: 4px;
}

.event-year {
	margin-top: 6px;
}

.event-title {
	margin: 0 0 4px;
	font-weight: bold;
}

.event-title::before {
	content: "";
	display: inline-block;
	width: 1.2em;
	height: .8em;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.event-title-red::before {
	background-image: var(--star-red);
}

.event-title-yellow::before {
	background-image: var(--star-yellow);
}

.event-title-blue::before {
	background-image: var(--star-blue);
}

.event-subtitle {
	font-style: italic;
}

.event-meta {
	display: grid;
	grid-template-columns: 15px auto;
	justify-items: start;
	align-items: center;
	justify-content: start;
	gap: 10px;
	margin-bottom: 6px;
}

.event-meta span {
	text-align: left;
}

.event-meta img {
	height: 12px;
	width: 12px;
}

.event-actions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.event-yellow {
	background: var(--resort-park);
}

.event-red {
	background: var(--resort-hotel);
}

.event-blue {
	background: var(--resort-rulantica);
}

.team-data {
	display: grid;
	grid-template-columns: 15px auto;
	justify-items: start;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-bottom: 6px;
}

.team-data img {
	height: 12px;
	width: 12px;
}

.team-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.box-team {
	text-align: center;
	width: 300px;
	border-left: 1px solid var(--resort-rulantica-alpha-bg);
}

.box-team h3 {
	margin: 8px 0 10px;
	font-weight: bold;
}

.team-pic {
	border-radius: var(--radius-inner);
	object-fit: cover;
	aspect-ratio: 1/1;
	object-position: center;
	width: clamp(100px, 25vh, 200px);
	height: auto;
}

.carousel-fade {
	margin-left: -1px;
	margin-right: -2px;
}

.carousel-fade::before,
.carousel-fade::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 80px;
	z-index: 5;
	pointer-events: none;
}

.carousel-fade::before {
	left: 0;
	background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.carousel-fade::after {
	right: 0;
	background: linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.box-aboutus {
	display: grid;
	grid-template-columns: 33% 67%;
	gap: 8px;
	align-items: stretch;
}

.box-aboutus-image {
	height: 100%;
	border-radius: var(--radius-inner);
	overflow: hidden;
	display: flex;
}

.box-aboutus-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.box-aboutus-image {
	padding: 40px;
	box-sizing: border-box;
}

/* Tags */

.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: var(--radius-round);
	border: none;
	background: var(--resort-rulantica-alpha-bg);
	font-weight: normal;
	font-size: 13px;
	line-height: 1;
	user-select: none;
	color: var(--font-dark);
}

.tag-important {
	font-weight: bold;
}

/* Fancyapps */
.f-carousel {
	--f-arrow-pos: 0;
	--f-arrow-width: 30px;
	--f-arrow-height: 30px;
	--f-arrow-svg-width: 15px;
	--f-arrow-svg-height: 15px;
	--f-arrow-svg-stroke-width: 2.5;
	--f-arrow-color: var(--font-dark);
	--f-arrow-shadow: var(--box-shadow);
	--f-arrow-border-radius: var(--radius-inner);
	--f-arrow-bg: var(--box-bg);
	--f-arrow-hover-bg: var(--box-bg);
	--f-arrow-active-bg: var(--box-bg);
	--f-carousel-dot-border-radius: 0;
	--f-carousel-dot-bg: var(--resort-rulantica);
	--f-carousel-dot-hover-bg: var(--resort-rulantica);
	--f-carousel-dot-selected-bg: var(--resort-park);
	--f-carousel-dot-opacity: 1;
	--f-carousel-dot-hover-opacity: var(--opacity-hover);
	--f-carousel-dot-selected-opacity: 1;
	--f-carousel-dot-height: 18px;
	--f-carousel-dot-width: 18px;
	--f-carousel-slide-padding: 5px 30px;
}

.f-carousel__dot:after {
	background-image: var(--star-light);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-color: transparent;
}

.f-carousel__dot:hover:after {
	background-image: var(--star-light);
	background-color: transparent;
}

.f-carousel__dot[aria-current]:after {
	background-image: var(--star-yellow);
	background-color: transparent;
}

.f-carousel__dots {
	padding-top: 5px;
}

/* Responsive */
@media (max-width: 1050px) {
	:root {
		--box-shadow: 0 6px 14px rgb(0 0 0 / 12%);
	}

	.grid {
		gap: 6px;
	}

	.grid-25-25-25-25 {
		grid-template-columns: repeat(3, 1fr);
	}

	.grid-50-50 {
		grid-template-columns: 1fr;
	}

	.grid-50-25h {
		grid-template-columns: 1fr;
		grid-template-areas:
      "social"
      "linka"
      "linkb";
		grid-template-rows: auto;
	}

	.container {
		padding: 0 16px;
	}

	main {
		padding-top: calc(var(--bar-height) + 12px);
		padding-bottom: 12px;
	}

	.box-events {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.event-date {
		margin: 0 auto;
		width: max-content;
		min-width: 100px;
	}

	.event-actions {
		justify-content: center;
	}

	.box-aktuelles-slide {
		min-height: 260px;
	}

	.box-aktuelles-slide-caption {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		text-align: center;
	}

	.box-aktuelles-slide-caption b {
		font-size: 14px;
	}

	.button {
		font-size: 13px;
		align-self: center;
	}

	.insta-post {
		height: auto;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 12px;
	}

	.insta-post-image,
	.insta-post-time,
	.insta-post-caption {
		grid-row: auto;
		grid-column: auto;
	}

	.insta-post-caption {
		max-height: 200px;
	}
}

@media (max-width: 768px) {
	.nav-toggle {
		display: block;
	}

	header .nav-dropdown {
		position: absolute;
		top: var(--bar-height);
		left: 0;
		right: 0;
		background: var(--nav-bg);
		border-top: 1px solid rgb(255 255 255 / 15%);
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 8px 12px;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 180ms ease,
		visibility 0s linear 180ms;
		max-height: calc(100vh - var(--bar-height));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	header.menu-open .nav-dropdown {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 180ms ease,
		visibility 0s;
	}

	header .nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	header .nav-links a {
		padding: 10px;
		text-align: center;
	}

	footer {
		height: auto;
	}

	footer .nav-links {
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	:root {
		--radius-outer: 12px;
		--radius-inner: 6px;
	}

	.box {
		padding: 10px;
	}

	.grid-33-33-33 {
		grid-template-columns: 1fr;
	}

	.box-aboutus {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.box-aboutus-image {
		padding: 5px;
		max-width: clamp(100px, 60vh, 80vw);
	}

	.grid-25-25-25-25 {
		grid-template-columns: repeat(2, 1fr);
	}

	.resort {
		flex-direction: row;
		gap: 12px;
	}

	.resort img {
		width: 40px;
		height: 40px;
	}

	.event-date div {
		line-height: .8;
	}
}

@media (max-width: 399px) {
	.grid-25-25-25-25 {
		grid-template-columns: 1fr;
	}

	.box-link {
		grid-template-areas: "logo"
        					 "text"
							 "button";
		grid-template-columns: 1fr;
	}

	.box-link img {
		max-width: clamp(100px, 60vh, 80vw);
		margin: 0 auto;
	}

	.box-link a {
		margin: 0 auto;
	}
}

/* Countdown */
body.countdown {
	background: var(--page-bg);
	background: linear-gradient(180deg, var(--page-bg2) 0%, var(--page-bg) 50%);
	background-attachment: fixed;
	padding: 24px 0;
}

.container-countdown {
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
	min-height: calc(100% - 48px);
}

.countdown-title {
	color: var(--nav-bg);
}

.countdown-title h3 {
	font-style: italic;
}

.countdown-logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 32px;
	margin-bottom: 24px;
}

.countdown-logos img {
	max-height: 80px;
	width: auto;
	max-width: 270px;
}

.footer-countdown {
	margin-top: 15px;
	text-align: center;
}

.footer-countdown a {
	color: var(--nav-bg);
	text-decoration: none;
	font-size: 0.7em;
}

@media (max-width: 650px) {
	.countdown-logos {
		gap: 16px;
	}

	.countdown-logos img {
		max-height: 70px;
		width: auto;
		max-width: 200px;
	}

	.countdown-title {
		font-size: 0.9em;
	}

	.container-countdown {
		gap: 12px;
	}
}

@media (max-width: 450px) {
	.countdown-logos {
		gap: 16px;
		flex-direction: column;
	}

	.countdown-logos img {
		max-height: 80px;
		max-width: 250px;
	}

	.flipdown {
		transform: scale(0.9);
		transform-origin: center;
	}
}

/* Error-Page */
body.error {
	background: var(--page-bg);
	background: linear-gradient(180deg, var(--page-bg2) 0%, var(--page-bg) 50%);
	background-attachment: fixed;
	padding: 24px 0;
}

.container-error {
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
	min-height: 100%;
}

.error-title {
	color: var(--nav-bg);
}

.error-title h3 {
	font-style: italic;
}