@import url('/fonts/Roboto/Roboto.css');
@import url('/fonts/Literata/Literata.css');
@import url('/fonts/Montserrat/Montserrat.css');
@import url('/fonts/Lato/Lato.css');

/* Selectize Clear Plugin Fixes */
.selectize-control.plugin-clear_button .clear {
    font-size: 18px;
    top: -1px;
}

.selectize-control:dir(rtl).plugin-clear_button.single .clear {
    left: calc(8px - 6px + 1.5rem) !important;
    right: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--standard-font);
    font-weight: 300;
    color: var(--standard-text-colour);
    background-color: var(--page-background-colour);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

h1 {
    font-family: var(--headline-font);
    font-weight: 300;
    border-bottom: 1px solid var(--headline-border-bottom-colour);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 2em;
    word-wrap: break-word;
}

h2 {
    font-family: var(--headline-font);
    font-weight: 300;
    border-bottom: 1px solid var(--headline-border-bottom-colour);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.7em;
}

h3 {
    font-family: var(--headline-font);
    font-weight: 300;
    border-bottom: 1px dashed var(--headline-border-bottom-colour);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

p {
    line-height: 1.5em;
}

label {
    cursor: pointer;
}

button {
    cursor: pointer;
}

/* Entferne Pfeile bei Number-Feldern */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.no-select {
    user-select: none;
}

.hidden {
    display: none;
}

a {
    outline: none;
    color: var(--link-colour);
    text-decoration: none;
    transition: color .1s ease-in-out;
}

a:hover, a:focus, a:active {
    color: var(--link-active-colour);
}

a:focus {
    text-decoration: underline;
}

a[href^="http"]:after, a[href^="https"]:after {
    content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNqEkIEJwCAMBGPpEs7hHK6hY+gauoZr6Bo6RtqEWkxb6EMQnuM/USEirIoxSmOKwDkhBEwp4VPkb4801Xun9xW4e+9FldYarLUvkBPPOp4JGWOgtSaSt6VWQKUU9nPOEiSIgAmNMdadFTjn7utqrXwh6fLvH9nXhamW5ksMnpfDnw4BBgBfunO056MmqAAAAABJRU5ErkJggg==);
}

a[href^="http"]:dir(rtl):before, a[href^="https"]:dir(rtl):before {
    margin-right: 4px;
}

.tippy-content a {
    color: orange;
}

nav {
    padding: 20px;
}

nav:dir(ltr) > a {
    position: absolute;
    right: 20px;
    top: 17px;
    display: none;
}

nav:dir(rtl) > a {
    position: absolute;
    left: 20px;
    top: 17px;
    display: none;
}

nav > a > img {
    height: 35px;
}

nav > ul {
    display: inline-block;
}

nav > ul > li {
    display: inline-block;
    vertical-align: middle;
    list-style: none;
}

nav:dir(ltr) > ul > li:not(:last-child) {
    margin-right: 25px;
}

nav:dir(rtl) > ul > li:not(:first-child) {
    margin-right: 25px;
}

nav > ul > li:first-child a {
    padding: 0;
}

nav > ul > li:first-child img {
    height: 40px;
    margin-top: 5px;
}

nav > ul > li:first-child i {
    display: none;
}

nav > ul > li > a {
    font-family: var(--navigation-link-font);
    font-size: 20px;
    font-weight: 300;
    color: var(--standard-text-colour);
    text-decoration: none;
    display: inline-block;
    padding: 8px 0;
    position: relative;
    transition: color ease-in-out 0.3s;
}

nav > ul > li:not(:first-child) > a:hover, nav > ul > li:not(:first-child) > a:focus {
    color: var(--navigation-mobile-link-active-colour);
    text-decoration: none;
}

nav > ul > li:not(:first-child) > a::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-ui-one-brighter);
    content: '';
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}

nav > ul > li:not(:first-child) > a:hover::after,
nav > ul > li:not(:first-child) > a:focus::after {
    opacity: 1;
    transform: translateY(0);
}

#header-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
    /* Immer Deutsch */
    direction: ltr;
}

