* {
    box-sizing: border-box;
}

body {
	padding: 0px;
	margin: 0;
	color: #444444;
	height: 100%;
	font-family: Lucida Sans Unicode , Lucida Grande, Trebuchet MS, Geneva, Arial, Helvetica, sans-serif;
  	font-size: 14px;
	background-color: #f7f7f7;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

}
#header {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
}
#header img {
	padding-top: 10px;
    max-width: 100%;
    height: auto;
}
#nav {
	list-style: none;
    display: flex;
	justify-content: flex-start;
    padding: 0;
	margin-bottom: 0;
    background: linear-gradient(to bottom, #e47878, #b13c3c);
	width: 100%;
	max-width: 960px;
	flex-wrap: wrap;
}
#nav li a {
	display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: white;
    background: linear-gradient(to bottom, #e47878, #b13c3c);
    border-right: 1px solid #a1353581;
}

#main {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	width: 100%;
	
	
}
#mainbox{
    width: 100%;
	max-width: 960px;
	padding-top: 20px;
	margin: 0 auto;
	display: flex; /* Aktiviere Flexbox */
    justify-content: space-between;
	flex-direction: row; /* Elemente nebeneinander anordnen */
}

#sidebarbox {
	order: 1;
	max-width: 250px;
    flex-shrink: 0;
  	background: #ffffff;
	max-height: 780px;
}
#sidebar {
  	padding: 10px 20px;
	font-size: 12px;
}

#content {
	order: 0;
  	flex-grow: 1;
	max-width: 680px;
}
#sidebar a, #footer a{
	text-decoration: none;
	font-weight: bold;
	color: #BD5A5A;
}
#content a{
	text-decoration: none;
	font-weight: bold;
	color: #BD5A5A;
	font-size: 15px;
}
#content p{
	color: #808080;
	word-wrap: break-word;
}
#content a:hover, #sidebar a:hover, #footer a:hover{
  	text-decoration: underline;
}
#content h1 {
	font-size: 36px;
	font-weight: normal;
	margin: 0px;
	padding: 0px 0px 2px 0px;
	color: #BD5A5A;
	letter-spacing: -1px;
}
#content img{
	max-width: 100%;
    height: auto;
}

#content .sidepictureright {
	float: right;
	padding: 0px 0px 0px 10px;
	margin: 0px 0px 10px 10px;
	width: 160px;
}

#content .line {
	height: 1px;
	background-color: #eeeeee;
	border: 0;
	padding: 0;
	margin: 10px 0 30px 0;
	overflow: hidden;
}
#mailform {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
#mailform input{
	border: 1px solid #e0e0e0;
	height: 25px;
}
#mailform textarea{
	max-width: 100%;
	min-width: 100%;
	height: 200px;
	border: 1px solid #e0e0e0;
}
#mailform button{
	margin-top: 10px;
	height: 30px;
	width: 400px;
	align-self: flex-end;
	background-color: #A13B3B;
	color: #ffffff;
	cursor: pointer;
	border: none;
	border-radius: 7px;
}
#gallery {
    display: flex;
    flex-direction: column;
}
#gallerynav{
    display: flex;
	justify-content: flex-start;
    padding: 0;
	margin-bottom: 0;
	width: 100%;
	max-width: 960px;
	flex-wrap: wrap;
}
#gallerynav a{
	display: block;
    text-decoration: none;
	font-weight: normal;
	padding: 4px 10px;
	margin-right: 3px;
	margin-bottom: 3px;
	background-color: #A13B3B;
	color: #ffffff;
	outline: none;
}
#gallerynav a.active-gallery-link {
    cursor: default; 
    pointer-events: none;
	background-color: #bd5a5ac3;
}
.gallery-section {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.gallery-display {
    max-width: 80%;
	height: 100%;
    display: flex;
	align-items: flex-start;
    padding: 10px;
    border: 1px solid #ddd;
}

.gallery-display img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    flex: 1;
    gap: 10px;
}

.gallery-thumbnails img {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
    border: 1px solid #ddd;
}

.gallery-thumbnails img:hover {
    opacity: 1;
    border-color: #BD5A5A;
}

#footer{
	text-align: center;
	font-size: 12px;
	color: #333;
	padding: 20px 10px;
	background: #f9f9f9; 
	border-top: 1px solid #ddd;
}
#footer-nav {
	list-style: none;
	padding: 0;
	margin: 0 0 10px 0;
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}


@media (max-width: 960px) {
    #mainbox {
        flex-direction: column; /* Elemente untereinander anordnen */
    }
	#nav{
		background: #ffffff;
		padding: 0px 10px;
	}
    #content {
        max-width: 680px;
        width: 100%;
		padding: 0px 10px;
    }
	#content p{
		padding: 0px 3px;
	}
	#content img{
		
	}
    #sidebarbox {
      	width: 100%;
  		max-width: 960px; 
    }
	.gallery-section{
		flex-direction: column;
	}
	.gallery-display{
		order: 1;
		width: 100%;
		max-width: none;
		padding: 0px;
    	border: none;
	}
	.gallery-thumbnails {
        order: 2; 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: flex-start;
    }
	.gallery-thumbnails img {
        width: 20%; 
        height: auto;
    }
	#mailform button{
		height: 40px;
		width: 100%;
		align-self: normal;
	}
}


