/*! 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
   ========================================================================== */

/* Fonts */

/* fira-sans-condensed-300 - latin */
@font-face { 
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/fira-sans-condensed-v2-latin-300.eot'); /* IE9 Compat Modes */
  src: local('Fira Sans Condensed Light'), local('FiraSansCondensed-Light'),
       url('../fonts/fira-sans-condensed-v2-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/fira-sans-condensed-v2-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/fira-sans-condensed-v2-latin-300.svg#FiraSansCondensed') format('svg'); /* Legacy iOS */
}

/* fira-sans-condensed-regular - latin */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fira-sans-condensed-v2-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Fira Sans Condensed Regular'), local('FiraSansCondensed-Regular'),
       url('../fonts/fira-sans-condensed-v2-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/fira-sans-condensed-v2-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/fira-sans-condensed-v2-latin-regular.svg#FiraSansCondensed') format('svg'); /* Legacy iOS */
}

/* fira-sans-condensed-600 - latin */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/fira-sans-condensed-v2-latin-600.eot'); /* IE9 Compat Modes */
  src: local('Fira Sans Condensed SemiBold'), local('FiraSansCondensed-SemiBold'),
       url('../fonts/fira-sans-condensed-v2-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/fira-sans-condensed-v2-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-600.woff') format('woff'), /* Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/fira-sans-condensed-v2-latin-600.svg#FiraSansCondensed') format('svg'); /* Legacy iOS */
}

/* fira-sans-condensed-900 - latin */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/fira-sans-condensed-v2-latin-900.eot'); /* IE9 Compat Modes */
  src: local('Fira Sans Condensed Black'), local('FiraSansCondensed-Black'),
       url('../fonts/fira-sans-condensed-v2-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/fira-sans-condensed-v2-latin-900.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-900.woff') format('woff'), /* Modern Browsers */
       url('../fonts/fira-sans-condensed-v2-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/fira-sans-condensed-v2-latin-900.svg#FiraSansCondensed') format('svg'); /* Legacy iOS */
}

/* /Fonts */

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    color: #222;
    font-size: 1.125em;
    font-weight: 400;
    line-height: 1.4;

    font-family: 'Fira Sans Condensed', sans-serif;
}

/*
 * 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
   ========================================================================== */

/* Schrift */

input, textarea { font-family: 'Fira Sans Condensed', sans-serif; }

h1 { font-size: 3.25em; line-height: 1.2; }
header h1, article h1 { font-size: 2.5em; }
h2 { font-size: 1.75em; }
h3, .titelgrafik li, nav li { font-size: 1.25em; }
input, textarea { font-size: 1em; }

h1 { font-weight: 900; }
strong, p a, .titelgrafik li, footer ul li { font-weight: 600; }
h3 { font-weight: 400; }
h2, nav li, footer ul ul li { font-weight: 300; }

.titelgrafik li { text-align: center; }
.quickinfo, footer .d3 { text-align: right; }

h1, h2, nav, .titelgrafik li { text-transform: uppercase; }
h1, h2, .titelgrafik li, nav li { letter-spacing: 0.025em; }
header a, .titelgrafik a, footer ul li a { text-decoration: none; }
footer ul li { list-style: none; }

/* Farben */

