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

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

@font-face {
    font-family: 'OpenSans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../webfonts/OpenSans-Bold.ttf) format('truetype');
}

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

html, body {
    padding:0;
    margin:0;
    font-family:OpenSans, sans-serif;
}

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

body.detail {

}

h1, h2, h3, h4, h5, h6 {
    font-family:"Bree Serif", serif;
}

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

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

.hidden {
    display:none;
}

.error {
    color:red;
}

.clearfix {
    clear:both;
}

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

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

header {
    width:100%;
    justify-content:space-between;
    background:#fff;
    height:320px;
    position:relative;
}

header .background {
    display:flex;
}

header .background div {
    flex:1;
    height:320px;
    background-repeat:repeat-x;
}

header .background .left { background-image:url('../img/regiologistik-header-left.jpg'); }
header .background .right { background-image:url('../img/regiologistik-header-right.jpg'); }

header .title {
    position:absolute;
    top:0;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    background-image:url('../img/regiologistik-header.jpg');
    width:100%;
    max-width:1500px;
}

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

header .logo a {
    padding:10px 50px 5px 50px;
    background:#fff;
    display:block;
    border-top-right-radius:35px;
}

header .logo img {
    width:300px;
}

nav {
    background:#81746c;
}

nav div {
    background:#fff;
    border-top-right-radius:35px;
    padding:2px 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;
}

.responsivemenu {
    display:none;
}

.content {
    margin:50px;
    padding:30px;
    border:2px solid rgb(0, 75, 45);
    background:#fff;
    border-top-right-radius:35px;
    border-bottom-left-radius:35px;
}

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

.explanation {
    padding:20px 20px;
}

.flexbox {
    display:flex;
}

.flexbox.gapped {
    gap:20px;
}

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

.filterset {
    margin:0 0 10px;
}

.filterset input[type="text"] {
    margin:0 0 10px;
    background:#f0f2d4;
    border:0;
    border-top-right-radius:15px;
    border-bottom-left-radius:15px;
    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;
}

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

aside .accordion {
    border-top-right-radius:15px;
    border-bottom-left-radius:15px;
    overflow:hidden;
}

aside dd {
    cursor:pointer;
    margin:0;
    padding:5px 15px;
    background:#d4e4a6;
}

aside dd .fa:last-child {
    float:right;
    margin-top:4px;
}

aside dd.visible .fa:last-child {
    transform:rotate(180deg);
}

aside dt {
    display:none;
    padding:10px 15px;
    background:#f0f2d4;
}

aside label {
    display:block;
}

aside .fa-question-circle {
    cursor:pointer;
}

aside .description {
    background:#d4e4a6;
    padding:10px;
    margin:10px 0;
    position:relative;
    display:none;
}

aside .description::after {
    content:' ';
    display:block;
    position:absolute; top:-7px; left:3px;
    width:15px; height:15px;
    background:#d4e4a6;
    transform:rotate(45deg);
}

.nobreak {
    white-space:nowrap;
}

.center {
    text-align:center;
}

.main {
    margin:0 10px 20px 320px
}

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

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

.legend {
    margin:0 0 0 320px;
    padding:10px;
    background:#d4e4a6;
}

.legend .laendlich,
.legend .staedtisch {
    display: inline-block;
    width:20px;
    height:13px;
    background:green;
}

.legend .staedtisch {
    background:red;
    margin-left:10px;
}

.listview {
    flex-wrap:wrap;
}

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

.listview ul {
    flex-wrap:wrap;
}

.listview li {
    margin:20px 10px 0;
    min-width:300px;
    max-width: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 30px; margin:0;
    border:2px solid rgb(0, 75, 45);
    border-top-right-radius:15px;
    border-bottom-left-radius:15px;
    text-decoration:none;
    font-weight:normal;
    transition:box-shadow 0.2s;
    cursor:pointer;
}

.listview a.profile:active,
.listview a.profile:hover {
    box-shadow:0 0 5px #555;
}

.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;
    border-bottom:2px solid rgb(0, 75, 45);
}

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

.listview h2 {
    color:#000;
    text-align:center;
    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;
    border-bottom-left-radius:10px;
    border-top-right-radius:10px;

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

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

#count {
    display:none;
}

footer {
    margin:50px 0;
    text-align:center;
    font-size:0.8em;
}

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

.listview .edit a {
    float:right;
}

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

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

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

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

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

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;
    background:#f0f2d4;
    border:0;
    border-bottom-left-radius:15px;
    border-top-right-radius:15px;
}

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

input[type="button"],
input[type="submit"],
a.btn:link,
a.btn:visited {
    cursor:pointer;
    color:#000;
    background:#d4e4a6;
    border:0;
    padding:10px 25px;
    display:inline-block;
    -webkit-appearance:none;
    border-top-right-radius:15px;
    border-bottom-left-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);
    border-top-right-radius:35px;
    border-bottom-left-radius:35px;
    padding:20px;
}

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

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

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

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

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

.profile h1 {
    font-size:32px;
}

.profile h2 {
    text-align:center;
}

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

.profile .body > div {
    padding:20px 100px;
    background:#fff;
    border:2px solid rgb(0, 75, 45);
    border-top-right-radius:35px;
    border-bottom-left-radius:35px;
}

.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;
    border-top-right-radius:15px;
    border-bottom-left-radius:15px;
    padding:7px 10px 10px;
}

.profile .body .image {
    float:right;
    width:200px;
    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;
}

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

.flexbox > aside {
    flex:0;
    min-width:300px;
    max-height:500px;
    overflow-y: auto;
}

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

    .legend {
        margin-left:0;
    }

    .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;
        border-top-right-radius: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;
    }
}