/*
 * Darstellung "Instagram" (Site-Einstellung mksfApp.layout = insta, umschaltbar im Backend-Modul Terminplaner →
 * Darstellung und in der App unter Administration → Darstellung). Gleiche Farben und Schriften wie app.css, nur
 * anderer Aufbau: schmale rote Kopfleiste mit Schriftzug, Stories, Beiträge mit großer Datumskarte, Profil mit
 * Zahlen und Kacheln, untere Leiste nur mit Symbolen. Alle Regeln gelten nur unter .theme-insta (Layout App).
 */

/* Elemente nur für diese Darstellung */
.topbar__brand {
    display: none;
}

/* ---------- Kopf: schmal, oben fest, links der Schriftzug, rechts Glocke, Menü, Abmelden ---------- */
.theme-insta .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 6px 16px -12px rgba(60, 0, 0, .8);
}

.theme-insta .topbar__inner {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 10px var(--gutter);
    text-align: left;
}

.theme-insta .topbar__brand {
    display: block;
    flex: 1 1 auto;
    font: 400 30px/1 var(--font-display);
    letter-spacing: .01em;
}

/* Foto-Upload bleibt im Kopf (app.js), nur unsichtbar; das Foto steht im Profil */
.theme-insta .topbar__photo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.theme-insta .topbar__hello,
.theme-insta .topbar__wave {
    display: none;
}

.theme-insta .topbar__actions,
.is-scrolled .theme-insta .topbar__actions {
    position: static;
    display: flex;
    gap: 4px;
    padding: 0;
    background: none;
    box-shadow: none;
    animation: none;
    pointer-events: auto;
}

/* Reihenfolge rechts: Glocke, Menü, Abmelden (im HTML: Menü, Glocke, Abmelden) */
.theme-insta .topbar__actions .topbar__bell {
    order: 1;
}

.theme-insta .topbar__actions .menu {
    order: 2;
    margin-right: 0;
}

.theme-insta .topbar__actions .topbar__logout {
    order: 3;
}

.theme-insta .topbar .iconbtn {
    width: 40px;
    height: 40px;
    background: none;
}

.theme-insta .topbar .iconbtn:hover {
    background: rgba(255, 255, 255, .14);
}

/* Menü klappt nach links auf, weil es jetzt rechts steht */
.theme-insta .menu__panel {
    right: 0;
    left: auto;
}

/* ---------- Inhalt ---------- */
.theme-insta .main {
    padding-top: 0;
}

/* Proben und Termine ohne Überschrift, Beiträge über die ganze Breite */
.theme-insta #proben-title,
.theme-insta #termine-title,
.theme-insta #profil-title {
    display: none;
}

.theme-insta .rehearsals,
.theme-insta .termine,
.theme-insta .stories,
.theme-insta .messages {
    margin-right: calc(-1 * var(--gutter));
    margin-left: calc(-1 * var(--gutter));
}

.theme-insta .rehearsals,
.theme-insta .termine {
    gap: 10px;
}

.theme-insta #panel-proben > .block:first-of-type,
.theme-insta #panel-termine {
    margin-top: 0;
}

.theme-insta .termine__month {
    margin: 22px 0 10px;
}

