@font-face {
    font-family: 'linux_biolinum_gregular';
    src: url('linbiolinum_r_g-webfont.woff2') format('woff2'),
         url('linbiolinum_r_g-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

html, body {
    height: 100%;

    margin: 0;
    padding: 0;

    color: #333;
    font-family: linux_biolinum_gregular, "Liberation Sans", Tahoma, Verdana, Segoe, sans-serif;
    font-size: 110%;
}

h2, h3, h4, h5, h6 {
    margin: 1em 0 1em 0;

    color: #333;
}

h2, h3 {
    font-weight: normal;
}

h4, h5, h6 {
    font-weight: bold;
}

small {
    font-size: 1em;
}

a {
    color: #555;
    transition: all 0.2s ease;
}

a:hover, a:active, a.active {
    color: #252F34;
}

address {
    margin: 1em 0;
    font-style: normal;
}

p {
    margin: 1em 0;
    padding: 0;
}

figure {
    display: inline-block;
    background: #fff;
    border: 1px solid #CCC;
    margin: 0;
    padding: 0.25em;
}

figure img {
    display: block;
}

figcaption, .featherlight .caption {
    margin: 0.25em 0 0 0;
    border-top: 1px solid #CCC;
    font-size: 0.9em;

    padding: 1ex;
}

.fleft, .fright {
    display: block;
    overflow: hidden;
}

.fleft { float: left; }

.fright { float: right; }

.cleft { clear: left; }
.cright { clear: right; }

#container {
    display: flex;
    flex-flow: column nowrap;
    margin: 0 auto;
    min-height: 100%;
    width: 90%;

    box-sizing: border-box;
    padding: 0 5px;

    max-width: 1100px;
    min-width: 300px;
}

main {
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: auto;
}

header {
    overflow: hidden;
    border-bottom: 1px solid #80A2B4;
}

header .header-wrap {
    padding-top: 1em;
}

hr {
    height: 1px;
    width: 100%;
    clear: both;

    background: #80A2B4;
    background: linear-gradient(to right, transparent 20%, #80A2B4 50%, transparent 80%);
    border: none;
}

#container > hr {
    background: #80A2B4;
    background: linear-gradient(to right, #80A2B4 0%, #91B8CC 50%, #80A2B4 100%);

}

h1.logo {
    margin: 0;
    padding: 0;
}

a img {
    border: none;
}

header nav {
    line-height: 22px;
}

header nav ul {
    margin: 0;
    padding: 0;

    list-style: none;
    overflow: hidden;
}

header nav ul li {
    font-size: 0.8em;
    float: left;

    margin-bottom: 2px;
    margin-right: 2px;
}

header nav ul li a {
    display: block;
    margin-left: -10px;
    margin-right: 5px;
    padding: 0 2em;

    background: #252F34;
    background: linear-gradient(to right top, #252F34 0%, #536974 100%);
    backface-visibility: hidden;
    color: white;
    font-weight: normal;
    line-height: 26px;
    text-decoration: none;
    transform: skew(-36deg);
}

header nav ul li:last-child a {
    margin-right: -12px;
}

header nav ul li a span {
    display: inline-block;
    backface-visibility: hidden;
    transform: skew(36deg);
}

header nav ul li a:hover,
header nav ul li a.active {
    background: #89ADC1;
    background: linear-gradient(to right top, #89ADC1 0%, #AAD7F0 100%);
    border-color: #80A2B4;
}

nav#langsel {
    line-height: normal;
    margin-top: 1em;
    clear: right;
}

nav#langsel ul li a {
    line-height: normal;
    margin: 0;
    padding: 0;

    background: none;
    color: #536974;
    font-weight: bold;
    transform: none;
}

nav#langsel ul li a:hover,
nav#langsel ul li a.active {
    color: #555;

}

nav#langsel ul li a span {
    transform: none;
}

nav#langsel ul li a:hover span,
nav#langsel ul li a.active span {
    text-decoration: underline;
}

main {
    clear: both;
    font-size: 0.75em;
    margin: 1em 0;
}

main ul {
    display: table;
    list-style: url(../images/bullet.png);
}

nav.sub ul {
    list-style: none;
    margin: 0;
    padding: 1em;
}

nav.sub.inline ul {
    padding: 0;
}

nav.sub ul li {
    margin-bottom: 0.2em;
}

nav.sub.inline ul li {
    float: left;
}

nav.sub ul li a {
    display: block;
    padding: 0.5em 1em;
    border-left: 2px solid #aaa;
    text-decoration: none;
}

nav.sub ul li a:hover,
nav.sub ul li a.active {
    border-color: #6E8B9A;
}

nav.sub ul li a.active {
    background: url(../images/corner.png) bottom left no-repeat;
}

.grid {
    display: flex;
    flex-flow: row wrap;
}

[class*='col-'] {
    box-sizing: border-box;
    max-width: 100%;
    padding-right: 0;
}

.grid.no-gutter [class*='col-'] {
    padding: 0;
}

[class*='col-']:first-of-type {
    padding-left: 0;
}

[class*='col-']:last-of-type {
    padding-right: 0;
}

/* gallery */

