/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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

article > table {
    border-collapse: inherit;
    text-align: left;
    width: 100%;
}
article > table td {
    padding: .3em .6em .3em 0;
    border-top: 1px solid #aeaea2;
}
article > table th {
    padding-bottom: .4em;
}


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

/* ==================== Layout ==================== */

body, html  {
    margin: 0;
    padding: 0;
}

body > header {
    position: fixed;
    width: 40%;
    height: 100%;
    right: 0;
    top: 0;
    z-index: 100;
    background-color: rgba(256, 256, 256, 0.7); 
}
    .no-rgba body > header {
        background: transparent url(../img/bg-trans.png) repeat;
    }

body > aside {
    position: fixed;
    width: 40%;
    height: 38%;
    right: 0;
    bottom: 0;
    z-index: 101;
}

article > header,
article > h3,
article > p,
article > dl,
article > ul,
article > table {
    padding: 
        .4em
        calc(40% + 20px)
        .6em
        calc(50% - 465px);
    margin: 0;
}
    .no-csscalc article > header,
    .no-csscalc article > h3,
    .no-csscalc article > p,
    .no-csscalc article > dl,
    .no-csscalc article > ul {
        padding: .4em 40% .6em 10%;
        margin: 0;
    }

article > ul {
    padding: 
        .4em 
        calc(40% + 20px)
        .6em
        calc(50% - 450px);
}
    .no-csscalc article > ul {
        padding: .4em 40% .6em 12%;
    }

body > footer {
    position: fixed;
    width: 40%;
    height: auto;
    right: 0;
    bottom: 0;
    z-index: 101;
}

/* ===== unterstuetzung ===== */
#unterstuetzung h2,
nav a[href="#unterstuetzung"] {
    color: #ACCA57;
}
#unterstuetzung p,
nav a[href="#unterstuetzung"]:hover,
nav a[href="#unterstuetzung"].active {
    background-color: #ACCA57;
}
#unterstuetzung p {
    color: #566A2F;
}
#unterstuetzung h2 {
    padding: 460px 0 0 0;
    background: transparent url(../img/h2-unterstuetzung.jpg) top right no-repeat;
}

/* ===== gute-paedagogik ===== */
#gute-paedagogik h2,
nav a[href="#gute-paedagogik"] {
    color: #589CD0;
}
#gute-paedagogik p,
nav a[href="#gute-paedagogik"]:hover,
nav a[href="#gute-paedagogik"].active {
    background-color: #589CD0;
}
#gute-paedagogik p {
    color: #2D5676;
}
#gute-paedagogik h2 {
    padding: 410px 0 0 0;
    background: transparent url(../img/h2-gute-paedagogik.jpg) top right no-repeat;
}

/* ===== unsere-kinder ===== */
#unsere-kinder h2,
nav a[href="#unsere-kinder"] {
    color: #F6A800;
}
#unsere-kinder p,
#unsere-kinder ul,
nav a[href="#unsere-kinder"]:hover,
nav a[href="#unsere-kinder"].active {
    background-color: #F6A800;
}
#unsere-kinder p, 
#unsere-kinder ul {
    color: #663300;
}
#unsere-kinder h2 {
    padding: 265px 0 0 0;
    background: transparent url(../img/h2-unsere-kinder.jpg) top right no-repeat;
}

/* ===== wie-unterstuetzen ===== */
#wie-unterstuetzen h2,
nav a[href="#wie-unterstuetzen"] {
    color: #BE6A9F;
}
#wie-unterstuetzen p,
#wie-unterstuetzen ul,
#wie-unterstuetzen dl,
nav a[href="#wie-unterstuetzen"]:hover,
nav a[href="#wie-unterstuetzen"].active {
    background-color: #BE6A9F;
}
#wie-unterstuetzen p,
#wie-unterstuetzen ul,
#wie-unterstuetzen dl {
    color: #572B47;
}
#wie-unterstuetzen h2 {
    padding: 307px 0 0 0;
    background: transparent url(../img/h2-wie-unterstuetzen.jpg) top right no-repeat;
}

