:root{
    --primary-color: rgb(0, 75, 45);
    --secondary-color: #d4e4a6;
    --background-color: #f0f2d4;
    --accent-color: #d81024;
}

@font-face {
    font-family: 'Bree Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../css/BreeSerif-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../css/Roboto-VariableFont_wdth,wght.ttf) format('truetype');
}

* {
    box-sizing:border-box;
    line-height:1.4em;
}

html, body {
    padding:0;
    margin:0;
    font-family:"Roboto Slab", sans-serif;
}

body {
    background:#fff;
    overflow-x:hidden;
}

body.detail {

}

h1, h2, h3, h4, h5, h6 {
    font-family:"Bree Serif", serif;
    color:var(--primary-color);
}

h1, h2 {
    text-align: center;
}

h3 {
    margin:35px 0 5px;
}

p {
    margin: 0 0 10px;
}

.slim h1,
.slim h2 {
    text-align: left;
}

a:link,
a:visited {
    color:rgb(0, 75, 45);
    font-weight:bold;
    text-decoration:none;
}

a:active,
a:hover {
    text-decoration:underline;
}

img {
    max-width: 100%;
}

.hidden {
    display:none;
}

.error {
    color:red;
}

.clearfix {
    clear:both;
}

img.icon {
    width:17px;
    height:17px;
}

div.title-icon {
    text-align:center;
}

div.title-icon img {
    height:70px;
}

ul.plain,
ul.plain li {
    list-style-type:none;
    margin:0;
    padding:0;
}

header {
    width:100%;
    justify-content:space-between;
    background:#fff;
    height:150px;
    position:relative;
    box-shadow: 0 0px 10px rgba(0,0,0,0.8);
}

header .title {
    background-image:url('../img/webheader_full.jpg');
    width:100%;
    height:300px;
    background-size: cover;
}

header .logo {
    position:absolute;
    top:20px;
    left:0;
    z-index:1;
}

header .logo a {
    padding:10px 50px 5px 50px;
    background:#fff;
    display:block;
}

header .logo img {
    width:300px;
}

nav {
    background:#81746c;
    position: absolute;
}

nav.primary {
    top:95px;
    right:0;
}

nav.secondary {
    top:0px;
    right:0;
}


nav div {
    background:#fff;
    padding:0 37px;
    min-height:50px;
    display:flex;
}

nav ul, nav li {
    list-style:none;
    padding:0;
    margin:0;
}

nav ul:first-child {
    flex:1;
}

nav ul a:link,
nav ul a:visited {
    font-family:"Bree Serif", serif;
    display:block;
    padding:8px 20px;
    font-size:20px;
    font-weight:normal;
}

nav li {
    float:left;
}

nav a.cta:link,
nav a.cta:visited {
    color:#fff;
    background:var(--accent-color);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding-bottom: 15px;
}

.responsivemenu {
    display:none;
}

.content {
    margin:0 50px;
    padding:30px;
}

.content.slim {
    margin:50px auto;
    max-width:1000px;
    width:90%;
}

.content.fullwidth {
    margin:0;
    padding:0;


    .background.image {
        background-image: url('../img/webheader_full.jpg');
        background-size: cover;
        height: 500px;

        display: flex;
        justify-content: center;
        align-items: center;

        div {
            padding:50px;
            color: #fff;
            background:rgba(255, 255, 255, 0.7);
        }
    }
}

.explanation {
    padding:20px 20px;
}

.flexbox {
    display:flex;
}

.flexbox.gapped {
    gap:20px;
}

.flexbox > * {
    flex-grow:1;
    flex-basis:0;
}

.flexbox > .meta {
    flex:0;
    padding:5px 50px 5px 0;
    font-weight:bold;
    min-width: 150px;
}

.filterset {
    margin:0 0 10px;
}

.filterset input[type="text"] {
    margin:0 0 10px;
    background:#f0f2d4;
    border:0;
    padding:10px 20px;
}

.filterset input[type="text"]::placeholder {
    color:#000;
}

