
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}



body {
	display: flex;
	justify-items: center;
	align-items: flex-start; /* alle Boxen oben ausrichten */
	min-height: 100vh;
	background-color: #D2E1BA;
	font-family: sans-serif;	
}

a{
	text-decoration: none;
	color: #2A2A2A;
}

hr{
	border-top: 1px solid #D2E1BA;
}

h2 {
	color: #067A46;
	font-size: 3vh;
	margin: 10px;
}

h3 {
	font-size: 3vh;
	margin: 10px;
	color: #000;
}

h4{
	padding: 10px;
}


ul {
  list-style-type: square;
}

li {
	margin: 2px;
}



.header{
	width: 100%;
	height: 60px;
	position: absolute;
	top: 0;
	background-color: #fff;	
	
	display: flex;
	justify-content: space-between;	/* horizontal */
	align-items: center; 			/* vertical */
	gap: 10px;
	
}

.menu-item {
	text-decoration: none;
	padding: 5px;
	border-radius: 3px;	
	
	text-align: center;	
	color: #067A46;
	font-weight: 600;
}

/* Logo */
.menu-item:first-child {
    margin-right: auto; /* Platz auf der rechten Seite des ersten Items */
}

/* Kochbuch Button */
.menu-item:nth-child(n+2){
	border: 1px solid #067A46;
	width: 120px;
	
	display: flex; /* Flexbox aktivieren */
    align-items: center; /* Vertikale Ausrichtung */
    justify-content: center; /* Horizontale Ausrichtung */
    text-decoration: none; /* Unterstreichung entfernen */
}

.menu-item:nth-child(n+2):hover{
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	border: 1px solid #067A46;
}

/* Admin Button */
.menu-item:last-child {
    margin-right: 10px; 

	border: 1px solid #067A46;
	width: 100px;
	
	display: flex; /* Flexbox aktivieren */
    align-items: center; /* Vertikale Ausrichtung */
    justify-content: center; /* Horizontale Ausrichtung */
    text-decoration: none; /* Unterstreichung entfernen */
	
	background: #067A46;
	color: #fff;
}







.searchbar {
	display: flex;	
	justify-content: space-between;	
	align-items: center;
	gap: 10px;
	
	width: 100%;
	height: 40px;
	min-height: 50px;
	
	position: absolute;
	top: 60px;
		
	background-color: #067A46;	
}	


.searchbar .suche:only-child {
  margin-left: auto;
}


.suche {
	background: #fff;
	padding:10px;
	margin: 10px;
	
	border-radius: 5px;
	border:0 none;
	min-width: 31vw;
}

:focus {
	outline: none;	
}

.container {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin: 120px 10px;
	gap: 10px;
	
	
	color: #fff;
	position: relative;
}

.container>div {
	flex: 100%;
}	


.content {
	display: flex;
	justify-content: center; /* Zentriert horizontal */

	
	flex-wrap: wrap;
	gap: 25px;	
}

.content>div.box, .content>div.footer{
	display: flex;
	justify-content: center;
}

.box  {
	min-height: 280px;
	min-width: 300px;
	border: 1px solid #eee;
	border-radius: 15px;
	box-shadow: 1px 3px 3px #eee;
	
	color: #2A2A2A;
	position: relative;
	
	flex-basis: 30%;
	flex-grow: 1;
	flex-shrink: 1;
	
	background-size: 158%; 
	background-position-x: 20%;
	background-position-y: 70%;
}

.box-overlay{
	position: absolute;
	bottom: 0;
	padding: 5px;	
	width: 100%;
	overflow: hidden;
	border-radius: 0px 0px 15px 15px;
	height: 80px;
	background-color: rgba(255, 255, 255, 1); 
	
}

.box-overlay-title {
	font-size: 2vh;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow:ellipsis;
}

.box-overlay-subtitle {
	font-size: 2vh;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow:ellipsis;
}

.box-overlay-rating {
	font-size: 2vh;
	font-weight: 500;
	margin-top: 10px;
}
 


.footer{
	flex: 100%;
	justify-content: center;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	background-color: #067A46;
}

.footer>a{
	text-decoration: none;
	color: #fff;
}

.footer>a>div{
	text-decoration: none;
	color: #fff;
	border: 1px solid #fff;
	padding: 5px;
	border-radius: 5px;
}

/* rezept.php */
.preview {
	flex-basis: 95%;
	flex-grow: 1;
	flex-shrink: 1;
		
	border: 1px solid #067A46;
	
	background-repeat: no-repeat;
	background-size: cover; 	
}

.btn-back {
	margin: 10px;
}



.preview>img{
	width: 100%;
}
/* ########## */



/* index.php / login */
.login {	
    width: 300px; /* Fixe Breite */
	height: 300px;
	padding: 20px;
	
	background: #fff;

   	box-shadow: 5px 20px 50px #000;
	border: 1px solid #A5A5A5;
    border-radius: 8px;
    text-align: center;
}



