/*
 * ============================================================
 * INSTITUT TERMINE & BUCHUNG
 * ============================================================
 */


/*
 * ============================================================
 * ALLGEMEIN
 * ============================================================
 */

.ij-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/*
 * ============================================================
 * GROSSE TERMINÜBERSICHT
 * ============================================================
 */

.ij-overview {
    width: 100%;
}

.ij-overview-header {
    margin-bottom: 1.25rem;
}

.ij-overview-title {
    margin: 0 0 0.5rem;
}

.ij-print-meta, .ij-overview-title {
    display: none;
}


/*
 * ============================================================
 * TOOLBAR
 * ============================================================
 */

.ij-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 2rem;
}

.ij-search {
    flex: 1 1 auto;
}

.ij-search-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ij-search-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.ij-print-button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.ij-print-button:hover {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.ij-no-results,
.ij-empty {
    margin: 2rem 0;
}


/*
 * ============================================================
 * MONATSGRUPPEN
 * ============================================================
 */

.ij-overview-content {
    width: 100%;
}

.ij-year-group {
    margin: 0;
}

.ij-month-group {
    margin: 0 0 3rem;
}

.ij-month-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0 0 0.7rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.ij-month-title {
    margin: 0;
    font-size: clamp(1.15rem, 1vw + 0.8rem, 1.45rem);
    font-weight: 650;
    line-height: 1.25;
}

.ij-month-count {
    flex: 0 0 auto;
    font-size: 0.85rem;
    opacity: 0.55;
}


/*
 * ============================================================
 * MODERNE EVENT-LISTE
 * ============================================================
 */

.ij-event-list {
    display: grid;
    gap: 0.8rem;
}

.ij-event-card {
    position: relative;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) minmax(165px, auto);
    gap: 1.25rem;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ij-event-card:hover {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.06);
}


/*
 * ============================================================
 * DATUMSBLOCK
 * ============================================================
 */

.ij-date-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: fit-content;
    min-height: 66px;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.035);
    line-height: 1.25;
}

.ij-date-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.55;
}

.ij-date-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}


/*
 * ============================================================
 * VERANSTALTUNGSINHALT
 * ============================================================
 */

.ij-event-content {
    min-width: 0;
}

.ij-event-title {
    display: inline;
    margin: 0;
    font-size: clamp(1rem, 0.3vw + 0.95rem, 1.12rem);
    font-weight: 650;
    line-height: 1.4;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ij-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.65rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.72;
}

.ij-event-meta-item {
    display: inline-flex;
    align-items: center;
}

.ij-event-meta-item:not(:last-child)::after {
    content: "•";
    margin-left: 0.65rem;
    opacity: 0.4;
}

/*
 * ============================================================
 * STATUS + AKTION
 * ============================================================
 */

.ij-event-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.6rem;
    min-width: 0;
    text-align: right;
}

.ij-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.045);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.ij-status::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

.ij-status--low {
    font-weight: 750;
}

.ij-status--closed,
.ij-status--deadline,
.ij-status--past {
    opacity: 0.68;
}

.ij-status--full {
    font-weight: 700;
}

.ij-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ij-booking-link {
    display: inline-flex;
    color: #fff;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-sizing: border-box;
    padding: 0.5rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

.main_color .ij-ausschreibung-termin a,
.main_color .ij-booking-link{
    color: #fff;
}

.main_color .ij-ausschreibung-termin a:hover,
.main_color .ij-booking-link:hover{
    color: #fff;
}


/*
 * ============================================================
 * LIVE-SUCHE
 * ============================================================
 */

.ij-event-card.is-filtered-out,
.ij-month-group.is-filtered-empty,
.ij-year-group.is-filtered-empty {
    display: none;
}


/*
 * ============================================================
 * AUSSCHREIBUNGSSEITE
 * ============================================================
 */

.ij-ausschreibung-termine {
    margin-top: 3rem;
}

.ij-ausschreibung-title {
    margin: 0 0 1.5rem;
}

.ij-ausschreibung-list {
    display: grid;
    gap: 1rem;
}

.ij-ausschreibung-termin {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(120px, 1fr))
        minmax(160px, 1.2fr)
        minmax(150px, auto);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: #fff;
}

