/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;
    max-width: 1400px;
}

#backgrounds {
    background-color: #eec4ab;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
#backgrounds:before {
	content: ' ';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0.5;
	background: no-repeat url(../img/colorfilm.png);
	background-size: 100%;
	pointer-events: none;
}

/* Header und Navigation */
header {
    text-align: center;
    background-image: url(../img/eisperle-1996-2.jpg);
    background-size: 100% auto;
    background-position: center center;
    color: transparent;
    height: 300px;
    min-width: 380px;
    position: relative;
}

header h1 {
    font-size: 4.1vw;
    color: #fff;
    padding: 2rem 1rem 0.5rem;
    text-align: left;
    position: absolute;
    bottom: 0;
    text-shadow: 0.3rem 0.3rem 0.3rem black;
    text-wrap: pretty;
}
header #action {
	width: 250px;
    position: absolute;
    top: 0;
    right: 2rem;
    transform: rotate(-7deg);
}
@media (min-width: 1400px) {
	header h1 {
		font-size: 4rem;
	}
}

@media (max-width: 380px) {
	/* results in min-viewport-width 330px */
	header {
		height: 190px;
		min-width: 300px;
	}
	#backgrounds {
		padding: 0.3rem;
	}
}


nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    background: #444;
    padding: 1rem;
    margin-top: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li#langToggle {
	min-width: 110px;
	cursor: pointer;
}

nav ul li, nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover, nav ul li .active {
    color: #ffeb3b;
}

/* Styles für Hamburger-Menü */
.hamburger {
    font-weight: bold;
    color: #fff;
    display: none;
    cursor: pointer;
    text-align: left;
    padding: 1rem;
    padding-left: 2rem;
    margin-top: 1rem;
    background: #444;
}

.nav-container {
    display: block;
}

/* avoid flickering on page load */
span[lang] {
	display: none;
}

@media (max-width: 1079px) {
    /* Hamburger-Icon nur auf kleinen Bildschirmen anzeigen */
    .hamburger {
        display: block;
    }

    /* Navigation standardmäßig ausblenden */
    .nav-container {
        display: none;
    }

    /* Navigation sichtbar machen, wenn aktiv */
    .nav-container.active {
        display: block;
        background: #444;
        padding: 1rem;
    }

    /* Menü in Spaltenrichtung anordnen */
    nav ul {
        flex-direction: column;
        margin-top: 0;
    }

    nav ul li {
        margin: 1.5rem 0;
    }
    nav ul li:last-child {
		margin-bottom: 0.5rem;
	}
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

/* Abschnittsstile */
.main-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
#about + .main-section {
	background: url(../img/curve.png) no-repeat;
	background-size: contain;
}

.section-content {
    flex: 1 1 65%;
    padding: 1rem;
}

.section-content.columns {
	flex: 1 1 30%;
	overflow: hidden;
	position: relative;
}

.main-section.gallery {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-around;
}
.main-section.gallery img {
	width: 10%;
	flex: 1 1 30%;
	margin: 0 1rem;

}

.section-sidebar {
    flex: 1 1 35%;
    padding: 1rem;
}


/* Responsive Anpassungen */
@media (max-width: 768px) {
    .main-section, .section-content {
        flex-direction: column;
    }

    .section-content, .section-sidebar {
        flex: 1 1 100%;
    }
}

@media (max-width: 630px) {
	.main-section.gallery {
		flex-direction: column;
	}
	.main-section.gallery img {
		width: 100%;
		flex: 1 1 30%;
		margin: 1rem 0;

	}
}


section h2, .section-sidebar h3 {
    color: #333;
    margin-bottom: 1rem;
}


h2 {
	margin: 2rem 1rem 0;
}


p {
	margin-bottom: 0.3rem;
}


dt {
	font-weight: bold;
}
dd {
	margin-bottom: 1rem;
}


a {
	color: #b04803;
	text-decoration: underline;
}
a:hover {
	color: #d97704;
}


a.button {
    display: inline-block;         /* Block-Level für Padding und Margin */
    padding: 10px 20px;            /* Innenabstand für Größe */
    color: #ffffff;                /* Textfarbe (Weiß) */
    background-color: #b04803;     /* Hintergrundfarbe (Blau) */
    text-decoration: none;         /* Unterstreichung entfernen */
    border-radius: 5px;            /* Abgerundete Ecken */
    font-size: 16px;               /* Schriftgröße */
    font-weight: bold;             /* Fettschrift */
    text-align: center;            /* Zentrieren des Textes */
    transition: background-color 0.3s; /* Übergang für Hover-Effekt */
    margin-top: 2rem;
}
/* Hover-Effekt */
a.button:hover {
    background-color: #d97704;
}


/* Footer */
footer {
	margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: stretch;
}
footer div {
	padding: 1rem;
    border: 1rem solid #444;
    border-image-source: url(../img/filmstrip-border.png);
	border-image-slice: 66 1 50;
    border-image-width: 1 0.2;
	border-image-outset: 0;
	border-image-repeat: round;
	text-align: center;
	flex: 1 1 21%;
	display: flex;
	flex-flow: column wrap;
	justify-content: start;
	align-content: center;

}
footer a {
	font-weight: bold;
}
div img {
	height: auto;
	width: 200px;
	display: block;
	margin-bottom: 1rem;
}
.funding img {
	width: 400px;
}
.funding img:last-child {
	padding: 5px 10px 10px 5px;
	background-color: #fff;
}
@media (max-width: 500px) {
	footer div {
		padding: 0.5rem;
	}
	.funding img {
		width: 100%; /* allow resizing of funding logos */
	}
}
.wolfen-nord, .partner {
	color: #000;
	font-weight: bold;
	text-decoration: none;
	font-size: 1.5rem;
}
.wolfen-nord:hover, .partner:hover {
	color: #444;
}
.partner {
	font-size: 1rem;
	color: #444;
}