article h1, h3, a, nav a:hover, .titelgrafik li a, header h1 { color: #0076BE; } /* Blau */
h1, h2, header h3 a, nav a { color: #000; }
footer, footer h3, footer a, .titelgrafik li a:hover, .klappbox-button { color: #fff; }

footer, .klappbox-button { background-color: #0076BE; } /* Blau */
body, .box.muster li, .box.farbe, .klappbox-content { background-color: #D4E1F2; } /* Hellblau */
.outerwrapper { background-color: #fff; }

/* Abstände */

h1, h2, h3, p, ul { margin: 0; }

form + img, h3 + img { margin-top: 4em; }
p + h3, p + h2, form, .errors, .success, .aktuelles article + article { margin-top: 2em; }
p + p, p + ul, ul + p, p + img, h3 + p, img + h2, fieldset + fieldset, .klappbox, .klappbox + * { margin-top: 1em; }

h2 { margin-bottom: 0.75em; }

ul { padding-left: 1em; }

/* Grundgerüst */

.outerwrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.wrapper {
    margin: 0 auto;
    width: 90%;
    max-width: 990px;

    position: relative;
}

.innerwrapper {
    margin: 0 auto;
    width: 80%;
    max-width: 780px;

    padding: 3em 0;
}

header { padding: 2em 0; }

section {
    padding: 5em 0;

    background-image: url(../img/Weber-Gebaeudereinigung_Background-Verlauf.jpg);
    background-position: center top;
    background-repeat: repeat-x;

    position: relative;
    z-index: 2;
}
section.leistungen { padding-bottom: 0; }
section + section { border-top: 1px solid #0076BE; }

.verlauf {
    position: relative;
    z-index: 1;

    margin-top: -33.333333333em;
    height: 33.333333333em;

    background-image: url(../img/Weber-Gebaeudereinigung_Background-Verlauf.jpg);
    background-position: center top;
    background-repeat: repeat-x;

    -moz-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
    filter: FlipV;
    -ms-filter: "FlipV";
}

article { padding-top: 3em; }
.aktuelles article + article, article .wrapper img {
    padding-top: 2em;
    border-top: 1px solid #D4E1F2;
}

footer { padding: 2em 0; }

img { max-width: 100%; }
nav a, .titelgrafik li a { transition: 0.5s; }

.d1-d2, .d1, .d2, .d3 { float: left; }

.d1-d2 + .d3 { margin-left: 5%; }
.d1 + .d3 { margin-left: 40%; }

.d1-d2 { width: 65%; }
.d1, .d2, .d3 { width: 30%; }

/* Header */

.logo { width: 21.25%; }

.quickinfo {
    position: absolute;
    top: 0;
    right: 0;
    width: 78.75%;
}

nav {
    position: absolute;
    bottom: 0;
    right: 0;
}
nav li {
    display: block;
    float: left;
}
nav li + li { margin-left: 1.5em; }

.titelgrafik {
    height: 25em;
    position: relative;

    background-image: url(../img/Weber-Gebaeudereinigung_Header-Fotovoltaik.jpg);
    background-position: center bottom;
    background-size: cover;
}

.titelgrafik ul {
    width: 100%;
    padding-left: 0;

    position: absolute;
    bottom: 0;
    left: 0;
}
.titelgrafik li {
    display: block;
    float: left;
    width: 19.8%;
}
.titelgrafik li + li { margin-left: 0.25%; }

.titelgrafik li a {
    display: block;
    padding: 1em 0;

    background-color: rgba(255, 255, 255, 0.8);
}
.titelgrafik li a:hover { background-color: rgba(0, 118, 190, 1); }

/* Main */

.box.farbe { padding: 1.5em; }

.box.muster {
    background-image: url(../img/Weber-Gebaeudereinigung_Background-Muster_25P.png);
    background-position: top center;
    background-size: contain;
    background-repeat: repeat;
}
.box.muster ul { padding-left: 0; }
.box.muster li {
    display: block;
    float: left;

    padding: 0.25em 0.5em;
    margin: 0.25em 0.25em 0 0;
}

/* Formular */

label { display: block; }

label, input, textarea { width: 100%; }
input[type="checkbox"] { width: auto; }
input[name="Sicherheitsfrage"] { width: 25%; }

input, textarea { padding: 0.35em 0.5em 0.25em; }

.halb {
    width: 47.5%;
    float: left;
}
.halb + .halb { margin-left: 5%; }

.errors, .success {
    padding: 1em;
    border-width: 1px;
    border-style: solid;
}

.errors { border-color: red; }
.success { border-color: green; }

/* Klappboxen */

.klappbox-button {
	padding: 1em 1em 0.75em;
	cursor: pointer;
	position: relative;
}

.klappbox-button span {
	float: right;
}

.klappbox-content {	padding: 1em; }

/* ScrollToTop */

.scrolltotop {
	display: none;
	
	position: fixed;
	bottom: 2em;
	right: 2em;
	z-index: 5;
	
	background-color: #fff;
	border: 1px solid #D4E1F2;
}
.scrolltotop a {
	display: block;	
	padding: 0.55em 0.9em 0.7em; 
}

/* ==========================================================================
   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 (max-width: 875px) {

    .titelgrafik { height: auto; }
    .titelgrafik ul { position: relative; }
    .titelgrafik li {
        float: none;
        width: 29.25%;
    }
    .titelgrafik li + li {
        margin-left: 0;
        margin-top: 0.25%;
    }

    .t1, .t2 { width: 47.5%; }
    .d1 + .d3 { margin-left: 5%; }

    .halb { width: 100%; }
    .halb + .halb {
        margin-left: 0;
        margin-top: 1em;
    }

}

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

    nav li {
        font-size: 1em;
        font-weight: 400;
    }
    nav li + li { margin-left: 1.25em; }

    .logo { width: 30%; }

    .titelgrafik li { width: 37%; }

}

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

    header { padding: 1em 0; }

    .logo {
        width: 100%;
        margin: 2em 0;
    }
    .logo img { width: 50%; }

    .quickinfo, nav {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
    }
    header, .quickinfo { text-align: center; }

    nav ul { padding: 0; }
    nav li {
        float: none;
        display: inline;
    }

    .titelgrafik li { width: 50%; }

    .m {
        float: none;
        width: 100%;
    }
    .m + .m {
        margin-left: 0;
        margin-top: 2em;
    }

}

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

    footer .t1, footer .t2 { width: 100%; }
    footer .t1 + .t2 {
        margin-left: 0;
        margin-top: 2em;
    }
    footer ul { padding-left: 0; }
    footer, footer li { text-align: center; }

}

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