/**
 * Advanced Form Builder - Frontend CSS
 * Styling für öffentliche Formulare mit Theme-Unterstützung
 */

/* CSS Variables für Theme-Anpassungen */
:root {
    --afb-primary-color: #007bff;
    --afb-secondary-color: #6c757d;
    --afb-success-color: #28a745;
    --afb-danger-color: #dc3545;
    --afb-warning-color: #ffc107;
    --afb-info-color: #17a2b8;
    --afb-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --afb-border-radius: 6px;
    --afb-input-border-color: #ced4da;
    --afb-input-focus-border-color: #80bdff;
    --afb-input-focus-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Formular-Container */
.afb-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--afb-font-family);
}

.afb-form-container.fullwidth {
    max-width: 100%;
}

.afb-form-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Formular-Header */
.afb-form-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--afb-primary-color) 0%, #0056b3 100%);
    color: #fff;
    text-align: center;
}

.afb-form-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.afb-form-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

/* Tab-Navigation */
.afb-tabs-navigation {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 0;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.afb-tab-nav-item {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    text-align: center;
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-bottom: 3px solid transparent;
}

.afb-tab-nav-item:hover {
    color: var(--afb-primary-color);
    background: #fff;
}

.afb-tab-nav-item.active {
    color: var(--afb-primary-color);
    background: #fff;
    border-bottom-color: var(--afb-primary-color);
}

.afb-tab-nav-item.completed {
    color: var(--afb-success-color);
}

.afb-tab-nav-item.completed::before {
    content: '✓';
    margin-right: 5px;
}

.afb-tab-nav-item:disabled {
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Progress Bar */
.afb-progress-container {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.afb-progress-wrapper {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.afb-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.afb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--afb-primary-color) 0%, #0056b3 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    position: relative;
}

.afb-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: afb-progress-shimmer 2s infinite;
}

@keyframes afb-progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.afb-progress-text {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: #6c757d;
}

/* Tab-Inhalte */
.afb-form-content {
    padding: 30px;
}

.afb-tab-content {
    display: none;
}

.afb-tab-content.active {
    display: block;
    animation: afb-fade-in 0.3s ease;
}

/* Tab Header (Überschrift mit Icon) */
.afb-tab-header {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.afb-tab-header i {
    color: var(--afb-primary-color);
    font-size: 26px;
}

@keyframes afb-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feld-Grid */
.afb-fields-grid,
.afb-fields-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.afb-field-wrapper {
    display: flex;
    flex-direction: column;
}

/* Grid-Spalten */
.afb-col-1 { grid-column: span 1; }
.afb-col-2 { grid-column: span 2; }
.afb-col-3 { grid-column: span 3; }
.afb-col-4 { grid-column: span 4; }
.afb-col-5 { grid-column: span 5; }
.afb-col-6 { grid-column: span 6; }
.afb-col-7 { grid-column: span 7; }
.afb-col-8 { grid-column: span 8; }
.afb-col-9 { grid-column: span 9; }
.afb-col-10 { grid-column: span 10; }
.afb-col-11 { grid-column: span 11; }
.afb-col-12 { grid-column: span 12; }

/* Feld-Label */
.afb-field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.afb-field-label-required {
    color: var(--afb-danger-color);
    margin-left: 3px;
}

.afb-field-description {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Input-Felder */
.afb-input,
.afb-textarea,
.afb-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--afb-input-border-color);
    border-radius: var(--afb-border-radius);
    font-size: 14px;
    font-family: var(--afb-font-family);
    transition: all 0.2s;
    background: #fff;
}

.afb-input:focus,
.afb-textarea:focus,
.afb-select:focus {
    outline: none;
    border-color: var(--afb-input-focus-border-color);
    box-shadow: var(--afb-input-focus-shadow);
}

.afb-input:disabled,
.afb-textarea:disabled,
.afb-select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.afb-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio & Checkbox */
.afb-radio-group,
.afb-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afb-radio-option,
.afb-checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: var(--afb-border-radius);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.afb-radio-option:hover,
.afb-checkbox-option:hover {
    background: #f8f9fa;
    border-color: var(--afb-primary-color);
}

.afb-radio-option.selected,
.afb-checkbox-option.selected {
    background: #e7f3ff;
    border-color: var(--afb-primary-color);
}

.afb-radio-input,
.afb-checkbox-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.afb-radio-label,
.afb-checkbox-label {
    flex: 1;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* Dropdown */
.afb-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* File Upload */
.afb-file-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afb-file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.afb-file-input {
    position: absolute;
    font-size: 100px;
    opacity: 0;
    right: 0;
    top: 0;
    cursor: pointer;
}

.afb-file-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--afb-primary-color);
    color: #fff;
    border: none;
    border-radius: var(--afb-border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.afb-file-button:hover {
    background: #0056b3;
}

.afb-file-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afb-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: var(--afb-border-radius);
    font-size: 13px;
}

.afb-file-remove {
    background: none;
    border: none;
    color: var(--afb-danger-color);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.afb-file-remove:hover {
    background: var(--afb-danger-color);
    color: #fff;
}

/* Rating / Opinion Scale */
.afb-rating-scale {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.afb-rating-option {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #e9ecef;
    border-radius: var(--afb-border-radius);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    font-weight: 500;
}

.afb-rating-option:hover {
    border-color: var(--afb-primary-color);
    background: #f8f9fa;
}

.afb-rating-option.selected {
    background: var(--afb-primary-color);
    color: #fff;
    border-color: var(--afb-primary-color);
}

.afb-rating-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

/* Opinion Scale - Standard Radio Buttons */
.opinion-scale {
    padding: 10px 0;
}

.opinion-scale .scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.opinion-scale .scale-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.opinion-scale .scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex: 1;
    min-width: 50px;
}

.opinion-scale .scale-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.opinion-scale .scale-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #e9ecef;
    border-radius: var(--afb-border-radius);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    background: #fff;
    color: #333;
}

.opinion-scale .scale-option:hover span {
    border-color: var(--afb-primary-color);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.opinion-scale .scale-option input:checked ~ span {
    background: var(--afb-primary-color);
    border-color: var(--afb-primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

/* Rating Stars (Star Rating Field) */
.rating-stars {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rating-stars .star-label {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.rating-stars .star-label:hover {
    transform: scale(1.15);
}

.rating-stars .star-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.rating-stars .star-label i {
    font-size: 32px;
    color: #ddd;
    transition: all 0.2s ease;
}

/* Hover-Effekt - wird durch JavaScript gesteuert */
.rating-stars .star-label.hover i {
    color: #ffca28;
}

/* Ausgewählte Sterne - wird durch JavaScript gesteuert */
.rating-stars .star-label.selected i {
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* Zusätzlicher visueller Effekt für ausgewählte Sterne */
.rating-stars .star-label.selected {
    transform: scale(1.05);
}

/* Color Picker */
.afb-color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.afb-color-input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--afb-input-border-color);
    border-radius: var(--afb-border-radius);
    cursor: pointer;
}

.afb-color-value {
    font-size: 14px;
    color: #6c757d;
    font-family: monospace;
}

/* Signature Pad */
.afb-signature-wrapper {
    border: 1px solid var(--afb-input-border-color);
    border-radius: var(--afb-border-radius);
    overflow: hidden;
    background: #fff;
}

.afb-signature-canvas {
    display: block;
    width: 100%;
    height: 200px;
    cursor: crosshair;
}

.afb-signature-actions {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

/* Captcha */
.afb-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--afb-border-radius);
}

.afb-captcha-image {
    height: 50px;
    border-radius: 4px;
}

.afb-captcha-refresh {
    background: none;
    border: none;
    color: var(--afb-primary-color);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: all 0.2s;
}

.afb-captcha-refresh:hover {
    color: #0056b3;
    transform: rotate(180deg);
}

/* Validierungs-Fehler */
.afb-field-error {
    color: var(--afb-danger-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.afb-field-error.show {
    display: block;
    animation: afb-shake 0.4s;
}

@keyframes afb-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.afb-field-wrapper.has-error .afb-input,
.afb-field-wrapper.has-error .afb-textarea,
.afb-field-wrapper.has-error .afb-select {
    border-color: var(--afb-danger-color);
}

.afb-field-wrapper.has-error .afb-field-label {
    color: var(--afb-danger-color);
}

/* Success-Indikator */
.afb-field-wrapper.has-success .afb-input,
.afb-field-wrapper.has-success .afb-textarea,
.afb-field-wrapper.has-success .afb-select {
    border-color: var(--afb-success-color);
}

/* Formular-Navigation Buttons */
.afb-form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    gap: 15px;
}

.afb-btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--afb-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.afb-btn-primary {
    background: var(--afb-primary-color);
    color: #fff;
}

.afb-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.afb-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.afb-btn-secondary:hover {
    background: #5a6268;
}

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

.afb-btn-success {
    background: var(--afb-success-color);
    color: #fff;
}

.afb-btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Loading State */
.afb-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.afb-loading.show {
    display: block;
}

.afb-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--afb-primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: afb-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes afb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.afb-loading-text {
    color: #6c757d;
    font-size: 14px;
}

/* Success/Error Messages */
.afb-alert {
    padding: 15px 20px;
    border-radius: var(--afb-border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.afb-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.afb-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.afb-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.afb-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Hidden Fields */
.afb-field-wrapper.hidden {
    display: none;
}

/* Embed-Isolierung */
.afb-embed-isolation {
    all: initial;
    display: block;
}

.afb-embed-isolation * {
    all: unset;
}

/* Mobile-Responsive */
@media (max-width: 768px) {
    .afb-form-container {
        padding: 10px;
    }

    .afb-form-header {
        padding: 20px;
    }

    .afb-form-title {
        font-size: 22px;
    }

    .afb-form-description {
        font-size: 14px;
    }

    .afb-tabs-navigation {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .afb-tab-nav-item {
        min-width: 100px;
        padding: 12px 15px;
        font-size: 13px;
    }

    .afb-form-content {
        padding: 20px 15px;
    }

    .afb-fields-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .afb-col-1, .afb-col-2, .afb-col-3, .afb-col-4,
    .afb-col-5, .afb-col-6, .afb-col-7, .afb-col-8,
    .afb-col-9, .afb-col-10, .afb-col-11, .afb-col-12 {
        grid-column: span 1;
    }

    .afb-rating-scale {
        flex-wrap: wrap;
    }

    .afb-rating-option {
        flex: 1 1 calc(20% - 10px);
        min-width: 50px;
    }

    .afb-form-navigation {
        padding: 15px;
        flex-direction: column;
    }

    .afb-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .afb-form-title {
        font-size: 20px;
    }

    .afb-tab-nav-item {
        min-width: 80px;
        padding: 10px;
        font-size: 12px;
    }

    .afb-rating-option {
        flex: 1 1 calc(33.333% - 10px);
    }
}

/* Print Styles */
@media print {
    .afb-tabs-navigation,
    .afb-progress-container,
    .afb-form-navigation {
        display: none;
    }

    .afb-tab-content {
        display: block !important;
    }

    .afb-form-wrapper {
        box-shadow: none;
    }
}

/* Bootstrap Compatibility */
.afb-public-form {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.afb-form-header {
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.afb-tab-content {
    display: block !important;
}

.afb-fields-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.afb-captcha {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.afb-form-actions {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.afb-powered-by {
    padding: 20px;
    text-align: center;
}

/* Label-Ausrichtung */
label.text-left {
    text-align: left;
}

label.text-center {
    text-align: center;
}

label.text-right {
    text-align: right;
}

.afb-field-label.text-left {
    text-align: left;
}

.afb-field-label.text-center {
    text-align: center;
}

.afb-field-label.text-right {
    text-align: right;
}

/* Opinion Scale - Visual Slider Styles */
.visual-slider-container {
    padding: 20px 10px;
}

.visual-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.visual-slider:hover {
    opacity: 1;
}

.visual-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slider-color, var(--afb-primary-color));
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.visual-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.visual-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slider-color, var(--afb-primary-color));
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
    transition: all 0.2s;
}

.visual-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
}

.slider-labels .min-label,
.slider-labels .max-label {
    color: #6c757d;
}

.slider-labels .current-value {
    font-weight: bold;
    color: var(--slider-color, var(--afb-primary-color));
    font-size: 16px;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 12px;
}

.slider-ticks .tick {
    width: 2px;
    height: 8px;
    background: #999;
}

/* Opinion Scale - Semantic Differential Scale Styles */
.semantic-differential-scale {
    padding: 20px 0;
}

.semantic-differential-scale .scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}

.semantic-differential-scale .negative-label {
    color: var(--afb-danger-color);
}

.semantic-differential-scale .positive-label {
    color: var(--afb-success-color);
}

.semantic-differential-scale.horizontal .scale-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
}

.semantic-differential-scale.vertical .scale-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.semantic-differential-scale .scale-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex: 1;
}

.semantic-differential-scale.vertical .scale-point {
    flex-direction: row;
    justify-content: center;
}

.semantic-differential-scale .scale-point input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.semantic-differential-scale .point-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
    color: #333;
}

.semantic-differential-scale .scale-point:hover .point-marker {
    border-color: var(--afb-primary-color);
    background: #f8f9fa;
    transform: scale(1.05);
}

.semantic-differential-scale .scale-point input:checked ~ .point-marker {
    background: var(--afb-primary-color);
    border-color: var(--afb-primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.semantic-differential-scale .scale-point.neutral .neutral-label {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

.semantic-differential-scale.vertical .scale-point.neutral .neutral-label {
    margin-top: 0;
    margin-left: 10px;
}

/* Mobile Anpassungen für Opinion Scale */
@media (max-width: 768px) {
    .opinion-scale .scale-options {
        gap: 8px;
    }

    .opinion-scale .scale-option {
        min-width: 45px;
    }

    .opinion-scale .scale-option span {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .semantic-differential-scale.horizontal .scale-points {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 10px;
    }

    .semantic-differential-scale .point-marker {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .slider-ticks {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .opinion-scale .scale-labels {
        font-size: 12px;
    }

    .opinion-scale .scale-options {
        gap: 6px;
    }

    .opinion-scale .scale-option {
        min-width: 40px;
    }

    .opinion-scale .scale-option span {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .semantic-differential-scale .scale-labels {
        font-size: 12px;
    }

    .semantic-differential-scale.horizontal .scale-points {
        gap: 5px;
        padding: 0 5px;
    }

    .semantic-differential-scale .point-marker {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .visual-slider-container {
        padding: 15px 5px;
    }

    .slider-labels {
        font-size: 12px;
    }
}
