/*
Theme Name: LM-Template
Author: Lennart Möller
Author URI: https://www.lennartmoeller.com/
Description: Minimalistic Wordpress Theme
*/

/* Styles for the plugin Events Manager */

:root {
    --em-column-spacing: 10px;
    --em-max-width: 1400px;
    --em-grid-columns: 3;
}

/* Top Line Buttons */

.em-grid-table-button-wrapper {
    margin-top: 29px !important;
    display: flex;
    margin: var(--em-column-spacing) calc(var(--em-column-spacing) * 2);
}
@media screen and (max-width: 750px) {
    .em-grid-table-button-wrapper {
        display: none;
    }
}
.em-grid-table-button-container {
    display: inline-flex;
    margin-left: auto;
}
#em-grid-button,
#em-table-button {
    line-height: 1;
    padding: 8px;
    border-radius: 5px;
    margin-left: 5px;
    background-color: var(--lightgrey-color);
    color: black;
    opacity: 0.5;
    cursor: pointer;
}
#em-grid-button:hover,
#em-table-button:hover {
    opacity: 0.7;
}
.em-grid-table-button-active,
.em-grid-table-button-active:hover {
    opacity: 1 !important;
    -webkit-box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    cursor: none;
}

/* Both layouts */

#em-wrapper {
    margin: var(--em-column-spacing) auto;
    max-width: calc(var(--em-max-width) - 2 * var(--em-column-spacing));
}
.em-event-wrapper {
    border: 1px solid var(--lightgrey-color);
    margin: var(--em-column-spacing);
}
.em-event-wrapper:hover {
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}
.em-event-text {
    color: var(--font-color);
}
.em-event-text > * {
    margin: 10px;
    font-size: 15px;
}
.em-event-text > h3 {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 4px;
}
.em-event-text > h4 {
    font-size: 17px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 18px;
}
.em-event-text i {
    width: 15px;
    margin-right: 8px;
    text-align: center;
}
#em-wrapper a {
    text-decoration: none;
    color: var(--font-color);
}
.em-event-short-description {
    margin-top: 20px;
    line-height: 1.3;
}
.em-short-from-date {
    background-color: rgb(255, 255, 255);
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.2) 5px 3px 15px 0px;
    box-sizing: border-box;
    color: rgb(85, 85, 85);
    margin: 15px;
    padding: 10px;
    position: absolute;
}
.em-short-from-date-day {
    box-sizing: border-box;
    color: rgb(51, 51, 51);
    font-family: "Lato", sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 23px;
}
.em-short-from-date-month {
    color: rgb(153, 153, 153);
    font-family: "Lato", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
    text-transform: uppercase;
}

/* Grid Layout */

.em-grid-layout #em-events {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}
.em-grid-layout .em-event-wrapper {
    width: calc(100% / var(--em-grid-columns) - var(--em-column-spacing) * 2 - 2px);
}
.em-grid-layout .em-event-image {
    overflow: hidden;
}
.em-grid-layout .em-event-image > img {
    width: 100%;
    height: calc(((100vw - 2 * var(--em-column-spacing)) / var(--em-grid-columns) - 2 * var(--em-column-spacing) - 2px) / 3 * 2);
    max-height: calc(((var(--em-max-width) - 2 * var(--em-column-spacing)) / var(--em-grid-columns) - 2 * var(--em-column-spacing) - 2px) / 3 * 2);
    object-fit: cover;
}
.em-grid-layout .em-event-text {
    margin: 25px 20px 35px;
}
.em-grid-layout .em-event-list-buttons {
    display: none;
}
@media screen and (max-width: 1100px) {
    :root {
        --em-grid-columns: 2;
    }
}
@media screen and (max-width: 700px) {
    :root {
        --em-grid-columns: 1;
    }
}

/* Table Layout */

