/* Beitrag „Bürgerstimmen“ – ausgelagert aus der Datenbank am 2026-11-04 (vorher <style>-Block im Inhalt).
   Inhalt unverändert übernommen; Bearbeitung ab jetzt hier. */
.ubf-article-portal {
    font-family: 'Inter', sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.ubf-portal-hero {
    background: radial-gradient(circle at 90% 10%, rgba(244, 122, 31, 0.08) 0%, rgba(244, 122, 31, 0) 50%),
                #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 1.75rem 1.75rem;
    color: #44403c;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.ubf-portal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: #1c1917 !important;
}

.ubf-portal-subtitle {
    font-size: 1rem;
    color: #c2410c;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.ubf-portal-desc {
    font-size: 0.95rem;
    color: #57534e;
    line-height: 1.55;
    margin: 0;
}

.ubf-portal-divider {
    height: 2px;
    width: 40px;
    background-color: #f47a1f;
    margin-bottom: 1rem;
    border-radius: 1px;
}

.ubf-portal-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.ubf-step-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ubf-step-icon {
    font-size: 1.1rem;
    color: #f47a1f;
    background: #fff7ed;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #ffedd5;
}

.ubf-step-content h3 {
    margin: 0 0 0.15rem 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1c1917;
}

.ubf-step-content p {
    margin: 0;
    font-size: 0.82rem;
    color: #78716c;
    line-height: 1.35;
}

.ubf-opinion-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.ubf-form-group {
    margin-bottom: 1.15rem;
}

.ubf-label-capital {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.ubf-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.ubf-count-badge {
    background-color: #0a9dc0;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.ubf-select-wrapper {
    position: relative;
    width: 100%;
}

.ubf-select-control {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #1e293b;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.35s ease;
}

.ubf-select-control:focus {
    outline: none;
    border-color: #0a9dc0;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 157, 192, 0.15);
}

.ubf-select-arrow {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.ubf-custom-select-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-right: 2.5rem !important;
    user-select: none;
    outline: none;
}

.ubf-custom-select-trigger.active .ubf-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.ubf-custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem 0;
    animation: ubfFadeSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ubfFadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ubf-custom-optgroup-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.5rem 1rem 0.25rem 1rem;
    background-color: #f8fafc;
}

.ubf-custom-option {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
}

.ubf-custom-option:hover {
    background-color: rgba(10, 157, 192, 0.06);
    color: #0a9dc0;
}

.ubf-custom-option.selected {
    background-color: rgba(10, 157, 192, 0.08);
    color: #0b2e35;
    font-weight: 600;
}

.ubf-custom-option.disabled {
    color: #a0aec0;
    cursor: not-allowed;
    background: transparent;
}

.ubf-search-control {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #1e293b;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.35s ease;
}

.ubf-search-control:focus {
    outline: none;
    border-color: #0a9dc0;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 157, 192, 0.15);
}

.ubf-top-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 250px; /* Cuts off the 4th item exactly in half to signal scrollability */
    overflow-y: auto;
    padding: 4px;
    border-radius: 8px;
    scrollbar-width: thin; /* Firefox support */
    scrollbar-color: #cbd5e1 #f1f5f9; /* Firefox support */

    /* Smooth bottom fade-out to indicate scrollability */
    -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

.ubf-top-list::-webkit-scrollbar {
    width: 6px;
    display: block !important;
}
.ubf-top-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.ubf-top-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.ubf-top-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ubf-top-placeholder {
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    background-color: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.ubf-top-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    user-select: none;
}

.ubf-top-card:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

.ubf-top-card.selected {
    background-color: #fef3c7;
    border-color: #f47a1f;
}

.ubf-top-card.selected::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #f47a1f;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.ubf-badge-top {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    background-color: #0a9dc0;
    color: #ffffff;
}

.ubf-top-card.selected .ubf-badge-top {
    background-color: #f47a1f;
}

.ubf-top-title-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    flex-grow: 1;
}

.ubf-form-row {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
    .ubf-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.15rem;
    }
    .ubf-form-row .ubf-form-group {
        margin-bottom: 0;
    }
}

.ubf-opinion-action-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease;
    scroll-margin-top: 130px !important;
}