#header-image {
    position: absolute;
    background-image: url(/img/header-image.jpg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 350px;
    transition: all ease-in-out 0.5s;
    z-index: 1;
}

#header-image-container:hover > #header-image {
    transform: scale(1.05);
}

#header-image-container:hover > #header-image-content > div {
    background-color: rgba(0, 0, 0, 0.7);
}

#header-image-content {
    position: relative;
    color: white;
    font-family: var(--header-image-font);
    font-size: 40px;
    text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.45);
    z-index: 2;
    width: 75%;
    margin: 25px auto auto;
}

#header-image-content > div {
    display: inline-block;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all ease-in-out 0.3s;
}

#layout {
    min-height: 100%;
    height: auto !important;
    padding-bottom: 50px;
}

#scroll-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    display: none;
}

#scroll-top img {
    width: 40px;
    height: 40px;
}

footer {
    margin-top: auto;
    cursor: default;
    line-height: 20px;
}

footer a {
    text-decoration: none;
    font-size: 14px;
    color: var(--footer-link-colour);
    transition: color ease-in-out 0.3s;
}

footer a:hover, footer a:focus {
    color: var(--footer-link-active-colour);
}

footer div#links {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: var(--footer-background-colour);
}

footer:dir(ltr) div#links div:not(:last-child) {
    margin-right: 45px;
}

footer:dir(rtl) div#links div:not(:first-child) {
    margin-right: 45px;
}

footer div#links h2 {
    color: var(--footer-headline-colour);
    font-size: 1.3em;
    margin-bottom: 5px;
    font-weight: normal;
    border-bottom: 0;
}

footer div#links ul {
    list-style-type: none;
}

footer div#language-links {
    background-color: var(--footer-languages-background-colour);
    text-align: center;
    padding: 5px;
}

footer div#language-links ul {
    list-style-type: none;
}

footer div#language-links li {
    display: inline;
    padding-left: 10px;
    padding-right: 10px;
}

footer div#language-links ul li:not(:last-child)::after {
    content: '⊙';
    margin-left: 20px;
}

#wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 15px;
}

.hidden {
    display: none;
}
.home-information h2 {
    margin-top: 25px;
}

.home-information summary, .home-information p {
    font-size: 1.2em;
    line-height: 1.5em;
}

.home-information summary {
    cursor: pointer;
    list-style-type: none;
    font-weight: normal;
    text-align: center;
    color: var(--accent-ui-one);
}

.home-information summary::-webkit-details-marker, .home-information summary::marker {
    display: none;
    color: transparent;
}

.home-information details summary::after {
    content: attr(data-open);
    opacity: 0;
}

.home-information details[open] summary::after {
    content: attr(data-open);
    opacity: 1;
}

.home-information details:not([open]) summary::after {
    content: attr(data-close);
    opacity: 1;
}

.home-information details[open] summary ~ * {
    animation: sweep .5s ease-in-out;
}

@keyframes sweep {
    0%    {opacity: 0; margin-left: -10px}
    100%  {opacity: 1; margin-left: 0}
}

.news-container {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    /* Standard: Deutsch */
    direction: ltr;
}

