/*
 * HTML5 Boilerplate
 *
 * 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: #000;
}

body {
    font-size: 10px;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

html, body {
  background-color: #fff;
  margin: 0;
  padding: 0;
}

body {
  font-size: 12px;
  font-family: Verdana, 'Sans';
}

body blue {
  color: #005ba9;
}

a, a:link, a:active, a:visited {
  color: #ca070b;
}

a:hover {
  color: #666;
}

h1 {
  color: #005ba9;
  font-size: 20px;
  margin-top: 0px;
  margin-bottom: 25px;
}

h2 {
  color: #7e858f;
  font-size: 12px;
  margin: 30px 0 10px 0;
}

:lang(de)    { quotes:"\201E" "\201D" "\201A" "\2018"; }
:lang(de-DE) { quotes:"\00BB" "\00AB" "\203A" "\2039"; }
:lang(de-CH) { quotes:"\00AB" "\00BB" "\2039" "\203A"; }
:lang(en)    { quotes:"\201C" "\201D" "\2018" "\2019"; }
:lang(fr)    { quotes:"\00AB\00A0" "\00A0\00BB" "\2039\00A0" "\00A0\203A"; }

blockquote {
  font-style: italic;
}

blockquote p:before { content:open-quote; }
blockquote p:after { content:close-quote; }

div#wrapper {
  width: 960px;
  padding: 0;
  margin: 0 auto;
}

header {
  width: 750px;
  height: 89px;
  padding: 32px 0 48px 210px;
}
/*
header img {
  float: left;
}
*/
nav#main {
  float: left;
  width: 200px;
  padding: 0 10px 0 0;
}

nav#main ul {
  width: 200px;
  margin: 0;
  padding: 0;
}

nav#main ul li {
  margin: 0 0 3px 0;
  padding: 0;
  list-style: none;
}

nav#main ul li a {
  display: block;
  width: 164px;
  height: 54px;
  margin: 0;
  padding: 0 18px;
  text-indent: -9999px;
  color: #7e858f;
}

/* deutsch */

nav#main ul li a.home_de {
  background-image: url(../images/buttons/inaktiv/01_navi_button_inaktiv_de.jpg);
}

nav#main ul li a.unternehmen_de {
  background-image: url(../images/buttons/inaktiv/02_navi_button_inaktiv_de.jpg);
}

nav#main ul li a.leistungen_de {
  background-image: url(../images/buttons/inaktiv/03_navi_button_inaktiv_de.jpg);
}

nav#main ul li a.routen_de {
  background-image: url(../images/buttons/inaktiv/04_navi_button_inaktiv_de.jpg);
}

nav#main ul li a.home_de:hover {
  background-image: url(../images/buttons/rollover/01_navi_button_rollover_de.jpg);
}

nav#main ul li a.unternehmen_de:hover {
  background-image: url(../images/buttons/rollover/02_navi_button_rollover_de.jpg);
}

nav#main ul li a.leistungen_de:hover {
  background-image: url(../images/buttons/rollover/03_navi_button_rollover_de.jpg);
}

nav#main ul li a.routen_de:hover {
  background-image: url(../images/buttons/rollover/04_navi_button_rollover_de.jpg);
}

nav#main ul li a.home_de.active {
  background-image: url(../images/buttons/aktiv/01_navi_button_aktiv_de.jpg);
}

nav#main ul li a.unternehmen_de.active {
  background-image: url(../images/buttons/aktiv/02_navi_button_aktiv_de.jpg);
}

nav#main ul li a.leistungen_de.active {
  background-image: url(../images/buttons/aktiv/03_navi_button_aktiv_de.jpg);
}

nav#main ul li a.routen_de.active {
  background-image: url(../images/buttons/aktiv/04_navi_button_aktiv_de.jpg);
}

/* english */

nav#main ul li a.home_en {
  background-image: url(../images/buttons/inaktiv/01_navi_button_inaktiv_en.jpg);
}

nav#main ul li a.unternehmen_en {
  background-image: url(../images/buttons/inaktiv/02_navi_button_inaktiv_en.jpg);
}

nav#main ul li a.leistungen_en {
  background-image: url(../images/buttons/inaktiv/03_navi_button_inaktiv_en.jpg);
}

nav#main ul li a.routen_en {
  background-image: url(../images/buttons/inaktiv/04_navi_button_inaktiv_en.jpg);
}

nav#main ul li a.home_en:hover {
  background-image: url(../images/buttons/rollover/01_navi_button_rollover_en.jpg);
}