.ij-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ij-detail-label {
    font-size: 0.85em;
    opacity: 0.7;
}

.ij-ausschreibung-status {
    min-width: 0;
}


/*
 * ============================================================
 * BUCHUNGSSEITE
 * ============================================================
 */

.ij-booking {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}


/* Kopfbereich */

.ij-booking-header {
    margin-bottom: 1.5rem;
}

.ij-booking-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.55;
}

.ij-booking-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.2;
}

.ij-booking-intro {
    max-width: 680px;
    margin: 0;
    line-height: 1.55;
    opacity: 0.72;
}


/* Termin-Zusammenfassung */

.ij-booking-summary {
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.035);
}

.ij-booking-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ij-booking-event {
    min-width: 0;
}

.ij-booking-event-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.55;
}

.ij-booking-event-title {
    margin: 0;
    font-size: clamp(1.08rem, 0.5vw + 1rem, 1.3rem);
    font-weight: 700;
    line-height: 1.35;
}


/* Terminfakten */

.ij-booking-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0 1.4rem;
}

.ij-booking-fact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1rem 1.2rem 1rem 0;
}

.ij-booking-fact:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 0.6rem;
    bottom: 1rem;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.ij-booking-fact-label {
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.55;
}

.ij-booking-fact-value {
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}


/* Buchungshinweis */

.ij-booking-notice {
    margin: 0 1.4rem 1.25rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.035);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ij-booking-notice > :first-child {
    margin-top: 0;
}

.ij-booking-notice > :last-child {
    margin-bottom: 0;
}


/* Formularbereich */

.ij-booking-form-section {
    margin-top: 2.5rem;
}

.ij-booking-form-header {
    margin-bottom: 1.25rem;
}

.ij-booking-step {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.5;
}

.ij-booking-form-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.ij-booking-form-header p {
    margin: 0;
    opacity: 0.7;
}

.ij-booking-form {
    padding: 1.4rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.025);
}


/* Nicht buchbar / allgemeine Meldungen */

.ij-booking-unavailable {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.025);
}

.ij-booking-unavailable strong {
    display: block;
    margin-bottom: 0.25rem;
}

.ij-booking-unavailable p {
    margin: 0;
    opacity: 0.75;
}

.ij-booking-message {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.025);
}


/*
 * ============================================================
 * STORNIERUNG
 * ============================================================
 */

.ij-cancellation {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}


/* Kopfbereich */

.ij-cancellation-header {
    margin-bottom: 1.5rem;
}

.ij-cancellation-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7070d0;
}

.ij-cancellation-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.2;
}

.ij-cancellation-intro {
    max-width: 680px;
    margin: 0;
    line-height: 1.55;
    opacity: 0.72;
}


/* Zusammenfassung der Anmeldung */

.ij-cancellation-summary {
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-top: 4px solid #7070d0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.035);
}

.ij-cancellation-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ij-cancellation-event {
    min-width: 0;
}

.ij-cancellation-event-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.55;
}

.ij-cancellation-event-title {
    margin: 0;
    font-size: clamp(1.08rem, 0.5vw + 1rem, 1.3rem);
    font-weight: 700;
    line-height: 1.35;
}


/* Status */

.ij-cancellation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(112, 112, 208, 0.10);
    color: #5555b8;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.ij-cancellation-badge::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.ij-cancellation-badge--success {
    background: rgba(35, 130, 70, 0.09);
    color: #267447;
}

.ij-cancellation-badge--expired {
    background: rgba(0, 0, 0, 0.055);
    color: rgba(0, 0, 0, 0.62);
}


/* Terminfakten */

.ij-cancellation-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0 1.4rem;
}

.ij-cancellation-fact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1rem 1.2rem 1rem 0;
}

.ij-cancellation-fact:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 0.6rem;
    bottom: 1rem;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.ij-cancellation-fact-label {
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.55;
}

.ij-cancellation-fact-value {
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}


/* Buchungsreferenz */

