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

/* General */

body {
    color: #222222;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.3em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

.hidden {
    display: block;
}

/* Links */

a, a:link, a:active, a:visited {
    color: #b2b2b2;
    text-decoration: none;
}
a:hover, a:focus, 
h1 a, h1 a:link, h1 a:active, h1 a:visited,
aside p a, aside p a:link, aside p a:active, aside p a:visited {
    color: #222222;
    text-decoration: none;    
}

/* Fonts */

h1, nav a, #close, .close, h3 {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3em;
    margin: 0px;
    padding: 0px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h2, .news p, p.date {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.3em;
    margin: 0px;
    padding: 0px;
    text-align: left;
}

h3 {
	margin: 4px 0px 12px;
}

.pagination {
    float: right;
    text-align: right;
}


/* Container */

#container {
    margin: 30px 30px;
}

/* Header */

header {
    margin: 10px 0px 60px 0px;
    position: fixed;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

nav ul {
    margin: 0px;
    padding: 0px;
}

/* Popup Info */

#info, #news, .overlay {
    background-color: rgb(120,150,153);
    left: 0px;
    margin: 0px;
    opacity: 0.98;
    padding: 0px 0px 60px 0px;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1000;
}

#news, #pp {
    position: absolute;
}

#pp p {
	margin-bottom: 6px;
}
    
#close, .close {
    color: #b2b2b2;
    display: block;
    margin: 30px 0px 0px;
    padding: 30px 0px 0px 30px;
}

#info h1,
#news h1,
.overlay h1 {
    display: none;
    padding: 20px 0px 20px 30px;
}

.overlay h1.display {
	display: block;
}

aside { 
    padding: 0px 30px;
}

aside > div {
    float: left;
    margin: 20px 30px 30px 0px;
    width: 300px;
}

aside.news > div {
    float: left;
    margin: 20px 30px 30px 0px;
    width: 400px;
}

aside.news > div > section {
	margin: 0 0 30px 0;
}

aside div:last-child {
    margin-right: 0px;
}

/* Content */

article {
    padding-top: 120px;
    text-align: center;
}

section {
    display: inline-block;
    margin: 0px 18px;
}

div.previous {
    /* background: rgba(255,0,0,0.3); */
    cursor: url('../img/control-prev.png'), w-resize;  
    height: 100%;
    position: absolute;
    width: 50%;
    z-index: 800;
}

figure {
    overflow: hidden;
}

figure div.image, figure div.text {
    background: white;
    cursor: url('../img/control-next.png'), e-resize;
    width: 100%;
}

figure div.image {
    display: table-cell;
    text-align: left;
    vertical-align: bottom;
}

figure div.image, div.text {
    display: none;
}

figure div.text p {
    margin: 0px;
    padding: 0px;  
    text-align: left;    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

figcaption {
    font-size: 12px;
    height: 30px;
    line-height: 1.3em;
    margin: 3px 0px;
    text-align: left;
    visibility: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

figcaption p {
    font-size: 12px;
    line-height: 1.3em;
    margin: 0px;
    padding: 0px;  
    text-align: left;  
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

section:hover figcaption {
    visibility: visible;
}

.news .image {
	margin: 12px 0;
}

/* Footer */

footer {
    
}

/* Große Monitore */
@media only screen and (max-width: 1348px) {
    body {
    /*    border: 1px solid red;*/
    }
	aside div {
        line-height: 1.3em;
        margin: 10px 30px 30px 0px;
        width: 38%;
	}
	aside div:nth-child(2), aside div:nth-child(4) {
        margin-right: 0px;    	
	}
	aside div:nth-child(3) {
    	clear: both;
	}
	/*aside div p {
    	font-size: 14px;
    	line-height: 1.3em;
	}
	figure div.text p {
        font-size: 14px;
        line-height: 1.3em;
	}*/
}

@media only screen and (max-width: 1040px) {
	aside div {
        width: 45%;
	}
}

/* Smartphones */
@media only screen and (max-width: 680px) {
    body {
    /*    border: 1px solid green;*/
    }
    #info, #news, .overlay {
        left: 0px;
        margin: 0px;
        padding: 0px 0px 30px 0px;
        position: absolute;
        top: 0px;
        width: 100%;
    }
    #info h1,
    #news h1,
    .overlay h1 {
        padding-bottom: 13px;
    }
	aside div {
        margin-bottom: 0px;
    	margin-right: 0px; 
        width: 90%;
	}
	aside div p {
        font-size: 12px;
        line-height: 1.3em;
	}
    figcaption {
        height: 45px;
        margin: 3px 0px;
        visibility: hidden;
    }
	figure div.text p {
/*        font-size: 12px;
        line-height: 1.3em;*/
        font-size: 10px;
        line-height: 1.1em;

	}
}

/* Smartphones */
@media only screen and (max-width: 480px) {
	
	#close, .close {
        padding-top: 0px;
	}

	aside.news > div {
	    float: left;
	    margin: 20px 30px 30px 0px;
	    width: 84vw;
	}
	
	aside.news .image {
	    width: 84vw;
	}

	aside.news .image img {
	    width: 100%;
	    height: inherit;
	}

}

/* Smartphones */
@media only screen and (max-width: 380px) {
    
    #container {
        margin: 20px 20px;
    }
    section {
        display: inline-block;
        margin: 0px;
    }
    aside { 
        padding: 0px 20px;
    }
    #close, .close {
        margin-top: 30px;
        padding-left: 20px;
    }
    figcaption {
        height: 30px;
    }
}


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