/* ------------------------------------------------------------------ */
/*  Teilnahme Plugin – Frontend & Admin Styles                         */
/* ------------------------------------------------------------------ */

/* === Frontend-Formular === */
.teilnahme-wrap {
    max-width: 480px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.teilnahme-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
    color: #1d2327;
}

.teilnahme-subtitle {
    font-size: 0.9rem;
    color: #50575e;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.teilnahme-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d2327;
}

.teilnahme-form input[type="text"],
.teilnahme-form input[type="email"],
.teilnahme-form select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.teilnahme-form input[type="text"]:focus,
.teilnahme-form input[type="email"]:focus,
.teilnahme-form select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.teilnahme-btn {
    margin-top: 1.25rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.teilnahme-btn:hover {
    background: #135e96;
}

.teilnahme-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #8c8f94;
    font-style: italic;
}

.teilnahme-notice {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1d2327;
}

.teilnahme-notice-error {
    background: #fcf0f1;
    border-left-color: #d63638;
    color: #8a1e22;
}

/* === Frontend-Einträge-Liste === */
.teilnahme-list {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dcdcde;
}

.teilnahme-list h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1d2327;
}

.teilnahme-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.teilnahme-frontend-table th {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 2px solid #2271b1;
    font-weight: 600;
    color: #1d2327;
}

.teilnahme-frontend-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #e0e0e0;
    color: #3c434a;
}

.teilnahme-frontend-table tbody tr:hover {
    background: #f6f7f7;
}

.teilnahme-frontend-table tr.teilnahme-status-ja {
    background: #ecfdf5;
}

.teilnahme-frontend-table tr.teilnahme-status-ja:hover {
    background: #d1fae5;
}

.teilnahme-frontend-table tr.teilnahme-status-nein {
    background: #fef2f2;
}

.teilnahme-frontend-table tr.teilnahme-status-nein:hover {
    background: #fee2e2;
}

.teilnahme-frontend-table tr.teilnahme-status-vielleicht {
    background: #f3f4f6;
}

.teilnahme-frontend-table tr.teilnahme-status-vielleicht:hover {
    background: #e5e7eb;
}

/* === Responsive Frontend === */
@media screen and (max-width: 600px) {
    .teilnahme-wrap {
        margin: 1rem 0.75rem;
        max-width: 100%;
    }

    .teilnahme-title {
        font-size: 1.2rem;
    }

    .teilnahme-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }

    .teilnahme-form input[type="text"],
    .teilnahme-form input[type="email"],
    .teilnahme-form select {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
    }

    .teilnahme-frontend-table {
        font-size: 0.85rem;
    }

    .teilnahme-frontend-table th,
    .teilnahme-frontend-table td {
        padding: 0.4rem 0.4rem;
    }
}

@media screen and (max-width: 380px) {
    .teilnahme-wrap {
        margin: 0.5rem;
    }

    .teilnahme-title {
        font-size: 1.1rem;
    }

    .teilnahme-subtitle {
        font-size: 0.8rem;
    }

    .teilnahme-frontend-table th,
    .teilnahme-frontend-table td {
        padding: 0.35rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* === Admin === */
.teilnahme-admin-wrap .teilnahme-admin-form {
    max-width: 600px;
}

.teilnahme-admin-wrap hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid #dcdcde;
}

.teilnahme-table {
    margin-top: 0.5rem;
}
