/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {font-family: 'AgencyFBR'; 
		src: url('../fonts/AGENCYR.ttf') format('truetype'); }

body {
        background: url("../img/circuit_board01.jpg") no-repeat black top center fixed;
		font-family:AgencyFBR,sans-serif;
		font-style:normal;
		font-size:1.2em
}

@media only screen and (min-width: 1000px) {
	#mainFrame {
		display: grid;
		grid-template-columns: 277px 683px;
        width: 960px;
        margin: 20px auto;
		}
header {
		grid-row: 1;
		grid-column: 1 / span 2;
        background: white;
        width: 960px;
        height:282px;
        margin:0px auto;
        padding:0;
}

header.pageHome {
        background: url("../img/title/title_home.jpg") no-repeat center center;
}
header.pageUnternehmen {
        background: url("../img/title/title_unternehmen.jpg") no-repeat center center;
}
header.pageLeistungen {
        background: url("../img/title/title_leistungen.jpg") no-repeat center center;
}
header.pageLeistungen01 {
        background: url("../img/title/title_leistungen_01.jpg") no-repeat center center;
}
header.pageLeistungen03 {
        background: url("../img/title/title_leistungen_03.jpg") no-repeat center center;
}
header.pageLeistungen04 {
        background: url("../img/title/title_leistungen_04_02.jpg") no-repeat center center;
}

header.pageProdukte {
        background: url("../img/title/title_produkte.jpg") no-repeat center center;
}
header.pageProdukte01 {
        background: url("../img/title-produkte01_.jpg") no-repeat center center;
}
header.pageProdukte04 {
        background: url("../img/title-produkte04.jpg") no-repeat center center;
}
header.pageProdukte05 {
        background: url("../img/title-produkte05.jpg") no-repeat center center;
}
header.pageKontakt {
        background: url("../img/title/title_kontakt2.jpg") no-repeat center center;
}
header.pageAnfahrt {
        background: url("../img/title-anfahrt04.jpg") no-repeat center center;
}

header.pageImpressum {
        background: url("../img/title-home.jpg") no-repeat center center;
}

navigation{
		grid-row: 2;
		grid-column: 1 / span 2;
		display: grid;
		grid-template-columns: auto;
		margin: 0px;
		padding: 0px;
}	
	
nav.mainnav ul{
		display: grid;
		/*grid-template-rows: 1fr;*/
        margin: 0px;
        padding:0px;
        height: 55px;
        list-style: none;
		color:white;
        background: #44A4A7;
}

nav.mainnav li {
        display: inline;
        float:left;
		grid-row: 1;
}
nav.subnav ul{
		display: grid;
		/*grid-template-rows: 1fr;*/
		margin: 0px;
		padding: 0px;
		height: 32px;
		/* background:#235557; */
		background:#2F7072;
		list-style: none;
		width: inherit;
}
nav.subnav li {
        display: inline;
        float:left;
		grid-row: 1;
}

nav.mainnav a {
		text-align: center;
        text-decoration: none;
        color: black;
        width:inherit;
        display:block;
        padding:0px;
}
nav.subnav a{
		text-align: center;
		text-decoration: none;
		color: black;
        width:inherit;
        display:block;
        padding:0px;
		font-size:1.1em
}

h1 {
         padding:0;
}
div#mainContent  {
		display: grid;
		grid-row: 3;
         /* background: #FFFFFF;	 */
        background: #CCFEFF;
        margin-left: 0px;
		margin-bottom: 0px;
        padding: 0px 0px 0px 0px;
}
div#mainText  {
		grid-row: 3;
		 grid-column: 2 / span 1;
		 display: grid;
		 grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
		 grid-auto-flow: dense;
		 grid-gap: 0.5em 1em;
         background: #FFFFFF;
		 color: black;
		 /*font-family:Agency FB;*/
		 font-size:1.1em;
		 letter-spacing: 0.5px;
		 /*width: calc((100% - 124px)*4/5);*/
         /* width: 667px; */
         position: relative;
         right:0px;
         padding:10px;
         margin:0 0 0 auto;
}
section.fullwidth{
		/* background: black; */
		/* grid-column: 1 / span 2; */
		grid-column: 1 / -1;
}
#mainText h1 {
		color: #44A4A7;
		panning: 15px;
}

#mainText h2 {
		/* color: #44A4A7; */
		color: #57d1d5;
		/* font-family: Agency FB; */
		/* font-style: italic; */
		font-style: normal;
}

#mainText p {
	margin: 0px 0px;
}

