/* Light scheme with the Musica Mechanica poster palette
   (Plakat-Musica-DIN3: petrol #073d5b, steel blue #1d5c7a/#216b89,
   light blue-gray #7aabbf) */
:root {
    --brand-dark: #073d5b;
    --brand: #1d5c7a;
    --brand-mid: #216b89;
    --brand-light: #7aabbf;
    --bg: #f5f8fa;
    --text: #26343c;
    --muted: #5c707c;
}

* { box-sizing: border-box; }

body.mm {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- header ---------- */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--brand-mid);
    padding: 0.3rem 1.25rem 0.55rem;
}

.lang-menu ul.languages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 0.8rem;
    text-transform: lowercase;
}
.lang-menu a { color: var(--muted); text-decoration: none; }
.lang-menu a:hover { color: var(--brand-mid); }
.lang-menu .current span { color: var(--brand-dark); font-weight: bold; }

.header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.branding { display: flex; align-items: center; gap: 0.7rem; }
.branding a { text-decoration: none; display: flex; }
.branding .logo { width: 48px; height: auto; display: block; }
.site-title {
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--brand-dark);
    white-space: nowrap;
}

.main-nav { margin-left: auto; }
.main-nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.3rem;
}
.main-nav a, .main-nav .more-label {
    color: var(--brand);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.main-nav a:hover, .main-nav .more-label:hover { color: var(--brand-dark); }
.main-nav .current > a {
    color: var(--brand-dark);
    font-weight: bold;
    border-bottom: 2px solid var(--brand-light);
}

/* "Mehr" dropdown for the less relevant links */
.main-nav li.more { position: relative; }
.main-nav .caret { font-size: 0.7em; }
.main-nav .submenu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dfe8ec;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(7, 61, 91, 0.15);
    min-width: 11.5rem;
    z-index: 20;
}
.main-nav li.more:hover .submenu,
.main-nav li.more:focus-within .submenu { display: block; }
.main-nav .submenu li { display: block; }
.main-nav .submenu a {
    display: block;
    padding: 0.35rem 1rem;
    border-bottom: none;
}
.main-nav .submenu a:hover { background: #eef4f7; }

/* ---------- main ---------- */
.site-main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

/* floats need containment so the footer never overlaps a trailing image */
.neos-contentcollection::after {
    content: "";
    display: block;
    clear: both;
}

.site-main h1 { font-size: 2rem; margin-top: 0; color: var(--brand-dark); }
.site-main h2 { font-size: 1.4rem; margin-top: 2rem; color: var(--brand-dark); }
.site-main h3 { font-size: 1.15rem; color: var(--brand); }
.site-main a { color: var(--brand-mid); }
.site-main a:hover { color: var(--brand-dark); }
.site-main hr { border: none; border-top: 1px solid #d7e2e8; margin: 2rem 0; clear: both; }
.site-main li { margin: 0.15rem 0; }
.site-main li p { margin: 0; }
.site-main li::marker { color: var(--brand-light); }

.image-block { margin: 1.5rem 0; }
.image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* like the old site, images sit beside the text on wide screens — but
   unlike it, they stack on narrow ones */
@media (min-width: 900px) {
    .image-block {
        float: right;
        clear: right;
        width: 44%;
        margin: 0.35rem 0 1.5rem 2.5rem;
    }
    /* images directly below a heading align with the first text line beside them */
    .event-day + .image-block,
    .text-block + .image-block {
        margin-top: 1rem;
    }
}

.event-banner {
    color: var(--brand-dark);
    background: linear-gradient(160deg, #eaf2f6, #dcebf2);
    border-left: 4px solid var(--brand-mid);
    border-radius: 0 6px 6px 0;
    padding: 0.8rem 1rem;
}
.event-banner .event-dates { white-space: nowrap; color: var(--brand-mid); }
.event-day {
    border-bottom: 2px solid var(--brand-light);
    padding-bottom: 0.3rem;
}

/* ---------- footer ---------- */
.site-footer {
    background: linear-gradient(160deg, var(--brand-dark), var(--brand));
    padding: 1rem;
}
.site-footer ul.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
}
.site-footer a { color: #cfe0e9; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 820px) {
    .header-row { justify-content: center; }
    .main-nav { margin-left: 0; }
    .main-nav ul.menu { justify-content: center; }
}
