/*! HTML5 Boilerplate v5.2.0 | 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 */

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

/* open-sans-italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/open-sans-v15-latin-italic.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Italic'), local('OpenSans-Italic'),
       url('../fonts/open-sans-v15-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/open-sans-v15-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/open-sans-v15-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/open-sans-v15-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/open-sans-v15-latin-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-700 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v15-latin-700.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Bold'), local('OpenSans-Bold'),
       url('../fonts/open-sans-v15-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/open-sans-v15-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/open-sans-v15-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/open-sans-v15-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/open-sans-v15-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* playfair-display-regular - latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/playfair-display-v13-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'),
       url('../fonts/playfair-display-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/playfair-display-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/playfair-display-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/playfair-display-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/playfair-display-v13-latin-regular.svg#PlayfairDisplay') format('svg'); /* Legacy iOS */
}

/* /FONTS */

* {
    margin: 0;
    padding: 0;
    border: 0;

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

html {
    color: #222;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    line-height: 1.5;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 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
   ========================================================================== */

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}
p.zusatz { font-style: italic; }

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }
button { font-size: 0.9em; }

nav a, footer a, a button { text-decoration: none; }
.logo { text-align: center; }

h2 + p.zusatz { margin-top: 0em; }
h1 + p, h1 + h3, h2 + h3, .klappbox + .klappbox, button { margin-top: 1em; }
p + p, p + ul, ul + p, ul + h2, p + h2, h2 + p, p + h3, dl + h3, p + dl, dl + p, h2 + dl, dl + h2, iframe, .leistungen, .team { margin-top: 1.5em; }

.wrap ul, .wrap ol { margin-left: 1em; }

h1, .infobox h2, .infobox small i, a, nav .current a { color: #C14712; } /* 100% Orange */
    section a:hover { color: #D17752; } /* 75% Orange */
nav a, footer a, a button { color: #FFF; }

nav, footer, button { background-color: #C14712; } /* 100% Orange */
    button:hover { background-color: #D17752; } /* 75% Orange */
    .klappbox-button, nav ul li a:hover { background-color: #e0a48b; } /* 50% Orange */
    .infobox small, .klappbox-button:hover, nav .current a { background-color: #efd2c5; } /* 25% Orange */
{ background-color: #FFD500; } /* 100% Gelb */
    .klappbox-button:hover { background-color: #ffea7f; } /* 50% Gelb */
    .klappbox-button, .box { background-color: #fff4bf; } /* 25% Gelb */
body { background-color: #EDEDED; }
.outer-wrap, .logo, .infobox { background-color: #fff; }

.facebook { background-color: #355089; }
.facebook:hover { background-color: #355089; opacity: 0.75; }

nav ul li a, .klappbox-button, button { transition: 0.5s; }

.outer-wrap {
    margin: 0 auto;
    max-width: 1190px;
}

.wrap {
    margin: 0 auto;
    width: 90%;
    max-width: 990px;
    position: relative;
}

nav, section { width: 100%; }

section { padding: 4em 0; }

img { max-width: 100%; }

nav {
    position: fixed;
    z-index: 10;
}

nav + * { padding-top: 4em; }

nav ul {
    float: right;
}

nav ul li {
    float: left;
    list-style: none;
}

nav ul li a {
    display: block;
    height: 4em;
    padding: 0 1.5em;
    line-height: 4em;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;

    width: 25.0909%;
    padding: 2em;

    -webkit-box-shadow: 0px 0px 7px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 7px -1px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 7px -1px rgba(0,0,0,0.5);
}

.intro {
    position: relative;
    width: 100%;
    height: 25em;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    z-index: 5;
}

#einleitung, #leistungen, #team, #kontakt, #impressum { background-image: url("../img/titelbild-einleitung.jpg"); }
/* #leistungen { background-image: url("../img/titelbild-leistungen.jpg"); }
#team { background-image: url("../img/titelbild-einleitung.jpg"); }
#kontakt, #impressum { background-image: url("../img/titelbild-kontakt.jpg"); } */

.infobox {
    padding: 1em 0 0;
    border-top: 4px solid #C14712;
    /* border-bottom: 4px solid #C14712; */
    width: 248px !important;
    z-index: 2;
}

.infobox small {
    display: block;
    padding: 0.5em 1em;
}

.infobox small i { margin-bottom: 0.25em; }

.infobox button {
    width: 100%;
    text-align: center;
}

dt { float: left; }

dl.telefon dt { width: 2.5em; }
dl.uhrzeit dt { width: 4.75em; }

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

.klappbox-button { padding-right: 2em; }

.klappbox-button i {
    position: absolute;
    top: 0.75em;
    right: 1em;
}

.klappbox-content {
    padding: 1em 1.5em;
    border: 4px solid #fff4bf;
}

.team {
	display: grid;
	grid-template-columns: 48% 48%;
	grid-gap: 1.5em;
}

.box:first-of-type { grid-column: 1 / span 2; }

.box { padding: 0.5em 1em; }

footer {
    padding: 1em 0;
    text-align: right;
}


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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * 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: 1100px) {

    .stickybox > div {
        position: relative !important;
        top: 0 !important;
    }

    .infobox {
        width: 100% !important;
    }

}

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

    .logo {
        width: 31.3333%;
        padding: 1.5em;
    }

}

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

    nav { position: relative; }
    nav + * { padding-top: 0; }

    .logo {
        width: 40%;
    }

    .intro { height: 20em; }

    .infobox { margin-top: 2em; }

}

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

    .logo {
        width: 47.5%;
    }

    .intro { height: 15em; }

    .infobox small { padding: 1em; }
    .infobox small .fa-5x { font-size: 3em; }

	.team { grid-template-columns: 100%; }
	.box:first-of-type { grid-column: auto; }

}

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

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

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

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