/* ==========================================================
   ClubPortal Veranstaltungsseite
   Datei: event.css
========================================================== */

.club-wrapper {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 60px;
}

.club-hero {
    margin-bottom: 28px;
    padding: 30px 20px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.club-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.club-hero h2 {
    margin: 14px 0 8px;
    color: var(--orange);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.club-motto {
    margin: 8px auto 0;
    color: var(--muted);
    font-weight: 650;
}

.event-notice {
    display: inline-block;
    margin: 14px auto 0;
    padding: 9px 14px;
    color: #7a4b00;
    background: #fff4d7;
    border: 1px solid #f1d28b;
    border-radius: 12px;
    font-weight: 750;
}

.event-image-wrap {
    max-width: 760px;
    margin: 18px auto 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.event-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 8s linear;
}

.event-image-wrap:hover .event-image {
    transform: scale(1.06);
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 20px;
    color: #555;
    font-size: 1rem;
    font-weight: 700;
}

.event-meta div {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

.event-description {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.55;
}

.club-stats {
    margin-top: 18px;
    line-height: 1.45;
}

.club-stats span {
    color: var(--muted);
}

.progress-wrap {
    max-width: 620px;
    margin: 18px auto 0;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
}

.progress-bar {
    height: 16px;
    overflow: hidden;
    background: #ece7df;
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08);
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--orange), #f4a340);
    border-radius: inherit;
    transition: width .5s ease;
}

.category {
    margin-top: 34px;
}

.category-title {
    margin: 0 0 14px;
    color: #3a2a18;
    font-size: 1.35rem;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.item-card {
    min-height: 150px;
    padding: 20px;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.item-card:hover,
.item-card:focus-visible {
    outline: none;
    transform: translateY(-4px);
    border-color: #d6b98f;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.item-card.hat-zusagen {
    background: var(--green-soft);
    border-color: #b7dfba;
}

.item-icon {
    margin-bottom: 10px;
    font-size: 2rem;
}

.item-title {
    margin-bottom: 14px;
    font-size: 1.2rem;
    font-weight: 800;
}

.item-status {
    color: var(--muted);
    font-size: .95rem;
}

.empty-label {
    display: inline-block;
}

.tap-hint {
    margin-top: 10px;
    color: var(--orange);
    font-weight: 750;
}

.entry-list {
    margin-top: 6px;
}

.entry-person {
    margin-bottom: 12px;
    padding-left: 2px;
    color: var(--green);
    font-weight: 800;
}

.entry-person small {
    display: inline-block;
    margin-top: 2px;
    margin-left: 26px;
    color: #555;
    font-weight: 500;
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.club-footer {
    margin-top: 44px;
    padding: 24px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.club-footer blockquote {
    margin: 0 0 12px;
    color: var(--orange-dark);
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    font-weight: 800;
}

.club-footer small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .48);
    backdrop-filter: blur(2px);
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    width: min(100%, 430px);
    padding: 24px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
    animation: modalIn .2s ease-out;
}

.modal-box h3 {
    margin: 0 0 18px;
    color: var(--orange);
}

.modal-box label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 800;
}

.modal-box input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.modal-box input:focus {
    outline: 3px solid rgba(217, 119, 6, .16);
    border-color: var(--orange);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.modal-actions button {
    flex: 1;
    padding: 13px;
    cursor: pointer;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
}

#cancelModal {
    color: #333;
    background: #eeeeee;
}

#saveItem {
    color: #fff;
    background: var(--orange);
}

#saveItem:hover {
    background: var(--orange-dark);
}

#saveItem:disabled {
    cursor: wait;
    opacity: .65;
}

.saved-flash {
    animation: savedFlash .9s ease;
}

@keyframes savedFlash {
    0% { transform: scale(1); }
    45% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .club-wrapper {
        width: min(100% - 20px, 980px);
        padding: 12px 0 44px;
    }

    .club-hero {
        padding: 22px 15px;
        border-radius: 22px;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }

    .item-card {
        min-height: 135px;
    }

    .event-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }
    }

.modal-box select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    font-size: 1rem;
}

.modal-box select:focus {
    outline: 3px solid rgba(217, 119, 6, .16);
    border-color: var(--orange);
}

#customNameContainer {
    margin-top: 14px;
}

.entry-delete-button {
    display: block;
    margin-top: 8px;
    padding: 7px 10px;
    color: #a5261d;
    background: #fff;
    border: 1px solid #e6b7b2;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 750;
    cursor: pointer;
}

.entry-delete-button:hover {
    background: #fff1ef;
}

.entry-delete-button:disabled {
    cursor: wait;
    opacity: .6;
}

.back-to-portal{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:18px;
    padding:10px 18px;
    background:#fff;
    color:var(--orange);
    border:1px solid var(--border);
    border-radius:999px;
    font-weight:700;
    text-decoration:none;
    box-shadow:var(--shadow);
    transition:.2s;
}

.back-to-portal:hover{
    transform:translateY(-2px);
    background:var(--orange);
    color:#fff;
}





