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

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

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


html	{box-sizing: border-box;}
*, *:before, *:after {box-sizing: inherit;}

body {font-family: 'Neue Frutiger W01', sans-serif; font-weight: 200; min-width: 768px;}
.inner {width: 65%; margin: 0 auto; max-width: 1000px;}


body {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}

main {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}






header {background: url(../img/header/home.jpg); height: 400px; background-position: 0 100px; background-size: cover; background-repeat: no-repeat;}
.agenda header {background-image: url(../img/header/agenda.jpg);}




.main {display: table; width: 96%; height: 100px; margin: 0 auto;}
.logo {display: table-cell; vertical-align: middle; width: 30%; max-height: 100px;}
.main  ul {display: table-cell; vertical-align: middle; width: 70%; text-align: right; font-weight: 600;}
.logo img {width: 100%;}

nav ul {list-style: none; padding: 0; margin: 0;}
nav a {text-decoration: none; color: #222;}
nav.main li {display: inline-block; padding: 0 1% 0 0; line-height: 1;}
nav.main li:last-child {padding-right: 0;}

.home .home,
.agenda .agenda {color: #c22f16;}



.title {display: block; color: white; font-weight: 700; font-size: 300%; line-height: 1.1; margin-top: 2.5rem; padding: 0;}



/* main */
.tiles {margin: 40px auto; max-width: 35em;}


table {width: 100%; margin-bottom: 4rem;}
th {font-weight: 700;}
th, td {text-align: left; padding: 0.25rem 0 0.5rem 0; vertical-align: top; white-space: nowrap; padding-right: 0.8rem; border-bottom: 1px solid #ccc;}
.wrap {white-space: normal;}
.red {color: #c22f16;}
td:last-child {padding-right: 0;}



/* news */
.news {border-top: 1px solid #cacac6; width: auto; margin-bottom: 4rem;}
.news img {display: block; width: 26%; float: left;}
.news .text {margin-left: 30%;}
.news .date-tags {font-size: 80%; margin-top: 0.25em;}
.news h3 {font-weight: 500; margin-bottom: 0; margin-top: 0.4rem;}
.news p {margin-top: 0;}
a.more {background: #c22f16; color: white; display: inline-block; line-height: 1; padding: 0.4rem 1.2rem; text-decoration: none; border-radius: 0.3rem;}
a.more:hover {background: green;}





#wetter {background: url(../img/wetter.jpg); background-size: cover; padding: 5rem 5rem 5rem 5rem; width: 100%; margin-top: 10rem;}
#wetter img {width: 100%;}


h1, h2, h3 {font-weight: 500;}


/*

	


	.logo {height: 100px; padding: 1rem 0; border: 1px solid red;}


header .title {font-size: 150%; font-weight: 400;}

*/

	footer {background: #cacac6; padding: 2rem; margin-top: 4rem;}

/*

	.tiles li {float: left; display: block; width: 33%;}
	.tiles img {max-width: 100%;}



.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: stretch;
    align-items: flex-start;
    }

.flex-item {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
	 padding: 0 1em;
    }



.flex-item:nth-child(1) {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
    }

.flex-item:nth-child(2) {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
    }

.flex-item:nth-child(3) {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
    }
*/





/* Icon font */
@font-face {
    font-family: 'icomoon';
    src:    url('../fonts/icomoon.eot?6lx8ef');
    src:    url('../fonts/icomoon.eot?6lx8ef#iefix') format('embedded-opentype'),
        url('../fonts/icomoon.ttf?6lx8ef') format('truetype'),
        url('../fonts/icomoon.woff?6lx8ef') format('woff'),
        url('../fonts/icomoon.svg?6lx8ef#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-arrow-right:before {
    content: "\e900";
}





/* ==========================================================================
   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 (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        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;
    }
}