div#sideBar  {
		grid-row: 3;
		grid-column: 1 / span 1;
        background: #CCFEFF;
		color: #555555;
        float:left;
        height: auto;
        /* height: 100%; */
        /*width: calc((100% - 124px)/5 + 104px);*/
        /* width: 253px; */
        margin: 0;
        /* padding: 10px 10px 10px 10px; */
		padding: 0px 10px;
		letter-spacing: 0.5px;
}
div#sideBar h1 {
		padding:10px 0 0 0;
        font-size: 1.5em;    
		letter-spacing: 0.5px;
        margin: 0 0 0em;
		/* font-family:Agency FB; */
		/*font-variant:small-caps;*/
		/* font-style:italic; */
		font-style:normal;
}

#sideBar p {
		color: #000000
}

img {
max-width: 100%;
padding: 0px;
border: 1px solid #ccc;
background: #fff;
box-shadow: 5px 5px 7px rgba(0,0,0,0.1);
}

img.bottomlogo {
		text-align: right;
		padding:0px;
		border-width:0px;
		margin:0px;
		/* margin:-72px 0px -150px 800px; */
		/* margin:0px 0px -18px 800px;*/
		margin: 0px 0px -29px 600px;
		/* margin:0px 0px -18px 70vw; */
		background-color: transparent;
		/* background-color: #FFF; */
		box-shadow:none;
		position: relative;
		z-index: 1;
}

img.scheme {
		min-width: 600px;
		border: none;
		box-shadow: none;
}

img.mapped {
		border: none;
		box-shadow: none;
}
		

img.history {
		border:none;
		box-shadow:none;
}
/* img.pageHome { */
		height: 0;
		width: 0;
		/* /*height: 320px; */
		/* width: 400px; */ */
		/* background: #FFF; */
/* } */
.helper {
    height: 0px;
	line-height: 0;
	font-size: 0;
}
.main-image {
width: 100%;
margin-bottom: 0.75em;
overflow:hidden;
}

.custom {
height: 450px;
width: auto;
margin: 0 auto;
display:block;
}

.thumbnails {
display: block;
text-align:center;
padding: 0;
}


.thumbnails li {
display: inline;
margin: 0 10px 0 0;
}

.gallery {
list-style: none;
}

.gallery li {
float:left;
padding:10px;
width: 120px;
height: 120px;
}

.products {
list-style:none;
}

.products li {
float:left;
}

.tn {
list-style:none;
}

#floating_list {
width: 300px;
float:left;
padding: 5px;
margin: 5px;
}

#floating_list img{
margin: 15px 0;
}

.product_list  {
float:left;
list-style: circle;
}

/* .next { position: absolute; top: 0; left: 0; opacity: 0; filter:alpha(opacity=0); }
#meinFader { position: absolute; top:150px; left:300px; } */
.next {position: absolute; top:0; left: 0; opacity: 0; filter:alpha(opacity=0); }
#meinFader {top:150px; left:300px;}
}

@media only screen and (max-width: 999px) {
	#mainFrame {
		display: grid;
		grid-template-columns: 1fr 1fr;
        width: min-width;
		min-width: 600px;
        margin: 0px auto;
		}
