/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}


html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/*###############################################################################################*/
/*###############################################################################################*/
/*###############################################################################################*/
/*###############################################################################################*/
/*###############################################################################################*/
/*###############################################################################################*/
/*###############################################################################################*/

/*
 * create nice tooltips
 */

/*disable tooltip for touch devices*/
.touch a[data-tooltip]:hover:after {
    display: none;
}

/*necessary for tooltip*/
a:hover {
    position: relative;
}

/*tooltip itself*/
a[data-tooltip]:hover:after {
    text-shadow: none;
    font-weight: normal;

    content: attr(data-tooltip);
    padding: 2px 5px;
    color: #3F3F3F;
    position: absolute;
    left: -10px;
    top: 30px;
    white-space: nowrap;

    -moz-box-shadow: 5px 5px 5px #888;
    -webkit-box-shadow: 5px 5px 5px #888;
    box-shadow: 5px 5px 5px #888;
    border: solid 1px #000000;
}

/*adapt selection for Safari >=1.1, Opera >=9.5, IE9*/
*::selection {
    background: #F2F2F2;
}

/*adapt select for Firefox >=1*/
*::-moz-selection {
    background: #F2F2F2;
}

@media all {

    /*no JavaScript*/
    .boldUnderline {
        font-weight: bold;
        text-decoration: underline;
        font-size: 1.1em;
        color: red;
    }

    .no-js #basicInformation,
    .lt-ie9 #basicInformation {
        color: #3F3F3F;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .no-js nav,
    .lt-ie9 nav {
        display: none;
    }

    .no-js #noImpressum,
    .lt-ie9 #noImpressum {
        display: none;
    }

    .no-js .person, .office, .service .no-js .contact, .no-js #taskAreaDescription, #personDescription, #officeDescription, #contactDescription, #serviceDescription,.no-js .impressum .jobs,
    .lt-ie9 .person, .office, .service, .lt-ie9 .contact, .lt-ie9 #taskAreaDescription, #officeDescription, #personDescription, #contactDescription, #serviceDescription, .lt-ie9 .impressum {
        display: block;
        margin-left: 230px;
    }

    .no-js #map-inline,
    .lt-ie9 #map-inline, .lt-ie9 .idArrow {
        display: none;
    }

    /*JavaScript ACTIVATED*/
    .js #basicInformation {
        display: none;
    }

    /* ##### define language setting ##### */
    body.de :lang(en), body.de :lang(pl), body.de :lang(fr) {
        display: none;
    }

    body.en :lang(de), body.en :lang(pl), body.en :lang(fr) {
        display: none;
    }

    body.fr :lang(de), body.fr :lang(pl), body.fr :lang(en) {
        display: none;
    }

    body.pl :lang(de), body.pl :lang(en), body.pl :lang(fr) {
        display: none;
    }

    /*remove dotted outline*/
    a:focus {
        outline: none;
    }

    body {
        background-color: #F2F2F2;

        color: #3F3F3F;
        font-family: "Lucida Grande", "Verdana", "Arial", sans-serif;
    }

    /*all links*/
    a {
        text-decoration: none;
        color: #3F3F3F;
        font-weight: bold;
    }

    /*hover shaddow*/
    a:hover {
        text-shadow: 3px 2px 0.4em #0F62A8, 0 0 0.2em #00A0D6;
        color: #000000;
    }

    /*decrease superior*/
    sup {
        font-size: 0.6em;
    }

    #idImpressum {
        font-family: "Lucida Grande", "Verdana", "Arial", sans-serif;
    }

    /*heading*/
    h1 {
        background: transparent;
        word-wrap: break-word;
        margin: 0 0 0 0;
        padding: 0 0 0 0;

        margin-left: 30px;
        margin-right: 30px;
        font-size: 1.5em;
        font-weight: normal;
        letter-spacing: 0.15em;
        padding-bottom: 10px;

        color: #000000;
        text-shadow: 3px 2px 0.3em #0F62A8, 0 0 0.2em #00A0D6;

        text-align: left;

    }

    /*all list blocks*/
    ul {
        padding: 0;
        margin: 0;
    }

    /*written text*/
    p {
        font-size: 1.02em;
        word-wrap: break-word;

        font-family: Georgia, Palatino, "Times New Roman", serif;
        line-height: 1.7;
        letter-spacing: 0.03em;
    }

    /*no automatic link (for iOS - tel nr)*/
    #noLink {
        text-shadow: none;
        text-decoration: none;
        color: #3F3F3F;
        font-weight: normal;
    }

    /*container block*/
    #container {
        font-size: 1.0em;
        background-color: #FFFFFF;
        border: 1px solid black;
        box-shadow: 10px 10px 5px #888;
        -moz-box-shadow: 10px 10px 5px #888;
        -webkit-box-shadow: 10px 10px 5px #888;

        width: 90%;

        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;

        min-height: 500px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /*main block*/
    #main {
    }

    /*language change entries*/
    #langChange li {
        display: inline;
        margin-left: 1px;
        margin-right: 1px;
        font-size: 1.1em;
    }

    /*language change box*/
    #leftColumn {
        float: left;
    }

    /*big image left*/
    #imageLeft {
        margin-left: 0;
        margin-right: 0;

        padding-left: 10px;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    /*language change box*/
    #langChange {
        text-align: center;
    }

    /*header image*/
    header img {
        max-width: 100%;
    }

    /*hint for other languages*/
    .idHint {
        float: right;
        margin-right: -10px;
        margin-top: -20px;
    }

    /*hint for other languages - no JavaScript*/
    .idHintAlt {
        display: none;
    }

    /*header*/
    header {
        padding-left: 50px;
        padding-right: 10px;
        padding-top: 20px;
        padding-bottom: 15px;

    }

    /*main navigation*/
    nav {
        float: left;
        width: 230px;
        padding-top: 50px;
    }

    /*main navigation list*/
    nav ul {
        margin-left: 0;
        margin-right: 0;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /*main menu block*/
    nav ul li {
        margin-bottom: 35px;
    }

    /*sub menu block*/
    nav ul ul {
        padding-left: 25px;
        padding-top: 10px;
        word-wrap: break-word;

        font-weight: normal;
    }

    /*sub menu intendation*/
    nav ul ul li {
        margin-bottom: 10px;
    }

    /*main menu*/
    nav ul li a {
        font-size: 1.2em;
        font-weight: normal;
        letter-spacing: 0.15em;
    }

    /*sub menu*/
    nav ul li ul li a {
        font-weight: normal;
        font-size: 0.95em;
        letter-spacing: 0.09em;
    }

    /*text block on the right*/
    #taskAreaDescription, #personDescription, #contactDescription, #officeDescription, #serviceDescription, .service, .contact, .office, .person, .impressum, .jobs {
        margin-left: 470px;
        text-align: justify;
        padding-left: 20px;
        padding-right: 50px;
        padding-bottom: 10px;
        padding-top: 20px;
    }

    /*do not display at startup*/
    .impressum, .jobs, .taskAreas, .person, .office, .service, .contact, contactForm, #taskAreaDescription, #officeDescription, #personDescription, #contactDescription, #serviceDescription{
        display: none;
    }

    /*do not display at startup*/
    #map-canvas {
        display: none;
    }

    /*footer*/
    footer {
        clear: both;
        font-size: 0.9em;
        text-align: center;
        padding-bottom: 3px;
        padding-top: 3px;
    }
}