.form_login input[type='text'], .form_login input[type='password'] {
    display: block;
    width: 80%;
    
    border: 1px solid #A5A5A5;
	border-radius: 5px;
    background: #E8F0FE;
	
	
    padding: 10px;	
	margin: 0 auto;	
}


.form_login input[type='submit'] {  
    display: block;
	width: 80%;
    background-color: #067A46;
    padding: 10px;

	border: 0;
    border-radius: 5px;
	
	color: #fff;
    cursor: pointer;
	margin: 0 auto;
}

.form_login input[type='submit']:hover {
	background-color: #079254;
}

.err_msg {
	font-size: 2vh;
	color: #067A46;
}
/* ########## */





/* bibliothek.php */
.library  {
	min-height: 200px;
	width: auto;
	max-width: 350px;
	
	border: 1px solid #eee;
	border-radius: 15px;
	box-shadow: 1px 3px 3px #eee;
	
	padding: 20px;
	background: #fff;	
	font-size: 2vh;
	color: #2A2A2A;
	
	justify-content: left;	
}



.lib-link{
	font-size: 2vh;
	overflow: hidden;
	text-overflow:ellipsis;
}

.lib-link:hover{
	color: #067A46;

}

.btn-library {
	margin: 10px;
}
/* ########## */




/* admin.php */
.box-admin  {
	min-height: 280px;
	border: 1px solid #eee;
	border-radius: 15px;
	box-shadow: 1px 3px 3px #eee;
	background: #fff;
	padding: 10px;	
	color: #2A2A2A;
	
	
}


.box-admin:nth-child(1) {
  flex: 1 0 1%; /* flex: <flex-grow> <flex-shrink> <flex-basis> */
}

.box-admin:nth-child(2) {
  flex: 1; 
}



.form-upload input[type=text], .form-upload select {
	background: #fff;
	padding:10px;
	margin: 5px;
	color: #2A2A2A;
	border-radius: 5px;
	border: 1px dotted #067A46;
	width: 95%;
	min-width: 300px;
}

.form-upload input[type=file] {
	background: #D2E1BA;
	padding:10px;
	margin: 5px;
	
	border-radius: 5px;
	border: 1px dotted #067A46;
	width: 95%;
	min-width: 300px;
}

.form-upload input[type=submit]{
	background: #067A46;
	color: #fff;
	padding:10px;
	margin: 5px;
	
	border-radius: 5px;
	border: 1px dotted #067A46;
	width: 95%;
	min-width: 300px;
}

.form-upload input[type=submit]:hover{
	background: #044F2E;
}	


.tbl_uam {
	width: 95%;
	border-collapse: collapse;
	font-size: 2vh;
	
	padding:10px;
	margin: 5px;
	color: #2A2A2A;
	border: 1px solid #067A46;
}

.tbl_uam td, .tbl_uam th {
	padding:5px;
	margin: 5px;
	color: #2A2A2A;
	border-bottom: 1px solid #067A46;
}

.tbl_uam tr:nth-child(even){
	background: #D2E1BA;
}

.tbl_uam th {
	text-align: left;
}

.form-uam {
	width: 100%;
}



.form-uam input[type=text], .form-uam select {
	background: #fff;
	padding:10px;
	margin: 5px;
	color: #2A2A2A;
	border-radius: 5px;
	border: 1px dotted #067A46;
	width: auto;
}


.form-uam input[type=submit]{
	background: #067A46;
	color: #fff;
	padding:10px;
	margin: 5px;
	
	border-radius: 5px;
	border: 1px dotted #067A46;
	width: auto;
}

.form-uam input[type=submit]:hover{
	background: #044F2E;

}	

/* ########## */




@media only screen and (max-width: 550px){
	.content>div{
		flex: 100%;
	}	

	.box-overlay-title, .box-overlay-subtitle {
		font-size: 2vw;	
	}
	
	.library  {
		font-size: 3vw;
	}
	
}	


/* iPhone portrait */
@media (max-width: 768px) {
	
  input, textarea, select {
	  font-size: 16px; /* wichtig, ansonsten zoomt das iPhone in das Input-Feld*/
  }	
	
  .box-overlay-title, .box-overlay-subtitle {
    font-size: 4vw;	
  }
  
  .suche {	
	width: auto;
	min-width: 95%;
	margin-left: auto;
	margin-right: auto;
	}
	
	.box  {
		background-size: 170%; 
		background-position-x: 25%;
		background-position-y: 78%;
	}
	
	.form-uam input[type=text], .form-uam select {	
	min-width: 300px;
	}
  
}

/* iPhone Landscape */
@media (max-width: 812px) and (orientation: landscape) {
     .box-overlay-title, .box-overlay-subtitle {
		font-size: 2vw;	
	  }  
    }
}