header {
		grid-row: 1;
		grid-column: 2;
        background: #FFF;
        /* max-width: 90%; */
		height: 100%;
		width: 100%;
        /* height:0px; */
		vertical-align: center;
        /* height:auto; */
        margin:0px auto;
        padding:0;
}
header.pageHome {
		/* background-color: white; */
        background-image: url("../img/title-home_alt.jpg");
		background-repeat: no-repeat;
		background-position: center;
}
header.pageProdukte {
		/* background-color: white; */
        background-image: url("../img/title-home_alt.jpg");
		background-repeat: no-repeat;
		background-position: center;
}
header.pageLeistungen {
        background-image: url("../img/title-home_alt.jpg");
		background-repeat: no-repeat;
		background-position: center;
}
header.pageAnfahrt{
        background-image: url("../img/title-home_alt.jpg");
		background-repeat: no-repeat;
		background-position: center;
}
header.pageImpressum{
        background-image: url("../img/title-home_alt.jpg");
		background-repeat: no-repeat;
		background-position: center;
}
navigation{
		grid-row: 1;
		grid-column: 1 / span 2;
		display: grid;
		grid-template-columns: 1fr 1fr;
		/*grid-template-columns: auto auto;*/
		margin: 0px;
}
nav.mainnav {
		grid-column: 1;
}
nav.mainnav ul{
		display: grid;
		grid-template-columns: auto; /*auto auto*/
        margin: 0px;
        padding:0px;
        height: inherit;	/* 55px */
        list-style: none;
		color:white;
        /* background: #44A4A7; */
        background: rgba(68,164,167,1);
}	
nav.mainnav a {
		text-align: center;
        text-decoration: none;
        color: black;
		height: 55px;
        /* height:inherit; */ /* 169px */
        display:block;
        padding:0px 0px;
		margin-bottom: 0px;
}
nav.subnav {
		grid-column: 2;
}
nav.subnav ul{
		display: grid;
		grid-template-columns: auto; /*auto auto*/
		/*grid-template-columns: repeat(auto-fill,1fr);*/
		margin: 0px;
		padding: 0px;
		height: inherit;
		/* background:#2F7072; */
        background: rgba(47,112,114,0.95);
        /* background: rgba(51,121,122,0.95); */
		list-style: none;
}
nav.subnav a{
		text-align: center;
		text-decoration: none;
		height: 55px;
		/* height: inherit; */
		display:block;
		color: black;
		padding:0px;
		/* padding:8px; */
		font-size:1.3em
}
nav.subnav li {
        display: block;
        float:left;
}
div#alt_header {
		background: #FFF;
		text-align: center;
		max-height: 330px;
}
div#mainContent  {
		grid-row: 2;
		grid-column: 1 / 3;
		display: grid;
		grid-template-columns: auto;
         /* background: #FFFFFF;	 */
        background: #CCFEFF;
        margin-left: 0px;
		margin-bottom: 0px;
        padding: 0px 0px 0px 0px;
}
div#mainText  {
		 grid-row: 2;
		 grid-column: 1 / span 2;
		 display: grid;
		 grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
		 grid-auto-flow: dense;
		 grid-gap: 0.5em 1em;
         background: #FFFFFF;
		 color: black;
		 /* font-family:Agency FB; */
		 font-size:1.1em;
		 letter-spacing: 0.5px;
         width: calc(100% - 20px);
         position: relative;
         left:0px;
		 /* right: 0px; */
         /* padding:0px 0px 0px 0px; */
         padding:10px;
         margin:0px 0px 0px auto;
}
section.fullwidth{
		grid-column: 1 / -1;
}
#mainText h1 {
		color: #44A4A7;
		panning: 15px;
}

#mainText h2 {
		color: #44A4A7;
		/* font-family: Agency FB; */
		font-style: italic;
}
#mainText p {
	/* margin: 5px 10px 5px 5px; */
	margin: 0px 0px;
}
div#sideBar  {
		grid-row: 3;
		grid-column: 1 / span 2;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
        background: #CCFEFF;
		color: #555555;
        float:left;
        height: 100%;
        width: inherit;
        margin: 0;
        /* padding: 10px 10px 10px 10px; */
		padding: 0;
		letter-spacing: 0.5px;
}
div#sideBar h1 {
		padding:10px 0 0 0;
        font-size: 1.5em;    
		letter-spacing: 0.5px;
        margin: 0 0 0em;
		/* font-family:Agency FB; */
		/*font-variant:small-caps;*/
		/* font-style:italic; */
		font-style:normal;
}
#sideBar p {
		color: #000000
}
div#Anschrift {
		text-align: center;
}
div#Kontakt {
		text-align: center;
}	

img {
max-width: 100%;
padding: 0px;
border: 1px solid #ccc;
background: #fff;
box-shadow: 5px 5px 7px rgba(0,0,0,0.1);
}

img.bottomlogo {
		text-align: right;
		visibility: hidden;
		padding:0px;
		border-width:0px;
		/*margin:0px 0px -18px 70vw;*/
		margin: 0px 0px -20px 85vw;
		/* margin:-72px 0px -91px 0vw; */
		/* margin:-72px 0px -150px 800px; */
		background-color: transparent;
		/* background-color: #FFF; */
		box-shadow:none;
		position: relative;
		z-index: 1;
}
img.scheme {
		min-width: 600px;
		border: none;
		box-shadow: none;
}

img.mapped {
		border: none;
		box-shadow: none;
}
		

img.history {
		border:none;
		box-shadow:none;
}
img.pageHome {
		height: auto;
		/* height: 96%; */
		/* width: auto; */
		/*height: 320px;
		width: 400px; */
		background: #FFF;
		border-width: 0px;
		box-shadow: none;
		vertical-align: middle;
		/* max-height: 330px; */
		max-width: 90%;
}
.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.main-image {
width: 100%;
margin-bottom: 0.75em;
overflow:hidden;
}

.custom {
height: 450px;
width: auto;
margin: 0 auto;
display:block;
}

.thumbnails {
display: block;
text-align:center;
padding: 0;
}


