/* Stylesheet für Selfhtml Design 01
  responsives Layout mit Flexbox ab Z. 247 */

/* ====================================================  GLOBAL DEFINITION  ==================================================== */

/* alternatives Boxmodell */

*, ::before, ::after {
    box-sizing: border-box;
}

body {
    max-width: 65em;
    margin: 0 auto;
    padding: 0 1em;
    font: normal 1em Arial, sans-serif;
    color: black; /* wird als currentColor für die Akzentfarbe verwendet. */
    background-color: #ffffff;
}

p, ol, ul, dl {color: black;}

/* ====================================================  HEADER  ==================================================== */

header {
    margin: 0;
    padding: 0.5em;
    background-color: white;
}

header a {
    height: 2em;
    background: white;
    text-decoration: none;
    border: 1px solid transparent;
}
header h1{
    margin:0;
    font-variant: small-caps;
}

header p {
    font-variant: small-caps;
    font-size: 1.2em;
    white-space: nowrap;
}

header span {
    font-weight: bold;
}

.akzentfarbe1 {
    color:firebrick;
}

.akzentfarbe2 {
    color: purple;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
    color: currentColor;
}

h3 {
    color: #999;
}

a {
    color: currentColor;
    font-weight: bold;
}
a:hover, a:focus {
    color: #000;
}

a:focus,
a:hover {
    background-color:#d89090;
}

a.more {
    float: right;
}
a.more::before {
    content: url('../img/more.svg');
    margin-right: .5em;
}
a.more:hover, a.more:focus {
    color: black;
}
a.more:hover::before, a.more:focus::before {
    color: white;
}

h2.img {
    padding-left: 2.5em;
}

div.banner {
    height: 200px;
    background: url('../img/startseite-collage-mobile2.png') left no-repeat;
}

.img.about {
    background: url('../img/about.svg') left no-repeat;
    background-size: 1.5em;
}

.img.gruppe {
    background: url('../img/about.svg') left no-repeat;
    background-size: 1.5em;

}
.img.group {
    background: url('../img/about.svg') left no-repeat;
    background-size: 2.5em;
}

img, a img {
    border: 0 none;
}

article > h2 {
    clear: both;
}
article > h2 + p > img {
    width: 33%;
    float: left;
    margin: .15em 1.5em 1.5em 0;
}
article > h2:nth-of-type(odd) + p > img {
    float: right;
    margin: .15em 0 1.5em 1.5em;
}

dl {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 1em 2em;
    margin-bottom: 3em;
}
dl > * {
    margin: 0;
    padding: 0;
}
dt {
    font-weight: bold;
}
dt::after {
    content: ":";
}

.news {
    background: no-repeat top .5em right .5em #f1f2f4;
    padding: 0 1em 1em;
}

.news h3 {
    color: #666;
}

/*.news.consultation {
  background-image: url('../img/phone.svg');
}
.news.info {
  background-image: url('../img/letter.svg');
}
*/
aside ul,
.news ul {
    margin: 2em 0;
    padding: 0;
    color: firebrick;
    list-style-position: inside;
}
aside li,
.news li {
    font-weight: bold;
    padding: .5em 0;
}
.news li span {
    color: darkslategrey;
}
aside ul {
    color: darkslategrey;
}

/* ====================================================  NAV  ==================================================== */

nav ul {
    /*  box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .75);*/
    text-align: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    /* background-color: white;*/
    color: black;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin: .5em 0;
    padding: .5em 1em;
    /*  border-radius: .5em;*/
    border: 1px solid black;

}

nav a[aria-current="page"]{
    color: firebrick;
    font-weight: bold;
}

nav a:hover,
nav a:focus {
    background-color: #d89090;
    color: currentColor;
}

nav a:hover::after ,
nav a:focus::after{
    color: transparent;
}


/* ====================================================  FOOTER  ==================================================== */

footer {
    margin: 2em 0;
    display: flex;
    color: #989898;
}

footer ul,
footer p {
    flex: 1 1 100%;
}

footer ul {
    padding-left: 0;
    margin-left: 0;
}

footer li  {
    list-style-type: none;
    display: inline-block;
    border-left: .2em solid #989898;
}
footer li:first-child  {
    border-left-color: transparent;
}
footer a {
    color: #999;
}
footer a:hover, footer a:focus {
    color: #333;
}
footer li a {
    padding: 0 .5em 0 .7em;
}
footer p {
    margin-top: 0;
    padding-top: 0;
    text-align: right;
}


/* ====================================================  LAYOUT  ==================================================== */

/* Mobile first ! alle Blöcke haben 100%, Navigation unten*/
main  {
    padding: 1em 0;
    margin: 1em 0;
}

/* Navigationselemente werden untereinander angezeigt */
nav ul {
    display: flex;
    flex-direction: column;
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 25em) {
    header {
        height: 150px;
    }
    div.banner {
        height: 200px;
        background: url('../img/startseite-collage-mobile2.png') left no-repeat;
    }
    }

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 45em) {
    header {
        height: 120px;
        padding: 0.5em 1em 0.5em 140px;
        background: url('../img/sonne-150px.svg'), linear-gradient(
            salmon, salmon
            );
            
/*            url('../img/sonne-150px.svg'), linear-gradient(
            to bottom,
            #d89090,
            #d89090 66%,
            #97a7a7 34%,
            #97a7a7
            );*/
        background-size: contain, 120px 15px;
        background-repeat: no-repeat, repeat-y;
        background-position: top left, top left;
    }
    div.banner {
        height: 200px;
        background: url('../img/startseite-collage.png') left no-repeat;
    }
    /* Navigation wird nebeneinander ausgerichtet. */
    nav ul {
        flex-direction: row;
        background-color: white;
    }

    nav li {
        margin: 0;
        flex: 1 1 0%;
    }

    nav a{
        border-left: none;
        border-right: 2px solid white;
        border-top: none;
        border-bottom: none;
        background-color: #f1f2f4;
    }

    /* Main wird zum Flex-Container */
    main {
        display: flex;
        flex-flow: row wrap;
    }

    main > * {
        flex: 1 100%;  /* Alle Kindelemente werden über die volle Breite dargestellt */
    }

    section {
        flex: 1 48%;  /* Diese Elemente erhalten eine halbe Breite */
        margin: 1%;
    }
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 58em) {
    section, aside {
        flex: 1 31%;  /* Diese Elemente erhalten eine Breite von 1/3.  */
        margin: 1%;
    }

    article {
        flex: 0 0 100%;
        margin: 1%;
    }

    /*   article p, */
    article li,
    article blockquote {
        max-width: 40em;
    }

    #about {
        flex: 1 30%;
        margin: 1%;	  
        background-color: #eee;
        border: 1px solid darkred;
        padding: 1em;
        /*height: 30em;*/
    }

    #impressum {
        flex: 1 60%;
        margin: 1%;
    }

    aside p {
        margin-bottom: 3em;
    }
    aside p:last-child {
        margin-bottom: 1.2em;
    }
}