@media screen and (min-width: 750px) {
    .em-table-layout #em-events {
        margin-top: calc(10px + 30px);
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    .em-table-layout .em-event-wrapper {
        position: relative;
    }
    .em-table-layout .em-event-wrapper a {
        text-align: left;
        display: flex;
        flex-wrap: wrap;
    }
    .em-table-layout .em-event-image {
        height: 200px;
    }
    .em-table-layout .em-event-image > img {
        width: 300px;
        height: 200px;
        object-fit: cover;
    }
    .em-table-layout .em-event-text {
        width: calc(100% - 340px);
        margin: 0 20px;
        height: fit-content;
        position: absolute;
        left: 300px;
        top: 50%;
        transform: translateY(-50%);
    }
    .em-table-layout .em-event-list-buttons {
        width: 40px;
        display: table-cell;
        vertical-align: middle;
        position: absolute;
        bottom: var(--em-column-spacing);
        right: var(--em-column-spacing);
    }
    .em-table-layout .em-event-list-buttons a {
        color: white !important;
        background-color: var(--akzent-color-blue);
        font-size: 20px;
        text-align: center;
        width: 40px;
        height: 40px;
        margin: 10px 0 0;
        box-sizing: border-box;
        display: block;
        transition: 0.5s;
        position: relative;
        overflow: hidden;
        border-radius: 3px;
    }
    .em-table-layout .em-event-list-buttons a .button-description {
        font-size: 14px;
        position: absolute;
        left: 40px;
        line-height: 40px;
        top: 0;
        width: fit-content;
    }
    .em-table-layout .em-event-list-buttons a i {
        width: 30px;
        height: 40px;
        line-height: 40px;
        position: absolute;
        top: 0;
        left: 5px;
    }
    .em-table-layout .em-event-list-buttons a:hover {
        opacity: 0.9;
        width: 160px;
        transform: translateX(-120px);
    }
}
@media screen and (max-width: 749px) {
    .em-table-layout #em-events {
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        margin-top: 30px;
    }
    .em-table-layout .em-event-wrapper {
        width: calc(100% / var(--em-grid-columns) - 2px);
        margin-left: 0;
        margin-right: 0;
    }
    .em-table-layout .em-event-image {
        overflow: hidden;
    }
    .em-table-layout .em-event-image > img {
        width: 100%;
        height: calc(((100vw - 2 * var(--em-column-spacing)) / var(--em-grid-columns) - 2 * var(--em-column-spacing) - 2px) / 3 * 2);
        max-height: calc(
            ((var(--em-max-width) - 2 * var(--em-column-spacing)) / var(--em-grid-columns) - 2 * var(--em-column-spacing) - 2px) / 3 * 2
        );
        object-fit: cover;
    }
    .em-table-layout .em-event-text {
        margin: 25px 20px 35px;
    }
    :root {
        --em-grid-columns: 1;
    }
    .em-table-layout .em-event-list-buttons {
        display: none;
    }
}
.em-table-layout .single-location {
    margin-left: 0;
    margin-right: 0;
}
.em-table-layout .single-location .em-event-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Small Layout */

