/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v40-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Grundlegende Reset-Regeln */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body, html {
	font-family: 'Open Sans', Arial, sans-serif; /* Open Sans als Schriftart */
	overflow-x: hidden;
}

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.9);
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Logo im Header */
header .logo {
	flex: 0 0 auto;
	margin-right: 50px;
}

header .logo img {
	max-width: 300px;
	height: auto;
}

/* Menü rechts neben dem Logo */
.menu {
	list-style: none;
	display: flex;
	gap: 20px;
}

.menu li {
	display: inline;
}

.menu a {
	color: black;
	text-decoration: none;
	font-weight: bold;
}

.menu a:hover {
	text-decoration: underline;
}

/* Hauptinhalt */
main {
	margin-top: 100px;
	padding-bottom: 60px; /* Platz für die Fußzeile */
}

/* Abschnitt */
.slide {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	text-align: center;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	padding: 20px;
	color: black; /* Standard-Schriftfarbe */
}

/* Hintergrund für die Texte */
.slide .content {
	background: rgba(255, 255, 255, 0.8); /* Weißer, transparenter Hintergrund */
	padding: 20px;
	border-radius: 10px;
	max-width: 35%; /* Maximalbreite des Textblocks auf Desktop */
	margin: 200px auto;
	color: black; /* Schwarze Schrift */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
}

/* Mobile Ansicht für Textblock */
@media (max-width: 768px) {
	.slide .content {
		max-width: 90%; /* Textblock breiter für mobile Geräte */
		padding: 15px;
	}
}

/* Kapitälchen für Überschriften */
.slide .content h1 {
	font-size: 2rem; /* Größere Schriftgröße */
	font-variant: small-caps; /* Kapitälchen */
	font-weight: 700; /* Bold für Open Sans */
	margin-bottom: 10px;
}

/* Links */
.content a {
	color: black; /* Links in Schwarz */
	text-decoration: none;
	font-weight: bold;
}

.content a:hover {
	text-decoration: underline; /* Hover-Effekt für Links */
}

/* Buttons */
.arrow, .content button {
	margin-top: 20px;
	padding: 10px 20px;
	font-size: 16px;
	border: none;
	background: black; /* Schwarzer Hintergrund */
	color: white; /* Weiße Schrift */
	cursor: pointer;
	border-radius: 5px;
}

.arrow:hover, .content button:hover {
	background: #555; /* Dunkleres Schwarz beim Hover */
}

/* "Nach oben"-Button */
.arrow.up {
	position: fixed;
	bottom: 80px; /* Abstand vom unteren Rand */
	right: 20px; /* Abstand vom rechten Rand */
	z-index: 1000;
	background: black;
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	display: none; /* Standardmäßig versteckt */
}

.arrow.up:hover {
	background: #555;
}

/* Footer */
footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #333;
	color: white;
	text-align: center;
	padding: 10px 20px;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

footer a {
	color: white; /* Weiße Links im Footer */
	text-decoration: none;
	margin: 0 10px;
	font-weight: bold;
}

footer a:hover {
	text-decoration: underline;
}

/* Info-Liste */
.info-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.info-list li {
	margin-bottom: 10px;
}

/* Bildergalerie */
.gallery {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.gallery-thumb {
	width: 100px;
	height: 100px;
	object-fit: cover;
	cursor: pointer;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal-content {
	max-width: 90%;
	max-height: 90%;
	border-radius: 10px;
	object-fit: contain;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close {
	position: absolute;
	top: 20px;
	right: 20px;
	color: white;
	font-size: 2rem;
	cursor: pointer;
}

.nav-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	font-size: 2rem;
	border: none;
	cursor: pointer;
	padding: 10px;
	border-radius: 5px;
}

.nav-button.prev {
	left: 20px;
}

.nav-button.next {
	right: 20px;
}

.nav-button:hover {
	background: rgba(255, 255, 255, 0.5);
	color: black;
}

/* Galerie Bilder */
.gallery {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.gallery-thumb {
	width: 100px;
	height: 100px;
	object-fit: cover;
	cursor: pointer;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bereich Carina */
.carina-image, .rounded-circle {
	width: 150px;
	height: auto;
	border-radius: 50%;
	margin-bottom: 10px;
}




/* Aktuelles Bereich - Anpassung für Scrollbarkeit */
.aktuelles-section {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh; /* Statt height: 100vh */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 40px 20px;
}

/* Fixiertes Overlay */
.aktuelles-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(8px);
	pointer-events: none; /* Keine Interaktionen blockieren */
}

/* Inhalt über dem Overlay */
.aktuelles-content {
	position: relative;
	z-index: 2;
	text-align: left;
	background: rgba(255, 255, 255, 0.8);
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	color: black;
	max-width: 35%;
}

/* Überschriften und Absätze */
.aktuelles h1 {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 20px;
}

.aktuelles p {
	margin-bottom: 15px;
	line-height: 1.6;
}

.details {
	list-style: none;
	padding: 0;
}

.details li {
	margin-bottom: 10px;
	font-weight: bold;
}

.details a {
	color: black;
	text-decoration: underline;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
	header .logo img {
		max-width: 200px;
	}

	.menu {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
	.slide.mobile {
		display: block;
		min-height: auto;
		height: auto;
	}
	
	.slide .content {
		padding: 15px;
		max-width: 95%; /* Weniger Breite auf sehr kleinen Geräten */
		margin: 0 auto;
	}

	.arrow {
		font-size: 14px;
	}
}

/* === Fix: Mobilgeräte Scroll-Probleme beheben === */
.slide {
	min-height: 100vh; /* vorher height: 100vh */
}

/* === Fix: Galerie-Container Begrenzung und Scrollbar === */
.galerie-container {
	display: flex;
	overflow-x: 0 auto;
	gap: 10px;
	padding: 10px;
	max-width: 100%;
	justify-content: center; /* horizontal zentriert */
	flex-wrap: wrap;         /* falls mehrere Bilder nebeneinander */
}
.galerie-container img {
	max-width: 100%;
	height: auto;
	flex-shrink: 0;
}


/* === Fix: Scrollverhalten auf Mobilgeräten verbessern === */
html, body {
	height: auto !important;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
