.hp-event-manager,
.hp-event-form,
.hp-event-own-list {
    max-width: 960px;
    margin: 2rem auto;
}

.hp-event-form {
    padding: 1.4rem;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

.hp-event-form p {
    margin: 0 0 1.15rem;
}

.hp-event-form label {
    display: block;
    margin-bottom: .4rem;
}

.hp-event-form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: .7rem;
    border: 1px solid #aaa;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.hp-event-form__dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hp-event-button {
    min-height: 52px;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: 9px;
    background: #222;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hp-event-notice {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 5px solid #d99400;
    background: #fff4d5;
}

.hp-event-notice--success {
    border-left-color: #2c883c;
    background: #e7f8e9;
}

.hp-event-notice--error {
    border-left-color: #c52a2a;
    background: #ffe7e7;
}

/* Öffentliche Veranstaltungstabelle */
.hp-events-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(25, 25, 25, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 12px 30px rgba(40, 25, 5, .10),
        0 2px 6px rgba(40, 25, 5, .06);
}

.hp-events-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    color: #202020;
    font-family: inherit;
    line-height: 1.35;
}

.hp-events-table th,
.hp-events-table td {
    padding: 1.1rem 1.25rem;
    border: 0;
    border-right: 1px solid rgba(25, 25, 25, .10);
    border-bottom: 1px solid rgba(25, 25, 25, .10);
    vertical-align: middle;
    text-align: left;
}

.hp-events-table th:last-child,
.hp-events-table td:last-child {
    border-right: 0;
}

.hp-events-table tbody tr:last-child td {
    border-bottom: 0;
}

.hp-events-table th {
    background: #202020;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hp-events-table td {
    background: rgba(255, 255, 255, .94);
    font-size: 1rem;
}

/* Der nächste Termin bleibt dezent hervorgehoben – ohne Badge und Seitenbalken. */
.hp-events-table__next td {
    background:
        linear-gradient(
            135deg,
            rgba(255, 247, 225, .98),
            rgba(255, 234, 184, .98)
        );
}

.hp-events-table td:first-child strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.015em;
    white-space: nowrap;
}

.hp-events-table td:nth-child(2) strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 850;
    letter-spacing: -.025em;
}

.hp-events-table__next td:nth-child(2) strong {
    color: #9a410f;
}

.hp-events-table td:nth-child(3) strong {
    display: block;
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: .015em;
}

.hp-events-time,
.hp-events-address {
    display: block;
    margin-top: .28rem;
    color: rgba(32, 32, 32, .72);
    font-size: .92rem;
    font-weight: 500;
}

.hp-events-empty {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}

/* Eigene Termine im geschützten Frontend */
.hp-event-own-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .14);
}

.hp-event-own-list__item div {
    display: flex;
    flex-direction: column;
}

.hp-event-own-list__item a {
    color: #a21b1b !important;
    font-weight: 700;
}

@media (max-width: 650px) {
    .hp-event-form__dates {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hp-events-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .hp-events-table,
    .hp-events-table tbody,
    .hp-events-table tr,
    .hp-events-table td {
        display: block;
        width: 100%;
    }

    .hp-events-table thead {
        display: none;
    }

    .hp-events-table tr {
        box-sizing: border-box;
        overflow: hidden;
        margin-bottom: 1rem;
        border: 1px solid rgba(25, 25, 25, .12);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(40, 25, 5, .10);
    }

    .hp-events-table td {
        box-sizing: border-box;
        padding: .85rem 1rem;
        border: 0;
        border-bottom: 1px solid rgba(25, 25, 25, .09);
        background: rgba(255, 255, 255, .96);
    }

    .hp-events-table__next td {
        background:
            linear-gradient(
                135deg,
                rgba(255, 247, 225, .98),
                rgba(255, 234, 184, .98)
            );
    }

    .hp-events-table td:last-child {
        border-bottom: 0;
    }

    .hp-events-table td::before {
        display: block;
        margin-bottom: .25rem;
        content: attr(data-label);
        color: rgba(32, 32, 32, .58);
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .hp-events-table td:first-child strong {
        white-space: normal;
    }

    .hp-event-own-list__item {
        align-items: flex-start;
        flex-direction: column;
    }
}
