/* Poll Master - Frontend Styles */

/* ===== Color Variables ===== */
:root {
    --color-primary: #E0003B;
    --color-primary-dark: #c00030;
    --color-text-dark: #000;
    --color-text-default: #333;
    --color-text-light: #666;
    --color-border: #ddd;
    --color-bg-light: #f5f5f5;
    --color-bg-white: #ffffff;
    --color-bg-success: #d4edda;
    --color-bg-error: #f8d7da;
    --color-btn-primary: #0456a0;
    --color-btn-primary-hover: #034580;
    --color-btn-secondary: #666;
    --color-btn-secondary-hover: #444;
}

/* ===== Base Styles ===== */
.poll-master-widget {
    max-width: 100%;
    margin: 0;
    font-family: inherit;
}

.poll-container {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* ===== Header Styles ===== */
.poll-header {
    margin-bottom: 15px;
}

.poll-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.poll-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-default);
    margin: 0 0 8px 0;
}

.poll-date {
    font-size: 0.85em;
    color: var(--color-text-light);
    margin: 0 0 15px 0;
}

.poll-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.75em;
    color: var(--color-text-light);
}

.poll-stats .stat {
    font-weight: bold;
    font-size: 1.25em;
}

/* ===== Table Base Styles ===== */
.poll-live-table table,
.poll-options {
    width: 100%;
    border-collapse: collapse;
}

.poll-live-table table {
    margin-bottom: 15px;
}

.poll-live-table,
.poll-options {
    margin-bottom: 25px;
}

/* ===== Table Header ===== */
.poll-live-table thead,
.poll-options thead {
    border-bottom: 2px solid var(--color-text-dark);
}

.poll-live-table th,
.poll-options th {
    padding: 3px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85em;
    color: var(--color-text-dark);
    vertical-align: middle;
}

.poll-live-table th:first-child,
.poll-options th:first-child {
    padding-right: 15px;
}

.poll-live-table th:last-child {
    text-align: center;
}

/* ===== Live Table Styles ===== */
.poll-live-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.poll-live-table tbody tr:nth-child(even) {
    background-color: var(--color-bg-light);
}

.poll-live-table tbody tr:nth-child(odd) {
    background-color: var(--color-bg-white);
}

.poll-live-table tbody tr:last-child {
    border-bottom: none;
}

.poll-live-table tbody tr.vote-increase {
    background-color: var(--color-bg-success);
    animation: fadeOutGreen 2s ease-out forwards;
}

.poll-live-table tbody tr.vote-decrease {
    background-color: var(--color-bg-error);
    animation: fadeOutRed 2s ease-out forwards;
}

.poll-live-table td {
    padding: 3px 10px;
    color: var(--color-text-default);
    font-size: 0.80em;
}

.poll-live-table td:first-child {
    font-weight: 600;
    color: var(--color-primary);
    padding-right: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.poll-live-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ===== Options Table Styles ===== */
.poll-options tbody tr {
    border-bottom: 1px solid var(--color-border);
    height: 25px;
    line-height: 25px;
}

.poll-options tbody tr:nth-child(even) {
    background-color: var(--color-bg-light);
}

.poll-options tbody tr:nth-child(odd) {
    background-color: var(--color-bg-white);
}

.poll-options tbody tr:last-child {
    border-bottom: none;
}

.poll-options td {
    padding: 3px 10px;
    color: var(--color-text-default);
    font-size: 0.80em;
    vertical-align: middle;
    height: 25px;
    line-height: 19px;
}

.poll-options td:first-child {
    font-weight: 600;
}

.poll-options .option-name {
    width: auto;
}

.poll-options .vote-count {
    width: 120px;
}

.poll-options .option-number {
    width: 40px;
}

.poll-options .vote-controls,
.poll-options .manual-controls {
    padding: 3px 10px;
    text-align: center;
    width: 250px;
    height: 25px;
    line-height: 19px;
    white-space: nowrap;
    vertical-align: middle;
}

/* ===== Vote Count ===== */
.vote-count {
    font-weight: 700;
    color: var(--color-primary);
}

.vote-count .last-value {
    font-size: 0.85em;
    color: var(--color-text-light);
    font-weight: normal;
    margin-left: 5px;
}

/* ===== Button Base Styles ===== */
.btn-quick,
.btn-undo {
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8em;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.2s ease;
    color: #fff;
}

.btn-quick {
    background: var(--color-btn-primary);
}

.btn-quick:hover {
    background: var(--color-btn-primary-hover);
}

.btn-undo {
    background: var(--color-btn-secondary);
}

.btn-undo:hover {
    background: var(--color-btn-secondary-hover);
}

.btn-manual {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85em;
    font-family: inherit;
    transition: background 0.2s ease;
}

.btn-manual:hover {
    background: var(--color-primary-dark);
}

/* ===== Layout Utilities ===== */
.poll-controls {
    margin-top: 20px;
}

.poll-options .vote-buttons-wrapper,
.poll-options .manual-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}