.news {
    width: calc(25% - 40px);
    height: 350px;
    min-width: 250px;
    min-height: 250px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.news:hover > .header > img {
    transform: scale(1.2);
}

.news > .header {
    overflow: hidden;
    width: 100%;
    height: 138px;
}


.news > .header > img {
    object-fit: cover;
    width: 100%;
    height: 138px;
    transition: transform ease-in-out 0.5s;
}

.news > .body {
    padding: 8px 16px;
}

.tags > a {
    padding: 4px;
    background-color: var(--tags-background-color);
    border-color: var(--tags-border-colour);
    display: inline-block;
    font-size: 12px;
    border-radius: 2px;
    text-decoration: none;
    color: var(--tags-color);
    transition: background-color ease-in-out 0.2s;
    user-select: none;
}

.tags > a:hover, .tags > a:focus {
    background-color: var(--tags-active-background-colour);
    color: var(--tags-actove-colour);
}

.news .header {
    position: relative;
}

.news .header .date {
    font-size: 12px;
    text-align: right;
    color: white;
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: black;
    padding: 4px;
}

.news > .body > h2 {
    font-family: var(--headline-font);
    font-weight: 300;
    font-size: 22px;
    height: 3em;
    margin-top: 10px;
    margin-bottom: 0;
    border-bottom: 0;
    padding: 0;
}

.news > .body > h2 > a {
    color: black;
    text-decoration: none;
    transition: color ease-in-out 0.3s;
}

.news > .body > h2 > a:hover, .news > .body > h2 > a:focus {
    color: var(--news-headline-link-active);
}


.news > .body > h2 > a::after {
    opacity: 0;
    content: ' «';
    transition: opacity ease-in-out 0.2s;
    position: absolute;
    display: inline-block;
    margin-left: 4px;
}

.news > .body > h2 > a:hover::after, .news > .body > h2 > a:focus::after {
    opacity: 1;
}

.news > .body > .teaser {
    font-size: 14px;
}

/* Language Switch */
.dropdown-menu {
    position: relative;
    display: inline-block;
    float: right;
}

.dropdown-menu:dir(rtl) {
    float: left;
}

.dropdown-btn {
    background-color: var(--accent-ui-one);
    color: var(--accent-ui-one-text-colour);
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color .2s ease-in-out;
}

.dropdown-content {
    display: none;
    position: absolute;
    opacity: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    right: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color .2s ease-in-out;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-menu:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown-menu:hover .dropdown-btn {
    background-color: var(--accent-ui-one-brighter);
}

/* Systemmeldungen */
.messagebox {
    width: 830px;
    max-width: 100%;
    line-height: 1.5em;
    text-align: justify;
    padding: 20px 12px 20px 50px;
    margin: auto auto 20px;
}

.messagebox:dir(ltr)::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: -30px;
    vertical-align: top;
}

.messagebox:dir(rtl)::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: -30px;
    vertical-align: top;
}

.messagebox:dir(ltr) > div {
    display: inline-block;
    margin-left: 15px;
}

.messagebox:dir(rtl) > div {
    display: inline-block;
    margin-right: 45px;
}

.messagebox-info {
    color: var(--info-colour);
    background-color: var(--info-background-colour);
    border-bottom: 3px solid var(--info-border-bottom-colour);
}

.messagebox-info::before {
    content: '\f05a';
}

.messagebox-success {
    color: var(--success-colour);
    background-color: var(--success-background-colour);
    border-bottom: 3px solid var(--success-border-bottom-colour);
}

.messagebox-success:before {
    content: '\f00c';
}

.messagebox-warning {
    color: var(--warning-colour);
    background-color: var(--warning-background-colour);
    border-bottom: 3px solid var(--warning-border-bottom-colour);
}

.messagebox-warning:before {
    content: '\f071';
}

.messagebox-error {
    color: var(--error-colour);
    background-color: var(--error-background-colour);
    border-bottom: 3px solid var(--error-border-bottom-colour);
}

.messagebox-error:before {
    content: '\f057';
}

.messagebox-fullwidth {
    width: 100%;
}

/* Formularfehler */
.error-list {
    color: var(--error-colour);
    background-color: var(--error-background-colour);
    border-bottom: 3px solid var(--error-border-bottom-colour);
    padding: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 500px;
}

.error-list ul {
    margin-left: 15px;
}

/* Standardformular */
.standard-form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 15px;
}

.standard-form input[type="text"],
.standard-form input[type="email"],
.standard-form input[type="number"],
.standard-form input[type="date"],
.standard-form input[type="password"] {
    padding: 8px;
    font-size: 14px;
    width: 500px;
    max-width: 500px;
    border: 1px solid #cdcdcd;
    outline: 0;
    color: var(--standard-text-colour);
    letter-spacing: 0.04em;
}

*[disabled], *[readonly] {
    cursor: not-allowed !important;
    background-color: #cdcdcd;
}