.filterset input[type="checkbox"] {
    border:1px solid rgb(0, 75, 45);
}

aside {
    background:#fff;
    width:300px;
    flex:1;
    float:left;

    #filters {
        h3 {
            margin-top:20px;

            &:first-child {
                margin-top:0;
            }
        }
    }

    label {
        display:block;
        padding-left: 22px;
        text-indent:-22px;
    }
}

aside #filters {

}

.nobreak {
    white-space:nowrap;
}

.center {
    text-align:center;
}

.right {
    text-align:right;
}

.main {

}

.background {
    background:var(--background-color);
    padding:20px;

}

.main.edit h1 {
    text-align:center;
}

.main.edit div {
    width:100%;
}

.listview {
    flex-wrap:wrap;
    margin-top:50px;
}

.listview ul,
.listview li {
    list-style:none;
    margin:0;
    padding:0;
}

.listview ul {
    flex-wrap:wrap;
}

.listview li {
    /*margin:0 10px 20px;*/
    min-width:300px;
    max-width: 50%; /*calc(50% - 20px);*/
    position:relative;
}

.listview li .profile {
    width:100%;
}

.listview li.mine a.profile {
    padding-top:60px;
}

.listview li.out {
    display:none;
}



.listview a.profile:link,
.listview a.profile:visited {
    display:block;
    color:#000;
    background:#fff;
    height:100%;
    padding:20px 25px;
    margin:0;
    border:1px solid #ccc;
    text-decoration:none;
    font-weight:normal;
    transition:0.2s;
    cursor:pointer;
}

.listview a.profile:active,
.listview a.profile:hover {
    box-shadow:0 5px 5px #888;
    border-top:10px solid var(--primary-color);
    padding-top:20px;
}

.listview li.newprofile a.profile:link,
.listview li.newprofile a.profile:visited {
    color:#ccc;
    background:#f4f4f4;
    text-align:center;
}

.listview .newprofile i {
    font-size:100px;
    line-height:150px;
    color:#d4e4a6;
}

.listview .image {
    height:150px;
    text-align:center;
}

.listview .image img {
    max-width:100%;
    max-height:100%;
}

.listview h2 {
    color:#000;
    font-size:1.2em;
    font-weight:bold;
}

ul.attributes {
    margin:5px 0 0;
    padding:0;
}

ul.attributes li {
    margin:0 6px 6px 0;
    padding:5px 8px 3px;
    font-size:0.8em;
    line-height:1.2em;
    background:#d4e4a6;
    display:inline-block;

    min-width:0;
    max-width:none;
}

#noresults {
    padding:20px;
    color:#aaaaaa;
    display:none;
}

#count {
    /*display:none;*/
}

footer {
    margin:50px 0;
    font-size:0.8em;
    position: relative;

    .top {
        color:#fff;
        background:var(--primary-color);
        padding:30px;
        margin:20px 0 50px;

        a:link,
        a:visited {
            color:#fff;

            img {
                width:30px;
                height:30px;
                margin:10px 10px 0 0;
            }
        }

        h3 {
            color:#fff;
        }

        ul, li {
            margin:0;
            padding: 0;
            list-style:none;
        }
    }

    .top::after {
        content:' ';
        display:block;
        position: absolute;
        right: 30px;
        background-size: contain;
        background-image: url('../img/die-regionalbewegung-bundesverband-300.jpg');
        height: 236px;
        width: 170px;
        top: -10px;
        transform: rotate(5deg);
        background-repeat: no-repeat;
    }

    .bottom {
        text-align: center;
    }
}

/* Profile edit */
.listview .edit {
    position:absolute; top:2px; right:2px; left:2px;
    background:#d4e4a6;
    padding:15px;
}

.listview .edit a {
    float:right;
}

form[action="login"] {
    input {
        border:1px solid var(--secondary-color);
    }
}

form .input {
    margin:0 0 10px;
}

form .input > div:first-child {
    flex-grow:0; flex-shrink:0;
    padding:5px 0;
    display: block;
}

