/*

	* Project:			Sahee
	* File:				sahee_public.css (Gestaltungsangaben fuer den Public-Bereich)
	* Created:			18.11.2008/gMu
	* Last modified:	Fruehling 09/gMu (umgestellt von Tabellen auf DIVs)
	*					03.12.2009/gMu: (bei Map	overflow: hidden eingebaut)
	*					12.07.2016/PMe: Zeilenhöhe neu 1.5, #content padding-right grösser
	*         23.05.2017/PMe: Neues Theme
  *         28.03.2020/MG: Home war NICHT responsive! korrigiert
*/

/* *************************************************************************** */

html {
    font-family: "Open Sans", sans-serif;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
}

/* normalize */

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden],
template {
    display: none;
}

a {
    background-color: transparent;
    text-decoration: none;
    transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
    -webkit-transition: all 200ms ease-in-out;
}

a:active,
a:hover {
    color: #99CC00;
    outline: 0;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b,
strong {
    font-weight: 700;
}

dfn {
    font-style: italic;
}

mark, ins {
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 1em 40px;
}

hr {
    box-sizing: content-box;
    height: 0;
}

pre {
    overflow: auto;
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

button {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
    -webkit-appearance: button;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input {
    line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    margin-right: 5px;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 1px solid #111;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

legend {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
}

optgroup {
    font-weight: bold;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    padding: 0;
}

/* elements */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
    box-sizing: inherit;
    -moz-box-sizing: inherit;
    -webkit-box-sizing: inherit;
    -ms-box-sizing: inherit;
    -o-box-sizing: inherit;
}

body {
    /*background: #99CC01; !* Fallback for when there is no custom background color defined. *!*/
    background: #97c11a;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

img {
    height: auto; /* Make sure images are scaled correctly. */
    max-width: 100%; /* Adhere to container width. */
}

figure {
    margin: 0 0 1em 0;; /* Extra wide images within figure tags don't overflow the content area. */
}

/* tables*/

table {
    border-collapse: collapse;
    margin: 0 0 1.5em;
    width: 100%;
}

th {
    border-bottom: 2px solid #bbb;
    padding-bottom: .5em;
}

td,
th {
    padding: .5em;
    vertical-align: top;
}

/*buttons*/

a.button,
.ddownload-button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background: #309D19;
    border: 1px solid #309D19 !important;
    border-radius: 3px;
    box-shadow: none;
    color: #fff !important;
    display: inline-block;
    font-size: 0.9em;

    line-height: 1;
    margin: 0 0 1.5em;
    padding: 0.75em 1.5em;
}

a.button:hover,
.ddownload-button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:active,
.ddownload-button:active,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
    background: #fff;
    /*border: 1px solid #309D19;*/
    color: #309D19 !important;
    text-decoration: none;
}

a.button:visited,
.ddownload-button:visited,
button:visited,
input[type="button"]:visited,
input[type="reset"]:visited,
input[type="submit"]:visited {
    color: #99CC00;
}


/* button linkfarbe in maps */

.content .map_peru-wrapper #map_peru button  {
    color: #333 !important;
}
.content .map_swazi-wrapper #map_swazi button  {
    color: #333 !important;
}

/*// fields*/

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    border: 1px solid #999;
    border-radius: 2px;
    color: #222;
    font-size: 0.925em;
    padding: 6px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    border: 1px solid #222;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    color: #222;
}

.col1 {
    width: 100%;
}

.col2 {
    width: 50%;
}

.col3 {
    width: 33.3333%;
}

.col4 {
    width: 25%;
}

.form2 {
    width: 36px;
}

.form4 {
    width: 70px;
}

textarea {
    /*width: 100%;*/
}

/*lists*/
ul, ol {
    margin: 0;
    padding: 0.5em 0 0.75em 1.5em;
}

ul {
    list-style: disc;
    padding-top: 1em;
}

ol {
    list-style: decimal;
}