.standard-form .selectize-control {
    width: 500px;
    max-width: 500px;
}

.standard-form textarea {
    padding: 8px;
    font-size: 14px;
    width: 500px;
    max-width: 500px;
    border: 1px solid #cdcdcd;
    outline: 0;
    color: var(--standard-text-colour);
    letter-spacing: 0.04em;
    height: 200px;
    resize: none;
}

/* Button des Standardformulars */
.standard-form button[type="submit"] {
    display: inline-block;
    border: none;
    font-family: var(--headline-font);
    color: var(--form-submit-colour);
    background-color: var(--form-submit-background-colour);
    cursor: pointer;
    padding: 20px 60px 20px 120px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    outline: none;
    position: relative;
    transition: all 0.3s;
    font-size: 15px;
    width: 500px;
    max-width: 100%;
}

.standard-form button[type="submit"]:before {
    font-family: 'Font Awesome 5 Free';
    speak: none;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 58px;
    font-size: 1.4em;
    width: 60px;
    background-color: var(--form-submit-background-colour-darker);
    vertical-align: middle;
    height: 100%;
}

.standard-form button[type="submit"]:hover {
    background-color: var(--form-submit-background-colour-darker);
}

.standard-form button[type="submit"]:active, .standard-form button[type="submit"]:focus {
    top: 2px;
}

/* Abweichungen des Standardformulars (custom form) */
#custom-form label {
    display: inline-block;
    margin-right: 10px;
}

#custom-form i {
    color: black;
    cursor: help;
}

#custom-form i:dir(rtl) {
    margin-right: 6px;
}

#custom-form input[type="checkbox"] {
    float: left;
    margin-top: 17px;
    margin-right: 6px;
}

#wohnhaft-erzwingen {
    border: 1px solid #f4f4f4;
    background-color: white;
    padding: 10px;
}

#wohnhaft-erzwingen input[type="checkbox"] {
    display: inline !important;
    float: none;
    margin-top: 0;
}

#wohnhaft-erzwingen label {
    display: inline;
    margin-top: 0;
}

#kitasave-indicator {
    border-radius: 4px;
    margin-left: 8px;
    margin-top: -3px;
    background-color: var(--accent-ui-one);
    font-size: 0.8em;
    padding: 4px;
    color: var(--accent-ui-one-text-colour);
    width: 1.6em;
    height: 1.6em;
    text-align: center;
    vertical-align: middle;
}

.invisible {
    display: none;
}

.visible-inline-block {
    display: inline-block;
}

.standard-form label.required:after {
    content: " *";
}

.icon-save:before {
    content: "\f0c7";;
}

.icon-send:before {
    content: "\f1d8";
}

.icon-delete:before {
    content: "\f2ed";;
}

/* Toggle Boxes */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent-ui-one);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-ui-one);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.flex-settings {
    display: flex;
    align-items: center;
}

.flex-settings .column {
    flex: 50%;
}

.align-right {
    text-align: right;
}

.inline-block {
    display: inline-block !important;
}

.text-ul {
    line-height: 1.5em;
}

.ul-inside {
    list-style-position: inside;
    text-indent: -1em;
    padding-left: 1em;
}

.button-small {
    box-shadow: inset 0 1px 0 0 #ffffff;
    background: #ededed linear-gradient(to bottom, #ededed 5%, #dfdfdf 100%);
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    display: inline-block;
    cursor: pointer;
    color: #777777;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 24px;
    text-decoration: none;
    text-shadow: 0 1px 0 #ffffff;
}
.button-small:hover {
    background: #dfdfdf linear-gradient(to bottom, #dfdfdf 5%, #ededed 100%);
}
.button-small:active {
    position: relative;
    top: 1px;
}

/* News Styling Start */
time.icon {
    font-size: 0.9em;
    display: block;
    position: relative;
    width: 7em;
    height: 7em;
    background-color: #fff;
    border-radius: 0.6em;
    box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
    overflow: hidden;
    transform-origin: 50% 10%;
    user-select: none;
    float: left;
    margin-bottom: 5px;
    margin-right: 25px;
}

