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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 680px;
    width: 100%;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
    padding: 32px 36px;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.header p {
    font-size: 14px;
    opacity: 0.85;
}

.content {
    padding: 36px;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(41, 128, 185, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fdf0ef;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

/* =============================
   index.html – Abstimmungsseite
   ============================= */

.owner-info {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.info-card {
    flex: 1;
    background: #f8f9fb;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    padding: 16px 20px;
}

.info-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.info-card .value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.confirmation {
    background: #fef9e7;
    border: 1px solid #f9e79f;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.confirmation:hover {
    background: #fef3cd;
}

.confirmation input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2980b9;
    cursor: pointer;
    flex-shrink: 0;
}

.confirmation label {
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.topic-section {
    margin-bottom: 32px;
}

.topic-text {
    font-size: 17px;
    line-height: 1.6;
    color: #2c3e50;
    padding: 20px 24px;
    background: #eaf2f8;
    border-left: 4px solid #2980b9;
    border-radius: 0 8px 8px 0;
}

.vote-section {
    margin-bottom: 32px;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-option {
    position: relative;
}

.vote-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vote-option label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #e4e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    user-select: none;
}

.vote-option label:hover {
    border-color: #aab7c4;
    background: #f8f9fb;
}

.vote-option input[type="radio"]:checked + label {
    border-color: #2980b9;
    background: #eaf2f8;
}

.vote-option label .radio-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.vote-option input[type="radio"]:checked + label .radio-dot {
    border-color: #2980b9;
}

.vote-option input[type="radio"]:checked + label .radio-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2980b9;
}

.vote-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.submit-section {
    padding-top: 8px;
    border-top: 1px solid #e4e8ed;
}

.success-overlay {
    display: none;
    padding: 60px 36px;
    text-align: center;
}

.success-overlay .checkmark {
    width: 72px;
    height: 72px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-overlay .checkmark svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}

.success-overlay h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.success-overlay p {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* =============================
   code.html – Code-Eingabeseite
   ============================= */

.intro-icon {
    width: 64px;
    height: 64px;
    background: #eaf2f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.intro-icon svg {
    width: 30px;
    height: 30px;
    stroke: #2980b9;
    stroke-width: 2;
    fill: none;
}

.intro-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #5a6c7d;
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.code-input-wrapper {
    max-width: 400px;
    margin: 0 auto 24px;
}

.code-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 22px;
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 4px;
    text-align: center;
    border: 2px solid #e4e8ed;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #2c3e50;
}

.code-input::placeholder {
    font-size: 16px;
    letter-spacing: 1px;
    color: #bdc3c7;
}

.code-input:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.code-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.submit-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.code-page .content {
    padding: 48px 36px;
}

.code-page .error-message {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.help-text {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #95a5a6;
    line-height: 1.8;
}

/* Links */
a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1a5276;
}

.mail-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.mail-link:hover {
    color: #1a5276;
    background: #eaf2f8;
}

.mail-link svg {
    flex-shrink: 0;
}

/* =============================
   Responsive
   ============================= */

@media (max-width: 520px) {
    body {
        padding: 16px 12px;
    }

    .header {
        padding: 24px 20px;
    }

    .content {
        padding: 24px 20px;
    }

    .owner-info {
        flex-direction: column;
        gap: 12px;
    }

    .header h1 {
        font-size: 19px;
    }

    .code-input {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .code-page .content {
        padding: 36px 20px;
    }
}