form .input > div:last-child {
    width:100%;
}

form .input.checkbox label {
    display:flex;
    align-items:baseline;
}

form .input.checkbox label.tooltip {
    display: inline-block;
    background: var(--secondary-color);
    text-align: center;
    border-radius: 50%;
    width: 25px; height: 25px;
    cursor: pointer;
}

form .input.checkbox p {
    margin:0 0 5px;
}

form .input.checkbox span span {
    font-size:0.8em;
    font-style:italic;
}

form .input.description .fa-question-circle  {
    cursor:pointer;
}

form .input.description.toggle span {
    font-size:0.8em;
    font-style:italic;
}

form .input.description.toggle span {
    display:none;
}

form .input.description.toggle input[type="checkbox"] + span {
    display:inline !important;
    font-size:1em;
    font-style:normal;
}

form .input h3 {
    margin:30px 0 10px;
}

input,
select,
textarea {
    font-size:1em;
    font-family:sans-serif;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width:100%;
    padding:10px;
    color:var(--primary-color);
    background:#fff;
    border:0;
}

select {
    -webkit-appearance:none;
}

.select {
    position:relative;
}

.select::after {
    font-family:"Font Awesome 5 Free";
    font-weight:700;
    content:"\f078";
    position:absolute;
    top:10px; right:10px;
}

textarea {
    min-height:100px;
}

a.btn {
    border-radius: 30px;
}

input[type="button"],
input[type="submit"],
a.btn:link,
a.btn:visited {
    cursor:pointer;
    color:var(--primary-color);
    background:var(--background-color);
    border:0;
    padding:10px 25px;
    display:inline-block;
    -webkit-appearance:none;
    font-weight: bold;
    border-radius: 15px;
}

a.btn:active, a.btn:hover {
    text-decoration:none;
}

a.btn.btn_big:link,
a.btn.btn_big:visited {
    display: inline-block;
    font-weight: normal;
    text-align: center;
    max-width: 300px;
    margin:5px 10px;
}

a.btn.btn_big span {
    font-weight: bold;
}

a.btn.btn_big:active,
a.btn.btn_big:hover {
    background: #c8e089;
}


/* Register */

.register {
    width:90%;
    max-width:900px;
    margin:100px auto;
}

.register h2,
.register p {
    text-align:center;
}

.register label {
    position:relative;
}

.register label span {
    position:absolute;
    top:0; left:15px;
    width:25px;
    height:25px;
    line-height:30px;
}

.register label img {
    max-width:100%;
    max-height:100%;
}

.register .flexbox > div {
    background:#fff;
    border:2px solid rgb(0, 75, 45);
    padding:20px;
}

.register input[type="text"],
.register input[type="email"],
.register input[type="password"] {
    padding:10px 20px 10px 65px;
}

.type-choices {
    display:flex;
    gap: 20px;
    margin:0;
    padding:0;
    list-style: none;

    label {

    }

    input[type="radio"] {
        display:block;
        margin: 0 auto 20px;
    }

    input[type="radio"]:checked + span {
        font-weight:bold;
    }

    li {
        flex:1;
        background: var(--background-color);
        padding: 20px;
        text-align: center;

        a {
            display: block;
            height: 100%;
            text-align: center;
            background:var(--secondary-color);
            padding:20px;
            border-radius: 10px;
            text-decoration:none;
            border:2px solid transparent;
        }

        a:hover {
            border: 2px solid var(--primary-color);
        }
    }

    label.details {
        display: inline-block;
        background:var(--secondary-color);
        padding:10px;
        border-radius: 50%;
        width:40px; height:40px;
        margin-top: 30px;
        cursor: pointer;
    }
}

.explanations {
    background: var(--background-color);
    margin:20px 0;

    input {
        display: none;
    }

    input + div {
        display: none;
    }

    input:checked + div {
        display: block;
        padding:20px;
    }

    h3 {
        margin:0 0 20px;
    }
}

