/**
 * Die Schreinerei – based on the static layout (die-schreinerei.html/assets/styles.css).
 * Bootstrap 5.3.2 is loaded before this file.
 */

body {
    font-family: "Lora", serif;
}

.lora {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700;
}

/**
 * Text
 */
.text.is--intro {
    font-family: "Lora", serif;
    margin: 64px 0;
}

.text.is--intro p {
    margin-bottom: 0;
}

/**
 * Störer
 */
.has-grey-background {
    background-color: rgba(56, 59, 60, 1);
}

.has-grey-background img {
    max-width: 100%;
}

/**
 * Teaser with background image
 */
.image-block {
    min-height: 540px;
    background-color: rgba(56, 59, 60, 1);
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

/* the content collection adds an extra wrapper in the backend */
.image-block > .content--element,
.image-block > .neos-contentelement-wrapper > .content--element {
    min-height: 540px;
}

.content--element {
    background-color: rgba(0, 0, 0, 0.45);
    color: white;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.content--element h2 {
    font-size: 62px;
}

.content--element p:last-child {
    margin-bottom: 0;
}

/**
 * Image
 */
.image-element,
.image-element img {
    border-radius: 10px;
}

/**
 * Contact box
 */
.text-element {
    padding: 40px 32px;
    background: rgba(118, 0, 53, 1);
    color: white;
    border-radius: 10px;
}

.text-element a,
.content--element a {
    color: white;
    text-decoration: none;
}

/**
 * Footer
 */
.footer {
    min-height: 100px;
    line-height: 100px;
    background: #27292f;
    color: white;
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

.footer__info:empty {
    display: none;
}

/**
 * Main navigation
 */
.main-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 2rem;
}

.main-navigation__link {
    color: #27292f;
    text-decoration: none;
    font-size: 1.25rem;
    border-bottom: 2px solid transparent;
}

.main-navigation__link:hover,
.main-navigation__link.is--active {
    color: rgba(118, 0, 53, 1);
    border-bottom-color: rgba(118, 0, 53, 1);
}

/**
 * Teaser as link
 */
a.content--element {
    text-decoration: none;
    color: white;
}

a.content--element:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/**
 * Event list
 */
.event-list {
    margin-top: 2rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: white;
    text-decoration: none;
    background: rgba(56, 59, 60, 1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.15s ease-in-out;
}

.event-card:hover {
    color: white;
    transform: translateY(-3px);
}

.event-card__image {
    aspect-ratio: 3 / 2;
    background: rgba(118, 0, 53, 1) center / cover no-repeat;
}

.event-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.event-card__date,
.event__date {
    display: block;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-card__title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.event-card__abstract {
    margin-bottom: 0;
}

/**
 * Event detail page
 */
.event .content--element h1 {
    font-size: 52px;
}

.event__abstract {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.event__content {
    padding: 1rem 0;
}

.event__back {
    color: rgba(118, 0, 53, 1);
    text-decoration: none;
}