ol li,
ul li {
    margin-bottom: 0.5em;
}

li > ul,
li > ol {
    margin-bottom: 0;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* helpers */

.clear:before,
.clear:after,
.content:before,
.content:after,
.nav-primary:before,
.nav-primary:after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear:after,
.content:after,
.nav-primary:after {
    clear: both;
}

/* typography */
body,
button,
input,
select,
textarea {
    color: #222;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.5;

}

p {
    margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2em;
    margin: 0.5em 0 0.25em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1 {
    color: #309D19;
    font-size: 2em;
    font-weight: 300;
    margin: 0 0 0.75em;
}

h2 {
    font-size: 1.4em;
}

h3 {
    /*color: #929292;*/
    font-size: 1.125em;
}

h4 {
    font-size: 1em;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: 1em;
}

p + h2,
p + h3,
p + h4,
p + h5,
p + h6 {
    margin-top: 1.25em;
}

ul + h3 {
    margin-top: 0.5em;
}

/* PDF-Links */
.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -moz-osx-font-smoothing: grayscale;
    margin: 0px 9px 0 -8px;
}

.fa-file-pdf-o::before {
    font-size: 18px;
}

/* ***************************************************************************
// Layout
/* *************************************************************************** */

.responsive-navigation {
    display: none;
}

.wrapper {
    background-color: #fff;
    margin: 0 auto;
    max-width: 1120px;
    width: 100%;

}

.top {
    display: flex;
    justify-content: space-between;
    padding: 1em;
}

.logo {
    padding: 0.5em 1em 0.15em;
}

.globaleNav {
    font-size: 0.875em;
}

.hero {
    /*background: url(/images/titelbilder/tb_home.jpg);*/
    background-position: center center !important;
    background-repeat: no-repeat;
    background-size: cover !important;
    height: 312px;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 2em;
}

.content-inner-wrapper {
    display: flex;
    justify-content: space-between;
}

/* --> normale Seiten */
.nav-primary {
    margin: 0;
    padding: 14px 0 0;
    width: 200px;
}

/* Content-Bereich auf der Index-Seite  */
.home .content {
    padding: 2em;
    width: 100%;
}

.home h1 {
    text-align: center;
}

.home-list {
    display: flex;
    list-style-type: none;
    margin: 1.5em 0;
    padding: 0;  
  /* Neu MG Feb 2020 */
  justify-content: space-between;
  
}

/* Neu MG Feb 2020 */
.home-list li {
    /* display: flex;
    flex-direction: column; 
    margin-right: 30px; */
    flex: 0 1 30%;
  
}

/* .home-list li:last-child {
    margin-right: 0;
} */

.home-list h4 {
    margin-top: 0.25em;
}

.home-list a {
    border-bottom: 1px solid #fff !important;
}

/* Content --> normale Seiten */
.content {
    min-height: 25vh;
    width: calc(100% - 220px);
}

.content a {
    /*border-bottom: 1px solid #99CC00;*/
    color: #99CC00;
}

.content a:hover {
    border-bottom: none;
    color: #309D19;

}

/* Project */
.project {
    display: flex;
    flex-wrap: wrap;
}

.project h1 {
    margin-bottom: 0.5em;
    width: 100%;
}

.project-description {
    flex: 2;
    padding: 0 50px 0 0;
}

.project-img-container {
    flex: 1;
    margin: 12px 0 0;
}

/* min-height klappt bei IE nicht --> speziell formatiert  */
* html .content_admin {
    height: 270px;
}

/* Logo und Strich drunter auf Startseite  */
.logo_index {
    border-bottom: 1px solid #309D19;
    padding-left: 90px;
}

/* Sprachauswahlsaetze auf der Startseite  */
.sprachwahl_index {
    margin-top: 35px;
    padding-bottom: 50px;
    padding-left: 90px;
}

.ubrikbild {
    margin: 0;
    padding: 0;
}

* html .rubrikbild {
    margin-left: -3px;
}

/* Footer */
.footer {
    /*align-items: center;*/
    display: flex;
    flex-direction: row;
    font-size: 0.875em;
    justify-content: space-between;
    padding: 1em 2em;
}

/* Links im Footer  */
.footer-nav a {
    color: #222;
}

.fb-share-link {
    margin-left: 6px;
}

/* Inhalt eines PopUps --> zB Bilder oder Karte aus Projekte-Details */

.bg-popup {
    background: #fff;
}

.popUp {
    margin: 20px;
    text-align: center;
}

.popUp a {
    color: #99CC00;
}

.popUp a:hover {
    color: #309D19;
}

/* ***************************************************************************
// allgemeine Gestaltungsangaben und Klassen
/* *************************************************************************** */

.strich {
    border-bottom: 1px solid #ABABAB;
}

.strich_prliste {
    border-top: 1px solid #ABABAB;
    font-size: 0.5em;
    margin-bottom: 0;
}

/* kleine Schrift fuer Projekt-Seite (falls Karten nicht angezeigt werden koennen), Sternchenlegende */
.kleine_schrift2 {
    font-size: 90%;
    font-style: italic;
}

/* Bildlegende bei den Projekten */
.bild_legende {
    font-size: 0.8em;
    /*font-style: italic;*/
    margin-bottom: 20px;
    margin-top: 0;
}

.slogan {
    font-size: 0.9em;
}

.zurueck {
    font-size: 90%;
}

ul {
    margin-top: -3px;
}

/* verschiedene Textfarben, je nach Ereignis  */
.txt_ok {
    color: #309D19;
}

.txt_fehler {
    color: red;
}

.fehlertxt {
    color: red;
}

/* ***************************************************************************
// Link-Formatierungen
/* *************************************************************************** */
/* normale Links, aber unterstrichen und nicht fett (zB bei AktuelleProjekte - Link Karte Peru) */
.text_2 {
    color: #309D19;
}

.text_2:hover {
    /*color: #555;*/
}

/* Links Haupt-Navigation */
.nav-primary .main-nav {
    list-style-type: none;
    margin: 0 0 2.5em;
    padding: 0;
}

.main-nav li {
    line-height: 1.2;
    padding: 5px 0;
}

.main-nav a {
    color: #222;
    /*font-weight: 600;*/
}

.main-nav a:hover {
    color: #99CC00;
}

.main-nav .hauptMenue_aktiv,
.main-nav .unterMenue_aktiv {
    color: #309D19;
}

/* Links Unter-Navigation */
.unterNav {
    list-style-type: none;
    padding: 0.3em 0 0.3em 1em;
}

/* Links Unter-Navigation- aktiv */
.unterMenue_aktiv,
.unterMenue_aktiv:hover,
.unterMenue_aktiv:active {
    color: #99CC00;
}

/* Navi Sprachwahl  */
.sprachwahl {
    color: #666;
}

.sprachwahl:hover {

}

.sprachwahl_aktiv {
    color: #309D19;
}

/* Buttonlinks im Admin-Bereich */
/* werden auch fuer die Listenansicht im Public gebraucht */
.admin_unav:hover {
    color: #99CC00;
}

/* ***************************************************************************
// Projektlisten
/* *************************************************************************** */
.tb_projekte {
    border-top: 1px solid #ddd;
}

.tb_projekte.search {
    border-top: none;
}

.tb_projekte tr {
    border-bottom: 1px solid #ddd;
}

.tb_projekte td {
    padding: 1px 0;
}

.tb_projekte a,
.tb_projekte .project-list-title {
    align-items: center;
    color: #99CC00;
    display: flex;
    font-size: 1.125rem;
    font-weight: 600;
    justify-content: space-between;
    line-height: 1.2;
    padding: .5em 0.25em;
}

.tb_projekte a:hover,
.tb_projekte .project-list-title:hover {
    background: #f7f7f7;
    padding-left: 0.4em;
}

.tb_projekte a:hover,
.tb_projekte a:hover .lbl-details,
.tb_projekte .project-list-title:hover,
.tb_projekte .project-list-title:hover .lbl-details {
    color: #309D19 !important;
}

.tb_projekte p {
    margin: 0;
    max-width: calc(100% - 120px);
}

/* Project achive */
.content-list {
    border-top: 1px solid #ddd;
    margin: 0;
    padding: 0;
}

.content-list:nth-child(3),
.content-list:last-child {
    border-bottom: 1px solid #ddd;
}

.content-list a {
    align-items: center;
    display: flex;
    font-size: 1.075em;
    font-weight: 600;
    justify-content: space-between;
    line-height: 1.2;
    margin: 0;
    padding: .5em 0.25em;
}

.content-list a:hover {
    background: #f7f7f7;
    padding-left: 0.4em;
}

/* Berichte */
.content-list.berichte:nth-child(2) {
    border-bottom: 1px solid #ddd;
}

.content-list.berichte a {
    flex-wrap: wrap;
}

.content-list.berichte span {
    width: 100%;
}

/* additional detail-link, filetyps */
.lbl-add-infos {
    color: #aaa;
    font-size: 1rem;
    font-weight: 400;
    padding: 0 0.25em 0 0;
}

/* Finanzielle Beiträge */
.tbl-bankverbindungen {
    border-top: 1px solid #ddd;
    margin: 0.75em 0 1.5em;
}

.tbl-row {
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: flex-start;
    padding: 0.25em 0.05em;
}

.tbl-row span:first-child {
    font-weight: 600;
    width: 180px;
}

/* ***************************************************************************
// Gestaltungs-Elemente fuer die Google-Maps und Infofenster
/* *************************************************************************** */

.map_peru-wrapper {
    flex: 1;
    margin-left: 1em;
}

.map_peru {
    border: 1px solid #99CC00;
    height: 500px;
    overflow: hidden;
    /*width: 300px;*/
}

.map_swazi-wrapper {
    flex: 1;
    margin-right: 1em;
}

.map_swazi {
    border: 1px solid #99CC00;
    height: 500px;
    overflow: hidden;
    /*width: 400px;*/
}

.GmapInfo {
    background-color: #FFFFFF;
    border: 2px dotted #99CC00;
    color: #565656;
    font-size: 100%;
    line-height: 110%;
    padding: 5px;
    width: 200px;
}

.GmapInfo .headline {
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.GmapInfo .map_text {
    /*float: right;*/
    font-size: 90%;
    margin: 0;
    padding: 0;
}

/* Karten-Link von Projekt-Detail aus */
.karte {
    border: 1px solid #99CC00;
    height: 500px;
    width: 400px;
}

/* ***************************************************************************
// Admin bereich
/* *************************************************************************** */

.admin .wrapper {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1120px;
    width: 100%;
}

.top_admin {
    border-bottom: 8px solid #99CC00;
    display: flex;
    height: 100px;
    justify-content: center;
    width: 100%;
}

.top_admin h1 {
    align-self: center;
    font-size: 2.6em;
    line-height: 1;
    margin: 0;
}

/* --> Admin-Seiten */
.spalte_links_admin {
    background-color: #FFFFFF;
    color: #C7C7C7;
    flex: 1;
    line-height: 170%;
    margin: 0;
    padding: 70px 20px 20px;
}

.spalte_links_admin a {
    color: #222;
    display: block;
}

.spalte_links_admin a:hover {
    color: #99CC00;
}

.spalte_links_admin h3 {
    color: #222;
    font-weight: 600;
    margin-top: 2em;
}

.admin-nav {
    margin-bottom: 2em;
    padding-left: 12px;
}

.admin-nav p {
    margin-bottom: 0;
}

.admin_unav {
    padding-left: 12px;
}

.logout {
    margin-bottom: 2em;
}

/* Inhaltsbereich */
.content_admin {
    background-color: #FFFFFF;
    border-left: 1px solid #309D19;
    flex: 3;
    min-height: 440px;
    padding: 60px 40px 10px;
}

/* Admin Login */
.admin-login {
    border: none;
    margin: 0;
    padding: 0;
}

.admin-login ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-login li {
    margin-bottom: 0.5em;
}

.admin-login label {
    display: inline-block;
    font-weight: 600;
    width: 130px;
}

.admin-login input[type="submit"] {
    margin-top: 0.75em;
}

/* New Project */
.admin .new-project tr > td:nth-child(1) {
    font-weight: 600;
    padding-top: 14px;
}

/* Edit Project */
.admin .edit-project tr:nth-child(5n+1) > td {
    border-top: 1px solid #ccc;
    padding-top: 0.6em;
    width: 100%;
}

.admin .edit-project tr:nth-child(5n+5) > td {
    padding-bottom: 2em;
}

.admin .edit-project td {
    padding: 0.2em 0;
}

.admin .edit-project tr:nth-child(5n+1) > td div {
    margin-top: 3px !important;
}

.admin .edit-project td h5 {
    color: #929292;
    display: inline-block;
    font-size: 1.125em;
    font-weight: 700;
    margin-bottom: 0;
}

/* Admin: Projekttabelle - allg. Angaben werden grau hinterlegt  */
.admin .allg {
    background-color: #f1f1f1;
    border-radius: 2px;
}

.admin_input_box_amount {
    text-align: right;
}

.admin_input_box_day_month,
.admin_input_box_year {
    text-align: center;
}

.admin_input_new,
.admin_input_deprecated {
    background-color: #ffd4d2;
}

/* normale Links im Admin-Bereich */
.admin_txt:link,
.admin_txt:active {
    color: #309D19;
}

/* Buttonlinks im Admin-Bereich */
/* wird auch fuer die Listenansicht im Public gebraucht */
.admin_buttons {
    color: #309D19;
    /*float: right;*/
}

/* ***************************************************************************
// Responsive max 768px
/* *************************************************************************** */
@media all and (max-width: 768px) {
    .nav-primary,
    .globaleNav {
        display: none;
    }

    .responsive-navigation {
        background: #fff;
        display: block;
        position: absolute;
        top: 20px;
        right: 16px;
        margin-left: 16px;
    }

    .content {
        width: 100%;
    }

    .content-inner-wrapper {
        flex-direction: column;
    }

    .project {
        flex-direction: column;
    }

    .project-description {
        flex: 1;
        padding: 0 0 1.5em 0;
    }

    .tb_projekte p {
        margin: 0;
        max-width: 100%;
    }

    .tb_projekte a, .tb_projekte .project-list-title {
        align-items: flex-start;
    }

    .map_peru-wrapper,
    .map_swazi-wrapper {
        margin: 0;
    }
  
  
  /* Neu MG Feb 2020 */    
  .home-list {  
    flex-direction: column;
    flex-wrap: wrap !important;
    width: 100%;
  }
  
  .home-list li {
    margin: 0 0 1.5em;
    flex: 0 1 100%;
  }

}

/* ***************************************************************************
// Responsive max 600px
/* *************************************************************************** */
@media all and (max-width: 600px) {
    .logo {
        padding: 3em 0 0.5em 1em;
    }

    .hero {
        height: 200px;
    }

    .content a:hover {
        border-bottom: none;
    }

    .tb_projekte a {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .tb_projekte .lbl-ort,
    .tb_projekte .lbl-details {
        clear: both;
        display: block;
        float: left;
    }

    .tb_projekte .lbl-details {
        padding: 0;
    }

    .tb_projekte .lbl-ort {
        padding: 0 0 0.5em;
    }
}