/* Tables */
th, td {
    vertical-align:top;
}

.profile {
    margin:50px auto;
    width:95%;
    max-width:1000px;

    h1 {
        font-size: 32px;
        text-align: left;
        word-wrap: anywhere;
    }

    h2 {
        font-size: 24px;
        text-align: left;
    }
}

.profile .header {
    text-align:center;
    max-width:700px;
    margin:0 auto;
}

.profile .header h2 {
    margin-top:60px;
}


.profile .body {
    margin:0 0 20px;
}

.profile .body > div {

}

.profile table {
    width:100%;
}

.profile td {
    padding:0 10px 10px 0;
}

.profile td:nth-child(1) {
    width:200px;
}

.profile td:nth-child(2) div {
    background:#d4e4a6;
    padding:7px 10px 10px;
}

.profile .body .image {
    width:100%;
    height:200px;
}

.profile .body .image img {
    max-width:100%;
    max-height:100%;
}

.profile .required {
    color:red;
}

.fixed {
    position:fixed;
    bottom:-100px;
    left:0;
    width:100%;
    background:#fff;
    padding:20px;
    border-top:2px solid rgb(0, 75, 45);
    transition:bottom 0.5s;
}

.fixed .flexbox {
    max-width:980px;
    margin:0 auto;
}

.fixed .flexbox div:first-child {
    padding:10px 0;
}

.fixed .flexbox div:last-child {
    text-align:right;
}

.xs {
    display:none;
}

.togglefilter {
    float:right;
    margin:3px 10px 0 0;
}

input.toggle {
    display:none;
}

input.toggle + div {
    display: none;
}

input.toggle:checked + div {
    display: block;
}

#map {
    width:100%;
    min-height:500px;
}

.flexbox > aside {
    flex:0;
    min-width:300px;
    max-height:500px;
    overflow-y: auto;
    background:var(--background-color);
    padding: 25px 20px;
}

@media screen and (max-width:1000px) {
    header {
        height:200px;
    }

    header .background div {
        height:200px;
    }

    header .title {
        height: 200px;
        background-size: auto 200px;
    }

    .content {
        width:95%;
        margin:50px auto;
    }

    .xs {
        display:revert;
    }

    aside {
        position:static;
        width:100%;
        padding:0 20px;
    }

    aside #filters {
        display:none;
    }

    .main {
        margin:0;
        clear:both;
    }

    .profile .body > div {
        padding:20px;
    }
}

@media screen and (max-width:700px) {
    header ul li:first-child {
        display:none;
    }

    nav div {
        padding:10px;
    }

    nav ul a:link, nav ul a:visited {
        font-size:14px;
        padding:8px 15px;
    }

    nav ul:last-child li {
        float:none;
        display:none;
        text-align:right;
    }

    nav ul:last-child li.responsivemenu {
        display:block;
    }

    .listview li {
        max-width:none;
    }

    .flexbox {
        display:block;
    }

    .flexbox > * {
        margin:0 0 20px;
    }

    .profile h1 {
        font-size:2em;
    }

    .main.edit {
        margin:10px;
    }

    form .input {
        display:block;
    }

    form .input > div:first-child {
        font-weight:bold;
    }
}

@media screen and (max-width:630px) {
    header .logo {
        position:relative;
        top:0;
    }

    header .logo a {
        padding-left:10px;
    }

    header .title {
        top:65px;
        height:135px;
        background-size:auto 135px;
        background-position:right;
    }

    header .background div {
        height:135px;
    }

    .content {
        padding:20px 10px;
    }

    aside {
        padding:0 0 20px;
    }

    aside form {
        text-align:center;
    }

    .togglefilter {
        float:none;
    }

    .listview li {
        margin:10px 0;
    }

    .fixed {
        padding:5px;
    }

    .fixed .flexbox div {
        padding:0 !important;
        margin:0 0 5px !important;
        text-align:center !important;
    }
}

@media screen and (max-width:425px) {
    header img {
        width:200px;
        margin-top:8px;
    }
}