/*
 * This file is part of the AP project.
 */

/*
 * --------------------------------------------------------------------------------
 * --- Variables ------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
:root {
}

/**
 * -----------------------------------------------------------------------------
 * --- Calendar ----------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-calendar {
    display: flex;
    flex-flow: column;
}

.p-calendar-navigation {
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.5em 0;
}

.p-calendar-navigation__link {
    font-size: 1.0em;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.p-calendar-navigation__link:active,
.p-calendar-navigation__link:link,
.p-calendar-navigation__link:visited {
    color: #000000;
}

.p-calendar-navigation__actual {
    font-size: 1.0em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #555555;
}

@media screen and (min-width: 600px) {
    .p-calendar-navigation__link,
    .p-calendar-navigation__actual {
        font-size: 1.2em;
    }
}

@media screen and (min-width: 900px) {
    .p-calendar-navigation__link,
    .p-calendar-navigation__actual {
        font-size: 1.2em;
    }
}

.p-calendar-labels {
    display: flex;
    flex-flow: wrap;
}

.p-calendar-labels__day {
    font-size: 1.0em;
    font-weight: bold;
    width: calc(100% / 7);
    padding: 20px 10px;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    border-right: 1px solid #008d5a;
    background-color: #000000;
}

.p-calendar-labels__day:nth-child(7) {
    border: none;
}

.p-calendar-dates {
    display: flex;
    flex-flow: wrap;
}

.p-calendar-dates__day {
    position: relative;
    display: flex;
    flex-flow: column;
    width: calc(100% / 7);
    min-height: 65px;
    padding: 10px 10px 10px 10px;
    text-align: center;
    color: #7c878d;
    border-right: 1px solid #e6e9ea;
    border-bottom: 1px solid #e6e9ea;
    background-color: #ffffff;
}

.p-calendar-dates__day:nth-child(7n+1) {
    border-left: 1px solid #e6e9ea;
}

.p-calendar-dates__link {
    display: block;
}

.p-calendar-dates__link,
.p-calendar-dates__link:link,
.p-calendar-dates__link:active,
.p-calendar-dates__link:visited {
    text-decoration: none;
    color: #7c878d;
}

.p-calendar-dates__day--ignore {
    cursor: inherit;
    background-color: #fdfdfd;
}

.p-calendar-dates__day--basic {
}

.p-calendar-dates__day--selected {
    font-weight: bold;
    background-color: #f1f2f3;
}

.p-calendar-dates__day--selected:hover {
    background-color: #f1f2f3;
}

.p-calendar-dates__event {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    height: 15px;
    border-radius: 4px;
}

.p-calendar-dates__event--active {
    background-color: #000000;
}

/**
 * -----------------------------------------------------------------------------
 * --- Contact -----------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-contact {
}

.p-contact__headline {
    margin: 0 0 1.0em 0;
}

/*
 * --------------------------------------------------------------------------------
 * --- Home -----------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.p-home {
}

/*
 * --------------------------------------------------------------------------------
 */

.p-home-exposition {
    margin: 0 0 2.0em 0;
}

.p-home-exposition-header {
    padding: 2.0em var(--box-indent-mobile-right) 2.0em var(--box-indent-mobile-left);
}

