/* Termin (expresspolsterei-mathan-ritter.de) — extrahiert aus index.html Z. 4889-5889 */

.termin-modal * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* Modal Overlay */
        .termin-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            overflow-y: auto;
        }

        /* Modal Dialog */
        .termin-modal-dialog {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* Modal Content */
        .termin-modal-content {
            background: white;
            width: 100%;
            max-width: 1400px;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .termin-timeslot.booked {
            background-color: #f5f5f5;
            color: #999;
            cursor: not-allowed;
            border-color: #ddd;
            position: relative;
        }

        .termin-timeslot.booked:hover {
            background-color: #f5f5f5;
            transform: none;
        }

        .termin-timeslot.booked small {
            display: block;
            font-size: 11px;
            color: #e74c3c;
            margin-top: 2px;
        }

        .termin-timeslot.booked::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 10px,
                rgba(0,0,0,0.03) 10px,
                rgba(0,0,0,0.03) 20px
            );
            pointer-events: none;
        }

        /* Modal Header */
        .termin-modal-header {
            background: #e42025;
            color: #fff;
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .termin-modal-header h2 {
            margin: 0;
            font-size: 24px;
            color: #000;
            font-weight: 600;
        }

        .termin-close-btn {
            font-family: "Roboto", sans-serif;
            background: rgba(255, 255, 255, 0.2);
            font-size: 28px;
            border: solid 2px #fff;
            width: 44px;
            line-height: 0rem!important;
            padding: 0 rem!important;
            margin:  0!important;
            color: #fff!important;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .termin-close-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            color: #fff;
            transform: rotate(90deg);
        }

        /* Modal Body */
        .termin-modal-body {
            display: flex;
            height: 700px;
        }

        /* Form Section (Left Side) */
        .termin-form-section {
            width: 450px;
            padding: 30px;
            background: #f8f9fa;
            overflow-y: auto;
        }

        /* Info Section */
        .termin-info-section {
            background: white;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid #e0e0e0;
        }

        .termin-info-section h2 {
            color: #2c3e50;
            font-size: 20px;
            margin-bottom: 12px;
        }

        .termin-info-section p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .termin-info-section ul {
            margin: 12px 0 12px 20px;
            color: #666;
        }

        .termin-info-section li {
            margin-bottom: 6px;
            line-height: 1.5;
            font-size: 14px;
        }

        .termin-info-step {
            margin: 15px 0;
        }

        .termin-info-step h4 {
            color: #000;
            font-size: 16px;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .termin-info-important {
            background: #e8f5e9;
            border: 1px solid #a5d6a7;
            border-radius: 6px;
            padding: 15px;
            margin-top: 15px;
        }

        .termin-info-important h4 {
            color: #000;
            margin-bottom: 10px;
            font-size: 15px;
        }

        /* Progress */
        .termin-progress {
            display: flex;
            justify-content: space-between;
            position: relative;
            padding: 0 10px;
        }

        .termin-progress::before {
            content: '';
            position: absolute;
            top: 18px;
            left: 40px;
            right: 40px;
            height: 2px;
            background: #e0e0e0;
            z-index: 0;
        }

        .termin-progress-item {
            flex: 1;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .termin-progress-circle {
            width: 36px;
            height: 36px;
            background: white;
            color: #999;
            border: 2px solid #e0e0e0;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            margin-bottom: 6px;
            transition: all 0.3s;
            font-size: 14px;
        }

        .termin-progress-item.active .termin-progress-circle {
            background: #e42025;
            color: #fff;
            border-color: #e42025;
        }

        .termin-progress-item.completed .termin-progress-circle {
            background: #e42025;
            color: #fff;
            border-color: #e42025;
        }

        .termin-progress-label {
            font-size: 12px;
            color: #666;
        }

        /* Content Section (Right Side) */
        .termin-content-section {
            flex: 1;
            padding: 40px;
            overflow-y: auto;
        }

        /* Steps */
        .termin-step {
            display: none;
        }

        .termin-step.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .termin-step h2 {
            color: #2c3e50;
            font-size: 24px;
            margin-bottom: 15px;
        }

        .termin-step>p {
            color: #666;
            margin-bottom: 25px;
            font-size: 16px;
        }

        /* Selection Groups */
        .termin-selection-group {
            margin-bottom: 25px;
        }

        .termin-selection-item {
            display: block;
            margin-bottom: 12px;
            cursor: pointer;
        }

        .termin-selection-box {
            display: flex;
            align-items: center;
            padding: 18px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            transition: all 0.2s;
            background: white;
        }

        .termin-selection-item:hover .termin-selection-box {
            border-color: #e42025;
            background: #fffbf0;
        }

        .termin-selection-item input:checked+.termin-selection-box {
            border-color: #e42025;
            background: #e8f5e9;
        }

        .termin-radio-indicator {
            width: 22px;
            height: 22px;
            border: 2px solid #d0d0d0;
            border-radius: 50%;
            margin-right: 15px;
            position: relative;
            flex-shrink: 0;
        }

        .termin-selection-item input:checked+.termin-selection-box .termin-radio-indicator {
            border-color: #e42025;
        }

        .termin-selection-item input:checked+.termin-selection-box .termin-radio-indicator::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            background: #e42025;
            border-radius: 50%;
        }

        .termin-selection-text {
            font-size: 16px;
            color: #333;
        }

        /* Checkbox Groups */
        .termin-service-section {
            margin-bottom: 35px;
        }

        .termin-service-section h3 {
            color: #2c3e50;
            font-size: 18px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .termin-service-section h3 i {
            color: #e42025;
        }

        .termin-service-info {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
            background: #f8f9fa;
            padding: 12px 15px;
            border-radius: 6px;
            border-left: 4px solid #e42025;
        }

        .termin-checkbox-group {
            margin-left: 20px;
        }

        .termin-checkbox-item {
            display: block;
            margin-bottom: 12px;
            cursor: pointer;
        }

        .termin-checkbox-box {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            transition: all 0.2s;
            background: white;
        }

        .termin-checkbox-item:hover .termin-checkbox-box {
            border-color: #e42025;
            background: #fffbf0;
        }

        .termin-checkbox-item input:checked+.termin-checkbox-box {
            border-color: #e42025;
            background: #e8f5e9;
        }

        .termin-checkbox-indicator {
            width: 20px;
            height: 20px;
            border: 2px solid #d0d0d0;
            border-radius: 4px;
            margin-right: 12px;
            position: relative;
            flex-shrink: 0;
            background: white;
        }

        .termin-checkbox-item input:checked+.termin-checkbox-box .termin-checkbox-indicator {
            background: #e42025;
            border-color: #e42025;
        }

        .termin-checkbox-item input:checked+.termin-checkbox-box .termin-checkbox-indicator::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #000;
            font-size: 14px;
            font-weight: bold;
        }

        /* Hide actual inputs */
        .termin-selection-item input[type="radio"],
        .termin-checkbox-item input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        /* Calendar */
        .termin-calendar-container {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
        }

        .termin-calendar-section {
            flex: 1;
            min-width: 350px;
        }

        .termin-calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #e0e0e0;
        }

        .termin-calendar-nav {
            background: #e42025;
            color: #fff;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
        }

        .termin-calendar-nav:hover {
            background: #8c1b1c;
        }

        #currentMonth {
            font-weight: 600;
            color: #333;
            font-size: 16px;
        }

        .termin-calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
        }

        .termin-calendar-day-header {
            text-align: center;
            font-weight: 600;
            padding: 10px 0;
            color: #666;
            font-size: 14px;
        }

        .termin-calendar-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e0e0e0;
            cursor: pointer;
            transition: all 0.2s;
            background: white;
            font-size: 14px;
            border-radius: 6px;
            color: #000;
        }

        .termin-calendar-day:hover:not(.disabled) {
            background: #e8f5e9;
            border-color: #e42025;
        }

        .termin-calendar-day.selected {
            background: #e42025;
            color: #000;
            border-color: #e42025;
            font-weight: 600;
        }

        .termin-calendar-day.disabled {
            color: #ccc;
            cursor: not-allowed;
            background: #f5f5f5;
        }

        .termin-calendar-day.other-month {
            color: #ddd;
        }

        /* Timeslots */
        .termin-timeslots-section {
            flex: 1;
            min-width: 350px;
        }

        .termin-timeslots-section h3 {
            margin-bottom: 15px;
            color: #2c3e50;
            font-size: 18px;
        }

        .termin-timeslots-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 10px;
            max-height: 420px;
            overflow-y: auto;
            padding: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            background: #f8f9fa;
        }

        .termin-timeslot {
            padding: 12px;
            text-align: center;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            background: white;
            font-size: 14px;
            color: #000;
        }

        .termin-timeslot:hover {
            border-color: #e42025;
            background: #e8f5e9;
        }

        .termin-timeslot.selected {
            background: #e42025;
            color: #fff;
            border-color: #e42025;
            font-weight: 600;
        }

        .termin-timeslot.disabled {
            background: #f5f5f5;
            color: #ccc;
            cursor: not-allowed;
        }

        .termin-no-date-message {
            color: #666;
            text-align: center;
            padding: 60px 20px;
            font-size: 14px;
        }

        /* Forms */
        .termin-form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .termin-form-group {
            flex: 1;
        }

        .termin-form-group-small {
            flex: 0 0 120px;
        }

        .termin-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
        }

        .termin-form-group label i {
            color: #e42025;
            margin-right: 6px;
        }

        .termin-form-group input,
        .termin-form-group select,
        .termin-form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.2s;
            font-family: inherit;
        }

        .termin-form-group input:focus,
        .termin-form-group select:focus,
        .termin-form-group textarea:focus {
            outline: none;
            border-color: #e42025;
        }

        .termin-form-group.error input,
        .termin-form-group.error select {
            border-color: #dc3545;
        }

        .termin-error-msg {
            display: none;
            color: #dc3545;
            font-size: 14px;
            margin-top: 5px;
        }

        .termin-form-group.error .termin-error-msg {
            display: block;
        }

        .termin-notice {
            background: #e8f5e9;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            color: #8c1b1c;
            font-size: 14px;
            border: 1px solid #a5d6a7;
        }

        .termin-notice i {
            margin-right: 8px;
        }

        /* Summary */
        .termin-summary {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            border: 1px solid #e0e0e0;
        }

        .termin-summary-section {
            margin-bottom: 25px;
        }

        .termin-summary-section:last-child {
            margin-bottom: 0;
        }

        .termin-summary-section h3 {
            color: #2c3e50;
            font-size: 18px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .termin-summary-section h3 i {
            color: #e42025;
        }

        .termin-calendar-day.today {
            background: #fff3cd;
            border: 2px solid #e42025;
            font-weight: bold;
        }

        /* Gebuchte Timeslots */
        .termin-timeslot.booked {
            background: #f8d7da;
            color: #721c24;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .termin-timeslot.booked:hover {
            background: #f8d7da;
            transform: none;
        }

        /* Keine Slots Nachricht */
        .termin-no-slots-message {
            text-align: center;
            color: #6c757d;
            font-style: italic;
            padding: 40px 20px;
        }

        .termin-summary-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #dee2e6;
        }

        .termin-summary-row:last-child {
            border-bottom: none;
        }

        .termin-summary-label {
            font-weight: 500;
            color: #666;
        }

        .termin-summary-value {
            color: #333;
            text-align: right;
        }

        /* Success */
        .termin-success {
            text-align: center;
            padding: 60px 40px;
        }

        .termin-success-icon {
            font-size: 80px;
            color: #e42025;
            margin-bottom: 25px;
        }

        .termin-success h2 {
            color: #e42025;
            margin-bottom: 15px;
            font-size: 28px;
        }

        .termin-success p {
            color: #666;
            margin-bottom: 20px;
            font-size: 16px;
        }

        #successMessage {
            margin-top: 20px;
        }

        #successMessage p {
            margin-bottom: 10px;
        }

        /* Buttons */
        .termin-button-group {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin-top: 30px;
        }

        .termin-btn {
            padding: 1px 15px;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

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

        .termin-btn-primary {
            background: #e42025;
            color: #fff;
        }

        .termin-btn-primary::hover {
            background: #e42025;
            color: #fff;
        }

        .termin-btn-primary:hover:not(:disabled) {
            background: #e42025;
            color: #fff;
        }

        .termin-btn-secondary {
            background: #e42025;
            color: #fff;
        }

        .termin-btn-secondary:hover:not(:disabled) {
            background: #e42025;
            color: #fff;
        }

        .termin-btn-success {
            background: #e42025;
            color: #fff;
        }

        .termin-btn-success:hover:not(:disabled) {
            background: #e42025;
            color: #fff;
        }

        /* Scrollbar */
        .termin-timeslots-grid::-webkit-scrollbar,
        .termin-form-section::-webkit-scrollbar,
        .termin-content-section::-webkit-scrollbar {
            width: 8px;
        }

        .termin-timeslots-grid::-webkit-scrollbar-track,
        .termin-form-section::-webkit-scrollbar-track,
        .termin-content-section::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .termin-timeslots-grid::-webkit-scrollbar-thumb,
        .termin-form-section::-webkit-scrollbar-thumb,
        .termin-content-section::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 4px;
        }

        .termin-timeslots-grid::-webkit-scrollbar-thumb:hover,
        .termin-form-section::-webkit-scrollbar-thumb:hover,
        .termin-content-section::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

        /* Company Info Box */
        #successMessage>div {
            margin-top: 20px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            text-align: left;
            display: inline-block;
        }

        #successMessage>div h4 {
            margin-bottom: 12px;
            color: #2c3e50;
        }

        #successMessage>div p {
            margin: 6px 0;
            color: #666;
            font-size: 14px;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .termin-modal-body {
                flex-direction: column;
                height: auto;
            }

            .termin-form-section {
                width: 100%;
                padding: 20px;
                border-right: none;
                border-bottom: 1px solid #e0e0e0;
            }

            .termin-content-section {
                padding: 20px;
            }

            .termin-calendar-container {
                flex-direction: column;
            }

            .termin-calendar-section,
            .termin-timeslots-section {
                min-width: 100%;
            }
        }

        @media (max-width: 768px) {
            .termin-modal-header {
                padding: 15px 20px;
            }

            .termin-modal-header h2 {
                font-size: 20px;
            }

            .termin-form-row {
                flex-direction: column;
            }

            .termin-form-group-small {
                flex: 1;
            }

            .termin-button-group {
                flex-direction: column-reverse;
            }

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

            .termin-progress-label {
                display: none;
            }

            .termin-progress-circle {
                width: 32px;
                height: 32px;
                font-size: 12px;
            }

            .termin-summary-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .termin-summary-value {
                text-align: left;
                margin-top: 5px;
            }

            .termin-calendar-grid {
                gap: 3px;
            }

            .termin-calendar-day {
                font-size: 12px;
            }

            .termin-service-section h3 {
                font-size: 16px;
            }

            .termin-checkbox-group {
                margin-left: 0;
            }
        }


/* ============================================================
   STANDALONE-MODUS — FAQ-Style (grauer Body, weißer Container)
   ============================================================ */

body.termin-standalone {
    background: #eeeeee !important;
}

body.termin-standalone .page-content {
    padding: 60px 0 80px !important;
    background: #eeeeee !important;
}

body.termin-standalone .termin-modal, body.termin-standalone #termin-modal {
    display: block !important;
    position: static !important;
    background: transparent !important;
    overflow: visible !important;
    animation: none !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
}

body.termin-standalone .termin-modal-dialog {
    min-height: auto !important;
    display: block !important;
    padding: 0 15px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

body.termin-standalone .termin-modal-content {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    max-height: none !important;
    animation: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
}

body.termin-standalone .termin-modal-header {
    display: none !important;
}

body.termin-standalone .termin-modal-body {
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 600px !important;
}

body.termin-standalone .termin-form-section,
body.termin-standalone .termin-content-section {
    min-width: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 991px) {
    body.termin-standalone .termin-modal-body {
        flex-direction: column !important;
    }
    body.termin-standalone .termin-form-section,
    body.termin-standalone .termin-content-section {
        width: 100% !important;
        flex: none !important;
    }
}
