/* Shared layout for service detail pages (Herdanschluss-style: hero + feature + FAQ + form) */
.service-detail-page .hero.heitec-hero {
    border-bottom: 1px solid rgba(245, 176, 65, 0.2);
}

.feature-badge {
    display: inline-block;
    background: rgba(245, 176, 65, 0.15);
    padding: 8px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #F5B041;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 176, 65, 0.3);
}
.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.feature-card,
.faq-card {
    background: linear-gradient(165deg, rgba(17, 20, 31, 0.94) 0%, rgba(10, 12, 21, 0.97) 100%);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid rgba(245, 176, 65, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 20px 50px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
body.light-mode .feature-card,
body.light-mode .faq-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(245, 176, 65, 0.2);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.service-detail-page .feature-card .feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.service-detail-page .feature-card .feature-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
    color: rgba(241, 245, 249, 0.92);
}
body.light-mode .service-detail-page .feature-card .feature-list li {
    color: #334155;
}
.service-detail-page .feature-card .feature-list i {
    width: 24px;
    color: #F5B041;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.faq-item {
    border-bottom: 1px solid rgba(245, 176, 65, 0.2);
    padding: 18px 0;
    cursor: pointer;
    transition: 0.2s;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: #f1f5f9;
}
body.light-mode .faq-question {
    color: #0f172a;
}
.faq-answer {
    display: none;
    padding-top: 14px;
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
}
body.light-mode .faq-answer {
    color: #64748b;
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-question i {
    transition: transform 0.3s;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.form-card {
    background: linear-gradient(165deg, rgba(17, 20, 31, 0.96) 0%, #11141f 42%, #0a0c15 100%);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 36px);
    border: 1px solid rgba(245, 176, 65, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 28px 72px rgba(0, 0, 0, 0.48),
        0 0 48px rgba(245, 176, 65, 0.06);
}
body.light-mode .form-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    border-color: rgba(245, 176, 65, 0.22);
    box-shadow:
        0 0 0 1px rgba(245, 176, 65, 0.1) inset,
        0 24px 56px rgba(15, 23, 42, 0.1),
        0 0 40px rgba(245, 176, 65, 0.06);
}
.form-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: clamp(1.28rem, 2.5vw, 1.55rem);
    margin-bottom: 22px;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #f8fafc;
}
body.light-mode .form-card h3 {
    color: #0f172a;
}
.form-card h3 i {
    color: #f5b041;
    font-size: 1.35rem;
}
.form-card .form-group {
    margin-bottom: 22px;
}
.form-card .form-group--attachments {
    margin-bottom: 22px;
}
.form-card .estimate-attach-legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(241, 245, 249, 0.82);
}
body.light-mode .form-card .estimate-attach-legend {
    color: #475569;
}
.form-card .contact-form-upload.estimate-attach-block {
    margin-top: 0;
}

/* Anhänge-Block: gleiche Lesbarkeit wie Kontaktformular */
.service-detail-page .form-card .contact-file-hint {
    color: rgba(148, 163, 184, 0.88);
}
body.light-mode .service-detail-page .form-card .contact-file-hint {
    color: rgba(71, 85, 105, 0.92);
}
.service-detail-page .form-card .contact-attach-file-name {
    color: rgba(241, 245, 249, 0.92);
}
.service-detail-page .form-card .contact-attach-file-size,
.service-detail-page .form-card .contact-attach-total {
    color: rgba(148, 163, 184, 0.88);
}
body.light-mode .service-detail-page .form-card .contact-attach-file-name {
    color: #0f172a;
}
body.light-mode .service-detail-page .form-card .contact-attach-file-size,
body.light-mode .service-detail-page .form-card .contact-attach-total {
    color: #64748b;
}
.form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(241, 245, 249, 0.82);
}
body.light-mode .form-card label {
    color: #475569;
}
.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(10, 12, 21, 0.75);
    color: #f1f5f9;
    font-size: 1rem;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    font-family: inherit;
    letter-spacing: 0.02em;
}
.form-card input::placeholder,
.form-card textarea::placeholder {
    color: rgba(148, 163, 184, 0.65);
}
.form-card input:hover,
.form-card select:hover,
.form-card textarea:hover {
    border-color: rgba(203, 213, 225, 0.35);
    background: rgba(8, 10, 18, 0.82);
}
body.light-mode .form-card input,
body.light-mode .form-card select,
body.light-mode .form-card textarea {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}
body.light-mode .form-card input::placeholder,
body.light-mode .form-card textarea::placeholder {
    color: #94a3b8;
}
body.light-mode .form-card input:hover,
body.light-mode .form-card select:hover,
body.light-mode .form-card textarea:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: #f5b041;
    background: rgba(10, 12, 20, 0.92);
    box-shadow:
        0 0 0 1px rgba(245, 176, 65, 0.55),
        0 0 0 3px rgba(245, 176, 65, 0.12),
        0 0 28px rgba(245, 176, 65, 0.12);
}
body.light-mode .form-card input:focus,
body.light-mode .form-card select:focus,
body.light-mode .form-card textarea:focus {
    background: #ffffff;
    border-color: #f5b041;
    box-shadow:
        0 0 0 1px rgba(245, 176, 65, 0.45),
        0 0 0 3px rgba(245, 176, 65, 0.14);
}
.form-card select option {
    background: #10141f;
    color: #f1f5f9;
}
body.light-mode .form-card select option {
    background: #ffffff;
    color: #0f172a;
}
.radio-group-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    margin-top: 8px;
}
.radio-group-horizontal label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}
.radio-group-horizontal input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #f5b041;
}
.service-detail-page .radio-group-horizontal label {
    color: rgba(241, 245, 249, 0.88);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: none;
}
body.light-mode .service-detail-page .radio-group-horizontal label {
    color: #334155;
}
.upload-area {
    border: 2px dashed rgba(245, 176, 65, 0.5);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}