nav#main ul li a.unternehmen_en:hover {
  background-image: url(../images/buttons/rollover/02_navi_button_rollover_en.jpg);
}

nav#main ul li a.leistungen_en:hover {
  background-image: url(../images/buttons/rollover/03_navi_button_rollover_en.jpg);
}

nav#main ul li a.routen_en:hover {
  background-image: url(../images/buttons/rollover/04_navi_button_rollover_en.jpg);
}

nav#main ul li a.home_en.active {
  background-image: url(../images/buttons/aktiv/01_navi_button_aktiv_en.jpg);
}

nav#main ul li a.unternehmen_en.active {
  background-image: url(../images/buttons/aktiv/02_navi_button_aktiv_en.jpg);
}

nav#main ul li a.leistungen_en.active {
  background-image: url(../images/buttons/aktiv/03_navi_button_aktiv_en.jpg);
}

nav#main ul li a.routen_en.active {
  background-image: url(../images/buttons/aktiv/04_navi_button_aktiv_en.jpg);
}

/* espanol */
nav#main ul li a.home_es {
  background-image: url(../images/buttons/inaktiv/01_navi_button_inaktiv_es.jpg);
}

nav#main ul li a.unternehmen_es {
  background-image: url(../images/buttons/inaktiv/02_navi_button_inaktiv_es.jpg);
}

nav#main ul li a.leistungen_es {
  background-image: url(../images/buttons/inaktiv/03_navi_button_inaktiv_es.jpg);
}

nav#main ul li a.routen_es {
  background-image: url(../images/buttons/inaktiv/04_navi_button_inaktiv_es.jpg);
}

nav#main ul li a.home_es:hover {
  background-image: url(../images/buttons/rollover/01_navi_button_rollover_es.jpg);
}

nav#main ul li a.unternehmen_es:hover {
  background-image: url(../images/buttons/rollover/02_navi_button_rollover_es.jpg);
}

nav#main ul li a.leistungen_es:hover {
  background-image: url(../images/buttons/rollover/03_navi_button_rollover_es.jpg);
}

nav#main ul li a.routen_es:hover {
  background-image: url(../images/buttons/rollover/04_navi_button_rollover_es.jpg);
}

nav#main ul li a.home_es.active {
  background-image: url(../images/buttons/aktiv/01_navi_button_aktiv_es.jpg);
}

nav#main ul li a.unternehmen_es.active {
  background-image: url(../images/buttons/aktiv/02_navi_button_aktiv_es.jpg);
}

nav#main ul li a.leistungen_es.active {
  background-image: url(../images/buttons/aktiv/03_navi_button_aktiv_es.jpg);
}

nav#main ul li a.routen_es.active {
  background-image: url(../images/buttons/aktiv/04_navi_button_aktiv_es.jpg);
}

nav#main ul ul {
  margin: 3px 0 0 0;
}

nav#main li li {
  display: table;
  height: 54px;
  margin: 0;
  padding: 0;
  background-color: #edf1fa;
}

nav#main li li a {
  display: table-cell;
  text-indent: 0;
  text-align: right;
  height: 30px;
  vertical-align: middle;
  text-decoration: none;
}

nav#main li li a:hover, nav#main li li a.active {
  color: #ca070b;
}

nav#main li li a {
  display: table-cell;
  text-indent: 0;
  text-align: right;
  height: 30px;
  vertical-align: middle;
  text-decoration: none;
}

div#content {
  float: left;
  width: 700px;
  margin: 0px 0px 50px 50px;
  padding: 0;
}

div#content header {
  width: auto;
  height: auto;
  padding: 0;
}

div#content section {
  margin: 0px 0px 0 0;
  padding: 0;
}

div#content section .mitarbeiter {
  margin: 59px 0;
}

div#content section .mitarbeiter img {
  float: left;
  margin-right: 10px;
}

footer {
  width: 960px;
  height: 50px;
  border-top: 1px solid #e5e6eb;
}

footer nav {
  float: left;
  width: 410px;
  height: 41px;
  padding: 10px 0 0 0;
  margin: 0;
  font-size: 10px;
}

footer nav a, footer nav a:link, footer nav a:active, footer nav a:visited {
  color: #808589;
  text-decoration: none;
  margin: 0;
}

footer nav a:hover {
  text-decoration: underline;
}

footer nav a.active {
  color: #ca070b;
}


/* ==========================================================================
   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.
   Theses 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;
    }
}