.p-home-exposition-header__headline {
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.p-home-exposition-articles {
    width: 100%;
    padding: 0 var(--box-indent-mobile-right) 0 var(--box-indent-mobile-left);
}

@media screen and (min-width: 700px) {
    .p-home-exposition-articles .a-articles {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media screen and (min-width: 700px) {
    .p-home-exposition-articles .a-articles-item-1 {
        width: calc(50% - 10px);
        margin: 0;
    }
}

@media screen and (min-width: 1100px) {
    .p-home-exposition-articles .a-articles-item-1 {
        width: calc(33.33% - 14px);
    }
}

/*
 * --------------------------------------------------------------------------------
 */

.p-home-stripe {
    margin: 0;
    padding: 0 var(--box-indent-mobile-right) 0 var(--box-indent-mobile-left);
}

.p-home-stripe-visitor {
    margin: 0 0 2.0em 0;
}

.p-home-stripe-visitor__text {
    margin: 0 0 1.0em 0;
}

.p-home-stripe-visitor-opening {
    margin: 0 0 1.5em 0;
}

.p-home-stripe-visitor-opening__headline {
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 30px auto;
    line-height: 1.75em;
    padding: 3px 0 3px 40px;
    background-image: url("../images/icon-time.svg");
    margin: 0;
    color: var(--color-action);
}

.p-home-stripe-visitor-opening__text {
    padding: 0 0 0 40px;
}

.p-home-stripe-visitor-address {
    margin: 0 0 1.5em 0;
}

.p-home-stripe-visitor-address__headline {
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 30px auto;
    padding: 3px 0 3px 40px;
    background-image: url("../images/icon-address.svg");
    margin: 0;
    color: var(--color-education);
}

.p-home-stripe-visitor-address__text {
    padding: 0 0 0 40px;
}

.p-home-stripe-visitor__buttons {
    display: flex;
    gap: 10px;
}

.p-home-stripe-visitor__button {
    display: block;
    padding: var(--button-basic-padding);
}

.p-home-stripe-visitor__button,
.p-home-stripe-visitor__button:active,
.p-home-stripe-visitor__button:link,
.p-home-stripe-visitor__button:visited {
    text-decoration: none;
    padding: var(--button-basic-padding);
}

.p-home-stripe-visitor__button:hover {
    text-decoration: none;
}

.p-home-stripe-visitor__button--1,
.p-home-stripe-visitor__button--1:active,
.p-home-stripe-visitor__button--1:link,
.p-home-stripe-visitor__button--1:visited {
    color: var(--museum-exhibition-button-color);
    background-color: var(--museum-exhibition-button-background);
    border: var(--museum-exhibition-button-border);
}

.p-home-stripe-visitor__button--1:hover {
    color: var(--museum-exhibition-button-color-hover);
    background-color: var(--museum-exhibition-button-background-hover);
    border: var(--museum-exhibition-button-border-hover);
}

.p-home-stripe-visitor__button--2,
.p-home-stripe-visitor__button--2:active,
.p-home-stripe-visitor__button--2:link,
.p-home-stripe-visitor__button--2:visited {
    color: var(--museum-education-button-color);
    background-color: var(--museum-education-button-background);
    border: var(--museum-education-button-border);
}

.p-home-stripe-visitor__button--2:hover {
    color: var(--museum-education-button-color-hover);
    background-color: var(--museum-education-button-background-hover);
    border: var(--museum-education-button-border-hover);
}

.p-home-stripe-calendar {
}

.p-home-stripe-calendar__headline {
    margin: 0 0 0.5em 0;
    font-weight: bold;
    padding: 0;
}

.p-home-stripe-calendar__events {
    padding: 20px;
    background-color: #eeeeee;
}

.p-home-stripe-calendar__event {
    margin: 0 0 1.0em 0;
    border-bottom: 1px dashed var(--color-action);
    padding-bottom: 1.0em;
}

.p-home-stripe-calendar__event:last-child {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.p-home-stripe-calendar__date {
    font-size: 1.5em;
    line-height: 1.3em;
    font-weight: bold;
    margin: 0 0 0.25em 0;
}

.p-home-stripe-calendar__link {
    font-size: 1.1em;
    margin: 0;
    font-weight: bold;
}

.p-home-stripe-calendar__link,
.p-home-stripe-calendar__link:active,
.p-home-stripe-calendar__link:link,
.p-home-stripe-calendar__link:visited {
    text-decoration: none;
    color: var(--museum-action-basic-normal-color);
}

.p-home-stripe-calendar__link:hover {
    text-decoration: underline;
}

@media screen and (min-width: 800px) {
    .p-home-stripe {
        display: flex;
        justify-content: space-between;
        padding: 0 var(--box-indent-desktop-right) 0 var(--box-indent-desktop-left);
        margin: 0 0 0 0;
    }

    .p-home-stripe-visitor {
        width: 45%;
        margin: 0;
    }

    .p-home-stripe-calendar {
        width: 45%;
    }
}

/*
 * --------------------------------------------------------------------------------
 */

.p-home-gallery {
    margin: 0 0 2.0em 0;
}

.p-home-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.0em var(--box-indent-mobile-right) 2.0em var(--box-indent-mobile-left);
    gap: 30px;
}

.p-home-gallery-header__headline {
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.p-home-gallery-header__line {
    display: none;
}

.p-home-gallery-header__button {
    display: none;
}

@media screen and (min-width: 600px) {
    .p-home-gallery-header__line {
        display: block;
        flex-grow: 4;
        height: 1px;
        border-bottom: 1px solid var(--color-action);
    }

    .p-home-gallery-header__button,
    .p-home-gallery-header__button:active,
    .p-home-gallery-header__button:link,
    .p-home-gallery-header__button:visited {
        display: block;
        padding: var(--button-basic-padding);
        text-decoration: none;
        color: var(--museum-action-button-color);
        background-color: var(--museum-action-button-background);
        border: var(--museum-action-button-border);
    }

    .p-home-gallery-header__button:hover {
        text-decoration: none;
        color: var(--museum-action-button-color-hover);
        background-color: var(--museum-action-button-background-hover);
        border: var(--museum-action-button-border-hover);
    }
}

@media screen and (min-width: 800px) {
    .p-home-gallery-header {
        padding: 2.0em var(--box-indent-desktop-right) 2.0em var(--box-indent-desktop-left);
    }
}

.p-home-gallery-sections {
    padding: 0 var(--box-indent-mobile-right) 0 var(--box-indent-mobile-left);
}

@media screen and (min-width: 500px) {
    .p-home-gallery-sections .a-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media screen and (min-width: 500px) {
    .p-home-gallery-sections .a-gallery-item {
        width: calc(50% - 10px);
        margin: 0;
    }
}

@media screen and (min-width: 1100px) {
    .p-home-gallery-sections .a-gallery-item {
        width: calc(25% - 15px);
    }
}

/*
 * --------------------------------------------------------------------------------
 */

.p-home-museum {
    margin: 0 0 2.5em 0;
    padding: 0 var(--box-indent-mobile-right) 0 var(--box-indent-mobile-left);
}

.p-home-museum-content {
    padding: 0;
    margin: 0 0 1.5em 0;
}

.p-home-museum-content__headline {
    font-weight: bold;
    padding: 0;
}

.p-home-museum-links {
}

.p-home-museum-link__button,
.p-home-museum-link__button:active,
.p-home-museum-link__button:link,
.p-home-museum-link__button:visited {
    position: relative;
    display: block;
    margin: 0 0 10px 0;
    padding: 12px 40px 12px 15px;
    text-decoration: none;
    color: var(--museum-education-button-color);
    background-color: var(--museum-education-button-background);
    border: var(--museum-education-button-border);
    font-weight: bold;
}

.p-home-museum-link__button:hover {
    text-decoration: none;
    color: var(--museum-education-button-color-hover);
    background-color: var(--museum-education-button-background-hover);
    border: var(--museum-education-button-border-hover);
}

.p-home-museum-link__button:after {
    position: absolute;
    top: 50%;
    right: 15px;
    display: block;
    width: 18px;
    height: 18px;
    content: "";
    transform: translateY(-50%);
    background-image: url("../images/icon-arrow-white.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.p-home-museum-link__button:hover:after {
    background-image: url("../images/icon-arrow-blue.svg");
}

.p-home-museum-link__button--1,
.p-home-museum-link__button--1:active,
.p-home-museum-link__button--1:link,
.p-home-museum-link__button--1:visited {
}

.p-home-museum-link__button--2,
.p-home-museum-link__button--2:active,
.p-home-museum-link__button--2:link,
.p-home-museum-link__button--2:visited {
}

.p-home-museum-link__button--3,
.p-home-museum-link__button--3:active,
.p-home-museum-link__button--3:link,
.p-home-museum-link__button--3:visited {
}

@media screen and (min-width: 800px) {
    .p-home-museum {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        padding: 0 var(--box-indent-desktop-right) 0 var(--box-indent-desktop-left);
    }

    .p-home-museum-content {
        text-align: justify;
        width: 48%;
    }

    .p-home-museum-content p:last-child {
        margin: 0;
    }

    .p-home-museum-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 48%;
    }
}

/*
 * --------------------------------------------------------------------------------
 */

.p-home-castle {
    margin: 0 0 2.0em 0;
    padding: 0 var(--box-indent-mobile-right) 1.5em var(--box-indent-mobile-left);
}

.p-home-castle-image {
    width: 100%;
    margin: 0 0 1.5em 0;
}

.p-home-castle-image img {
    width: 100%;
    height: auto;
}

.p-home-castle-content {
}

.p-home-castle-content__headline {
    font-weight: bold;
    padding: 0;
    color: #000000;
}

.p-home-castle-content__text {
    text-align: justify;
}

.p-home-castle-content__button,
.p-home-castle-content__button:active,
.p-home-castle-content__button:link,
.p-home-castle-content__button:visited {
    width: 100%;
    display: block;
    position: relative;
    margin: 0 0 1.5em 0;
    text-decoration: none;
    color: var(--museum-education-button-color);
    background-color: var(--museum-education-button-background);
    border: var(--museum-education-button-border);
    padding: 12px 40px 12px 15px;
    font-weight: bold;
}

.p-home-castle-content__button:hover {
    text-decoration: none;
    color: var(--museum-education-button-color-hover);
    background-color: var(--museum-education-button-background-hover);
    border: var(--museum-education-button-border-hover);
}

.p-home-castle-content__button:after {
    position: absolute;
    top: 50%;
    right: 15px;
    display: block;
    width: 18px;
    height: 18px;
    content: "";
    transform: translateY(-50%);
    background-image: url("../images/icon-arrow-white.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.p-home-castle-content__button:hover:after {
    background-image: url("../images/icon-arrow-blue.svg");
}

@media screen and (min-width: 800px) {
    .p-home-castle {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        padding: 0 var(--box-indent-desktop-right) 0 var(--box-indent-desktop-left);
    }

    .p-home-castle-image {
        width: 48%;
        margin: 0;
    }

    .p-home-castle-image img {
        height: 100%;
        object-fit: cover;
    }

    .p-home-castle-content {
        width: 48%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .p-home-castle-content__button,
    .p-home-castle-content__button:active,
    .p-home-castle-content__button:link,
    .p-home-castle-content__button:visited {
        margin: 0;
    }
}

/*
 * --------------------------------------------------------------------------------
 * --- HTTP 404 -------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.p-http-404 {
    background-color: #ffffff;
}

.p-http-404 h1 {
    text-align: center;
}

.p-http-404__text {
    margin: 0 0 2.0em 0;
    text-align: center;
    color: #333333;
}

.p-http-404__image {
    width: 140px;
    height: auto;
    margin: 20px auto 10px auto;
}

/*
 * --------------------------------------------------------------------------------
 * --- Gallery --------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.p-gallery {
    background-color: #ffffff;
}

/**
 * -----------------------------------------------------------------------------
 * --- Gallery sections --------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
@media screen and (min-width: 500px) {
    .p-galleries-sections .a-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media screen and (min-width: 500px) {
    .p-galleries-sections .a-gallery-item {
        width: calc(50% - 10px);
        margin: 0;
    }
}

@media screen and (min-width: 1200px) {
    .p-galleries-sections .a-gallery-item {
        width: calc(33.33% - 14px);
    }
}

/**
 * -----------------------------------------------------------------------------
 * --- Gallery section ---------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-gallery-section {
    width: 100%;
}

@media screen and (min-width: 500px) {
    .p-gallery-section .a-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media screen and (min-width: 500px) {
    .p-gallery-section .a-gallery-item {
        width: calc(50% - 10px);
        margin: 0;
    }
}

@media screen and (min-width: 1200px) {
    .p-gallery-section .a-gallery-item {
        width: calc(33.33% - 14px);
    }
}

/**
 * -----------------------------------------------------------------------------
 * --- Museum articles ---------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-museum-articles {
    width: 100%;
}

@media screen and (min-width: 700px) {
    .p-museum-articles .a-articles {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .p-museum-articles .a-articles-item-1 {
        width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        margin: 0;
    }
}

@media screen and (min-width: 1200px) {
    .p-museum-articles .a-articles-item-1 {
        width: calc(33.33% - 14px);
    }
}

/**
 * -----------------------------------------------------------------------------
 * --- Museum exhibition -------------------------------------------------------
 * -----------------------------------------------------------------------------
 */

.p-museum_exhibition__buttons {
    margin: 0 0 1.5em 0;
}

.p-museum_exhibition__button,
.p-museum_exhibition__button:active,
.p-museum_exhibition__button:link,
.p-museum_exhibition__button:visited {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--museum-exhibition-button-color);
    background-color: var(--museum-exhibition-button-background);
    border: var(--museum-exhibition-button-border);
    margin: 0 0 5px 0;
    font-weight: bold;
}

.p-museum_exhibition__button:hover,
.p-museum_exhibition__button--focus,
.p-museum_exhibition__button--focus:hover {
    text-decoration: none;
    color: var(--museum-exhibition-button-color-hover) !important;
    background-color: var(--museum-exhibition-button-background-hover) !important;
    border: var(--museum-exhibition-button-border-hover) !important;
}

@media screen and (min-width: 800px) {
    .p-museum_exhibition__buttons {
        display: flex;
        gap: 5px;
    }
    .p-museum_exhibition__button {
        flex: 1 0 0;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

/**
 * -----------------------------------------------------------------------------
 * --- Museum address ----------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-museum-address {
    margin: 0;
}

.p-museum-address__headline {
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 30px auto;
    line-height: 1.75em;
    padding: 3px 0 3px 40px;
    background-image: url("../images/icon-address.svg");
    margin: 0;
    color: var(--color-education);
}

.p-museum-address__text {
    padding: 0 0 0 40px;
    margin: 0 0 1.5em 0;
}

.p-museum-address__map {
    width: 100%;
    height: 35vw;
    min-height: 300px;
    max-height: 500px
}

/**
 * -----------------------------------------------------------------------------
 * --- Museum opening hours ----------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-museum-opening-hour {
    margin: 0;
}

.p-museum-opening-hour__headline {
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 30px auto;
    line-height: 1.75em;
    padding: 3px 0 3px 40px;
    background-image: url("../images/icon-time.svg");
    margin: 0;
    color: var(--color-action);
}

.p-museum-opening-hour__text {
    padding: 0 0 0 40px;
    margin: 0 0 1.0em 0;
}

/**
 * -----------------------------------------------------------------------------
 * --- Research library address ------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-research-library-address {
    margin: 0;
}

.p-research-library-address__headline {
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 30px auto;
    line-height: 1.75em;
    padding: 3px 0 3px 40px;
    background-image: url("../images/icon-address.svg");
    margin: 0;
    color: var(--color-education);
}

.p-research-library-address__text {
    padding: 0 0 0 40px;
    margin: 0 0 1.5em 0;
}

.p-research-library-address__map {
    width: 100%;
    height: 35vw;
    min-height: 300px;
    max-height: 500px
}

/**
 * -----------------------------------------------------------------------------
 * --- Research library opening hours ------------------------------------------
 * -----------------------------------------------------------------------------
 */
.p-research-library-opening-hour {
    margin: 0;
}

.p-research-library-opening-hour__headline {
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 30px auto;
    line-height: 1.75em;
    padding: 3px 0 3px 40px;
    background-image: url("../images/icon-time.svg");
    margin: 0;
    color: var(--color-action);
}

.p-research-library-opening-hour__text {
    padding: 0 0 0 40px;
    margin: 0 0 1.0em 0;
}