.ij-cancellation-reference {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.85rem 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(112, 112, 208, 0.045);
}

.ij-cancellation-reference-label {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6060bd;
}

.ij-cancellation-reference-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.45;
    opacity: 0.78;
}


/* Stornierungsfrist */

.ij-cancellation-deadline {
    margin: 0 0 2rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid #7070d0;
    background: rgba(112, 112, 208, 0.05);
}

.ij-cancellation-deadline-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6060bd;
}

.ij-cancellation-deadline p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}


/* Formularbereich */

.ij-cancellation-form-section {
    margin-top: 2.5rem;
}

.ij-cancellation-form-header {
    margin-bottom: 1.25rem;
}

.ij-cancellation-step {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7070d0;
}

.ij-cancellation-form-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.ij-cancellation-form-header p {
    margin: 0;
    opacity: 0.7;
}

.ij-cancellation-form {
    padding: 1.4rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.025);
}

.ij-cancellation-form-notice {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.035);
}

.ij-cancellation-form-notice strong {
    display: block;
    margin-bottom: 0.2rem;
}

.ij-cancellation-form-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.75;
}


/* Optionale E-Mail */

.ij-cancellation-email {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.ij-cancellation-email label {
    font-weight: 650;
}

.ij-cancellation-email label span {
    font-weight: 400;
    opacity: 0.6;
}

.ij-cancellation-email input {
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ij-cancellation-email input:focus {
    outline: none;
    border-color: #7070d0;
    box-shadow: 0 0 0 3px rgba(112, 112, 208, 0.12);
}

.ij-cancellation-email-hint {
    max-width: 680px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.7;
}


/* Stornierungsbutton */

.ij-cancel-button {
    min-height: 46px;
    padding: 0.7rem 1rem;
    border: 1px solid #7070d0;
    border-radius: 8px;
    background: #7070d0;
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.ij-cancel-button:hover {
    box-shadow: 0 6px 18px rgba(112, 112, 208, 0.22);
}

.ij-cancel-button:focus-visible {
    outline: 3px solid rgba(112, 112, 208, 0.24);
    outline-offset: 2px;
}


/* Ergebnis- und Fehlermeldungen */

.ij-cancellation-result {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.025);
}

.ij-cancellation-result strong {
    margin-bottom: 0.3rem;
}

.ij-cancellation-result p {
    margin: 0.35rem 0 0;
    line-height: 1.55;
    opacity: 0.78;
}

.ij-cancellation-result--success {
    border-color: rgba(35, 130, 70, 0.18);
    background: rgba(35, 130, 70, 0.045);
}

.ij-cancellation-result--expired {
    border-color: rgba(0, 0, 0, 0.10);
}

.ij-cancellation-result--error {
    border-color: rgba(150, 45, 45, 0.18);
    background: rgba(150, 45, 45, 0.045);
}

.ij-cancellation--success,
.ij-cancellation--expired,
.ij-cancellation--error {
    margin-top: 0;
}


/*
 * ============================================================
 * ADMIN-TOOLS IM FRONTEND
 * ============================================================
 */

.ij-admin-tools {
    margin: 1.5rem 0 2rem;
    padding: 0;
    border: 1px dashed #d9b46c;
    border-radius: 8px;
    background: #fef9e7;
}

.ij-admin-tools__summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
}

.ij-admin-tools__summary span {
    font-size: 0.85em;
    opacity: 0.7;
}

.ij-admin-tools__content {
    padding: 0 1rem 1rem;
}

.ij-admin-tools__quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.8rem 0 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ij-admin-tools__terms {
    display: grid;
    gap: 0;
}

.ij-admin-tools__term {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.ij-admin-tools__term:last-child {
    border-bottom: 0;
}

.ij-admin-tools__term-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ij-admin-tools__term-info small {
    opacity: 0.7;
}

.ij-admin-tools__term-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem 1rem;
}

.ij-admin-tools a {
    font-weight: 600;
}


/*
 * ============================================================
 * TABLET
 * ============================================================
 */

/* @media (max-width: 900px) {

    .ij-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ij-print-button {
        width: 100%;
    }

    .ij-event-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.9rem;
        border-radius: 12px;
    }

    .ij-event-side {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        text-align: left;
    }

    .ij-ausschreibung-termin {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
} */


/*
 * ============================================================
 * BUCHUNGSSEITE – TABLET
 * ============================================================
 */

@media (max-width: 800px) {

    .ij-booking-summary-top {
        gap: 1rem;
        padding: 1rem 1.1rem;
    }

    .ij-booking-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 1.1rem;
    }

    .ij-booking-fact {
        padding: 0.9rem 1rem 0.9rem 0;
    }

    .ij-booking-fact::after {
        display: none;
    }

    .ij-booking-form {
        padding: 1.1rem;
    }

    .ij-cancellation-summary-top {
        gap: 1rem;
        padding: 1rem 1.1rem;
    }

    .ij-cancellation-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 1.1rem;
    }

    .ij-cancellation-fact {
        padding: 0.9rem 1rem 0.9rem 0;
    }

    .ij-cancellation-fact::after {
        display: none;
    }

    .ij-cancellation-form {
        padding: 1.1rem;
    }
}