/* ---------- Stories ---------- */
.theme-insta .stories {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    padding: 14px var(--gutter) 12px;
    overflow-x: auto;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.theme-insta .stories::-webkit-scrollbar {
    display: none;
}

.theme-insta .story {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 5px;
    width: 68px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.theme-insta .story__ring {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    padding: 3px;
    border-radius: 50%;
    /* noch offen: bunter Ring wie eine neue Story */
    background: conic-gradient(from 200deg, var(--gold), #b30d0d, var(--red-dark), var(--gold));
}

.theme-insta .story__ring--yes {
    background: var(--ok);
}

.theme-insta .story__ring--no {
    background: #c9c9c9;
}

.theme-insta .story__ring--cancelled {
    background: repeating-conic-gradient(#c9c9c9 0 10deg, transparent 10deg 20deg);
}

.theme-insta .story__ring--add {
    background: var(--line);
}

.theme-insta .story__ring--gold {
    background: linear-gradient(160deg, #e7b04a, var(--gold-dark));
}

.theme-insta .story__ring--ink {
    background: var(--ink);
}

.theme-insta .story__inner {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 3px solid var(--card);
    border-radius: 50%;
    background: var(--card);
    color: var(--red);
    line-height: 1;
    text-align: center;
}

.theme-insta .story__ring--gold .story__inner {
    color: var(--gold-dark);
}

.theme-insta .story__ring--ink .story__inner {
    color: var(--ink);
}

.theme-insta .story__inner b {
    display: block;
    color: var(--ink);
    font: 400 24px/1 var(--font-display);
}

.theme-insta .story__inner small {
    display: block;
    margin-top: 2px;
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.theme-insta .story__inner svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-insta .story__name {
    max-width: 68px;
    overflow: hidden;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Beiträge: Proben, Termine, Nachrichten, Umfragen ---------- */
.theme-insta .rehearsal,
.theme-insta .termin,
.theme-insta .message {
    display: block;
    padding: 0 0 14px;
    overflow: hidden;
    border-radius: 0;
    background: var(--card);
    box-shadow: none;
    color: var(--text);
}

.theme-insta .post__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.theme-insta .post__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--red-soft);
    box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--red);
}

.theme-insta .post__avatar img {
    width: 72%;
    height: auto;
}

.theme-insta .post__who {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}

.theme-insta .post__who b {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-insta .post__who span {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Bild" des Beitrags: Karte in den App-Farben mit großem Datum */
.theme-insta .post__media {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 150px;
    padding: 18px 20px;
    overflow: hidden;
    background: linear-gradient(160deg, #b30d0d 0%, var(--red) 55%, var(--red-dark) 100%);
    color: #fff;
}

.theme-insta .post__media::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -40%;
    width: 90%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}

.theme-insta .post__media--big {
    min-height: 0;
    aspect-ratio: 5 / 4;
    padding: 22px;
}

.theme-insta .post__media--gold {
    background: linear-gradient(160deg, #e7b04a 0%, var(--gold) 50%, var(--gold-dark) 100%);
}

.theme-insta .post__clef {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    opacity: .22;
}

.theme-insta .post__kicker {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .85;
}

.theme-insta .post__day {
    position: relative;
    margin-top: 4px;
    font: 400 38px/1 var(--font-display);
}

.theme-insta .post__media--big .post__day {
    font-size: 58px;
    line-height: .95;
}

.theme-insta .post__sub {
    position: relative;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
    opacity: .95;
}

.theme-insta .post__sub:empty {
    display: none;
}

.theme-insta .post__chip {
    position: absolute;
    top: 14px;
    left: 16px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 12px;
    font-weight: 600;
}

/* abgemeldet / fällt aus: Karte gedämpft */
.theme-insta .rehearsal.is-absent .post__media,
.theme-insta .rehearsal.is-cancelled .post__media,
.theme-insta .termin.is-cancelled .post__media {
    background: linear-gradient(160deg, #9a9a9a, #6c6c6c);
}

.theme-insta .rehearsal.is-cancelled .post__day,
.theme-insta .termin.is-cancelled .post__day {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

/* bisheriger Kopf mit Datum links: steht jetzt im Beitragskopf und auf der Karte */
.theme-insta .rehearsal__head,
.theme-insta .termin__date,
.theme-insta .termin__title,
.theme-insta .termin__meta,
.theme-insta .message__pin,
.theme-insta .message .message__date,
.theme-insta .post__head + .poll__head {
    display: none;
}

/* Hinweis der Leitung als Bildtext */
.theme-insta .rehearsal__note {
    margin: 10px var(--gutter) 0;
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 14px;
}

.theme-insta .rehearsal__note::before {
    content: 'Leitung ';
    font-weight: 600;
}

/* Antworten: Knöpfe als Aktionszeile unter der Karte */
.theme-insta .reply,
.theme-insta .treply,
.theme-insta .termin__body,
.theme-insta .leadbar {
    margin: 10px 12px 0;
}

.theme-insta .treply {
    padding-top: 0;
    border-top: 0;
}

.theme-insta .termin__body .badges {
    margin: 10px 0 0;
}

/* Countdown und "Pflichttermin" stehen schon auf der Karte; übrig bleiben die eigene Antwort und "Abgesagt" */
.theme-insta .termin .badge--soon,
.theme-insta .termin .badge:not([class*="badge--"]) {
    display: none;
}

.theme-insta .termin__body:not(:has(.badge--yes, .badge--no, .badge--cancelled)) {
    display: none;
}

/* Überschrift "Übersicht nächste Probe" näher an die Stories */
.theme-insta #summary-title {
    margin: 6px 0 12px;
}

.theme-insta .reply .btn,
.theme-insta .treply__btn {
    min-height: 44px;
    border-radius: 999px;
}

.theme-insta .leadbar {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

/* Übersicht nächste Probe (Leitung) wie "Insights" */
.theme-insta .summary {
    border-radius: 16px;
}

/* Nachrichten und Umfragen */
.theme-insta .messages {
    display: grid;
    gap: 10px;
}

.theme-insta .message .message__title,
.theme-insta .message .message__text,
.theme-insta .message .poll__meta,
.theme-insta .message .poll__mine,
.theme-insta .message .poll__form,
.theme-insta .message .poll__results,
.theme-insta .message .remind {
    margin-right: var(--gutter);
    margin-left: var(--gutter);
}

.theme-insta .message .message__title {
    margin-top: 4px;
    font: 400 26px/1.15 var(--font-display);
}

.theme-insta .message .leadbar {
    margin: 12px var(--gutter) 0;
}

.theme-insta .feedtabs {
    margin-bottom: 10px;
}

/* ---------- Untere Leiste: nur Symbole ---------- */
.theme-insta .instanav {
    justify-content: space-around;
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.theme-insta .instanav__btn {
    position: relative;
    flex: 0 0 52px;
    justify-content: center;
    height: 46px;
    padding: 0;
    color: rgba(255, 255, 255, .72);
}

.theme-insta .instanav__btn svg {
    width: 26px;
    height: 26px;
}

.theme-insta .instanav__btn[aria-selected="true"] {
    background: none;
    color: #fff;
}

.theme-insta .instanav__btn[aria-selected="true"] svg {
    stroke-width: 2.5;
}

.theme-insta .instanav__dot {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--red);
}

.theme-insta .instanav__me {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}

.theme-insta .instanav__me img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-insta .instanav__btn[aria-selected="true"] .instanav__me {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red-dark);
}

/* ---------- Profil ---------- */
.theme-insta .iprofile {
    margin: 0 calc(-1 * var(--gutter));
    padding: 18px var(--gutter) 14px;
    background: var(--card);
}

.theme-insta .iprofile__row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-insta .iprofile__photo {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.theme-insta .iprofile__ring {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--gold), #b30d0d, var(--red-dark), var(--gold));
}

.theme-insta .iprofile__ring img,
.theme-insta .iprofile__initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 3px solid var(--card);
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(140deg, #d9a35c, var(--gold-dark));
    color: #fff;
    font: 400 32px/1 var(--font-display);
}

.theme-insta .iprofile__stats {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.theme-insta .iprofile__stats b {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.theme-insta .iprofile__stats span {
    color: var(--text);
    font-size: 12.5px;
}

.theme-insta .iprofile__name {
    margin-top: 12px;
    color: var(--ink);
    font-weight: 600;
}

.theme-insta .iprofile__role {
    color: var(--muted);
    font-size: 14px;
}

.theme-insta .iprofile__bio {
    margin-top: 2px;
    color: var(--ink);
    font-size: 14px;
}

.theme-insta .iprofile__btns {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

.theme-insta .iprofile__btn {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    height: 34px;
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.theme-insta .iprofile__btn--primary {
    background: var(--red);
    color: #fff;
}

.theme-insta .highlights {
    display: flex;
    gap: 16px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    background: var(--card);
    scrollbar-width: none;
}

.theme-insta .highlights::-webkit-scrollbar {
    display: none;
}

.theme-insta .highlight {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 6px;
    width: 64px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: 400 12px/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
}

.theme-insta .highlight__circle {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--red);
}

.theme-insta .highlight__circle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-insta .igrid__title {
    margin: 20px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.theme-insta .igrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0;
    list-style: none;
}

.theme-insta .igrid__tile {
    position: relative;
    display: grid;
    align-content: end;
    aspect-ratio: 1;
    padding: 8px;
    overflow: hidden;
    background: linear-gradient(160deg, #b30d0d 0%, var(--red) 55%, var(--red-dark) 100%);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

.theme-insta .igrid__tile span:not(.igrid__mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-insta .igrid__tile b {
    font: 400 26px/1 var(--font-display);
}

.theme-insta .igrid__tile--termin {
    background: linear-gradient(160deg, #e7b04a 0%, var(--gold) 50%, var(--gold-dark) 100%);
}

.theme-insta .igrid__tile--no,
.theme-insta .igrid__tile--open {
    background: linear-gradient(160deg, #9a9a9a, #6c6c6c);
}

.theme-insta .igrid__mark {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--muted);
}

.theme-insta .igrid__tile--yes .igrid__mark {
    color: var(--ok);
}

.theme-insta .igrid__tile--no .igrid__mark {
    color: var(--red);
}

.theme-insta .igrid__mark svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Administration: Neu-Kreise, Insights, Bereiche als Liste ---------- */
.theme-insta .adminhome {
    display: block;
}

.theme-insta .adminhome[hidden] {
    display: none;
}

.theme-insta .icreate {
    display: flex;
    gap: 14px;
    margin: 0 calc(-1 * var(--gutter)) 4px;
    padding: 6px var(--gutter) 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.theme-insta .adminhome__group {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 16px 2px 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.theme-insta .adminhome__group span {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}

.theme-insta .insight {
    padding: 14px;
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.theme-insta .insight__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 10px;
    color: var(--ink);
}

.theme-insta .insight__head b {
    font: 400 22px/1.1 var(--font-display);
}

.theme-insta .insight__head span {
    color: var(--muted);
    font-size: 12.5px;
}

.theme-insta .insight__nums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.theme-insta .insight__num {
    padding: 10px 4px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
}

.theme-insta .insight__num b {
    display: block;
    color: #8a8a8a;
    font-size: 22px;
    font-weight: 700;
}

.theme-insta .insight__num--yes b {
    color: var(--ok);
}

.theme-insta .insight__num--no b {
    color: var(--red);
}

.theme-insta .insight__bar {
    display: flex;
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ececec;
}

.theme-insta .insight__bar i {
    flex-basis: 0;
}

.theme-insta .insight__seg--yes {
    background: var(--ok);
}

.theme-insta .insight__seg--no {
    background: var(--red);
}

.theme-insta .insight__seg--open {
    background: #d4d4d4;
}

.theme-insta .insight__remind {
    margin-top: 12px;
}

.theme-insta .insight__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font: 600 14px/1 var(--font-body);
    cursor: pointer;
}

.theme-insta .insight__btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-insta .insight__last {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

/* Kacheln werden Zeilen: Symbol, Name mit Zahl darunter, Pfeil */
.theme-insta .adminhome__tile {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-height: 0;
    padding: 12px 40px 12px 14px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

.theme-insta .adminhome__tile:hover {
    transform: none;
    background: #fafafa;
}

.theme-insta .adminhome__tile::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #b5b5b5;
    border-right: 2px solid #b5b5b5;
    transform: translateY(-50%) rotate(45deg);
}

.theme-insta .adminhome__icon {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 10px;
}

.theme-insta .adminhome__icon svg {
    width: 20px;
    height: 20px;
}

.theme-insta .adminhome__label {
    font-size: 14.5px;
    font-weight: 600;
}

.theme-insta .adminhome__hint {
    font-size: 12.5px;
}

/* erste Zeile je Gruppe mit runden Ecken oben, letzte unten (Gruppen trennt .adminhome__group) */
.theme-insta .adminhome__group + .adminhome__tile {
    border-top: 0;
    border-radius: 16px 16px 0 0;
}

.theme-insta .adminhome__tile:has(+ .adminhome__group),
.theme-insta .adminhome__tile:last-child {
    border-radius: 0 0 16px 16px;
}

.theme-insta .adminhome__group + .adminhome__tile:has(+ .adminhome__group),
.theme-insta .adminhome__group + .adminhome__tile:last-child {
    border-radius: 16px;
}

/* Zahnrad im niedrigeren grünen Knopf (44 px): etwas kleiner, rundum gleicher Abstand */
.theme-insta .reply__row .delay {
    right: 4px;
}

.theme-insta .reply__row .delay__toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
}

/* ---------- Überarbeitung: Name im Kopf, untere Leiste mit Namen, ruhige Kacheln, Beiträge als klare Karten ---------- */

/* Kopf: eigener Name statt "MusiPlaner", lange Namen mit … */
.theme-insta .topbar__brand {
    min-width: 0;
    overflow: hidden;
    font-size: 25px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* untere Leiste: Proben, Termine, Profil, Neuigkeiten mit kleinem Namen unter dem Symbol */
.theme-insta .instanav__btn {
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    max-width: 110px;
    height: auto;
    min-height: 52px;
    padding: 5px 0 3px;
    border-radius: 14px;
}

.theme-insta .instanav__btn svg {
    width: 25px;
    height: 25px;
}

.theme-insta .instanav__btn .instanav__me {
    width: 27px;
    height: 27px;
}

.theme-insta .instanav__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.theme-insta .instanav__btn[aria-selected="true"] {
    background: rgba(255, 255, 255, .16);
}

.theme-insta .instanav__dot {
    top: 5px;
    right: calc(50% - 16px);
}

/* Profil: letzte Proben und Termine ruhig in Weiß, nur das Zeichen oben rechts farbig */
.theme-insta .igrid {
    gap: 8px;
    margin: 0;
}

.theme-insta .igrid__tile,
.theme-insta .igrid__tile--termin,
.theme-insta .igrid__tile--no,
.theme-insta .igrid__tile--open {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    color: var(--muted);
}

.theme-insta .igrid__tile b {
    color: var(--ink);
}

.theme-insta .igrid__tile--termin {
    box-shadow: inset 3px 0 0 var(--gold);
}

.theme-insta .igrid__mark {
    background: var(--surface);
}

.theme-insta .igrid__tile--yes .igrid__mark {
    background: var(--ok-soft);
}

.theme-insta .igrid__tile--no .igrid__mark {
    background: var(--red-soft);
}

.theme-insta .igrid__tile--no b,
.theme-insta .igrid__tile--open b {
    color: var(--muted);
}

/* Proben und Termine als einzelne Karten mit Abstand und Schatten: man sieht sofort, wo der nächste beginnt */
.theme-insta .rehearsals,
.theme-insta .termine {
    gap: 16px;
    margin-right: 0;
    margin-left: 0;
}

.theme-insta .rehearsal,
.theme-insta .termin {
    border-radius: 18px;
    box-shadow: var(--shadow);
}

/* Datumskarte kompakter, nur die nächste Probe größer */
.theme-insta .post__media {
    min-height: 0;
    padding: 14px 18px 16px;
}

.theme-insta .post__media--big {
    aspect-ratio: auto;
    min-height: 190px;
    padding: 20px;
}

.theme-insta .post__day {
    font-size: 32px;
}

.theme-insta .post__media--big .post__day {
    font-size: 50px;
}

.theme-insta .post__clef {
    width: 40px;
    height: 40px;
}

.theme-insta .post__media--gold .post__chip {
    position: static;
    justify-self: start;
    margin-bottom: 8px;
}

/* Monat über den Terminen als klare Trennlinie */
.theme-insta .termine__month {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 2px 12px;
    color: var(--ink);
    font: 400 22px/1.1 var(--font-display);
}

.theme-insta .termine__month::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--line);
}

/* Zu- und Absagen bei Terminen wie bei den Proben: groß, untereinander */
.theme-insta .treply {
    gap: 8px;
}

.theme-insta .treply__btn {
    width: 100%;
    min-height: 46px;
}

/* ---------- Kopf: Profilbild im Kreis und Name links (Link auf Mein Profil), Abmelden im Menü ---------- */
.theme-insta .topbar__me {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.theme-insta .topbar__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
}

.theme-insta .topbar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-insta .topbar__me:hover .topbar__avatar,
.theme-insta .topbar__me:focus-visible .topbar__avatar {
    box-shadow: 0 0 0 2px #fff;
}

/* Abmelden steht im Menü; das Formular bleibt (der Menüpunkt schickt es ab), nur ohne Symbol im Kopf */
.theme-insta .topbar__logout {
    display: none;
}

.menu__item--logout {
    width: 100%;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.theme-insta .menu__item--logout {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    color: var(--red);
}

/* ---------- Insights unter jeder Probe und jedem Termin (Leitung) ---------- */
.theme-insta .insight--post {
    margin: 12px 12px 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.theme-insta .insight__nums li {
    display: grid;
}

.theme-insta button.insight__num {
    width: 100%;
    border: 0;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, transform .15s var(--ease);
}

.theme-insta button.insight__num:hover:not(:disabled) {
    background: #e9e9e9;
}

.theme-insta button.insight__num--yes:hover:not(:disabled) {
    background: var(--ok-soft);
}

.theme-insta button.insight__num--no:hover:not(:disabled) {
    background: var(--red-soft);
}

.theme-insta button.insight__num:active:not(:disabled) {
    transform: scale(.97);
}

.theme-insta button.insight__num:disabled {
    cursor: default;
    opacity: .6;
}

/* Profil-Kacheln: kommende (schon zu- oder abgesagt) vorne, mit kleinem Hinweis "kommt" */
.theme-insta .igrid__soon {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.theme-insta .igrid__tile--upcoming {
    border-style: dashed;
}

/* ---------- Administration → Statistik, fürs Handy: Schnitt oben, je Mitglied zwei Spalten mit großer Prozentzahl ---------- */
.yearstat__avg {
    display: none;
}

.theme-insta .yearstat__avg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px 12px;
}

.theme-insta .yearstat__avgitem {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 14px;
    background: var(--ok-soft);
    color: var(--text);
    font-size: 12.5px;
    text-align: center;
}

.theme-insta .yearstat__avgitem b {
    color: var(--ok);
    font-size: 24px;
    font-weight: 700;
}

.theme-insta .yearstat__avgitem--termin {
    background: #fff6e3;
}

.theme-insta .yearstat__avgitem--termin b {
    color: var(--gold-dark);
}

.theme-insta .yearstat .stats__legend {
    padding: 0 16px 8px;
}

/* je Mitglied: Name, darunter Proben und Termine nebeneinander */
.theme-insta .stats__row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 12px 16px;
}

.theme-insta .stats__name {
    grid-column: 1 / -1;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-insta .stats__part {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    background: var(--surface);
}

.theme-insta .stats__label {
    order: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-insta .stats__numbers {
    order: 1;
    display: grid;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
}

.theme-insta .stats__numbers strong {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.theme-insta .stats__bar {
    order: 2;
    height: 6px;
    margin-top: 2px;
}

.theme-insta .stats__none {
    order: 1;
    color: var(--muted);
    font-size: 22px;
    font-weight: 700;
}

/* ---------- Stories: Wochentag, Tag und Monat; Antwort sofort erkennbar ---------- */
.theme-insta .story__inner small {
    margin: 0;
    font-size: 9.5px;
    line-height: 1.15;
}

.theme-insta .story__inner .story__wd {
    color: var(--muted);
    font-size: 9px;
}

.theme-insta .story__inner b {
    font-size: 21px;
}

/* zugesagt: grün ausgefüllt, Schrift weiß */
.theme-insta .story__ring--yes .story__inner {
    background: var(--ok);
}

/* abgemeldet / abgesagt: rot ausgefüllt, Schrift weiß */
.theme-insta .story__ring--no {
    background: var(--red);
}

.theme-insta .story__ring--no .story__inner {
    background: var(--red);
}

.theme-insta .story__ring--yes .story__inner b,
.theme-insta .story__ring--yes .story__inner small,
.theme-insta .story__ring--no .story__inner b,
.theme-insta .story__ring--no .story__inner small {
    color: #fff;
}

/* fällt aus: grau, durchgestrichen */
.theme-insta .story__ring--cancelled .story__inner {
    background: var(--surface);
}

.theme-insta .story__ring--cancelled .story__inner b {
    color: var(--muted);
    text-decoration: line-through;
}

.theme-insta .story__ring--cancelled .story__inner small {
    color: var(--muted);
}

/* ---------- Umfragen (Leitung): je Antwort eine Zahl zum Antippen, dazu "offen" ---------- */
.theme-insta .insight--poll {
    margin: 14px var(--gutter) 0;
}

.theme-insta .insight__nums--poll {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.theme-insta .insight__nums--poll .insight__num {
    display: grid;
    align-content: start;
    gap: 2px;
    min-height: 78px;
}

.theme-insta .insight__opt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.theme-insta .insight__pct {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

/* Termine: dieselbe rote Datumskarte wie die Proben (statt Gold); abgesagte bleiben grau */
.theme-insta .post__media--gold {
    background: linear-gradient(160deg, #b30d0d 0%, var(--red) 55%, var(--red-dark) 100%);
}

.theme-insta .termin.is-cancelled .post__media--gold {
    background: linear-gradient(160deg, #9a9a9a, #6c6c6c);
}

/* Stories: nur Tag und Monat; zugesagt hellgrün (Hintergrund und Rand) mit grüner Schrift */
.theme-insta .story__inner b {
    font-size: 23px;
}

.theme-insta .story__inner small {
    margin-top: 2px;
    font-size: 10px;
}

.theme-insta .story__ring--yes {
    background: var(--ok-soft);
}

.theme-insta .story__ring--yes .story__inner {
    border-color: var(--ok-soft);
    background: var(--ok-soft);
}

.theme-insta .story__ring--yes .story__inner b,
.theme-insta .story__ring--yes .story__inner small {
    color: var(--ok);
}

/* Neuigkeiten: Nachrichten und Umfragen wie die Proben und Termine als Karten mit Abstand zum Rand */
.theme-insta .messages {
    gap: 16px;
    margin-right: 0;
    margin-left: 0;
}

.theme-insta .message {
    border-radius: 18px;
    box-shadow: var(--shadow);
}

/* Stories: abgemeldet / abgesagt hellrot (Hintergrund und Rand) mit roter Schrift, wie zugesagt in Hellgrün */
.theme-insta .story__ring--no {
    background: var(--red-soft);
}

.theme-insta .story__ring--no .story__inner {
    border-color: var(--red-soft);
    background: var(--red-soft);
}

.theme-insta .story__ring--no .story__inner b,
.theme-insta .story__ring--no .story__inner small {
    color: var(--red);
}

/* Punkt für Neues am Menü: im Instagram-Stil zeigt ihn die Glocke "Neuigkeiten" unten, darum am Menü nie */
.theme-insta .menu__dot {
    display: none;
}

/* Schild "Neu" / "Geändert" im Kopf des Beitrags: der Name darf dafür umbrechen statt abgeschnitten zu werden */
.theme-insta .post__who b:has(.news-badge) {
    overflow: visible;
    white-space: normal;
}

.theme-insta .tabs__dot {
    top: 5px;
    right: calc(50% - 16px);
}

/* ---------- Proben und Termine: Kopf (Logo, Name, Ort, Datum) rot wie die Datumskarte, Schrift weiß ---------- */
/* Kopf einfarbig rot, die Karte darunter läuft nahtlos von Rot nach Dunkelrot */
.theme-insta .rehearsal .post__head,
.theme-insta .termin .post__head {
    background: var(--red);
    color: #fff;
}

.theme-insta .rehearsal .post__media,
.theme-insta .termin .post__media,
.theme-insta .post__media--gold {
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
}

.theme-insta .rehearsal .post__who b,
.theme-insta .termin .post__who b {
    color: #fff;
}

.theme-insta .rehearsal .post__who span,
.theme-insta .termin .post__who span {
    color: rgba(255, 255, 255, .8);
}

/* Logo im weißen Kreis */
.theme-insta .rehearsal .post__avatar,
.theme-insta .termin .post__avatar {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .45);
}

/* abgemeldet / fällt aus / abgesagt: Kopf und Karte grau, ebenfalls nahtlos */
.theme-insta .rehearsal.is-absent .post__head,
.theme-insta .rehearsal.is-cancelled .post__head,
.theme-insta .termin.is-cancelled .post__head {
    background: #8f8f8f;
}

.theme-insta .rehearsal.is-absent .post__media,
.theme-insta .rehearsal.is-cancelled .post__media,
.theme-insta .termin.is-cancelled .post__media,
.theme-insta .termin.is-cancelled .post__media--gold {
    background: linear-gradient(180deg, #8f8f8f 0%, #6c6c6c 100%);
}

/* Schilder im roten Kopf gut lesbar */
.theme-insta .rehearsal .post__head .status--absent,
.theme-insta .rehearsal .post__head .status--cancelled,
.theme-insta .termin .post__head .status--cancelled {
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
}

/* Schild "Neu" / "Geändert" im Kopf: klein hinter dem Namen, nicht als eigene Zeile */
.theme-insta .post__who b span.news-badge {
    display: inline-block;
    margin-left: 6px;
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
}

/* Termine: Link auf alle Termine im Stil der Beiträge – rot, Logo im weißen Kreis mit Story-Ring, weißer Knopf */
.theme-insta .termlink {
    margin-top: 20px;
    border-radius: 18px;
    background: linear-gradient(160deg, #b30d0d 0%, var(--red) 55%, var(--red-dark) 100%);
    color: #fff;
}

.theme-insta .termlink::before {
    background: radial-gradient(circle at 92% 0%, rgba(255, 255, 255, .18), transparent 55%);
    -webkit-mask-image: none;
    mask-image: none;
}

.theme-insta .termlink__logo {
    padding: 3px;
    background: conic-gradient(from 200deg, var(--gold), #fff, var(--gold));
    box-shadow: none;
}

.theme-insta .termlink__logo::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}

.theme-insta .termlink__logo img {
    position: relative;
    z-index: 1;
}

.theme-insta .termlink__url {
    color: rgba(255, 255, 255, .8);
}

.theme-insta .termlink__go {
    background: #fff;
    color: var(--red);
}

/* Abstand unter der Datumskarte zu den Knöpfen bzw. dem Hinweis */
.theme-insta .post__media {
    margin-bottom: 1em;
}

/* Proben und Termine ohne Logo im Kopf: Titel und Ort bündig mit dem Datum auf der Karte darunter */
.theme-insta .rehearsal .post__head,
.theme-insta .termin .post__head {
    padding: 14px 18px 4px;
}

/* ---------- Proben und Termine: Kopf und Datumskarte in einem Block mit EINEM durchgehenden Hintergrund ---------- */
.theme-insta .post__top {
    position: relative;
    margin-bottom: 1em;
    overflow: hidden;
    background: linear-gradient(170deg, #b30d0d 0%, var(--red) 45%, var(--red-dark) 100%);
    color: #fff;
}

/* zarter heller Schein oben rechts über den ganzen Block */
.theme-insta .post__top::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -35%;
    width: 85%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
    pointer-events: none;
}

/* Kopf und Karte selbst ohne eigenen Hintergrund */
.theme-insta .post__top .post__head,
.theme-insta .post__top .post__media,
.theme-insta .post__top .post__media--gold,
.theme-insta .rehearsal.is-absent .post__top .post__head,
.theme-insta .rehearsal.is-absent .post__top .post__media,
.theme-insta .rehearsal.is-cancelled .post__top .post__head,
.theme-insta .rehearsal.is-cancelled .post__top .post__media,
.theme-insta .termin.is-cancelled .post__top .post__head,
.theme-insta .termin.is-cancelled .post__top .post__media {
    position: relative;
    margin-bottom: 0;
    background: none;
}

.theme-insta .post__top .post__media::before {
    display: none;
}

/* abgemeldet / fällt aus / abgesagt: der ganze Block grau */
.theme-insta .rehearsal.is-absent .post__top,
.theme-insta .rehearsal.is-cancelled .post__top,
.theme-insta .termin.is-cancelled .post__top {
    background: linear-gradient(170deg, #9a9a9a 0%, #858585 45%, #6c6c6c 100%);
}

/* ---------- Proben und Termine, Block oben übersichtlich: Titel groß, Ort mit Ortsnadel, Linie, dann das Datum ---------- */
.theme-insta .post__top .post__head {
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px 0;
}

.theme-insta .post__top .post__who {
    display: grid;
    gap: 6px;
}

/* Titel groß in der Schrift der Überschriften, darf umbrechen */
.theme-insta .rehearsal .post__top .post__who b,
.theme-insta .termin .post__top .post__who b {
    overflow: visible;
    color: #fff;
    font: 400 27px/1.1 var(--font-display);
    white-space: normal;
}

/* Ort mit kleiner Ortsnadel */
.theme-insta .rehearsal .post__top .post__who span:not(.news-badge),
.theme-insta .termin .post__top .post__who span:not(.news-badge) {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: visible;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    font-weight: 500;
    white-space: normal;
}

.theme-insta .post__top .post__who span:not(.news-badge)::before {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Neu" / "Geändert" neben dem großen Titel */
.theme-insta .post__top .post__who b span.news-badge {
    font-size: 10px;
    vertical-align: 4px;
}

/* Schild (Abgemeldet, Fällt aus) oben rechts auf Höhe des Titels */
.theme-insta .post__top .post__head .status {
    flex: 0 0 auto;
    margin-top: 6px;
}

/* Datum: unter einer feinen Linie, ohne eigenen Hintergrund */
.theme-insta .post__top .post__media,
.theme-insta .post__top .post__media--big {
    display: grid;
    gap: 2px;
    min-height: 0;
    margin: 14px 18px 0;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    aspect-ratio: auto;
}

.theme-insta .post__top .post__day {
    margin: 0;
    font-size: 30px;
}

.theme-insta .post__top .post__media--big .post__day {
    font-size: 44px;
}

.theme-insta .post__top .post__sub {
    margin-top: 2px;
    font-size: 15px;
}

.theme-insta .post__top .post__kicker {
    margin-bottom: 2px;
}

.theme-insta .post__top .post__chip {
    position: static;
    justify-self: start;
    margin: 0 0 6px;
}

/* Notenschlüssel klein rechts beim Datum */
.theme-insta .post__top .post__clef {
    top: 14px;
    right: 0;
    width: 36px;
    height: 36px;
}

/* ---------- Ohne Trennstrich; Uhrzeit und Countdown getrennt; erste Probe / erster Termin groß ---------- */
.theme-insta .post__top .post__media,
.theme-insta .post__top .post__media--big {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 0;
}

/* Uhrzeit fett, daneben der Countdown als helles Schild */
.theme-insta .post__top .post__sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 6px;
}

.theme-insta .post__top .post__time {
    font-size: 16px;
    font-weight: 700;
}

.theme-insta .post__top .post__count {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12.5px;
    font-weight: 600;
}

/* "Nächste Probe" / "Nächster Termin" als weißes Schild über dem Datum, vor "Pflichttermin" */
.theme-insta .post__top .post__kicker {
    order: -1;
    justify-self: start;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--red);
    font-size: 11px;
    letter-spacing: .1em;
    opacity: 1;
}

/* groß: mehr Luft, großer Titel und großes Datum, der Countdown weiß hervorgehoben */
.theme-insta .post__top--big .post__head {
    padding-top: 22px;
}

.theme-insta .rehearsal .post__top--big .post__who b,
.theme-insta .termin .post__top--big .post__who b {
    font-size: 34px;
}

.theme-insta .post__top--big .post__media {
    padding-bottom: 24px;
}

.theme-insta .post__top--big .post__day,
.theme-insta .post__top .post__media--big .post__day {
    font-size: 48px;
    line-height: 1;
}

.theme-insta .post__top--big .post__count {
    background: #fff;
    color: var(--red);
}

.theme-insta .post__top--big .post__clef {
    top: 0;
    width: 56px;
    height: 56px;
}

/* abgemeldete oder ausfallende erste Probe: Schilder grau statt rot */
.theme-insta .rehearsal.is-absent .post__top--big .post__count,
.theme-insta .rehearsal.is-cancelled .post__top--big .post__count,
.theme-insta .rehearsal.is-absent .post__top .post__kicker,
.theme-insta .rehearsal.is-cancelled .post__top .post__kicker,
.theme-insta .termin.is-cancelled .post__top .post__kicker {
    color: #6c6c6c;
}

/* ==========================================================================================================
 * Proben und Termine: roter Block (post__card) – harmonisch von oben nach unten:
 *   Schilder · Titel · Datum · Uhrzeit, Ort und Countdown. Ein Hintergrund, keine Trennlinien.
 * ========================================================================================================== */
.theme-insta .post__card {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 0;
    margin-bottom: 1em;
    padding: 18px 20px 20px;
    overflow: hidden;
    background: linear-gradient(170deg, #b30d0d 0%, var(--red) 45%, var(--red-dark) 100%);
    color: #fff;
}

.theme-insta .post__card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -35%;
    width: 85%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
    pointer-events: none;
}

.theme-insta .post__card > * {
    position: relative;
}

/* Notenschlüssel dezent oben rechts */
.theme-insta .post__card .post__clef {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    opacity: .2;
}

/* Schilder oben in einer Reihe, alle gleich hoch und rund */
.theme-insta .post__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding-right: 48px;
}

.theme-insta .post__label {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* "Nächste Probe" / "Nächster Termin": weiß mit roter Schrift, mit kleinem Punkt */
.theme-insta .post__label--next {
    gap: 6px;
    background: #fff;
    color: var(--red);
}

.theme-insta .post__label--next::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* "Pflichttermin": Gold */
.theme-insta .post__label--mandatory {
    background: var(--gold);
    color: #fff;
}

/* "Abgemeldet", "Fällt aus", "Abgesagt": dunkel */
.theme-insta .post__label--status {
    background: rgba(0, 0, 0, .28);
}

/* Titel groß, darunter das Datum */
.theme-insta .post__title {
    margin: 0;
    padding-right: 44px;
    color: #fff;
    font: 400 28px/1.1 var(--font-display);
    letter-spacing: .005em;
}

.theme-insta .post__date {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    font-weight: 600;
}

/* Uhrzeit, Ort, Countdown in einer Zeile mit kleinen Symbolen */
.theme-insta .post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 14.5px;
    font-weight: 500;
}

.theme-insta .post__meta .post__time,
.theme-insta .post__meta .post__place {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 500;
}

.theme-insta .post__meta .post__time::before,
.theme-insta .post__meta .post__place::before {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background: currentColor;
}

.theme-insta .post__meta .post__time::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.theme-insta .post__meta .post__place::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.theme-insta .post__meta .post__count {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

/* "Neu" / "Geändert" neben dem Titel */
.theme-insta .post__title .news-badge {
    margin-left: 8px;
    font-size: 10px;
    vertical-align: 6px;
}

/* nächste Probe / nächster Termin: größer, mit mehr Luft und weißem Countdown */
.theme-insta .post__card--big {
    padding: 22px 22px 24px;
}

.theme-insta .post__card--big .post__title {
    font-size: 36px;
}

.theme-insta .post__card--big .post__date {
    margin-top: 8px;
    font-size: 20px;
}

.theme-insta .post__card--big .post__meta {
    margin-top: 14px;
    font-size: 15px;
}

.theme-insta .post__card--big .post__count {
    background: #fff;
    color: var(--red);
}

.theme-insta .post__card--big .post__clef {
    width: 54px;
    height: 54px;
}

/* abgemeldet / fällt aus / abgesagt: der ganze Block grau, Schilder passend */
.theme-insta .rehearsal.is-absent .post__card,
.theme-insta .rehearsal.is-cancelled .post__card,
.theme-insta .termin.is-cancelled .post__card {
    background: linear-gradient(170deg, #9a9a9a 0%, #858585 45%, #6c6c6c 100%);
}

.theme-insta .rehearsal.is-cancelled .post__title,
.theme-insta .termin.is-cancelled .post__title {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.theme-insta .rehearsal.is-absent .post__label--next,
.theme-insta .rehearsal.is-cancelled .post__label--next,
.theme-insta .termin.is-cancelled .post__label--next,
.theme-insta .rehearsal.is-absent .post__card--big .post__count,
.theme-insta .rehearsal.is-cancelled .post__card--big .post__count,
.theme-insta .termin.is-cancelled .post__card--big .post__count {
    color: #6c6c6c;
}

/* Schilder kompakter, damit "Nächster Termin" und "Pflichttermin" nebeneinander passen */
.theme-insta .post__label {
    height: 23px;
    padding: 0 9px;
    font-size: 10.5px;
    letter-spacing: .05em;
}

.theme-insta .post__labels {
    padding-right: 40px;
}

/* Schilder immer nebeneinander in einer Zeile (auch auf schmalen Handys); bei Terminen ohne Notenschlüssel volle Breite */
.theme-insta .post__labels {
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}

.theme-insta .termin .post__labels {
    padding-right: 0;
}

.theme-insta .post__label {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 359px) {
    .theme-insta .post__label {
        padding: 0 7px;
        font-size: 9.5px;
        letter-spacing: .03em;
    }
}
