body, html {
	height: 100%;
	margin: 0px;
	padding: 0px;
	font-family: 'Nunito';
}



footer {
	padding: 10px 30px 10px 0;
	text-align: right;
	
}

footer a {
	color: white;
	text-decoration:none;
	font-weight: 100;
}

a {
	text-decoration: none;
}

#welcome {
	height: 100vh;
	box-sizing: border-box;

	background-size: cover;
	background-position: center;	
}

#welcome a {
	color: white;
}

#about {
	position: relative;
	font-family: 'Nunito';
	padding: 60px;
/*	background-image: url("../img/rainer_mohr.jpg"); */
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: 600px;
	margin: auto;
	max-width: 1100px;
	min-height: 450px;
}

.rainermohr {
	position: absolute;
	right: 0px;
	bottom: 0px;
	width: 600px;
}

#about a, #about a:visited {
	color: rgb(1,100,185);
}

.grid{
	color: white;
} 

.dateadded {
	font-weight: 600;
	color: white;
	margin-top: 30px;
	padding-left: 12px;
}

.galleryteaser {
	display: inline-block;
	text-align: center;
	box-sizing: border-box;
	padding: 20px;
	width: 25%;
}

.galleryteaser a {
	color: white;
} 

.galleryteaser img {
	width: 100%;
	border: 1px solid #303030;
}

.gallerytitle {
	color: white;
	padding-left: 30px; 
	text-align: center;
}

.item {
	width: 16.66%;
	height: auto;
	padding: 8px;
	box-sizing: border-box;
}
.item img {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 1px solid #303030;
	box-sizing: border-box;
	display: block;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.item:hover img {
	opacity: 0.7;
	transform: scale(1.03);
}

#about_text {
	width: calc(100% - 550px);
}

#bookpage {
	color: white;
	padding: 0px;
	position: relative; 
	height: 100%; 
	max-width: 1050px; 
	margin: auto;
	top: 0px;
}

.orderform , .costs{
	line-height: 1.8em;
	display: block;
	width: 45%;
	float: left;
}

.orderform label {
	width: 100px;
	display: inline-block;
	vertical-align: top;
}

.orderform input, .orderform select {
	width: 150px;
}

.orderform textarea {
	height: 60px;
	width: 150px;
}

#galleries {
	background-color: #0d0d0d;
	color: white;
	clear: both;
	padding: 10px 60px;
	min-height: 800px;
}

#logo {
	height: auto;
	width: 25%;
	margin: 2% 0 0 2%;
	max-width: 300px;
	min-width: 250px;
	animation: navFadeIn 2s ease forwards;
}

@keyframes navFadeIn {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}

/* NAVIGATION :: */

#navstructure {
	margin-right: 30px !important;
	position: absolute;
	right: 70px;
	top: 80px;
	animation: navFadeIn 3s ease forwards;
	z-index: 999;
}

.menu {
  display: flex;
  justify-content: center;
  width: 95%;
  margin: 0 auto;
  z-index: 99;
}

.menu li {
	white-space: nowrap;
}

ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: right;
  width: auto;
  margin: 0 auto;
  list-style: none;
}

.menu-item {  
  position: relative; 
  margin: 0 0.1em;  
  cursor: pointer;
  margin-left: 30px;
}
.menu-item[aria-haspopup="true"] {
  border-bottom-color: #fc9b1b;
}
.menu-item:hover, .menu-item:focus-within {
  border-bottom-color: #91d36b;
}
.menu-item:hover .sub-menu, .menu-item:hover .sub-menu:hover, .menu-item:focus-within .sub-menu, .menu-item:focus-within .sub-menu:hover {

  display: block;
}

.withsub:hover > .sub-menu{
	display: block;
}

.sub-menu {

    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: -10px;
    display: none;
    padding: 0 10px 10px;
    
    width: 115px;
    border-radius: 10px;

}

.bbg .sub-menu {
	background-color: #0d0d0d;
	z-index: 999;
}

.sub-menu .menu-item {
  margin: 0.1em 0;
  padding: 15px 1em 0 0;
  z-index: 2;
  white-space: nowrap;
  text-transform: lowercase;
}

.menu a {
  color: #fff;
  text-decoration: none;
}
.menu a:focus {
  outline: none;
}

.withsub::after {
    content: ' \25BE';
	margin-left: 4px;
    color: white;
    height: 8px;
    font-size: 1em;

}