/*
 * ============================================================
 * MOBILE
 * ============================================================
 */

@media (max-width: 900px) {

    .ij-month-group {
        margin-bottom: 2.25rem;
    }

    .ij-month-header {
        align-items: center;
        margin-bottom: 0.75rem;
    }

    .ij-month-title {
        font-size: 1.15rem;
    }

    .ij-month-count {
        font-size: 0.78rem;
    }

    .ij-event-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.9rem;
        border-radius: 12px;
    }

    .ij-event-card:hover {
        transform: none;
    }

    .ij-date-badge {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 0.45rem 0.65rem;
        border-radius: 8px;
    }

    .ij-date-label {
        margin-bottom: 0.15rem;
        font-size: 0.68rem;
    }

    .ij-date-value {
        font-size: 0.9rem;
    }

    .ij-event-title {
        font-size: 1rem;
    }

    .ij-event-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem 0.5rem;
        margin-top: 0.45rem;
        font-size: 0.85rem;
    }

    .ij-event-meta-item:not(:last-child)::after {
        margin-left: 0.5rem;
    }

    .ij-event-side {
        grid-column: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding-top: 0.7rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        text-align: left;
    }

    .ij-status {
        padding: 0.3rem 0.55rem;
        font-size: 0.78rem;
    }

    .ij-booking-link {
        padding: 0.45rem 0.7rem;
        font-size: 0.82rem;
        width: 100%;
    }

    .ij-ausschreibung-termin {
        grid-template-columns: 1fr;
    }

    .ij-booking-header {
        margin-bottom: 1.25rem;
    }

    .ij-booking-intro {
        font-size: 0.9rem;
    }

    .ij-booking-summary {
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .ij-booking-summary-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }

    .ij-booking-event-title {
        font-size: 1.05rem;
    }

    .ij-booking-facts {
        grid-template-columns: 1fr;
        padding: 0.3rem 1rem;
    }

    .ij-booking-fact {
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .ij-booking-fact:last-child {
        border-bottom: 0;
    }

    .ij-booking-notice {
        margin: 0.5rem 1rem 1rem;
    }

    .ij-booking-form-section {
        margin-top: 2rem;
    }

    .ij-booking-form {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ij-cancellation-header {
        margin-bottom: 1.25rem;
    }

    .ij-cancellation-intro {
        font-size: 0.9rem;
    }

    .ij-cancellation-summary {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .ij-cancellation-summary-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }

    .ij-cancellation-event-title {
        font-size: 1.05rem;
    }

    .ij-cancellation-facts {
        grid-template-columns: 1fr;
        padding: 0.3rem 1rem;
    }

    .ij-cancellation-fact {
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .ij-cancellation-fact:last-child {
        border-bottom: 0;
    }

    .ij-cancellation-reference {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.8rem 1rem;
    }

    .ij-cancellation-deadline {
        margin-bottom: 1.5rem;
    }

    .ij-cancellation-form-section {
        margin-top: 2rem;
    }

    .ij-cancel-button {
        width: 100%;
    }

    .ij-admin-tools__term {
        flex-direction: column;
        align-items: flex-start;
    }

    .ij-admin-tools__term-actions {
        justify-content: flex-start;
    }

    .ij-toolbar{
        flex-direction: column;
    }

    .ij-search, .ij-print-button{
        width: 100%;
    }

}


/*
 * ============================================================
 * SEHR KLEINE DISPLAYS
 * ============================================================
 */

@media (max-width: 420px) {

    /* .ij-event-side {
        flex-direction: column;
        align-items: flex-start;
    } */

    .ij-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .ij-booking-link {
        width: 100%;
    }
}


/*
 * ============================================================
 * DRUCK / PDF
 * ============================================================
 */

#ij-print-root {
    display: none;
}

@media print {

    @page {
        margin: 12mm;
    }

    body.ij-printing > *:not(#ij-print-root) {
        display: none !important;
    }

    body.ij-printing #ij-print-root {
        display: block !important;
    }

    #ij-print-root {
        font-size: 10pt;
    }

    #ij-print-root .ij-overview {
        display: block !important;
    }

    #ij-print-root .ij-print-meta,
    #ij-print-root .ij-overview-title {
        display: block;
        margin: 0 0 1.5rem;
    }

    #ij-print-root .ij-admin-tools,
    .ij-admin-tools {
        display: none !important;
    }

    #ij-print-root .ij-toolbar,
    #ij-print-root .ij-no-results {
        display: none !important;
    }

    #ij-print-root .is-filtered-out,
    #ij-print-root .is-filtered-empty {
        display: block !important;
    }

    #ij-print-root .ij-month-group {
        margin-bottom: 8mm;
    }

    #ij-print-root .ij-month-header {
        margin-bottom: 2mm;
        padding-bottom: 2mm;
    }

    #ij-print-root .ij-month-count {
        display: none;
    }

    #ij-print-root .ij-event-list {
        display: block;
    }

    #ij-print-root .ij-event-card {
        display: grid !important;
        grid-template-columns: 35mm minmax(0, 1fr) 35mm;
        gap: 4mm;
        padding: 3mm 0;
        border: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.18);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    #ij-print-root .ij-date-badge {
        width: auto;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    #ij-print-root .ij-date-label {
        font-size: 7.5pt;
    }

    #ij-print-root .ij-date-value {
        font-size: 9pt;
        white-space: normal;
    }

    #ij-print-root .ij-event-title {
        color: inherit;
        font-size: 10pt;
        text-decoration: none;
    }

    #ij-print-root .ij-event-meta {
        font-size: 8.5pt;
    }

    #ij-print-root .ij-event-side {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
        border: 0;
        text-align: right;
    }

    #ij-print-root .ij-actions {
        display: none !important;
    }

    #ij-print-root .ij-status {
        padding: 0;
        border-radius: 0;
        background: transparent;
        font-size: 8.5pt;
    }

    #ij-print-root .ij-status::before {
        display: none;
    }

    #ij-print-root a {
        color: inherit;
        text-decoration: none;
    }
}

