/* ============================================================
   ABIOS AMIGOS – Dark Retro Theme
   ============================================================ */

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Sour Gummy", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: lightgrey;
    background-color: #2b2b2b;
    color: #c8c8c8;
    line-height: 1.6;
    min-height: 100vh;
}

.site-logo {
    width: 300px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

a { color: inherit; }
a.inline-link { color: #7ab0e0; text-decoration: none; }
a.inline-link:hover { text-decoration: underline; }

/* --- Page wrapper --- */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* --- Site Header --- */
.site-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.site-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: normal;
    letter-spacing: 0.18em;
    color: #d0d0d0;
    margin-bottom: 10px;
}

.site-subtitle {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: normal;
    letter-spacing: 0.08em;
    color: #d0d0d0;
    margin-bottom: 28px;
}

.intro-text {
    max-width: 820px;
    margin: 0 auto 22px;
    font-size: 1.5rem;
    color: #c0c0c0;
}

.intro-text p {
    margin-bottom: 10px;
}

.invite-text {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.6rem;
    color: #c0c0c0;
}

.invite-text p {
    margin-bottom: 8px;
}

.invite-text strong {
    font-weight: bold;
    text-decoration: underline;
}

.data-note {
    font-size: 1rem;
    color: #888;
    font-style: italic;
    margin-top: 6px;
}

/* --- Main two-column layout --- */
.main-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    margin-top: 18px;
}

/* --- Form panel (left) --- */
.form-panel {
    background-color: #3f3f3f;
    border-radius: 2%;
    padding: 5px;
    margin: 5px;
    width: 350px;
    flex-shrink: 0;
    padding: 10px 0;
}

.form-group {
    margin-bottom: 12px;
    margin-left: 5px;
    margin-right: 5px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: normal;
}

.required {
    color: #a0a0a0;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 7px 10px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 0;
    color: #c8c8c8;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #7ab0e0;
    box-shadow: 0 0 0 2px rgba(122, 176, 224, 0.15);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder 
{
    color: #666;
    font-family:  "Sour Gummy", sans-serif;
}

/* --- Checkboxes --- */
.checkboxes {
    background: #333;
    border: 1px solid #555;
    padding: 14px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    accent-color: #7ab0e0;
    cursor: pointer;
}

/* --- Submit button --- */
.btn-submit {
    font-family: "Sour Gummy", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #3a7fc1;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px 22px;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, opacity 0.15s;
}

.btn-submit:hover:not(:disabled) {
    background: #2e6aaa;
}

.btn-submit:active:not(:disabled) {
    background: #255a94;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Messages --- */
.message {
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
    border-radius: 2px;
}

.message.success {
    background: #1e3d26;
    border-color: #4caf70;
    color: #7ecf97;
}

.message.error {
    background: #3d1e1e;
    border-color: #c05050;
    color: #e08080;
}

.hidden { display: none !important; }

/* --- List panel (right) --- */
.list-panel {
        padding: 20px 0 0 0;
        width: 100%;
        max-width: 100%;
    }

.list-header {
    font-size: 0.82rem;
    color: #a0a0a0;
    text-align: right;
    margin-bottom: 4px;
}

/* --- Participants table --- */
 .teilnehmer-table {
        width: 100%;
        max-width: 100%;
        table-layout: auto;
    }

.teilnehmer-table thead tr {
    background: #383838;
}

.teilnehmer-table th {
    text-align: left;
    padding: 7px 14px;
    font-weight: normal;
    color: #c0c0c0;
    border-bottom: 1px solid #555;
    font-size: 0.88rem;
}

.teilnehmer-table tbody tr {
    background: #2f2f2f;
}

.teilnehmer-table tbody tr:nth-child(even) {
    background: #333;
}

.teilnehmer-table tbody tr:hover {
    background: #3a3a3a;
}

.teilnehmer-table td {
    padding: 5px 14px;
    border-bottom: 1px solid #3a3a3a;
    text-align: center;
}

/* Highlight new entry */
@keyframes highlight-new {
    0%   { background: #3a5a3a; }
    100% { background: #2f2f2f; }
}

.teilnehmer-table tbody tr.new-entry {
    animation: highlight-new 1.8s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .main-layout {
        flex-direction: column;
    }

    .form-panel {
        width: 100%;
    }

    .list-panel {
        padding: 20px 0 0 0;
    }
}