.em-small-layout .em-event-wrapper {
    padding: 20px 0 25px;
}
.em-small-layout .em-event-image {
    display: none;
}
.em-small-layout .em-short-from-date {
    display: none;
}
.em-small-layout .em-event-text {
    width: 100%;
    margin: 0 5px;
    position: inherit;
    left: auto;
    top: auto;
    transform: none;
}
.em-small-layout .em-event-text > h3 {
    margin-top: 0; /* cross browser compartibility */
    font-size: 17px;
}
.em-small-layout .em-event-location {
    margin-bottom: 0; /* cross browser compartibility */
}
.em-small-layout .em-event-location,
.em-small-layout .em-event-time {
    padding-left: 23px;
}
.em-small-layout .em-event-location > i,
.em-small-layout .em-event-time > i {
    position: absolute;
    transform: translate(-23px);
}
.em-small-layout .lm-em-no-events {
    margin-top: 20px;
    text-align: left;
}
.em-small-layout .em-event-list-buttons {
    display: none;
}
@media screen and (max-width: 1024px) {
    .em-small-layout .em-event-wrapper {
        border-left: none;
        border-bottom: none;
        border-right: none;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }
    .em-small-layout .em-event-wrapper:first-child {
        border-top: none;
    }
    .em-small-layout .em-event-wrapper:hover {
        box-shadow: none;
    }
    .em-small-layout .em-event-text {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .em-small-layout .em-event-text > * {
        margin-left: 0;
        margin-right: 0;
    }
}
@media screen and (min-width: 1025px) {
    .em-small-layout #em-events {
        border-radius: 5px;
        border: 1px solid var(--lightgrey-color);
    }
    .em-small-layout .em-event-wrapper {
        margin-bottom: 0;
        border: none;
        box-shadow: none;
    }
    .em-small-layout .em-event-wrapper:hover {
        background-color: var(--whitegrey-color);
    }
    .em-small-layout .em-event-wrapper:not(:last-child) {
        border-bottom: 1px solid var(--lightgrey-color);
    }
    .em-small-layout .em-short-from-date {
        position: absolute;
        width: 47px;
        height: 60px;
        margin: 0;
        transform: translate(-10px, -10px);
        box-shadow: none;
        border: 1px solid var(--lightgrey-color);
    }
    .em-small-layout .em-event-text > * {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* SEARCH */

.em-search-wrapper {
    max-width: 350px;
    width: calc(100% - 40px);
    margin: 0 auto -65px;
    opacity: 0.6;
}
@media screen and (max-width: 750px) {
    .em-search-wrapper {
        margin-bottom: 30px;
    }
}
.em-search-wrapper:hover,
.em-search-wrapper.search-active {
    opacity: 1;
}
.em-search-wrapper * {
    font-size: 15px !important;
}
.em-search-wrapper .em-events-search {
    border: 1px solid var(--lightgrey-color);
    border-radius: 10px;
    overflow: hidden;
    height: 34px;
}
.em-search-wrapper .em-events-search:hover,
.em-search-wrapper.search-active .em-events-search {
    height: 104px;
}
.em-search-wrapper .em-search-line {
    /* top line wrapper */
    height: 34px;
    width: 100%;
    border-bottom: 1px solid var(--lightgrey-color);
}
.em-search-wrapper .em-search-first_line,
.em-search-wrapper .em-search-third_line {
    display: flex;
}
.em-search-wrapper .em-search-third_line {
    border-bottom: none;
}
.em-search-wrapper .em-search-third_line select {
    -webkit-appearance: none !important;
}
.em-search-wrapper .em-search-text.em-search-field {
    /* standard input wrapper */
    width: calc(100% - 40px);
}
.em-search-wrapper input.em-events-search-text.em-search-text,
.em-search-wrapper input.em-search-geo,
.em-search-wrapper select#category,
.em-search-wrapper select.em-search-town.em-events-search-town {
    /* input fields */
    border: none;
    margin: 0;
    padding: 2px 10px;
    line-height: 2;
    background: none !important;
}
.em-search-wrapper .em-search-category.em-search-field {
    border-right: 1px solid var(--lightgrey-color);
}
.em-search-wrapper .em-search-category.em-search-field,
.em-search-wrapper .em-search-location {
    width: calc(50% - 0.5px);
    position: relative;
}
.em-search-wrapper .em-search-category.em-search-field > *,
.em-search-wrapper .em-search-location > * {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.em-search-wrapper .em-search-category.em-search-field *,
.em-search-wrapper .em-search-location * {
    width: 100%;
}
.em-search-wrapper button.em-search-submit {
    /* submit button */
    width: 40px;
    height: 100%;
    border: none;
    cursor: pointer;
    background: var(--lightgrey-color) url(https://lmr-nds.de/wp-content/themes/lm-template/images/icons/search.png) center no-repeat !important;
    background-size: 15px !important;
    opacity: 0.7;
}
.em-search-main button:hover {
    opacity: 1;
}

/* NO EVENTS */

.lm-em-no-events {
    width: 100%;
    text-align: center;
    margin-top: 100px;
}

/* SINGLE EVENT */

.em-single-subtitle {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    transform: translateY(-25px);
}
.em-single-subtitle h3 {
    margin-top: 0;
    margin-bottom: -23px;
    font-size: 28px;
    font-weight: 400;
    opacity: 0.8;
}
.em-single-subtitle h3:empty {
    margin-bottom: 0px;
}
@media screen and (max-width: 700px) {
    .em-single-subtitle h3 {
        font-size: calc(2vw + 14px);
        margin-top: -5px;
    }
}
.em-single-short-info {
    width: intrinsic;
    width: -moz-max-content;
    width: -webkit-max-content;
    margin: 50px auto;
    border-bottom: none;
    overflow: hidden;
}
@media screen and (max-width: 450px) {
    .em-single-short-info {
        margin-left: -20px;
        margin-right: -20px;
        width: 100vw;
    }
}
.em-single-short-info a {
    width: 100%;
    padding: 3px 0;
    display: inline-flex;
    display: table;
    color: var(--font-color);
    background-color: white;
}
.em-single-short-info a:not(:last-child) {
    border-bottom: 1px solid var(--lightgrey-color);
}
.em-single-short-info a[href=""] {
    display: none;
}
.em-single-short-info a .em-icon {
    font-size: 20px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 13px 17px;
    opacity: 0.7;
}
.em-single-short-info a .em-icon,
.em-single-short-info a .em-icon > i {
    width: 30px;
}
.em-single-short-info a:hover .em-icon {
    transform: scale(1.3);
    opacity: 1;
    color: var(--akzent-color);
}
.em-single-short-info a .em-text {
    display: block;
    width: intrinsic;
    width: -moz-max-content;
    width: -webkit-max-content;
    max-width: calc(100vw - 80px);
    padding: 15px 30px 15px 0;
}
.em-single-short-info a:hover .em-text {
    transform: translate(3px, 0px);
}
.em-single-short-info a .em-text .em-small {
    font-size: 14px;
    opacity: 0.8;
}
.em-single-description {
    max-width: 700px;
    margin: 0 auto;
}

/* SINGLE LOCATION */

#em-location-map {
    text-align: right;
}
#em-location-map > .em-fullscreen-button {
    cursor: pointer;
    z-index: 997;
    background-color: white;
    width: intrinsic;
    width: -moz-max-content;
    width: -webkit-max-content;
    margin: 0 !important;
    transform: translate(-20px, 50px);
}
body.em-map-fullscreen-active #em-location-map > .em-fullscreen-button {
    position: absolute !important;
    right: 25px;
    top: 25px;
    transform: none;
    -webkit-box-shadow: 0px 0px 10px 5px rgba(255, 255, 255, 0.5);
    -moz-box-shadow: 0px 0px 10px 5px rgba(255, 255, 255, 0.5);
    box-shadow: 0px 0px 10px 5px rgba(255, 255, 255, 0.5);
}
#em-location-map > .em-fullscreen-button > i {
    padding-left: 5px;
}
#em-location-map > .em-fullscreen-button:before {
    content: "VOLLBILD";
}
body.em-map-fullscreen-active #em-location-map > .em-fullscreen-button:before {
    content: "MINIMIEREN";
}
#em-location-map > .em-fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.15);
}
body.em-map-fullscreen-active {
    height: 100vh;
    overflow-y: hidden;
}
body.em-map-fullscreen-active #em-location-map {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: var(--customvh);
    padding: 0;
    background-color: white;
    z-index: 10000;
}
.em-location-description {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* PAGINATION */

.em-pagination {
    display: block;
    margin: 60px auto 0;
    text-align: center;
}
.em-pagination .page-numbers {
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    height: 32px;
    line-height: 32px;
    width: 32px;
    text-align: center;
    margin: 2px;
    position: relative;
    display: inline-block;
    background-color: var(--lightgrey-color);
    opacity: 0.7;
    color: black;
}
.em-pagination .page-numbers:not(.current):hover {
    opacity: 1;
}
.em-pagination .page-numbers.current {
    background-color: var(--akzent-color);
    color: rgb(255, 255, 255);
    opacity: 1;
    font-weight: 700;
}
.em-pagination .page-numbers.next,
.em-pagination .page-numbers.prev {
    display: none;
}