/*
 * ============================================================
 * EINHEITLICHES CORPORATE DESIGN
 * ============================================================
 *
 * Firmenfarbe Institut Johnson: #7070d0
 *
 * Dieser Abschnitt gleicht Terminübersicht, Ausschreibungsseite,
 * Anmeldung und Stornierung rein per CSS visuell aneinander an.
 * Die Druckansicht bleibt davon unberührt.
 */

@media screen {

    :root {
        --ij-brand: #7070d0;
        --ij-brand-dark: #6060bd;
        --ij-brand-darker: #5555b8;
        --ij-brand-soft: rgba(112, 112, 208, 0.08);
        --ij-brand-soft-strong: rgba(112, 112, 208, 0.13);
        --ij-brand-border: rgba(112, 112, 208, 0.24);
        --ij-text: #2f2f38;
        --ij-text-soft: #62626d;
        --ij-border: rgba(47, 47, 56, 0.12);
        --ij-surface: #ffffff;
        --ij-surface-soft: #f8f8fc;
        --ij-shadow: 0 8px 26px rgba(47, 47, 56, 0.055);
    }


    /*
     * ------------------------------------------------------------
     * TYPOGRAFIE / GRUNDSTIL
     * ------------------------------------------------------------
     */

    .ij-overview,
    .ij-ausschreibung-termine,
    .ij-booking,
    .ij-cancellation {
        color: var(--ij-text);
    }

    .ij-overview-title,
    .ij-ausschreibung-title,
    .ij-booking-title,
    .ij-cancellation-title {
        color: var(--ij-text);
        font-weight: 650;
    }

    .ij-booking-eyebrow,
    .ij-booking-step,
    .ij-cancellation-eyebrow,
    .ij-cancellation-step {
        color: var(--ij-brand);
        opacity: 1;
    }

    .ij-booking-intro,
    .ij-cancellation-intro {
        color: var(--ij-text-soft);
        opacity: 1;
    }


    /*
     * ------------------------------------------------------------
     * TERMINÜBERSICHT / TOOLBAR
     * ------------------------------------------------------------
     */

    .ij-search-input {
        border-color: var(--ij-border);
        color: var(--ij-text);
    }

    .ij-search-input:hover {
        border-color: var(--ij-brand-border);
    }

    .ij-search-input:focus {
        border-color: var(--ij-brand);
        box-shadow: 0 0 0 3px var(--ij-brand-soft-strong);
    }

    .ij-print-button {
        border-color: var(--ij-brand-border);
        color: var(--ij-brand-dark);
        background: var(--ij-surface);
    }

    .ij-print-button:hover {
        border-color: var(--ij-brand);
        background: var(--ij-brand-soft);
        box-shadow: 0 5px 16px rgba(112, 112, 208, 0.10);
    }

    .ij-print-button:focus-visible {
        outline: 3px solid var(--ij-brand-soft-strong);
        outline-offset: 2px;
    }


    /*
     * ------------------------------------------------------------
     * MONATSGRUPPEN
     * ------------------------------------------------------------
     */

    .ij-month-header {
        border-bottom-color: var(--ij-brand-border);
    }

    .ij-month-title {
        color: var(--ij-text);
    }

    .ij-month-count {
        color: var(--ij-text-soft);
        opacity: 1;
    }


    /*
     * ------------------------------------------------------------
     * EVENT-KARTEN
     * ------------------------------------------------------------
     */

    .ij-event-card {
        border-color: var(--ij-border);
        background: var(--ij-surface);
        box-shadow: 0 3px 14px rgba(47, 47, 56, 0.025);
    }

    .ij-event-card:hover {
        border-color: var(--ij-brand-border);
        box-shadow: var(--ij-shadow);
    }

    .ij-date-badge {
        background: var(--ij-brand-soft);
        color: var(--ij-brand-dark);
    }

    .ij-date-label {
        color: var(--ij-brand-dark);
        opacity: 0.78;
    }

    .ij-date-value {
        color: var(--ij-text);
    }

    .ij-event-title {
        color: var(--ij-text);
        text-decoration-color: rgba(112, 112, 208, 0.42);
    }

    .ij-event-title:hover,
    .ij-event-title:focus-visible {
        color: var(--ij-brand-dark);
        text-decoration-color: var(--ij-brand);
    }

    .ij-event-title:focus-visible {
        outline: 3px solid var(--ij-brand-soft-strong);
        outline-offset: 3px;
        border-radius: 3px;
    }

    .ij-event-meta {
        opacity: 1;
    }


    /*
     * ------------------------------------------------------------
     * STATUS
     * ------------------------------------------------------------
     */

    .ij-status {
        background: var(--ij-brand-soft);
        color: var(--ij-brand-dark);
    }

    .ij-status--available {
        background: var(--ij-brand-soft);
        color: var(--ij-brand-dark);
    }

    .ij-status--low {
        background: #fff7df;
        color: #805d00;
    }

    .ij-status--full {
        background: #fff0f0;
        color: #9a3939;
    }

    .ij-status--closed,
    .ij-status--deadline,
    .ij-status--past {
        background: rgba(47, 47, 56, 0.055);
        color: #66666f;
        opacity: 1;
    }


    /*
     * ------------------------------------------------------------
     * HAUPTAKTIONEN / BUTTONS
     * ------------------------------------------------------------
     */

    .ij-booking-link,
    .ij-cancel-button {
        border-color: var(--ij-brand-dark);
        background: var(--ij-brand-dark);
        color: #ffffff;
        box-shadow: 0 3px 10px rgba(96, 96, 189, 0.13);
    }

    .ij-booking-link:hover,
    .ij-cancel-button:hover {
        border-color: var(--ij-brand-darker);
        background: var(--ij-brand-darker);
        color: #ffffff;
        box-shadow: 0 7px 18px rgba(85, 85, 184, 0.18);
    }

    .ij-booking-link:focus-visible,
    .ij-cancel-button:focus-visible {
        outline: 3px solid var(--ij-brand-soft-strong);
        outline-offset: 2px;
    }


    /*
     * ------------------------------------------------------------
     * AUSSCHREIBUNGSSEITE
     * ------------------------------------------------------------
     */

    .ij-ausschreibung-title {
        margin-bottom: 1.25rem;
    }

    .ij-ausschreibung-termin {
        border-color: var(--ij-border);
        border-radius: 14px;
        background: var(--ij-surface);
        box-shadow: 0 3px 14px rgba(47, 47, 56, 0.025);
        transition:
            transform 160ms ease,
            border-color 160ms ease,
            box-shadow 160ms ease;
    }

    .ij-ausschreibung-termin:hover {
        border-color: var(--ij-brand-border);
        box-shadow: var(--ij-shadow);
    }

    .ij-detail-label {
        color: var(--ij-brand-dark);
        font-weight: 650;
        opacity: 0.82;
    }


    /*
     * ------------------------------------------------------------
     * ANMELDUNG
     * ------------------------------------------------------------
     */

    .ij-booking-summary {
        border-color: var(--ij-border);
        border-top: 4px solid var(--ij-brand);
        box-shadow: var(--ij-shadow);
    }

    .ij-booking-summary-top {
        border-bottom-color: var(--ij-border);
    }

    .ij-booking-event-label {
        color: var(--ij-brand-dark);
        opacity: 0.82;
    }

    .ij-booking-event-title {
        color: var(--ij-text);
    }

    .ij-booking-fact-label {
        color: var(--ij-brand-dark);
        opacity: 0.82;
    }

    .ij-booking-fact-value {
        color: var(--ij-text);
    }

    .ij-booking-fact:not(:last-child)::after {
        background: var(--ij-border);
    }

    .ij-booking-notice {
        border-left: 3px solid var(--ij-brand);
        background: var(--ij-brand-soft);
        color: var(--ij-text-soft);
    }

    .ij-booking-form-header h3,
    .ij-cancellation-form-header h3 {
        color: var(--ij-text);
        font-weight: 650;
    }

    .ij-booking-form-header p,
    .ij-cancellation-form-header p {
        color: var(--ij-text-soft);
        opacity: 1;
    }

    .ij-booking-form,
    .ij-cancellation-form {
        border-color: var(--ij-border);
        background: var(--ij-surface);
        box-shadow: var(--ij-shadow);
    }

    .ij-booking-unavailable,
    .ij-booking-message {
        border-color: var(--ij-brand-border);
        background: var(--ij-brand-soft);
    }


    /*
     * ------------------------------------------------------------
     * FORMINATOR AUF DER ANMELDUNGSSEITE
     * ------------------------------------------------------------
     */

    .ij-booking-form .forminator-ui.forminator-custom-form {
        margin: 0;
    }

    .ij-booking-form .forminator-label {
        color: var(--ij-text) !important;
        font-weight: 650 !important;
    }

    .ij-booking-form .forminator-description,
    .ij-booking-form .forminator-description span {
        color: var(--ij-text-soft) !important;
    }

    .ij-booking-form .forminator-input,
    .ij-booking-form .forminator-textarea,
    .ij-booking-form .forminator-select--field {
        border-color: var(--ij-border) !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        color: var(--ij-text) !important;
        box-shadow: none !important;
        transition:
            border-color 150ms ease,
            box-shadow 150ms ease !important;
    }

    .ij-booking-form .forminator-input:hover,
    .ij-booking-form .forminator-textarea:hover,
    .ij-booking-form .forminator-select--field:hover {
        border-color: var(--ij-brand-border) !important;
    }

    .ij-booking-form .forminator-input:focus,
    .ij-booking-form .forminator-textarea:focus,
    .ij-booking-form .forminator-select--field:focus {
        border-color: var(--ij-brand) !important;
        box-shadow: 0 0 0 3px var(--ij-brand-soft-strong) !important;
    }

    .ij-booking-form .forminator-button-submit {
        border: 1px solid var(--ij-brand-dark) !important;
        border-radius: 8px !important;
        background: var(--ij-brand-dark) !important;
        color: #ffffff !important;
        font-weight: 650 !important;
        box-shadow: 0 3px 10px rgba(96, 96, 189, 0.13) !important;
        transition:
            transform 150ms ease,
            background-color 150ms ease,
            box-shadow 150ms ease !important;
    }

    .ij-booking-form .forminator-button-submit:hover {
        border-color: var(--ij-brand-darker) !important;
        background: var(--ij-brand-darker) !important;
        box-shadow: 0 7px 18px rgba(85, 85, 184, 0.18) !important;
    }

    .ij-booking-form .forminator-button-submit:focus-visible {
        outline: 3px solid var(--ij-brand-soft-strong) !important;
        outline-offset: 2px;
    }


    /*
     * ------------------------------------------------------------
     * STORNIERUNG – ANGLEICHUNG
     * ------------------------------------------------------------
     */

    .ij-cancellation-summary {
        border-color: var(--ij-border);
        border-top-color: var(--ij-brand);
        box-shadow: var(--ij-shadow);
    }

    .ij-cancellation-summary-top {
        border-bottom-color: var(--ij-border);
    }

    .ij-cancellation-event-label,
    .ij-cancellation-fact-label,
    .ij-cancellation-reference-label,
    .ij-cancellation-deadline-label {
        color: var(--ij-brand-dark);
        opacity: 0.82;
    }

    .ij-cancellation-reference {
        border-top-color: var(--ij-border);
        background: var(--ij-brand-soft);
    }

    .ij-cancellation-deadline {
        border-left-color: var(--ij-brand);
        background: var(--ij-brand-soft);
    }

    .ij-cancellation-form-notice {
        border-left: 3px solid var(--ij-brand);
        background: var(--ij-brand-soft);
    }

    .ij-cancellation-email input:hover {
        border-color: var(--ij-brand-border);
    }

    .ij-cancellation-email input:focus {
        border-color: var(--ij-brand);
        box-shadow: 0 0 0 3px var(--ij-brand-soft-strong);
    }


    /*
     * ------------------------------------------------------------
     * ADMIN-TOOLS
     * ------------------------------------------------------------
     */

    .ij-admin-tools {
        border-color: rgba(112, 112, 208, 0.38);
        background: rgba(112, 112, 208, 0.055);
    }

    .ij-admin-tools__quicklinks {
        border-bottom-color: var(--ij-brand-border);
    }

    .ij-admin-tools__term {
        border-bottom-color: var(--ij-border);
    }

    .ij-admin-tools a {
        color: var(--ij-brand-dark);
    }


    /*
     * ------------------------------------------------------------
     * MOBILE FEINSCHLIFF
     * ------------------------------------------------------------
     */

    @media (max-width: 900px) {

        .ij-actions {
            width: 100%;
            justify-content: flex-start;
        }

        .ij-event-card,
        .ij-ausschreibung-termin,
        .ij-booking-summary,
        .ij-cancellation-summary,
        .ij-booking-form,
        .ij-cancellation-form {
            box-shadow: 0 4px 16px rgba(47, 47, 56, 0.045);
        }

        .ij-booking-link,
        .ij-cancel-button {
            min-height: 44px;
        }
    }
}