.poll-options .vote-buttons-wrapper {
    flex-wrap: nowrap;
}

.poll-options .manual-wrapper {
    justify-content: center;
}

/* ===== Manual Input Styling ===== */
.poll-options .manual-input {
    width: 60px !important;
    padding: 2px 6px !important;
    border: none !important;
    border-bottom: 2px solid #ccc !important;
    border-radius: 0 !important;
    font-size: 0.8em !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    height: auto !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    display: inline !important;
    background: transparent !important;
    margin-top: 0 !important;
    position: relative !important;
    top: 8px !important;
    transition: none !important;
}

.poll-options .manual-input:focus {
    outline: none !important;
    border-bottom-color: #ccc !important;
    border-bottom-width: 2px !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: none !important;
    display: inline !important;
    border: none !important;
    border-bottom: 2px solid #ccc !important;
}

/* ===== Error Styles ===== */
.poll-master-error {
    background: #ffebee;
    border: 1px solid var(--color-primary);
    padding: 15px;
    border-radius: 4px;
    color: var(--color-primary-dark);
    margin: 20px 0;
}

/* ===== Animations ===== */
@keyframes fadeOutGreen {
    0% {
        background-color: var(--color-bg-success);
    }
    100% {
        background-color: transparent;
    }
}

@keyframes fadeOutRed {
    0% {
        background-color: var(--color-bg-error);
    }
    100% {
        background-color: transparent;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .poll-options th:nth-child(3),
    .poll-options th:nth-child(4) {
        font-size: 0.85em;
    }

    .poll-options .vote-buttons-wrapper {
        flex-direction: column;
        gap: 3px;
    }

    .btn-quick,
    .btn-undo,
    .btn-manual,
    .poll-options .manual-input {
        width: 100%;
    }

    .btn-quick,
    .btn-undo,
    .btn-manual {
        padding: 6px 8px;
    }
}
/* ===== Verstecke WordPress Theme Attribut ===== */

#site-footer > div.rb.row.text-center {
    display: none !important;
}
/* ===== Medal Placeholder ===== */

.medal-placeholder {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    visibility: hidden;
    margin-right: 5px;
}

        .antworten {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            padding: 20px;
        }
        
        .antwort h3 {
            font-size: 1.5rem;
            margin-bottom: 12px;
            color: #333;
        }
        
        /* Zielgruppen-Eintrag */
        .zielgruppen {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .zielgruppe strong {
            font-weight: 700;
            width: 100px; /* feste Breite für Ausrichtung */
            color: black;
        }
        
        .prozent {
            font-weight: 700;
            color: #E60847;
            min-width: 50px;
        }
        
        .balken {
            flex: 1;
            height: 12px;
            background: #e6f0ff;
            border-radius: 6px;
            overflow: hidden;
            margin-left: 10px;
        }
        
        .balken-inner {
            height: 100%;
            background: #E60847;
            width: 0;
            transition: width 1s ease-in-out;
        }
        
        /* Anzahl Befragte kleiner und grau */
        .befragte {
            font-size: 0.75em;
            color: #666;
            margin-left: 15px;
        }    