/* Most & Jazz Festival – Frontend Styles
   --mj-color wird per inline style pro Tag/Act gesetzt (Festivaltage-Farbe).
*/

.mj-program,
.mj-today,
.mj-sidevents,
.mj-festivals-list,
.mj-archive {
    font-family: inherit;
    max-width: 1100px;
    margin: 0 auto;
    color: #1a1a1a;
}

/* === FESTIVAL HEADER === */

.mj-festival-header {
    text-align: center;
    margin: 0 0 2rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid #eee;
}

.mj-festival-header__title {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 700;
}

.mj-festival-header__year {
    color: #999;
    font-weight: 400;
}

.mj-festival-header__motto {
    margin: .5rem 0 0;
    font-size: 1.15rem;
    color: #666;
    font-style: italic;
}

/* === FESTIVALTAG === */

.mj-day {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-radius: 6px;
    background: #fafafa;
    border-left: 6px solid var(--mj-color, #cc6600);
    transition: opacity .3s, filter .3s;
}

.mj-day--past {
    opacity: 0.4;
    filter: grayscale(0.7);
}

.mj-day--today {
    background: #fff;
    border-left-width: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}

.mj-day__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid color-mix(in srgb, var(--mj-color, #cc6600) 25%, transparent);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.mj-day__bar {
    display: inline-block;
    width: .8rem;
    height: 1.8rem;
    background: var(--mj-color, #cc6600);
    border-radius: 3px;
    flex-shrink: 0;
}

.mj-day__title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 700;
    flex: 1;
    min-width: 240px;
    color: var(--mj-color, #1a1a1a);
    letter-spacing: -.01em;
}

.mj-day__title small {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-top: .25rem;
}

.mj-day__ticket {
    flex-shrink: 0;
}

.mj-day__empty {
    color: #888;
    font-style: italic;
    padding: 1rem 0;
}

/* === ACT === */

.mj-act {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #ececec;
    align-items: start;
}

.mj-act:last-child { border-bottom: 0; }

.mj-act__img {
    position: relative;
}

.mj-act__img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid var(--mj-color, #cc6600);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mj-act__img img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.mj-act__title {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.mj-act__meta {
    display: flex;
    gap: .6rem;
    font-size: .85rem;
    margin-bottom: .85rem;
    flex-wrap: wrap;
    align-items: center;
}

.mj-act__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    background: color-mix(in srgb, var(--mj-color, #cc6600) 12%, #fff);
    color: color-mix(in srgb, var(--mj-color, #cc6600) 80%, #000);
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
}

.mj-act__time::before { content: "🕐"; font-size: .9em; }
.mj-act__loc::before  { content: "📍"; font-size: .9em; }

.mj-act__desc {
    font-size: .98rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.mj-act__desc p:last-child { margin-bottom: 0; }

.mj-act__buttons,
.mj-sidevent__buttons {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}

/* === BUTTONS === */

.mj-btn {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: opacity .2s, transform .1s;
    line-height: 1.2;
    border: 1px solid transparent;
}

.mj-btn--maps {
    background: #f0f0f0;
    color: #222;
    border-color: #e0e0e0;
}

.mj-btn--tickets {
    background: var(--mj-color, #cc6600);
    color: #fff !important;
    font-weight: 600;
}

.mj-btn--link {
    background: #fff;
    color: #444;
    border-color: #ddd;
}

.mj-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

/* === BADGES === */

.mj-badge {
    display: inline-block;
    padding: .4rem .85rem;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
}

.mj-badge--free {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.mj-badge--entry {
    background: #fff3e0;
    color: #b25e00;
    border: 1px solid #ffe0b2;
}

/* === SIDEEVENTS === */

.mj-sidevents__heading {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.mj-sidevents__heading--past {
    color: #888;
    font-size: 1.2rem;
    margin-top: 3rem;
}

.mj-sidevents__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.mj-sidevents__list--past {
    opacity: .45;
    filter: grayscale(0.7);
}

.mj-sidevent {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mj-sidevent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

.mj-sidevent__img {
    margin-bottom: .85rem;
}

.mj-sidevent__img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 3px solid #cc6600;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.mj-sidevent__date {
    font-size: .8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .35rem;
    font-weight: 600;
}

.mj-sidevent__title {
    margin: 0 0 .25rem;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
}

.mj-sidevent__band {
    color: #555;
    font-style: italic;
    margin-bottom: .6rem;
}

.mj-sidevent__loc {
    font-size: .9rem;
    color: #666;
    margin-bottom: .75rem;
}

.mj-sidevent__desc {
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: .75rem;
    color: #333;
}

.mj-sidevent__desc p:last-child { margin-bottom: 0; }

/* === SIDEEVENT HERO === */

.mj-sidevent--hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    padding: 2rem;
    background: linear-gradient(180deg, #fff 0%, #f9f6f0 100%);
    border-radius: 8px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, .12);
    border: none;
    margin-bottom: 1.5rem;
}

.mj-sidevent--hero .mj-sidevent__title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: .5rem;
}

.mj-sidevent--hero .mj-sidevent__date {
    font-size: 1rem;
    margin-bottom: .5rem;
}

.mj-sidevent--hero .mj-sidevent__band {
    font-size: 1.1rem;
}

.mj-sidevent--hero .mj-sidevent__img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 5px solid #cc6600;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
}

/* === ARCHIV (Akkordion) === */

.mj-archive {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px dashed #ddd;
}

.mj-archive__heading {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    color: #777;
    font-weight: 700;
}

.mj-archive__item {
    margin: .5rem 0;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.mj-archive__item[open] {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.mj-archive__summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    user-select: none;
    transition: background .2s;
}

.mj-archive__summary:hover {
    background: #f0f0f0;
}

.mj-archive__summary::-webkit-details-marker { display: none; }
.mj-archive__summary::marker { content: ''; }

.mj-archive__summary::before {
    content: "▸";
    font-size: .9rem;
    color: #999;
    transition: transform .2s;
}

.mj-archive__item[open] .mj-archive__summary::before {
    transform: rotate(90deg);
    display: inline-block;
}

.mj-archive__year {
    font-size: 1.4rem;
    font-weight: 700;
    color: #444;
}

.mj-archive__title {
    font-size: 1.1rem;
    color: #555;
}

.mj-archive__motto {
    font-style: italic;
    color: #888;
    font-size: .95rem;
}

.mj-archive__body {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid #eee;
    opacity: .85;
}

/* Im Archiv: alles ausgegraut, da vergangen */
.mj-archive__body .mj-day {
    opacity: .65;
    filter: grayscale(.5);
}

/* === FESTIVAL-LIST (Übersichtskarten) === */

.mj-festivals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.mj-festival-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.mj-festival-card__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.mj-festival-card__body {
    padding: 1.25rem;
}

.mj-festival-card__year {
    font-size: 1.6rem;
    font-weight: 700;
    color: #cc6600;
    line-height: 1;
    margin-bottom: .25rem;
}

.mj-festival-card__title {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.mj-festival-card__motto {
    margin: 0;
    color: #666;
    font-style: italic;
    font-size: .95rem;
}

/* === MOBILE === */

@media (max-width: 720px) {
    .mj-festival-header__title { font-size: 1.8rem; }

    .mj-day { padding: 1.1rem 1rem; }
    .mj-day__title { font-size: 1.3rem; }
    .mj-day__title small { font-size: .9rem; }
    .mj-day__ticket { width: 100%; text-align: center; margin-top: .5rem; }

    .mj-act {
        grid-template-columns: 1fr;
        gap: .85rem;
    }
    .mj-act__img img {
        aspect-ratio: 16 / 9;
        border-width: 3px;
    }
    .mj-act__title { font-size: 1.2rem; }
    .mj-sidevent__img img { border-width: 2px; }
    .mj-sidevent--hero .mj-sidevent__img img { border-width: 3px; }

    .mj-sidevent--hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    .mj-sidevent--hero .mj-sidevent__title { font-size: 1.5rem; }

    .mj-sidevents__list { grid-template-columns: 1fr; }

    .mj-archive__summary { flex-wrap: wrap; gap: .35rem .75rem; }
    .mj-archive__year { font-size: 1.2rem; }
}
