@font-face 
{
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: normal;
	font-stretch: normal;
	src: url('fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face 
{
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: bold;
	font-stretch: normal;
	src: url('fonts/OpenSans-Bold.ttf') format('truetype');
}

@font-face 
{
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: normal;
	font-stretch: condensed;
	src: url('fonts/OpenSans_Condensed-Regular.ttf') format('truetype');
}
body
{
	background-color: #fff;	
	min-height: 100vh;
	display: flex;
 	flex-direction: column;
}
body>*:not(#content)
{
	flex-shrink: 0;	
}
body, input, textarea, select, option, button, address, ul, blockquote
{
	font-size: 16px;
	line-height: 1.5;
	color: #666;
	font-family: 'Open Sans', sans-serif;
	font-weight: normal;
	font-stretch: normal;
	margin: 0;
	padding: 0;
	border: 0;
}
a
{
	text-decoration: underline;
	color: inherit;
	color: #333;
}
p, article, section
{
	margin: 1em 0;
}
fieldset
{
	border: 2px solid #ccc;
	margin: 1rem 0;
	padding: 0.25rem;
	background-color: #fff;
}
legend
{
	color: #333;
	padding: 0 0.25em;
}

.h1
{
	font-size: 200%;
	font-weight: 900;
	margin-bottom: 0.5em;
	line-height: 1;
	color: #333;
	text-align: center;
}
.h2
{
	font-size: 125%;
	font-weight: bold;
	line-height: 1.25;
	margin-bottom: 0.5em;
	text-align: center;
}
.h3
{
	font-weight: bold;
}
.hide
{
	display: none;	
}

.inner
{
	position: relative;
	margin: 0 auto;
	min-width: 300px;
	width: 90%;
	padding: 10px;
}
header>.inner
{
	padding: 0 10px 1em;
	position: relative;
}
#logo
{
	max-width: 160px;
	width: 10vw;
	min-width: 80px;
	display: inline-block;
	margin-top: 10px;
}

#content
{
	flex: 1 0 auto;
}
#content>div
{
	min-height: 65vh;
	padding-top: 20px;
}

nav
{
	margin: 1em 0 0;
	font-size: 112.5%;
	display: block;
	line-height: 1.25;
}

nav a, #mco_btn_show_basket, #mco_btn_add_product
{
	max-width: 300px;
	box-sizing: border-box;
	background-color: #eee;
	text-decoration: none;
	border-radius: 2em;
	display: block;
	padding: 0.5em 1.5em;
	margin: 0 auto 2em;
	border: 0.125rem solid #666;
	text-align: center;
}
nav a.back
{
	background-color: #8a0;
	border-color: #8a0;
	width: 120px;
	color: #fff;
}
nav a.back.disabled
{
	background-color: #ccc;
	border-color: #ccc;
	cursor: not-allowed;
}


footer
{
	background-color: transparent;	
	text-align: right;
	font-size: 87.5%;
}
#contact
{
	text-align: left;
}
#contact>div
{
	display: inline-block;
	margin-right: 50px;
}

form
{
	margin-bottom: 1em;	
}
form:invalid input[type="submit"], input[type="submit"][disabled]
{
	background-color: #ccc;
	cursor: not-allowed;
}

input, textarea, option, select, button
{
	padding: 2px 4px;
	border: 1px solid #666;
	color: #333;
}
button
{
	border: 0;
	background-color: #eee;
	cursor: pointer;
}
textarea, select
{
	box-sizing: content-box;
	display: block;
}
input[type="submit"], input[type="reset"], #dialog button
{
	width: auto;
	cursor: pointer;
	background-color: #8a0;
	color: #fff;
	text-decoration: none;
	line-height: 1;
	border-radius: 1rem;
	display: inline-block;
	margin-top: 10px;
	padding: 0.5em 1.25em;
	border: 0;
}
input[type="reset"], button#dialog_confirm
{
	background-color: #a20;
}

.required
{
	outline: 3px solid #8a0;
}
.err, .info
{
	margin: 1em 0;
	background-color: #8a0;
	color: #fff;
	padding: 0.5em 0.75em;
	border-radius: 0.25em;
}
.err
{
	background-color: #a20;
}
.info>span
{
	font-weight: bold;
}

#login, #pw_forgotten
{
	width: 280px;
	margin: 0 auto;
}
#login input, #pw_forgotten input
{
	width: 100%;
	display: block;
	margin-bottom: 1em;
	box-sizing: border-box;
}
#login input[type="submit"], #pw_forgotten input[type="submit"]
{
	width: auto;
	margin: 0.5em 0 0 auto;
}
#login #login_pass
{
	margin-bottom: 0;	
}
#login a
{
	font-size: 75%;
}
#Passwort_vergessen
{
	text-align: center;
	max-width: 600px;
}
#pw_forgotten
{
	margin-bottom: 3em;
	text-align: left;
}

#logout
{
	display: block;
	text-align: right;	
	position: absolute;
	top: 2px;
	right: 10px;
	color: #333;
}
#logout>div:first-child
{
	font-weight: bold;	
}




/* Clips */
.mco_clip
{
	border: 3px solid #8a0;
	margin: 1em 0;
	padding: 0.5em;
}
.mco_clip>div:first-child
{
	background-color: #8a0;
	padding: 0.25em 60px 0.25em 0.5em;
	margin: -0.5em -0.5em 0.5em;
	color: #fff;
	position: relative;
}
.mco_clip>div:first-child::after
{
	position: absolute;
	font-stretch: condensed;
	top: 0.25rem;
	right: 0.25rem;
	text-align: right;
}
.mco_clip.ordered
{
	border-color: #08a;
}
.mco_clip.ordered>div:first-child
{
	background-color: #08a;
}
.mco_clip.ordered>div:first-child::after
{
	content: 'angefragt';
}
.mco_clip.canceled, .mco_clip.canceled_plus
{
	border-color: #a20;
}
.mco_clip.canceled>div:first-child, .mco_clip.canceled_plus>div:first-child
{
	background-color: #a20;
}
.mco_clip.canceled>div:first-child::after, .mco_clip.canceled_plus>div:first-child::after
{
	content: 'storniert';
}
.mco_clip.archived
{
	border-color: #999;
}
.mco_clip.archived>div:first-child
{
	background-color: #999;
}
.mco_clip.archived>div:first-child::after
{
	content: 'archiviert';
}

.mco_clip li
{
	/*list-style-position: inside;*/
	display: inline-block;
	width: 250px;
	vertical-align: top;
	padding: 0.25em 0.25em 0.25em 1em;
	position: relative;
}
.mco_clip li::before
{
    content: '\25cf';
   /* margin-right: 0.25em;*/
	position: absolute;
	left: 0;
}
.mco_clip a
{
	margin-top: 1em;
	display: inline-block;
}

.mco_clip button, .mco_clip_item button, #Anleitungen>button
{
	background-color: #eee;
	border: 1px solid #999;
	padding: 0.375em 1em 0.375em;
	line-height: 1;
	color: #333;
	display: inline-block;
	cursor: pointer;
	border-radius: 1rem;
	margin: 0.75em 1.5em 0 0;
}
.mco_clip_item button
{
	margin-top: 1.5em;	
}


/* Clip Details */
.h2.ordered
{
	color: #08a;
}
.h2.canceled
{
	color: #a20;
}
#mco_clip_details .mco_clip_item.newPic>div:first-child::after
{
	content: 'Es wird ein neueres Sujet angezeigt';
}



/* Basket */
.mco_clip_item
{
	border: 3px solid #666;
	margin: 1em 0;
	padding: 0.75em 6px;	
}
.mco_clip_item.added
{
	border-color: #8a0;	
}
.mco_clip_item.deleted, .mco_clip_item.discontinued
{
	border-color: #ccc;
	position: relative;	
}
.mco_clip_item.deleted::before, .mco_clip_item.discontinued::before
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: '';
	background-color: rgba(238,238,238,0.75);
}
.mco_clip_item.deleted::after, .mco_clip_item.discontinued::after
{
	position: absolute;
	top: calc(50% - 2.5rem);
	left: 0;
	width: 100%;
	text-align: center;
	
	font-size: 2.5rem;
}
.mco_clip_item.deleted::after
{
	content: 'gelöscht';
	color: #a20;
}
.mco_clip_item.discontinued::after
{
	content: 'ausgeschieden';
}

.mco_clip_item img
{
	border: 1px solid #ccc;	
}
.mco_clip_item>div
{
	display: inline-block;
	vertical-align: top;
}
.mco_clip_item>div:first-child
{
	width: 282px;
	height: 160px;
	margin: 0 1em 0 0;
}
.mco_clip_item.newPic>div:first-child
{
	height: calc(160px + 1.75em);
}
.mco_clip_item.newPic>div:first-child::after
{
	content: 'Es wird dieses neue Sujet verwendet';
	display: block;
	background-color: #8a0;
	color: #fff;
	margin-top: calc(1px - 0.5em);
	font-size: 0.875rem;
	padding: 0.25em 0.5em;
	box-sizing: border-box;
	width: 100%;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
		
}
.mco_clip_item>div:nth-child(2)
{
	max-width: calc(100% - 280px - 1em);
	min-width: 282px;
}
.mco_clip_item>div:last-child
{
	display: block;
}
.mco_clip_item button[name="delete"]
{
	color: #a20;
}
.mco_clip_item .changed, .mco_ci_prices .changed span
{
	color: #8a0;	
}
.mco_ci_prices .changed
{
	color: inherit;	
}
.mco_clip_item>div>div
{
	padding-bottom: 0.25em;	
}
.mco_clip_item>div>div:first-child
{
	font-weight: bold;	
}

#mco_clip_quote
{
	background-color: #666;
	color: #fff;
	padding: 0.5em;
	margin-bottom: 1em;
}
#mco_clip_quote span
{
	margin-right: 0.5em;
	min-width: 1.5em;
	text-align: right;
	display: inline-block;
}
#mco_basket input[type="submit"]
{
	margin-right: 2em;
	margin-bottom: 0.75em;
}

#dialog
{
	background-color: #666;
	color: #fff;
	border-radius: 0.25em;
	padding: 1em;
	max-width: 600px;
	margin: 3em auto 0;
	text-align: center;
}
#dialog>div
{
	margin-bottom: 1em;
}
#dialog button
{
	margin: 0.75em 1em;	
}



/* Produktübersicht */

#categories
{
	margin: 0 calc(0.75vw - 0.5em);
}	
#categories button
{
	padding: 0.5em 1em;
	margin: 0.5em;
	border: 1px solid #ccc;
	cursor: pointer;
}
#categories .own
{
	border-color: #8a0;
	color: #8a0;
}
#categories button.sel
{
	background-color: #999;
	border-color: #888;
	color: #fff;
}
#categories .own.sel
{
	background-color: #8a0;
	border-color: #8a0;
}
#cat_info
{
	background-color: #8a0;
	color: #fff;
	padding: 0.5em 0.75em;
	margin: 0.5em 0.5em 0;
}
#products
{
	margin: 5px;	
}
#products img
{
	display: block;
	max-width: 280px;
	max-height: 158px;
	margin: 0 auto;
}
#products button
{
	display: inline-block;
	margin: 1vw 0.75vw;
	padding: 0;
	width: 280px;
	height: calc(158px + 1.75em);
	overflow: hidden;
	border-radius: 5px;
	vertical-align: top;
	border: 1px solid #ccc;
	cursor: pointer;
	outline: 0;
}
#products button>div
{
	padding: 2px 0.25em;
	overflow: hidden;
	white-space: nowrap;
	box-sizing: content-box;
	text-overflow: ellipsis;
}


/* add/editForm */
#mco_add_product, #mco_edit_product
{
	max-width: 900px;
	margin: 0 auto;
}
#mco_add_product img, #mco_edit_product img
{
	display: block;
	margin: 0 auto 1em;
	box-shadow: 0 0 15px #999;
	max-width: 100%;
}
#mco_add_product>label, #mco_edit_product>label
{
	display: block;
	margin: 1em 0 0;
}
#mco_add_product input[type="text"], #mco_add_product select, #mco_edit_product input[type="text"], #mco_edit_product select
{
	min-width: 300px;
	box-sizing: border-box;
}
#p_ingredients
{
	width: 100%;
}
#mco_add_product input[type="number"], #mco_edit_product input[type="number"]
{
	width: 4em;	
}



#fs_allergens input[type="checkbox"], #fs_additives input[type="checkbox"]
{
	margin: 0 0.4em 0 0.2em;	
}
#fs_allergens>label, #fs_additives>label
{
	display: inline-block;
	min-width: 220px;
}
#fs_allergens>label>span, #fs_additives>label>span
{
	display: inline-block;
	min-width: 1.5em;
	color: #333;
}






/* PW-reset */
.warning, .error
{
	color: #333;	
	border: 8px solid #8a0;
	background-color: #fff;
	padding: 1em;
	text-align: center;
	font-weight: bold;
	margin: 1em 0;
}


/* Bilddaten */
#archiv_groups
{
	margin: 0 calc(0.75vw - 5px - 0.5em);
}	
#archiv_groups button
{
	padding: 0.5em 1em;
	margin: 0.5em;
	border: 1px solid #ccc;
	cursor: pointer;
}
#archiv_groups button.sel
{
	background-color: #999;
	border-color: #888;
	color: #fff;
}
#archiv_gal
{
	margin: 0 -5px;	
}
#archiv_gal img
{
	display: block;
	max-width: 150px;
	max-height: 150px;
	margin: 0 auto;
}

#archiv_gal button
{
	display: inline-block;
	margin: 1vw 0.75vw;
	padding: 0;
	width: 150px;
	height: calc(150px + 1.75em);
	overflow: hidden;
	border-radius: 5px;
	vertical-align: top;
	border: 1px solid #ccc;
	cursor: pointer;
	outline: 0;
}
#archiv_gal button>div
{
	padding: 2px 0.25em;
	overflow: hidden;
	white-space: nowrap;
	font-stretch: condensed;
	box-sizing: content-box;
	text-overflow: ellipsis;
}

#archiv_detail
{
	text-align: center;	
}

#archiv_detail>div
{
	position: relative;
	display: inline-block;
	border: 1px solid #333;
	border-radius: 5px;
	overflow: hidden;
	cursor: pointer;
	padding: 0 0 2em;
}
#archiv_detail>div::after
{
	position: absolute;
	content: attr(title);
	bottom: 0;
	left: 0;
	padding: 0.25em;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: 100%;
	box-sizing: border-box;
}
#archiv_detail img
{
	display: block;
	max-width: 100%;
	/*max-height: 100%;*/
	margin: 0 auto;
}

@media (min-width: 360px)
{
	#archiv_gal
	{
		margin: 0;	
	}
	#archiv_groups
	{
		margin: 0 calc(0.75vw - 0.5em);
	}
}


/* Anleitungen */
#Anleitungen .h2
{
	margin-top: 2em;	
}
#Anleitungen>a
{
	display: table;
	margin: 0.75em auto;
}
#Anleitungen>a.own
{
	color: #8a0;
}
#Anleitungen>button
{
	margin: 1.5em auto;
	display: block;
}
#video_bg
{
	background-color: #999;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	/*position: absolute;*/
	display: flex;
}
#video_bg>div
{
	max-width: 160vh;
	margin: auto;
	position: relative;
}
video
{
	display: block;
	margin: auto;
	width: 100%;
	max-width: 1280px;
	box-shadow: 0 0 10px #666;
}

#video_close
{
	position: absolute;
	top: 15px;
	right: 15px;
	height: 50px;
	width: 50px;
	border: none;
	background-color: transparent;
	cursor: pointer;
}
#video_close:before, #video_close:after
{
	position: absolute;
	height: 10%;
	width: 100%;
	background-color: #000;
	transform: rotate(45deg);
	content: '';
	top: 50%;
	left: 0;
}
#video_close:after
{
	transform: rotate(-45deg);
}

#endcard
{
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
	padding-top: calc(31.25% - 73px);
	background-color: rgba(51, 51, 51, 0.85);
}