.ubf-selected-top-display {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ubf-badge-top-num {
    background-color: #0b2e35;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ubf-badge-top-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b2e35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ubf-opinion-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.ubf-opinion-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.4rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.35s ease;
}

.ubf-opinion-btn i { font-size: 1.25rem; }

.ubf-opinion-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.ubf-opinion-btn.btn-dafuer:hover { background-color: #f0fdf4; border-color: #86efac; color: #166534; transform: translateY(-1px); }
.ubf-opinion-btn.btn-dagegen:hover { background-color: #fef2f2; border-color: #fca5a5; color: #991b1b; transform: translateY(-1px); }
.ubf-opinion-btn.btn-hinweis:hover { background-color: #eff6ff; border-color: #93c5fd; color: #1e40af; transform: translateY(-1px); }
.ubf-opinion-btn.btn-frage:hover { background-color: #fffbeb; border-color: #fde047; color: #854d0e; transform: translateY(-1px); }

.ubf-opinion-btn.btn-dafuer.active { background-color: #ecfdf5; border-color: #10b981; color: #065f46; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.ubf-opinion-btn.btn-dagegen.active { background-color: #fef2f2; border-color: #ef4444; color: #991b1b; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.ubf-opinion-btn.btn-hinweis.active { background-color: #eff6ff; border-color: #3b82f6; color: #1e40af; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.ubf-opinion-btn.btn-frage.active { background-color: #fffbeb; border-color: #f59e0b; color: #78350f; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }

.ubf-textarea-control {
    width: 100%;
    height: 90px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.35s ease;
}

.ubf-textarea-control:focus {
    outline: none;
    border-color: #0a9dc0;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 157, 192, 0.15);
}

.ubf-textarea-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.ubf-form-status {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

.ubf-form-status.success { background-color: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.ubf-form-status.error { background-color: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.ubf-form-status.info { background-color: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.ubf-btn-submit {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background-color: #f47a1f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.5rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(244, 122, 31, 0.25);
    transition: all 0.35s ease;
}

.ubf-btn-submit i { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.ubf-btn-submit:hover:not(:disabled) { background-color: #d96110; box-shadow: 0 6px 20px rgba(244, 122, 31, 0.35); transform: translateY(-1px); }
.ubf-btn-submit:hover:not(:disabled) i { transform: translate(3px, -3px); }
.ubf-btn-submit:active:not(:disabled) { transform: translateY(1px); }
.ubf-btn-submit:disabled { background-color: #cbd5e1; color: #94a3b8; cursor: not-allowed; box-shadow: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    .ubf-opinion-card { padding: 1.25rem; }
    .ubf-opinion-options-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* --- Gesperrter Zustand: noch keine Vorlage gewählt --- */
#ubfOpinionActionSection[style*="none"] {
    display: block !important;
    animation: none;
}

.ubf-locked-hint {
    display: none;
}

#ubfOpinionActionSection[style*="none"] .ubf-locked-hint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1.1rem;
    background-color: #fff7ed;
    border: 1px dashed #f47a1f;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #c2410c;
    line-height: 1.45;
}

#ubfOpinionActionSection[style*="none"] .ubf-locked-hint i {
    flex-shrink: 0;
    font-size: 1.1rem;
}

#ubfOpinionActionSection[style*="none"] .ubf-selected-top-display {
    display: none;
}

#ubfOpinionActionSection > .ubf-form-group,
#ubfOpinionActionSection > .ubf-btn-submit {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

#ubfOpinionActionSection[style*="none"] > .ubf-form-group,
#ubfOpinionActionSection[style*="none"] > .ubf-btn-submit {
    opacity: 0.45;
    filter: grayscale(1);
    pointer-events: none;
    user-select: none;
}

/* --- App-Installation --- */
.ubf-install-section {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-sizing: border-box;
}

.ubf-install-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ubf-install-icon {
    font-size: 1.25rem;
    color: #f47a1f;
    background: #fff7ed;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #ffedd5;
}

.ubf-install-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c1917;
}

.ubf-install-desc {
    margin: 0 0 1.25rem 0;
    font-size: 0.9rem;
    color: #57534e;
    line-height: 1.5;
}

.ubf-install-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1.1rem;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #065f46;
    line-height: 1.5;
}

.ubf-install-benefit i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
    color: #10b981;
}

.ubf-install-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ubf-install-tab {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.35s ease;
}

.ubf-install-tab i { font-size: 1.15rem; }

.ubf-install-tab:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.ubf-install-tab.active {
    background-color: #fff7ed;
    border-color: #f47a1f;
    color: #c2410c;
    box-shadow: 0 0 0 3px rgba(244, 122, 31, 0.12);
}

.ubf-install-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ubf-install-panel.active {
    display: block;
}

.ubf-install-steps {
    list-style: none !important;
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ubf-install-steps li {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    margin: 0;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ubf-install-steps li::before,
.ubf-install-steps li::marker {
    content: none !important;
    display: none !important;
}

.ubf-install-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a9dc0;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
}

.ubf-install-step-text {
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.5;
}

.ubf-install-step-text strong { color: #0b2e35; }

.ubf-install-inline-icon {
    color: #f47a1f;
    margin: 0 0.15rem;
}

.ubf-install-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #1e40af;
    line-height: 1.5;
}

.ubf-install-hint i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
}