/* ===== ueber-uns ===== */
#ueber-uns h2,
nav a[href="#ueber-uns"] {
    color: #aeaea2;
}
#ueber-uns p,
nav a[href="#ueber-uns"]:hover,
nav a[href="#ueber-uns"].active {
    background-color: #aeaea2;
}
#ueber-uns p {
    color: #4d4d3b;
}
#ueber-uns h2 {
    padding: 360px 0 0 0;
    background: transparent url(../img/h2-ueber-uns.jpg) top right no-repeat;
}

/* ===== kontakt ===== */
#kontakt,
nav a[href="#kontakt"].active {
}
#kontakt h2,
#datenschutz h2,
#impressum h2 {
    padding: 30px 0 0 0;
    font-size: 24px;
}

article p.first,
article p.first em {
    color: #333;
}


/* ==================== Else ==================== */

/* paddings */
article {
}
article > header {
    padding-top: 0;
}
    .no-csscalc article > header {
        padding-top: 0;
    }
article > p.first {
    padding-top: 1.4em;
}
article > p:last-child {
    padding-bottom: 2em;
}
article h2 {
    margin: 0 -20px 0 0;
    padding: 0;
}
    .no-csscalc article h2 {
        margin: 0;
    }
article > h3 {
    padding-bottom: 0;
}
article > h3 + p {
    padding-top: 0;
}
article > ul ul {
    margin: 0 0 0.5em;
}
article > ul > li > ul {
    margin-top: 0.1em;
}
article > ul li ul li ul {
    margin: 0 0 0.5em;
}
article img {
    margin-right: 20px;
}
aside h1,
aside p {
    margin: 0;
    padding: 0 0 2% 3%;
}

/* fonts */
body {
    font-family: 'Droid Serif', serif;
    font-size: 16px;
}
article h2 {
    font-size: 32px;
    font-weight: normal;
}
article > h3 {
    font-size: 1em;
}
article > p.first,
article > p.first em {
    font-size: 18px;
    font-style: normal;
}
aside h1 a,
aside p a {
    font-size: 16px;
    color: #FFF;
    text-decoration: none;
    font-weight: normal;
}
aside p a {
    font-size: 16px;
    color: #BE6A9F;
}


/* nav */
nav ul {
    padding-left: 0;
}
nav a,
header h1 {
    display: block;
    font-size: 16px;
    width: 94%;
    padding: 2% 3%;
    background-color: #FFF;
    text-decoration: none;
}
nav a:hover,
nav a.active {
    color: #FFF;
}

footer > nav ul {
    margin: 0 0 2% 3%;
}
footer > nav ul li {
    display: inline-block;
}
footer > nav a {
    width: auto;
    display: inline-block;
    font-size: 16px;
    color: #AEAEA2;
    background-color: transparent;
}
    .no-csscalc footer > nav a  {
        margin-right: 10px;
    }
footer > nav a:hover,
footer > nav a.active {
    color: #000;
}

/* header */
header h1 {
    margin-top: 40px;
    margin-left: 24px;
    height: 69px;
    overflow: hidden;
    text-indent: -10000px;
    background: transparent url(../img/klax-gesellschaft-logo.png) 3% 2% no-repeat;
}

/*  dimmed paragraph with disabled links  */
p.dimmed,
p.dimmed a {
    color: #c1c1bf;
    text-decoration: none;
}
p.dimmed em {
    font-style: normal;
}
p.dimmed a {
  pointer-events: none;
  cursor: default;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media only screen and (min-width: 1281px) {
    body {
        font-size: 18px;
    }
    article > p.first,
    article > p.first em {
        font-size: 20px;
    }
    aside h1 a,
    aside p a {
        font-size: 18px;
    }
    article h2 {
        font-size: 40px;
    }
    nav a, header h1 {
        font-size: 22px;
    }
}



@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {

}

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

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@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;
    }
}