/* ============================================
   HONEYPOT
   ============================================ */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   ANFRAGE-SEITEN-SPEZIFISCHE STILE
   ============================================ */
.page-header {
    min-height: 30vh;
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #2d1b4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-bottom: 3rem;
}

html.light-mode .page-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f0e6ff 100%);
}

html.light-mode .page-header h1 {
    color: #0066ff;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.anfrage-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
}

/* Stepper / Fortschrittsanzeige */
.progress-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
}

.stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stepper-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stepper-item.active .stepper-circle {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.stepper-item.completed .stepper-circle {
    background: var(--success-color);
    color: var(--bg-dark);
    border-color: var(--success-color);
}

.stepper-label {
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-muted);
}

.stepper-item.active .stepper-label {
    color: var(--primary-color);
}

/* Formular-Struktur */
.anfrage-form {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html.light-mode .anfrage-form {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Fieldset Styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

legend {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group .required {
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

html.light-mode .form-group input,
html.light-mode .form-group textarea,
html.light-mode .form-group select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #000000;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
    background: #151b28;
}

html.light-mode .form-group input:focus,
html.light-mode .form-group textarea:focus,
html.light-mode .form-group select:focus {
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Zwei-Spalten Layout auf Desktop */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

/* Radio Buttons & Checkboxes */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.radio-item:hover,
.checkbox-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-item input[type="radio"]:checked ~ label,
.checkbox-item input[type="checkbox"]:checked ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

html.light-mode .radio-item,
html.light-mode .checkbox-item {
    background: #f9f9f9;
    border-color: rgba(0, 0, 0, 0.1);
}

html.light-mode .radio-item input[type="radio"],
html.light-mode .checkbox-item input[type="checkbox"] {
    accent-color: #0066ff;
}

.radio-item label,
.checkbox-item label {
    cursor: pointer;
    flex: 1;
    color: var(--text-light);
    margin: 0;
}

/* Service-Details (zusätzliche Felder) */
.service-details {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
}

.service-details.show {
    display: block;
}

/* Range Slider */
.budget-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.budget-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* Hinweisboxen */
.info-box,
.warning-box,
.error-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.info-box {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    color: var(--text-light);
}

html.light-mode .info-box {
    background: rgba(0, 102, 255, 0.08);
    border-left-color: #0066ff;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

html.light-mode .info-box a {
    color: #0066ff;
}

.warning-box {
    background: rgba(255, 0, 110, 0.1);
    border-left: 4px solid var(--secondary-color);
    color: var(--text-light);
}

.error-message {
    background: rgba(255, 71, 87, 0.15);
    border-left: 4px solid #ff4757;
    color: #ff9d9d;
    display: none;
}

.error-message.show {
    display: block;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost:hover {
    background: rgba(0, 212, 255, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: none;
}

html.light-mode .summary-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03), rgba(124, 58, 237, 0.03));
    border-color: #0066ff;
}

.summary-card.show {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.summary-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-value {
    color: var(--primary-color);
    font-weight: 600;
}

html.light-mode .summary-value {
    color: #0066ff;
}

/* Success State */
.success-message {
    background: rgba(0, 208, 132, 0.15);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: none;
    animation: slideIn 0.4s ease;
}

html.light-mode .success-message {
    background: rgba(0, 208, 132, 0.1);
}

.success-message.show {
    display: block;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .anfrage-container {
        padding: 0 1rem 2rem 1rem;
    }

    .anfrage-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .progress-stepper {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .stepper-circle {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .stepper-label {
        font-size: 0.7rem;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    .summary-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}