@media (max-width: 690px) {
  .menu {
    width: 95%;
    font-size: 16px;
  }

  .menu-item {
    margin: 0.1em;
  }
  .menu-item:nth-child(1) {
    order: 0;
  }
  .menu-item:nth-child(2) {
    order: 1;
  }
  .menu-item:nth-child(3) {
    order: 3;
  }
  .menu-item:nth-child(4) {
    order: 4;
  }
  .menu-item:nth-child(5) {
    order: 2;
  }
}

/* Search in nav */
#nav-search-form {
  display: flex;
  align-items: center;
  gap: 4px;
  animation: navFadeIn 2s ease forwards;
}

#nav-search-input {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85em;
  font-weight: 300;
  padding: 3px 12px;
  width: 130px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}
#nav-search-input::placeholder {
  opacity: 1; /* Standardmäßig ist es oft 0.54 oder ähnlich */
  color: #999; /* optional: Farbe anpassen */
}

#nav-search-input::placeholder { color: rgba(255,255,255,0.8); }
#nav-search-input:focus {
  border-color: rgba(255,255,255,0.6);
  width: 180px;
}

#nav-search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
#nav-search-btn:hover { color: #fff; }

#pager {
  position: relative;
  margin: 30px 0 0 10px;
  font-weight: 100;
  font-size: 12px;
  width: 370px;
  color: white;
}

#pager a{
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    height: 30px;
    width: 30px;
    text-align: center;
    border: 1px solid white;
    vertical-align: middle;
    line-height: 33px;
    font-size: 14pt;
    margin-right: 5px;
	color: white;
	text-decoration: none;
}


.tonopad {
	margin-left: calc(50% - 25px); 
	bottom: 30px; 
	width: 50px; 
	position: absolute;
	text-align: center; 
	font-weight: 200;
	font-size: 14px;
}

.towithpad {
	margin-left: calc(50% - 85px); 
	bottom: 20px; 
	width: 50px; 
	position: absolute;
	text-align: center; 
	font-weight: 200;
	font-size: 14px;
	z-index: 99;
}

.white {
	color: white;
}

.black {
	color: black;
	text-shadow:  1px  1px 1px white,
                  1px -1px 1px white,
                 -1px  1px 1px white,
                 -1px -1px 1px white;
}

#nav-search-form {
	position: absolute;
  	top: 25px;
}

/* nunito-200 - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200;
  src: local('Nunito ExtraLight'), local('Nunito-ExtraLight'),
       url('../fonts/nunito-v9-latin-200.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-v9-latin-200.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* nunito-300 - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300;
  src: local('Nunito Light'), local('Nunito-Light'),
       url('../fonts/nunito-v9-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-v9-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* nunito-regular - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: local('Nunito Regular'), local('Nunito-Regular'),
       url('../fonts/nunito-v9-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-v9-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* nunito-700 - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  src: local('Nunito Bold'), local('Nunito-Bold'),
       url('../fonts/nunito-v9-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-v9-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

@media only screen and (max-width: 1450px){
	.galleryteaser {
		width: 33.33%;
	}
	.item {
		width: 25%;
	}

}

@media only screen and (max-width: 1150px){
	.item {
		width: 33.33%;
	}

}

@media only screen and (max-width: 1010px){
	.galleryteaser {
		width: 50%;
		padding: 20px;
	}
	
	#about {
		background-position: bottom center;
		background-size: 60%;
		padding: 20px;
	}
	
	#about_text {
		width: 100%;
		margin-bottom: 85%;
	}
	
	.rainermohr {
		position: absolute;
		bottom: 0px;
		width: 60%;
		margin: auto;
		display: inline-block;
		left: 50%;
		transform: translate(-50%,0);
		z-index: 1;
	}

	.towithpad {
		margin-left: calc(50% - 40px);	  
		bottom: 10px;
	}
}

@media only screen and (max-width: 850px){
	.item {
		width: 50%;
	}
	
	.menu-item {
		margin: 0.7em;
	}
	
	#navstructure {
		right: inherit;
		margin: auto !important;
		top: 120px
	}
	
	ol {
		padding-left: 0px;
	}
	
	#logolink {
		display: block;
		text-align: center;
	}
	
	#logo {
		height: auto;
		width: 250px;
		margin-top: 38px;
	}

	#nav-search-form {
		top: 5px;
	}

	
	.gallerytitle {
		margin-top: 70px;
		padding-left: 0px;
	}
	
	#galleries {
		padding: 10px 20px;
	}
	
	.galleryteaser {
		padding: 10px;
	}
}

@media only screen and (max-width: 550px){
	.galleryteaser {
		width: 100%;
	}
	
	#galleries {
		padding: 10px 5px;
	}

	.item {
		padding: 2px;
	}
}