.thumbnails li {
display: inline;
margin: 0 10px 0 0;
}

.gallery {
list-style: none;
}

.gallery li {
float:left;
padding:10px;
width: 120px;
height: 120px;
}

.products {
list-style:none;
}

.products li {
float:left;
}

.tn {
list-style:none;
}

#floating_list {
width: 300px;
float:left;
padding: 5px;
margin: 5px;
}

#floating_list img{
margin: 15px 0;
}

.product_list  {
float:left;
list-style: circle;
}
}




#mainFrame {
        background: #44A4A7;
        padding: 10px 10px 10px 10px;
        box-shadow: 0px 0px 10px 10px #222;
		-moz-box-shadow: 0px 0px 10px 10px #222;
		-webkit-box-shadow: 0px 0px 10px 10px #222;
		}

#mainText {
		display: grid;
}
		
nav a:hover {
        background: #67BFC1;
        color:white;
}
nav li.current a {
        background: #67BFC1;
        color:black;
}

nav li.home a {
		width:inherit;
}

nav li.home_active a {
		width:inherit;
        background: #67BFC1;
        color:black;
}
nav a img{
		padding:0px;
		border-width:0px;
		margin:0px;
		background-color:transparent;
		box-shadow:0 0 0;
		
		
}

div#QR img{
	border-width: 0px;
	padding: -3px;
	box-shadow: none;
	max-height: 200px;
	text-align: center;
}

.shortcuts {
list-style: none;
height: 200px;
}

.shortcuts li {
float:left;
padding:20px;
}

.shortcuts img{
box-shadow:0 0 0;
padding:0px;
margin: 0px;
}

footer {
        text-align: center;
		color: white;
}

div#kacheln{
		 display: grid;
		 grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
		 /* grid-template-rows: 1fr 1fr 1fr; */
		 grid-template-rows: repeat(auto-fill, 300px);
		 /* grid-auto-flow: dense; */
		 /* grid-template-rows: 300px; */
		 /* grid-auto-flow: dense; */
}
#kacheln img {
		border-width:0px;
	
}

#kacheln h2 {
	/* color: #fff; */
	color: #CCFEFF;
	font-style: normal;
	font-size: 1.0em;
	text-transform: uppercase;
		 font-size:1.1em;
		 letter-spacing: 0.5px;
		 /* text-decoration: none; */
}

.hovereffect {
width:100%;
height:300px;
float:left;
overflow:hidden;
position:relative;
text-align:center;
cursor:default;
}

.hovereffect .overlay {
width:100%;
height:100%;
position:absolute;
overflow:hidden;
top:0;
left:0;
opacity:0;
background-color:rgba(0,0,0,0.5);
-webkit-transition:all .4s ease-in-out;
transition:all .4s ease-in-out
}

.hovereffect img {
width: 80%;
display:block;
padding: 0px;
margin: 0;
left: 50%;
top: 50%;
position: absolute;
transform: translate(-50%, -50%);
box-shadow: none;
-webkit-transition:all .4s linear;
transition:all .4s linear;
}

.hovereffect h2 {
/* text-transform:uppercase; */
/* color:#fff; */
text-align:center;
position:relative;
/* font-size:19px; */
font-style: normal;
background:rgba(0,0,0,0.6);
-webkit-transform:translatey(-100px);
-ms-transform:translatey(-100px);
transform:translatey(-100px);
-webkit-transition:all .2s ease-in-out;
transition:all .2s ease-in-out;
padding:10px;
}

.hovereffect a.info {
text-decoration:none;
display:inline-block;
text-transform:uppercase;
color:#fff;
border:1px solid #fff;
background-color:transparent;
opacity:0;
filter:alpha(opacity=0);
-webkit-transition:all .1s ease-in-out;
transition:all .1s ease-in-out;
margin:50px 0 0;
padding:7px 14px;
}

.hovereffect a.info:hover {
box-shadow:0 0 5px #fff;
}

.hovereffect:hover img {
-ms-transform:translate(-50%, -50%) scale(1.2);
-webkit-transform:translate(-50%, -50%) scale(1.2);
transform: translate(-50%, -50%) scale(1.2);
/*transform:scale(1.2);*/
}

.hovereffect:hover .overlay {
opacity:1;
filter:alpha(opacity=100);
}

.hovereffect:hover h2,.hovereffect:hover a.info {
opacity:1;
filter:alpha(opacity=100);
-ms-transform:translatey(0);
-webkit-transform:translatey(0);
transform:translatey(0);
}

.hovereffect:hover a.info {
-webkit-transition-delay:.1s;
transition-delay:.1s;
}

/* section, */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
