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

footer,
header,
main {display: block;}
a{background:transparent;}
small{font-size:80%;}
img{border:0;}
svg:not(:root){overflow:hidden;}


html { height: 100%; }

body { display:flex; flex-direction: column; min-height: 100%; background: #81b013; justify-content: space-between; font-size:1rem; line-height:1.5; font-family: Arial,sans-serif; font-weight: normal; color:#666666; padding:0; margin:0;
    background: url('bg_portal.png') left top repeat-x #ffffff; }

h1 { font-weight: 700; font-size: 1.5rem; line-height: 1.3;
    color: #356100; margin: 0 0 2rem; padding:0 0 15px; border-bottom:1px solid #d3d3d3; }
h2 { font-weight: 700; font-size: 1.125rem; line-height: 1.3;
    margin: 2rem 0 1rem 0; }

p { margin:0 0 1rem 0; padding: 0; }
strong,b { font-weight:bold; }
em,i { font-style:italic; }

a { color: #356100; text-decoration: underline; }


.container { padding-left: 2rem; padding-right:2rem;  margin-left: auto; margin-right: auto; width: 100%; max-width:540px; }

#header { color: #fff; height: 180px; background: url('bg_header.png') right top no-repeat; }
    #logo { position:absolute; top:24px; }


main { position:relative; z-index:2; margin-bottom: auto; }
#text { max-width: 740px; padding-bottom: 200px; }

footer { position:relative; z-index:1; height:80px;
    background: url('bg_gruen.png') repeat #81b013; font-size: 0.8375rem; color:#ffffff; }
footer:before { position:absolute; top: -322px; content:""; display:block; width: 100%;  background: url('bg_intro.png') center bottom repeat-x; height:322px; }

.footernav { margin: 0; padding: 0; list-style-type: none; margin-left: -5px; }
.footernav li { display:inline-block; margin: 0; padding: 0;  }
.footernav li a { display:block; color:#ffffff; text-decoration:underline; padding:10px 5px; }

@media (min-width: 768px){
    .container { width:740px; max-width: none; }
    #header { position:relative; background: url('bg_header.png') left top no-repeat; }
}

@media (min-width: 1024px){
    .container { width:980px; }
    #text { padding-bottom: 120px; }
}