/*impressum table*/
#tableImpressum {
    word-wrap: break-word;
    overflow: scroll;
}

/*impressum general*/
.impressum p {
    font-size: 0.9em;
}

/*impressum table*/
#tableImpressum td {
    font-size: 0.9em;
    text-align: left;
    vertical-align: top;
    padding-left: 0;
    padding-right: 20px;
}

/*telephone symbol*/
#idTel {
    margin-bottom: 3px;
    margin-top: 0;
    margin-left: 0;
    margin-right: 2px;
}

/*fax symbol*/
#idFax {
    margin-bottom: 3px;
    margin-top: 0;
    margin-left: 2px;
    margin-right: 4px;
}

/*email symbol*/
#idEMail {
    margin-bottom: 3px;
    margin-top: 0;
    margin-left: 1px;
    margin-right: 1px;
    font-weight: bold;
}

/*www symbol*/
#idWWW {
    margin-bottom: 3px;
    margin-top: 0;
    margin-left: 3px;
    margin-right: 2px;
}

/*arrow symbol*/
.idArrow {
    margin-left: 25px;
    margin-right: 5px;
    font-weight: bold;
}

/*contact general*/
.contact p {
    margin-bottom: 0.7em;
    margin-top: 0.1em;
}

/*google maps canvas*/
#map-canvas {
    float: left;
    width: 100%;
    height: 400px;
    margin-bottom: 10px;
}

/*google maps description*/
#tagDesc b {
    font-weight: bold;
}

/*google maps description*/
#tagDesc {
    font-size: 0.8em;
    height: 55px;
    width: 200px;
}

/* ********************************************************************************* */
/* ********************************************************************************* */
@media screen and (max-width: 1100px) {

    /*change impressum style*/
    .impressum {
        float: none;
        clear: both;
        margin-left: 0;
    }

}

@media screen and (max-width: 950px) {

    /*change heading style*/
    h1 {
        margin-left: 10px;
        margin-right: 10px;
    }

}

@media screen and (max-width: 900px) {
    /*change design */
    .person, .service, .office, .contact, #taskAreaDescription, #personDescription, officeDescription, #contactDescription, #serviceDescription,
    .no-js .person, .no-js .contact, .no-js #taskAreaDescription, #personDescription, #contactDescription, .no-js .impressum .jobs {
        float: none;
        clear: both;
        margin-left: 0;

        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        margin-left: 10px;
        margin-right: 10px;
    }

    .no-js #leftColumn {
        float: none;
        text-align: center;
    }
}

@media screen and (max-width: 630px) {
    /*other hints for different languages*/
    .idHint {
        display: none;
    }

    .idHintAlt {
        display: block;
        text-align: center;
        font-weight: bold;
        font-style: italic;
        font-size: 1.1em;
    }

}

/*----- SCREEN maximal 480px -----*/
/*960px*/
@media screen and (max-width: 510px) {
    /*change design*/
    .no-js #basicInformation,
    .lt-ie9 #basicInformation {
        font-size: 0.8em;
    }

    td:nth-of-type(odd) {
        font-weight: bold;
    }

    td:nth-of-type(even) {
        margin-left: 10px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    #container {
        border: 1px solid black;
        box-shadow: none;
        width: 98%;

        margin-top: 3px;
        margin-bottom: 3px;

        min-height: 0;

    }

    #imageLeft {
        display: none;
    }

    header {
        text-align: center;
        padding: 6px;

    }

    #leftColumn {
        float: none;
    }

    nav {
        float: none;
        text-align: center;
        width: 100%;
        padding-top: 10px;

    }

    .person, .office, .service, .contact, #serviceDescription, #officeDescription, #taskAreaDescription, #personDescription, #contactDescription, .impressum .jobs {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    #map-inline {
        display: none;
    }

    #langChange {
    }
}