.grid.gallery {
    overflow: hidden;
    flex-wrap: nowrap;
}

.grid.gallery figure {
    position: relative;
    flex-basis: 50%;
    flex-shrink: 5;
    height: 200px;
    padding: 0;
    border: none;

    border-left: 1px solid white;
    transition: all 0.5s ease;
}

.grid.gallery figure:first-child {
    border-left: none;
}

.grid.gallery:hover figure {
    flex-shrink: 5;
}

.grid.gallery figure:hover,
.grid.gallery figure.active {
    flex-shrink: 1;
}

.grid.gallery figcaption {
    border: none;
    display: block;
    width: calc(100% - 2em);
    margin: 0;
    padding: 1em;
    position: absolute;
    background: rgba(30,30,30,0.7);
    color: white;

    transition: all 0.25s ease;
}

.grid.gallery figure:hover figcaption,
.grid.gallery figure.active figcaption{
    opacity: 1;
}

.grid.gallery figcaption {
    opacity: 0;
}

.grid.gallery a {
    display: flex;
    height: 200px;
    width: 0;
}

.grid.gallery img {
    max-width: 400px;
}

.grid.spotlight figure {
    border: none;
    padding: 0;
    position: relative;
    height: 120px;
    width: 160px;
    margin-right: 1px;
    margin-bottom: 1px;
    overflow: hidden;
}

.grid.spotlight .caption {
    height: calc(100% - 2em);
    display: block;
    width: calc(100% - 2em);
    padding: 1em;
    position: absolute;
    border: none;
    background: rgba(30,30,30,0.7) url(../images/arrow.png) no-repeat 10% 80%;
    color: #ddd;
    font-size: 1.2em;
    margin-left: -100%;
    text-decoration: none;
    transition: all 0.25s ease;
}

.grid.spotlight figure:hover .caption,
.grid.spotlight figure.active .caption {
    margin-left: 0;
}

.grid.spotlight img {
    min-width: 100%;
    display: block;
    min-height: 120px;
    margin-top: calc(80px - 50%);
}

.col-1-1 { flex-basis: 100%; }
.col-1-2 { flex-basis: 50%; }
.col-1-3 { flex-basis: 33.333333%; }
.col-2-3 { flex-basis: 66.666666%; }
.col-1-4 { flex-basis: 25%; }
.col-3-4 { flex-basis: 75%; }
.col-1-5 { flex-basis: 20%; }
.col-2-5 { flex-basis: 40%; }
.col-3-5 { flex-basis: 60%; }
.col-4-5 { flex-basis: 80%; }

.mleft { margin-left: 1em; }
.mright { margin-right: 1em; }
.mbottom { margin-bottom: 1em; }
.mtop { margin-top: 1em; }

.bg-light { background: #e1e6ea; padding: 0.5em; }

footer {
    min-height: 210px;

    background: url(../images/bg-footer-360.png) bottom right no-repeat;
    border-top: 1px solid #80A2B4;
    font-size: 0.70em;
}

footer h4 {
    display: inline-block;
}

footer nav.footer {
    margin-top: 1em;
}

footer nav.footer ul {
    display: inline-block;
    margin: 0 3em 0.25em 0.25em;
    padding: 0;
    vertical-align: top;

    list-style: none;
}

footer li a {
    color: #333;
    text-decoration: none;
}

footer li a:hover {
    color: #555;
    text-decoration: underline;
}

footer small {
    float: right;
    margin: 1em;
}

/* iso 9001 mark */

.iso9001 {
    min-width: 175px;
}

.iso9001 img {
    margin: 4ex 50px;
}

/* media queries */


@media only screen {
    figure {
        max-width: 400px;
    }
}

@media only screen and (max-width: 1280px) {
    figure {
        max-width: 300px;
    }
}

@media only screen and (max-width: 800px) {
    #container {
        width: 100%;
    }

    header nav {
        width: 100%;
    }

    figure {
        max-width: 200px;
    }
}

@media only screen and (max-width: 480px) {
    .grid {
        display: block;
    }

    nav.sub ul {
        border-bottom: 1px solid #aaa;
    }

    header nav#main ul li {
        float: none;
    }

    header nav ul li a {
        transform: none;
    }

    header nav ul li:last-child a {
        margin-right: 5px;
    }

    header nav ul li a span {
        transform: none;
    }

    [class*='col-'] {
        padding: 0;
    }

    figure {
        display: inline-block !important;
        float: none !important;
        margin: 0 !important;
        max-width: none;
        width: calc(100% - 10px);
    }

    .grid.gallery figcaption {
        width: 100%;
    }

    .grid.spotlight.mleft {
        margin-left: 0;
    }

    .grid.spotlight figure {
        height: auto;
        width: auto;
    }

    .grid.spotlight figure img {
        margin-top: 0;
    }

    .none-360 {
        display: none;
    }

    .iso9001 img {
        margin: 4ex 0;
    }
}

img {
    max-width: 100%;
}

/* featherlight */
.featherlight .featherlight-content {
    border-bottom: none;
    padding: 0.25em;
}

.featherlight .featherlight-close-icon {
    background: white;
    top: 0.25em;
    right: 0.25em;
}