.upload-area:hover {
    background: rgba(245, 176, 65, 0.05);
    border-color: #f5b041;
}
.upload-area i {
    font-size: 2rem;
    color: #f5b041;
    margin-bottom: 8px;
}
.upload-area p {
    font-size: 0.85rem;
    color: #94a3b8;
}
.price-box {
    background: linear-gradient(135deg, #f5b041, #e67e22);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
}
.price-box p {
    margin: 5px 0;
    font-weight: 500;
    color: #0a0c15;
}
.price-box span {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0a0c15;
}
.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 22px 0 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(6, 8, 14, 0.65);
    border: 1px solid rgba(245, 176, 65, 0.18);
}
body.light-mode .gdpr-checkbox {
    background: rgba(255, 251, 243, 0.92);
    border: 1px solid rgba(245, 176, 65, 0.22);
}
.gdpr-checkbox input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    margin-top: 2px;
    accent-color: #f5b041;
}
.gdpr-checkbox label {
    font-size: 0.82rem;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
    font-weight: normal;
    color: rgba(241, 245, 249, 0.88) !important;
    text-transform: none;
    letter-spacing: 0.02em;
}
body.light-mode .gdpr-checkbox label {
    color: #334155 !important;
}
.gdpr-checkbox a {
    color: #f5b041;
    font-weight: 600;
    transition: color 0.2s ease;
}
.gdpr-checkbox a:hover {
    color: #ffd15c;
}
.btn-submit {
    background: linear-gradient(135deg, #f5b041, #e67e22);
    border: none;
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    color: #0a0c15;
    box-shadow: 0 4px 15px rgba(245, 176, 65, 0.3);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 176, 65, 0.38);
    filter: brightness(1.02);
}
.btn-submit i {
    color: #0a0c15;
}
@media (max-width: 768px) {
    .form-card {
        padding: 22px max(18px, 4vw);
    }
    .form-card .form-group {
        margin-bottom: 20px;
    }
    .service-detail-page .feature-card .feature-list li {
        font-size: 0.85rem;
        gap: 10px;
    }
    .radio-group-horizontal {
        gap: 18px;
    }
}
@media (max-width: 480px) {
    .form-card h3 {
        font-size: 1.3rem;
    }
    .radio-group-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