time.icon * {
    display: block;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    font-style: normal;
    text-align: center;
}

time.icon strong {
    position: absolute;
    top: 0;
    padding: 4px;
    color: #fff;
    background-color: var(--accent-ui-one);
    border-bottom: 1px dashed #fff;
    box-shadow: 0 2px 0 var(--accent-ui-one);
}

time.icon em {
    position: absolute;
    bottom: 0.3em;
    color: var(--accent-ui-one);
}

time.icon span {
    width: 100%;
    font-size: 2.8em;
    letter-spacing: -0.05em;
    padding-top: .7em;
    color: #2f2f2f;
}

.single-news-title {
    /* Immer Deutsch */
    direction: ltr;
}

.single-news-header {
    display: flex;
    flex-direction: row;
    align-items: center;

    /* Immer Deutsch */
    direction: ltr;
}

.single-news-text {
    line-height: 1.8em;

    /* Immer Deutsch */
    direction: ltr;
}
/* News Styling Ende */

@media screen and (max-width: 930px) {
    #wrapper {
        width: 100%;
    }

    .news-container {
        justify-content: center;
    }

    .news {
        width: 95%;
        min-width: 95%;
        max-width: 95%;
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 770px) {
    .news-container {
        justify-content: center;
    }

    footer div#links div:first-child {
        margin: 0;
    }

    footer div #links div:not(:last-child) {
        margin-right: 20px;
    }

    .standard-form input[type="text"],
    .standard-form input[type="email"],
    .standard-form input[type="number"],
    .standard-form input[type="date"],
    .standard-form button[type="submit"],
    .standard-form input[type="password"],
    .standard-form .selectize-control {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 1220px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .messagebox, .error-list {
        width: 100%;
    }

    nav:dir(ltr) > a {
        display: inline-block;
    }

    nav:dir(rtl) > a {
        display: inline-block;
    }

    nav > ul {
        display: block;
    }

    nav > ul > li {
        display: block;
        text-align: left;
        border-bottom: 1px solid #cdcdcd;
    }

    nav > ul > li:first-child {
        border-bottom: 0;
        display: inline-block;
        text-align: left;
    }

    nav > ul > li > a {
        display: block;
    }

    nav > ul > li:first-child i {
        display: inline-block;
    }

    nav > ul > li:first-child img {
        display: none;
    }

    nav > ul > li:not(:first-child) {
        display: none;
        margin-right: 0;
    }

    nav > ul > li:nth-child(2) {
        margin-top: 15px;
    }

    nav.responsive > ul > li:not(:first-child) {
        display: block;
        margin-right: 0;
    }

    nav.responsive {
        position: relative;
    }

    nav.responsive:dir(rtl) li {
        text-align: right;
    }

    nav > ul > li:not(:first-child) > a:hover::after,
    nav > ul > li:not(:first-child) > a:focus::after {
        opacity: 0;
    }

    #language-switcher {
        position: absolute;
        right: 80px;
        top: 16px;
    }

    #language-switcher .dropdown-btn {
        padding: 8px;
    }

    #header-image-content {
        font-size: 30px;
    }

    .news-container {
        justify-content: center;
        gap: 20px;
    }

    .news:not(:last-child) {
        margin-bottom: 20px;
    }

    footer div#links {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    footer:dir(ltr) div#links div:not(:last-child) {
        margin-right: 0;
    }

    footer:dir(rtl) div#links div:not(:first-child) {
        margin-right: 0;
    }

    footer div#links div:not(:last-child) {
        margin-bottom: 25px;
    }

    details {
        width: 100%;
    }

    .standard-form input[type="text"],
    .standard-form input[type="email"],
    .standard-form input[type="number"],
    .standard-form input[type="date"],
    .standard-form button[type="submit"],
    .standard-form .selectize-control,
    .standard-form input[type="password"],
    .standard-form textarea {
        width: 100%;
        max-width: 100%;
    }

    footer div#language-links li {
        display: block;
    }

    footer div#language-links li::after {
        display: none;
    }
}