/* GemeindeApp: Elemente zur Darstellung.*/
.gemeinde-app-entry .eo-date-container {
    background: #1e8cbe;
    color: white;
    text-align: center;
    width: 2em;
    line-height: 1.3;
}

.gemeinde-app-entry .eo-date-container .eo-date-day {
    font-weight: bold;
    background: #9674B2;
    display: block;
    margin: 0;
    border: none;
    font-size: 1.3em;
}

.gemeinde-app-entry .eo-date-container .eo-date-month {
    display: block;

    margin: 0;
    padding: 0.2em;
    padding-left: 0.4em;

    background: #491370;
    color: white;

    letter-spacing: 0.07em;
    text-align: center;

    font-weight: bold;
    font-variant: normal;
    font-size: 0.7em;
}

.gemeinde-app-entry.details .title-bar .topic-icon {
    margin-top: 10px;
}

.previews-list.inline {
    border: 1px solid silver;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
    background-color: #fafafa;
}

.gemeinde-app-entry.teaser .title-bar .title {
    font-size: 0.7em;
    padding-bottom: 0;
}

.gemeinde-app-entry.teaser h2 {
    border-bottom: none;
    hyphens: auto;
}

.gemeinde-app-entry.teaser + .teaser {
    border-top: 1px solid silver;
    padding-top: 5px;
    margin-top: 5px;
}

.gemeinde-app-entry.teaser .meta div,
.gemeinde-app-entry.event .meta div {
    display: inline-block;
}

.gemeinde-app-entry.teaser .meta div + div:not(:empty):before,
.gemeinde-app-entry.event .meta div + div:not(:empty):before {
    content: '|';
    font-style: normal;
    padding-right: 5px;
    padding-left: 5px;
}

.gemeinde-app-entry.teaser .eo-date-container {
    margin: 0 5px;
}

.gemeinde-app-entry.details .eo-date-container {
    float: left;
    margin: 0 15px 15px 0;
}

.gemeinde-app-entry.details.event .meta {
    text-align: right;
}

.gemeinde-app-entry {
    --icon-width: 2rem;
    --icon-gap: 10px;
}

.gemeinde-app-entry.teaser .title-and-content {
    flex: 1;
    padding-left: calc(var(--icon-width) + var(--icon-gap));
}

.gemeinde-app-entry.teaser .title-bar {
    margin-left: calc(0px - var(--icon-width) - var(--icon-gap));
}

.gemeinde-app-entry .title-bar {
    font-size: 2rem;
    display: flex;
}

.gemeinde-app-entry .title-bar .title {
    margin-top: 0;
    font-size: inherit;
    font-weight: bold;
    flex: 1;
    hyphens: auto;
}

.gemeinde-app-entry .title:before {
    display: none;
}

.gemeinde-app-entry .title-bar .topic-icon {
    display: inline-block;
    height: var(--icon-width);
    width: var(--icon-width);
    margin-right: var(--icon-gap);
    margin-top: 0;
    align-self: flex-start;
    line-height: 1.2;
}

.gemeinde-app-entry .with-main-audience-color svg {
    fill: var(--audience-color);
}

.gemeinde-app-entry .with-main-audience-color {
    color: var(--audience-color);
}

.gemeinde-app-entry .inline-photo,
.gemeinde-app-entry .main-image-container {
    display: block;
    position: relative;
}

.gemeinde-app-entry .inline-photo img,
.gemeinde-app-entry .main-image-container img {
    max-width: 100%;
    position: relative;
    height: auto;
}

.gemeinde-app-entry .inline-photo img,
.gemeinde-app-entry .main-image-container img {
    width: 100%;
}

.gemeinde-app-entry .main-image-container .copyright-info {
    display: block;
    width: 100%;
    z-index: 3;
    font-size: 0.8em;
    padding: 0.2em 3px;
    text-align: right;
    bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.5;
    font-style: italic;
}

.gemeinde-app-entry .main-image-container .copyright-info:before {
    content: "Bild: ";
}

.gemeinde-app-entry.details .main-image-container {
    margin-top: 10px;
    margin-bottom: 20px;
}

@media only screen and (min-width: 768px) {
    .gemeinde-app-entry.details .inline-photo,
    .gemeinde-app-entry.details .main-image-container {
        margin-left: auto;
        margin-right: auto;
        width: 600px;
    }
}

.gemeinde-app-entry.teaser .main-image-container {
    width: 35%;
    margin-top: 5px;
    margin-right: 20px;
    align-self: flex-start;
    flex: none;
}

.gemeinde-app-entry .inline-photo p:empty {
    display: none;
}

.gemeinde-app-entry img {
    display: block;
}

.gemeinde-app-entry.teaser .copyright-info {
    line-height: 1;
    font-size: 0.6em;
}

.gemeinde-app-entry.teaser > a {
    text-decoration: none !important;
    display: flex;
    color: inherit;
    line-height: 1.2;
}

.gemeinde-app-entry.teaser .eo-date-container {
    align-self: flex-start;
    margin-top: 5px;
    margin-right: 10px;
}

.gemeinde-app-entry.teaser .title-and-content p {
}

/* Link to Die-Gemeinde-App */

.gemeinde-app-link a {
    padding: 10px;
    display: flex;
    flex-direction: row;
    text-decoration: none;
}

.gemeinde-app-link a img {
    width: 50px;
    height: 50px;
}

.gemeinde-app-link a div {
    flex: 1;
    padding-left: 10px;
}

.gemeinde-app-entry .meta-info ~ .meta-info {
    margin-left: 5px;
}

code.debug-template {
    font-size: 9px;
    position: relative;
    display: block;
}

.gemeinde-app-entry * {
    box-sizing: border-box;
}

/* Filter Widget */
.gemeinde-app-filters {
    --padding-horizontal: 10px;
    --padding-vertical: 8px;
    --li-padding-vertical: 8px;
}

.gemeinde-app-filters,
.gemeinde-app-filter {
    position: relative;
    z-index: 10;
}

.gemeinde-app-filter {
    display: inline-block;
}

.gemeinde-app-filter ul {
    display: none;
    max-height: 50vH;
    overflow-y: scroll;
    overflow-x: hidden;
    position: absolute;
    background-color: white;
    padding: 0;
    border: 1px solid silver;
}

@media only screen and (max-width: 599px) {
    .gemeinde-app-filter {
        position: static;
    }
    .gemeinde-app-filter ul {
        width: 80%;
        left: 10%;
    }
}

@media only screen and (max-width: 500px) {
    /* hide filter labels if too narrow screen */
    .gemeinde-app-filter .selected span {
        display: none;
    }
}

.gemeinde-app-filter:hover ul,
.gemeinde-app-filter:focus-within ul {
    display: block;
}

.gemeinde-app-filter li {
    white-space: nowrap;
    padding: var(--li-padding-vertical) var(--padding-horizontal);
    margin: 0;
}

.gemeinde-app-filter li:hover {
    background-color: silver;
}

.gemeinde-app-filter .selected,
.gemeinde-app-filter li {
    padding: var(--padding-vertical) var(--padding-horizontal);
}

.gemeinde-app-filter .selected {
    border: 1px solid silver;
    cursor: pointer;
}

.gemeinde-app-filter .selected,
.gemeinde-app-filter a {
    display: flex;
    align-items: center;
}

.gemeinde-app-filter i {
    display: inline-flex;
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.5em;
    align-items: center;
    justify-content: center;
}

.gemeinde-app-filter.gemeinde-app-entry i.meta-info:before {
    position: absolute;
    margin: 0;
}

.gemeinde-app-filter i.main-audience {
    background-color: var(--audience-color);
    border-radius: 0.75em;
}

.gemeinde-app-filter i svg {
    width: 1.5em;
    height: 1.5em;
    display: grid;
}

.gemeinde-app-filter a {
    text-decoration: none;
}

.gemeinde-app-filter ul::-webkit-scrollbar {
    background-color: white;
    border-radius: 10px;
    width: 20px;
}

.gemeinde-app-filter ul::-webkit-scrollbar-thumb {
    background-color: grey;
    border-radius: 10px;
    border: 5px solid white;
}

.gemeinde-app-filter ul::-webkit-scrollbar-thumb:vertical {
    height: 20px !important;
    width: 20px;
}
